More common subroutines

git-svn-id: svn://svn.cc65.org/cc65/trunk@69 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-06-14 09:32:22 +00:00
parent 114bc5a370
commit 1081c1dcdd
27 changed files with 363 additions and 151 deletions

View File

@@ -34,8 +34,8 @@
#include "../common/optdefs.h"
#include "../common/xmalloc.h"
#include "mem.h"
#include "error.h"
#include "objfile.h"
#include "options.h"
@@ -67,7 +67,7 @@ static Option* NewOption (unsigned char Type)
Option* Opt;
/* Allocate memory */
Opt = Xmalloc (sizeof (*Opt));
Opt = xmalloc (sizeof (*Opt));
/* Initialize fields */
Opt->Next = 0;
@@ -101,7 +101,7 @@ void OptStr (unsigned char Type, const char* Text)
Fatal (FAT_STRING_TOO_LONG);
}
O = NewOption (Type);
O->V.Str = StrDup (Text);
O->V.Str = xstrdup (Text);
}