Commiting some old changes

git-svn-id: svn://svn.cc65.org/cc65/trunk@1551 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-11-20 17:04:29 +00:00
parent ead7de2b42
commit cfbe5ec5b4
3 changed files with 93 additions and 0 deletions

View File

@@ -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 */
/*****************************************************************************/