Commiting some old changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@1551 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include "xmalloc.h"
|
||||
|
||||
/* sim65 */
|
||||
#include "cfgdata.h"
|
||||
#include "chip.h"
|
||||
#include "error.h"
|
||||
#include "global.h"
|
||||
@@ -53,6 +54,28 @@
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* struct CfgData */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
static CfgData* NewCfgData (const char* Tok)
|
||||
/* Create and intialize a new CfgData struct, then return it */
|
||||
{
|
||||
/* Allocate memory */
|
||||
CfgData* D = xmalloc (sizeof (CfgData));
|
||||
|
||||
/* Initialize the fields */
|
||||
D->Attr = xstrdup (Tok);
|
||||
D->Type = Invalid;
|
||||
|
||||
/* Return the new struct */
|
||||
return D;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user