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