Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
31
cde/programs/nsgmls/Id.C
Normal file
31
cde/programs/nsgmls/Id.C
Normal file
@@ -0,0 +1,31 @@
|
||||
/* $XConsortium: Id.C /main/1 1996/07/29 16:54:32 cde-hp $ */
|
||||
// Copyright (c) 1996 James Clark
|
||||
// See the file COPYING for copying permission.
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
#include "splib.h"
|
||||
#include "Id.h"
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
namespace SP_NAMESPACE {
|
||||
#endif
|
||||
|
||||
Id::Id(const StringC &name)
|
||||
: Named(name)
|
||||
{
|
||||
}
|
||||
|
||||
void Id::define(const Location &loc)
|
||||
{
|
||||
defLocation_ = loc;
|
||||
// release memory for pendingRefs_
|
||||
Vector<Location> tem;
|
||||
pendingRefs_.swap(tem);
|
||||
}
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user