Use a collection to manage the segments.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5124 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-05 13:45:33 +00:00
parent a17d11cba8
commit 9f02a29dfa
4 changed files with 95 additions and 94 deletions

View File

@@ -866,6 +866,9 @@ int main (int argc, char* argv [])
/* Initialize the include search paths */
InitIncludePaths ();
/* Create the predefined segments */
InitSegments ();
/* Enter the base lexical level. We must do that here, since we may
* define symbols using -D.
*/
@@ -991,8 +994,8 @@ int main (int argc, char* argv [])
SetMemoryModel (MMODEL_NEAR);
}
/* Initialize the segments */
InitSegments ();
/* Set the default segment sizes according to the memory model */
SetSegmentSizes ();
/* Initialize the scanner, open the input file */
InitScanner (InFile);