diff options
| author | Joe Onorato <joeo@android.com> | 2009-08-10 15:01:51 -0700 |
|---|---|---|
| committer | Joe Onorato <joeo@android.com> | 2009-08-10 15:01:51 -0700 |
| commit | daed524c35f5fe4d35f403d2279947605d161b2e (patch) | |
| tree | 4b372e0d0863f8ee059acb0f5edb694e539e6d57 /libs/rs/rsg_generator.c | |
| parent | c028d09409c3cd290949974258264903106a3346 (diff) | |
| download | frameworks_base-daed524c35f5fe4d35f403d2279947605d161b2e.zip frameworks_base-daed524c35f5fe4d35f403d2279947605d161b2e.tar.gz frameworks_base-daed524c35f5fe4d35f403d2279947605d161b2e.tar.bz2 | |
The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex
conform to that.
Diffstat (limited to 'libs/rs/rsg_generator.c')
| -rw-r--r-- | libs/rs/rsg_generator.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <stdio.h> 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<const RS_CMD_%s *>(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); |
