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