More common subroutines
git-svn-id: svn://svn.cc65.org/cc65/trunk@69 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user