| 2353 | } |
| 2354 | |
| 2355 | static int Sc_ScanIdent() |
| 2356 | { |
| 2357 | ConsoleBaseType *type; |
| 2358 | |
| 2359 | CMDtext[CMDleng] = 0; |
| 2360 | |
| 2361 | if((type = ConsoleBaseType::getTypeByName(CMDtext)) != NULL) |
| 2362 | { |
| 2363 | /* It's a type */ |
| 2364 | CMDlval.i = MakeToken< int >( type->getTypeID(), lineIndex ); |
| 2365 | return TYPEIDENT; |
| 2366 | } |
| 2367 | |
| 2368 | /* It's an identifier */ |
| 2369 | CMDlval.s = MakeToken< StringTableEntry >( StringTable->insert(CMDtext), lineIndex ); |
| 2370 | return IDENT; |
| 2371 | } |
| 2372 | |
| 2373 | void expandEscape(char *dest, const char *src) |
| 2374 | { |
no test coverage detected