| 1355 | } |
| 1356 | |
| 1357 | void Namespace::markGroup(const char* name, const char* usage) |
| 1358 | { |
| 1359 | static U32 uid=0; |
| 1360 | char buffer[1024]; |
| 1361 | char lilBuffer[32]; |
| 1362 | dStrcpy(buffer, name); |
| 1363 | dSprintf(lilBuffer, 32, "_%d", uid++); |
| 1364 | dStrcat(buffer, lilBuffer); |
| 1365 | |
| 1366 | Entry *ent = createLocalEntry(StringTable->insert( buffer )); |
| 1367 | trashCache(); |
| 1368 | |
| 1369 | if(usage != NULL) |
| 1370 | lastUsage = (char*)(ent->mUsage = usage); |
| 1371 | else |
| 1372 | ent->mUsage = lastUsage; |
| 1373 | |
| 1374 | ent->mMinArgs = -1; // Make sure it explodes if somehow we run this entry. |
| 1375 | ent->mMaxArgs = -2; |
| 1376 | |
| 1377 | ent->mType = Entry::GroupMarker; |
| 1378 | ent->cb.mGroupName = name; |
| 1379 | } |
| 1380 | |
| 1381 | extern S32 executeBlock(StmtNode *block, ExprEvalState *state); |
| 1382 |
no test coverage detected