| 1177 | } |
| 1178 | |
| 1179 | void FillAutoArrayInfo(char* ptr, HTREEITEM parent) |
| 1180 | { |
| 1181 | TVINSERTSTRUCT helpInsert; |
| 1182 | helpInsert.hParent = parent; |
| 1183 | helpInsert.hInsertAfter = TVI_LAST; |
| 1184 | helpInsert.item.mask = TVIF_TEXT; |
| 1185 | helpInsert.item.cchTextMax = 0; |
| 1186 | char name[256]; |
| 1187 | |
| 1188 | NULLCAutoArray *arr = (NULLCAutoArray*)ptr; |
| 1189 | |
| 1190 | safeprintf(name, 256, "typeid type = %d (%s)", arr->typeID, codeSymbols + codeTypes[arr->typeID].offsetToName); |
| 1191 | helpInsert.item.pszText = name; |
| 1192 | TreeView_InsertItem(hVars, &helpInsert); |
| 1193 | |
| 1194 | safeprintf(name, 256, "%s[] data = 0x%x", codeSymbols + codeTypes[arr->typeID].offsetToName, arr->ptr); |
| 1195 | |
| 1196 | if(!arr->ptr) |
| 1197 | return; |
| 1198 | ExternTypeInfo parentType; |
| 1199 | memset(&parentType, 0, sizeof(ExternTypeInfo)); |
| 1200 | parentType.arrSize = arr->len; |
| 1201 | parentType.subType = arr->typeID; |
| 1202 | |
| 1203 | helpInsert.item.mask = TVIF_TEXT; |
| 1204 | helpInsert.item.pszText = name; |
| 1205 | HTREEITEM lastItem = TreeView_InsertItem(hVars, &helpInsert); |
| 1206 | FillArrayVariableInfo(parentType, arr->ptr, lastItem); |
| 1207 | } |
| 1208 | |
| 1209 | void InsertUnavailableInfo(HTREEITEM parent) |
| 1210 | { |
no test coverage detected