Added assertions

git-svn-id: svn://svn.cc65.org/cc65/trunk@2202 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-06-06 12:45:19 +00:00
parent 0aa75f12d6
commit bb24d025f6
29 changed files with 405 additions and 183 deletions

View File

@@ -81,7 +81,9 @@ static ObjHeader Header = {
0, /* 32: Offset to list of line infos */
0, /* 32: Size of line infos */
0, /* 32: Offset to string pool */
0 /* 32: Size of string pool */
0, /* 32: Size of string pool */
0, /* 32: Offset to assertion table */
0 /* 32: Size of assertion table */
};
@@ -134,6 +136,8 @@ static void ObjWriteHeader (void)
ObjWrite32 (Header.LineInfoSize);
ObjWrite32 (Header.StrPoolOffs);
ObjWrite32 (Header.StrPoolSize);
ObjWrite32 (Header.AssertOffs);
ObjWrite32 (Header.AssertSize);
}
@@ -442,3 +446,19 @@ void ObjEndStrPool (void)
void ObjStartAssertions (void)
/* Mark the start of the assertion table */
{
Header.AssertOffs = ftell (F);
}
void ObjEndAssertions (void)
/* Mark the end of the assertion table */
{
Header.AssertSize = ftell (F) - Header.AssertOffs;
}