Lines Matching defs:map

76   // Can be number or string or both, or else map (array) or regex
82 struct zmap *map;
638 v->map = m;
1563 // context if it is a scalar or map. Just add it to symbol table.
1986 // delete entire map (elements only; var is still a map)
2165 // Must be map iteration
2560 if (v->flags & ZF_MAP || v->map->count)
2563 v->map = 0; // v->flags = v->map = 0 gets warning
2834 return splitter(set_map_element, a->map, s->str, fs);
2966 struct zmap_slot *x = zmap_find_or_insert_key(v->map, to_str(key)->vst);
3225 // So first, remove all map data to prevent memory leak. BUG FIX // 2024-02-13.
3227 zmap_delete_map_incl_slotdata(v->map);
3228 xfree(v->map);
3229 v->map = 0;
3272 if (zmap_find(v->map, zkey.vst)) {
3842 // or map if it is used as such within the function. In that case we
3846 // "may be" a map, but we have to assume the possibility and attach a
3847 // map to the var. When/if the var is used as a map or scalar in the
3848 // called function it will be converted to a map or scalar as
3872 // release any map data created.
3875 zmap_delete_map_incl_slotdata((STKP)->map);
3876 xfree((STKP)->map);
3904 case tkrbracket: // concat multiple map subscripts
3927 zmap_delete_map(v->map);
3930 zmap_delete(v->map, to_str(STKP)->vst);
3948 v = zmap_find(STKP->map, to_str(STKP-1)->vst);
3959 struct zmap *m = v->map; // Need for MAPSLOT macro
4135 zmap_delete_map(a->map);
4246 if (IS_MAP(v)) k = v->map->count - v->map->deleted;
4346 static void insert_argv_map(struct zvalue *map, int key, char *value)
4349 struct zvalue *v = get_map_val(map, &zkey);
4364 // Init ENVIRON map.
4379 // Init ARGV map.
4409 // or map if it is used as such in the program. In that case we init the
4413 // a map, but we have to assume the possibility and attach a map to the
4414 // var. When/if the var is used as a map or scalar in the called function it
4415 // will be converted to a map or scalar as required.