Factor compile-time scopes into PScope class

Modules, functions and tasks are named scopes so derive them all
from the PScope base class. These items all take scoped items, so
the eventual plan is to move these items into PScope.
This commit is contained in:
Stephen Williams
2008-02-13 19:59:05 -08:00
parent 331faa2217
commit 3f2fa29482
11 changed files with 128 additions and 145 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
/* n is a permallocated string. */
Module::Module(perm_string n)
: name_(n)
: PScope(n)
{
library_flag = false;
default_nettype = NetNet::NONE;