| 148 | namespace Con |
| 149 | { |
| 150 | const char *getNamespaceList(Namespace *ns) |
| 151 | { |
| 152 | U32 size = 1; |
| 153 | Namespace * walk; |
| 154 | for (walk = ns; walk; walk = walk->mParent) |
| 155 | size += dStrlen(walk->mName) + 4; |
| 156 | char *ret = Con::getReturnBuffer(size); |
| 157 | ret[0] = 0; |
| 158 | for (walk = ns; walk; walk = walk->mParent) |
| 159 | { |
| 160 | dStrcat(ret, walk->mName, size); |
| 161 | if (walk->mParent) |
| 162 | dStrcat(ret, " -> ", size); |
| 163 | } |
| 164 | return ret; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | static void getFieldComponent(SimObject* object, StringTableEntry field, const char* array, StringTableEntry subField, char val[], S32 currentLocalRegister) |