From daed524c35f5fe4d35f403d2279947605d161b2e Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Mon, 10 Aug 2009 15:01:51 -0700 Subject: The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex conform to that. --- libs/rs/rsg_generator.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/rs/rsg_generator.c') diff --git a/libs/rs/rsg_generator.c b/libs/rs/rsg_generator.c index a4d659d..7cf6bb6 100644 --- a/libs/rs/rsg_generator.c +++ b/libs/rs/rsg_generator.c @@ -1,6 +1,6 @@ - -#include "lex.yy.c" +#include "spec.h" +#include void printFileHeader(FILE *f) { @@ -45,7 +45,7 @@ void printVarType(FILE *f, const VarType *vt) fprintf(f, "double"); break; case 4: - fprintf(f, "%s", vt->typename); + fprintf(f, "%s", vt->typeName); break; } @@ -157,7 +157,7 @@ void printApiCpp(FILE *f) needFlush += vt->ptrLevel; fprintf(f, " cmd->%s = %s;\n", vt->name, vt->name); } - if (api->ret.typename[0]) { + if (api->ret.typeName[0]) { needFlush = 1; } @@ -167,7 +167,7 @@ void printApiCpp(FILE *f) } fprintf(f, "(RS_CMD_ID_%s, size);\n", api->name); - if (api->ret.typename[0]) { + if (api->ret.typeName[0]) { fprintf(f, " return reinterpret_cast<"); printVarType(f, &api->ret); fprintf(f, ">(io->mToCoreRet);\n"); @@ -199,7 +199,7 @@ void printPlaybackCpp(FILE *f) //fprintf(f, " LOGE(\"play command %s\\n\");\n", api->name); fprintf(f, " const RS_CMD_%s *cmd = static_cast(vp);\n", api->name, api->name); fprintf(f, " "); - if (api->ret.typename[0]) { + if (api->ret.typeName[0]) { fprintf(f, "gIO->mToCoreRet = (intptr_t)"); } fprintf(f, "rsi_%s(con", api->name); -- cgit v1.1