Lines Matching defs:slotnum
215 int slotnum;
268 int slotnum;
1170 int slotnum = zlist_append(&TT.func_def_table, &ent);
1171 FUNC_DEF[slotnum].slotnum = slotnum;
1172 return slotnum;
1186 int slotnum = zlist_append(&TT.globals_table, &ent);
1187 GLOBAL[slotnum].slotnum = slotnum;
1188 return slotnum;
1202 int slotnum = zlist_append(&TT.locals_table, &ent);
1203 LOCAL[slotnum].slotnum = slotnum;
1204 return slotnum;
1209 int slotnum = 0; // + means global; - means local to function
1213 slotnum = -LOCAL[locals_ent].slotnum;
1217 slotnum = GLOBAL[globals_ent].slotnum;
1223 return slotnum;
1391 static void check_set_map(int slotnum)
1395 if (slotnum < 0 && LOCAL[-slotnum].flags & ZF_SCALAR)
1396 XERR("scalar param '%s' used as array\n", LOCAL[-slotnum].name);
1397 if (slotnum > 0 && GLOBAL[slotnum].flags & ZF_SCALAR)
1398 XERR("scalar var '%s' used as array\n", GLOBAL[slotnum].name);
1399 if (slotnum < 0) LOCAL[-slotnum].flags |= ZF_MAP;
1400 if (slotnum > 0) GLOBAL[slotnum].flags |= ZF_MAP;
1403 static void check_set_scalar(int slotnum)
1405 if (slotnum < 0 && LOCAL[-slotnum].flags & ZF_MAP)
1406 XERR("array param '%s' used as scalar\n", LOCAL[-slotnum].name);
1407 if (slotnum > 0 && GLOBAL[slotnum].flags & ZF_MAP)
1408 XERR("array var '%s' used as scalar\n", GLOBAL[slotnum].name);
1409 if (slotnum < 0) LOCAL[-slotnum].flags |= ZF_SCALAR;
1410 if (slotnum > 0) GLOBAL[slotnum].flags |= ZF_SCALAR;
1415 int slotnum;
1416 check_set_map(slotnum = find_or_add_var_name());
1417 gen2cd(tkvar, slotnum);
1578 // slotnum: + means global; - means local to function
1579 int slotnum = find_or_add_var_name();
1582 check_set_map(slotnum);
1590 gen2cd(opmap, slotnum);
1592 check_set_scalar(slotnum);
1593 gen2cd(tkvar, slotnum);
1972 int slotnum = find_or_add_var_name();
1973 check_set_map(slotnum);
1983 gen2cd(opmapref, slotnum);
1987 gen2cd(opmapref, slotnum);