| 1340 | } |
| 1341 | |
| 1342 | void Namespace::markGroup(const char* name, const char* usage) |
| 1343 | { |
| 1344 | static U32 uid = 0; |
| 1345 | char buffer[1024]; |
| 1346 | char lilBuffer[32]; |
| 1347 | dStrcpy(buffer, name, 1024); |
| 1348 | dSprintf(lilBuffer, 32, "_%d", uid++); |
| 1349 | dStrcat(buffer, lilBuffer, 1024); |
| 1350 | |
| 1351 | Entry *ent = createLocalEntry(StringTable->insert(buffer)); |
| 1352 | trashCache(); |
| 1353 | |
| 1354 | if (usage != NULL) |
| 1355 | lastUsage = (char*)(ent->mUsage = usage); |
| 1356 | else |
| 1357 | ent->mUsage = lastUsage; |
| 1358 | |
| 1359 | ent->mMinArgs = -1; // Make sure it explodes if somehow we run this entry. |
| 1360 | ent->mMaxArgs = -2; |
| 1361 | |
| 1362 | ent->mType = Entry::GroupMarker; |
| 1363 | ent->cb.mGroupName = name; |
| 1364 | } |
| 1365 | |
| 1366 | extern S32 executeBlock(StmtNode *block, ExprEvalState *state); |
| 1367 |
no test coverage detected