This commit is contained in:
Paul 2000-12-18 16:58:33 +00:00
parent 0c4309fb16
commit 1fab44452d
4 changed files with 5 additions and 4 deletions

View File

@ -61,7 +61,7 @@ struct FunctionDef
---- */
static FunctionDef s_functionNames[]=
{
{ "setCharacterExpression", 2, }, // character, expression
{ "setCharacterAnimation", 2, }, // character, animation
{ "setText", 1, }, // textId
};
static int s_functionCount=sizeof(s_functionNames)/sizeof(FunctionDef);

View File

@ -77,6 +77,7 @@ extern int main(int argc, char *argv[])
infile=argv[1];
outfile=argv[2];
printf("Scripter attempting to compile %s..\n",infile);
if(parseFile(infile,s_baseTreeNode)==YYEXIT_SUCCESS&&s_baseTreeNode)
{
if(openOutputFile(outfile))
@ -84,7 +85,7 @@ extern int main(int argc, char *argv[])
int byteCount;
byteCount=s_baseTreeNode->generateCode(true);
closeOutputFile();
printf("Generated %d bytes of code\n",byteCount*2);
printf("Generated %d bytes of code in %s\n",byteCount*2,outfile);
ret=0;
}
else

View File

@ -134,10 +134,10 @@ int CPFile::open(char *_filename)
---------------------------------------------------------------------- */
int CPFile::close()
{
printf("Processed %d char(s) on %d line(s) in file %s\n",m_charCount,m_lineCount,m_filename);
printf(" Processed %d char(s) on %d line(s) in file %s\n",m_charCount,m_lineCount,m_filename);
if(m_errorCount)
{
printf("Found %d error(s) :(\n",m_errorCount);
printf(" Found %d error(s) :(\n",m_errorCount);
}
fclose(m_fh);
if(m_next)

Binary file not shown.