xref: /onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/lib/Id.cxx (revision 0:68f95e015346)
1*0Sstevel@tonic-gate // Copyright (c) 1996 James Clark
2*0Sstevel@tonic-gate // See the file COPYING for copying permission.
3*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
4*0Sstevel@tonic-gate 
5*0Sstevel@tonic-gate #ifdef __GNUG__
6*0Sstevel@tonic-gate #pragma implementation
7*0Sstevel@tonic-gate #endif
8*0Sstevel@tonic-gate 
9*0Sstevel@tonic-gate #include "splib.h"
10*0Sstevel@tonic-gate #include "Id.h"
11*0Sstevel@tonic-gate 
12*0Sstevel@tonic-gate #ifdef SP_NAMESPACE
13*0Sstevel@tonic-gate namespace SP_NAMESPACE {
14*0Sstevel@tonic-gate #endif
15*0Sstevel@tonic-gate 
Id(const StringC & name)16*0Sstevel@tonic-gate Id::Id(const StringC &name)
17*0Sstevel@tonic-gate : Named(name)
18*0Sstevel@tonic-gate {
19*0Sstevel@tonic-gate }
20*0Sstevel@tonic-gate 
define(const Location & loc)21*0Sstevel@tonic-gate void Id::define(const Location &loc)
22*0Sstevel@tonic-gate {
23*0Sstevel@tonic-gate   defLocation_ = loc;
24*0Sstevel@tonic-gate   // release memory for pendingRefs_
25*0Sstevel@tonic-gate   Vector<Location> tem;
26*0Sstevel@tonic-gate   pendingRefs_.swap(tem);
27*0Sstevel@tonic-gate }
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate #ifdef SP_NAMESPACE
30*0Sstevel@tonic-gate }
31*0Sstevel@tonic-gate #endif
32