Differences From Artifact [dcc24ffd8cd95382]:
- File
jim-array.c
-
2010-12-21 11:45:08
- part of checkin
[e969013997]
on branch trunk
- All Jim source should include jimautoconf.h
This ensures that everything picks up the autoconf settings (user: steveb@workware.net.au
-
2010-12-21 11:45:08
- part of checkin
[e969013997]
on branch trunk
- All Jim source should include jimautoconf.h
To Artifact [ad0b7bf8222fe68a]:
- File
jim-array.c
-
2011-08-02 23:02:25
- part of checkin
[33976eb5ce]
on branch trunk
- Fix commit cbeb3ea: unset missing array element
Although [dict unset] should not complain about being unable to unset a missing element, unset via array syntax (dict sugar) should - to be compatible with Tcl.
Signed-off-by: Steve Bennett <steveb@workware.net.au> (user: steveb@workware.net.au
-
2011-08-02 23:02:25
- part of checkin
[33976eb5ce]
on branch trunk
- Fix commit cbeb3ea: unset missing array element
207 207 for (i = 0; i < len && rc == JIM_OK; i += 2) {
208 208 Jim_Obj *nameObj;
209 209 Jim_Obj *valueObj;
210 210
211 211 Jim_ListIndex(interp, listObj, i, &nameObj, JIM_NONE);
212 212 Jim_ListIndex(interp, listObj, i + 1, &valueObj, JIM_NONE);
213 213
214 - rc = Jim_SetDictKeysVector(interp, argv[0], &nameObj, 1, valueObj);
214 + rc = Jim_SetDictKeysVector(interp, argv[0], &nameObj, 1, valueObj, JIM_ERRMSG);
215 215 }
216 216
217 217 return rc;
218 218 }
219 219
220 220 static const jim_subcmd_type array_command_table[] = {
221 221 { .cmd = "exists",