/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* */
/*****************************************************************************/
-
+
/* common */
#include "xmalloc.h"
F->Obj = 0;
F->Size = Size;
F->Expr = 0;
+ InitFilePos (&F->Pos);
+ F->LI = 0;
F->Type = Type;
- /* Insert the code fragment into the segment */
+ /* Insert the code fragment into the section */
if (S->FragRoot == 0) {
/* First fragment */
S->FragRoot = F;
S->FragLast->Next = F;
}
S->FragLast = F;
+
+ /* Increment the size of the section by the size of the fragment */
S->Size += Size;
+ /* Increment the size of the segment that contains the section */
+ S->Seg->Size += Size;
+
/* Return the new fragment */
return F;
}