ci 645 core/conf.c ConfInfo *ci; ci 978 core/conf.c static void config_update_last_saved(ConfInfo *ci) ci 981 core/conf.c for (i=0; ci[i].id > 0; ++i) ci 983 core/conf.c switch (ci[i].type) ci 988 core/conf.c switch (ci[i].size) ci 991 core/conf.c ci[i].last_saved = (unsigned int)*((int*)ci[i].var); ci 994 core/conf.c ci[i].last_saved = (unsigned int)*((short*)ci[i].var); ci 997 core/conf.c ci[i].last_saved = (unsigned int)*((char*)ci[i].var); ci 1002 core/conf.c ci[i].last_saved = memhash31((unsigned char*)ci[i].var, ci[i].size); ci 1005 core/conf.c ci[i].last_saved = lang_strhash31((int)ci[i].var); ci 1011 core/conf.c static int config_has_changed(ConfInfo *ci) ci 1014 core/conf.c for (i=0; ci[i].id > 0; ++i) ci 1016 core/conf.c switch (ci[i].type) ci 1021 core/conf.c switch (ci[i].size) ci 1024 core/conf.c if (ci[i].last_saved != (unsigned int)*((int*)ci[i].var)) ci 1028 core/conf.c if (ci[i].last_saved != (unsigned int)*((short*)ci[i].var)) ci 1032 core/conf.c if (ci[i].last_saved != (unsigned int)*((char*)ci[i].var)) ci 1038 core/conf.c if (ci[i].last_saved != memhash31((unsigned char*)ci[i].var, ci[i].size)) ci 1042 core/conf.c if (ci[i].last_saved != lang_strhash31((int)ci[i].var)) ci 1052 core/conf.c static void config_load_defaults(ConfInfo *ci, void (*info_func)(unsigned short id)) ci 1056 core/conf.c for (i=0; ci[i].id > 0; ++i) { ci 1057 core/conf.c switch (ci[i].type) { ci 1060 core/conf.c memcpy(ci[i].var, &(ci[i].i), ci[i].size); ci 1063 core/conf.c memset(ci[i].var, 0, ci[i].size); ci 1066 core/conf.c *((int*)ci[i].var) = ci[i].func(); ci 1069 core/conf.c memcpy(ci[i].var, ci[i].ptr, ci[i].size); ci 1072 core/conf.c if (info_func) info_func(ci[i].id); ci 1079 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1080 core/conf.c config_load_defaults(confinfo_handlers[i].ci, confinfo_handlers[i].info_func); ci 1092 core/conf.c void config_save(ConfInfo *ci, const char *filename, int config_base) ci 1101 core/conf.c for (i=0; ci[i].id > 0; i++); // Find # of items ci 1105 core/conf.c for (i=0; ci[i].id > 0; i++) ci 1107 core/conf.c if (ci[i].type == CONF_STRUCT_PTR) ci 1109 core/conf.c tVarArrayConfig *cfg = (tVarArrayConfig*)(ci[i].var); ci 1114 core/conf.c size += ci[i].size; ci 1132 core/conf.c for (i=0; ci[i].id > 0; ++i) ci 1134 core/conf.c ((ConfInfoSave*)p)->id = ci[i].id; ci 1135 core/conf.c ((ConfInfoSave*)p)->size = ci[i].size; ci 1137 core/conf.c if (ci[i].type == CONF_STRUCT_PTR) ci 1139 core/conf.c tVarArrayConfig *cfg = (tVarArrayConfig*)(ci[i].var); ci 1144 core/conf.c memcpy(p, ci[i].var, ci[i].size); ci 1146 core/conf.c if ((ci[i].size == CONF_STR_LEN) && (strlen(ci[i].var) < CONF_STR_LEN)) ci 1147 core/conf.c memset(p+strlen(ci[i].var), 0, CONF_STR_LEN-strlen(ci[i].var)); ci 1148 core/conf.c p += ci[i].size; ci 1166 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1168 core/conf.c if (config_has_changed(confinfo_handlers[i].ci) || ((confinfo_handlers[i].start_id == CONF_USER) && camera_info.state.user_menu_has_changed)) ci 1173 core/conf.c config_save(confinfo_handlers[i].ci, confinfo_handlers[i].filename, confinfo_handlers[i].start_id); ci 1174 core/conf.c config_update_last_saved(confinfo_handlers[i].ci); ci 1184 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1188 core/conf.c config_save(confinfo_handlers[i].ci, (filename != 0) ? filename : confinfo_handlers[i].filename, confinfo_handlers[i].start_id); ci 1190 core/conf.c config_update_last_saved(confinfo_handlers[i].ci); ci 1198 core/conf.c void config_restore(ConfInfo *ci, const char *filename, void (*info_func)(unsigned short id)) ci 1222 core/conf.c for (i=0; ci[i].id > 0; ++i) ci 1224 core/conf.c if (ci[i].id==id && ci[i].size==size) ci 1228 core/conf.c if (ci[i].type == CONF_STRUCT_PTR) ci 1230 core/conf.c tVarArrayConfig *cfg = (tVarArrayConfig*)(ci[i].var); ci 1233 core/conf.c else if (ci[i].size == size) // only restore if size matches ci 1235 core/conf.c memcpy(ci[i].var, buf+offs, size); ci 1237 core/conf.c if (info_func) info_func(ci[i].id); ci 1277 core/conf.c ConfInfo *ci = 0; ci 1279 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1283 core/conf.c ci = confinfo_handlers[i].ci; ci 1290 core/conf.c if (ci != 0) ci 1292 core/conf.c for (i=0; ci[i].id > 0; ++i) ci 1294 core/conf.c if (ci[i].id==id && ci[i].size==size) ci 1298 core/conf.c if (ci[i].type == CONF_STRUCT_PTR) ci 1300 core/conf.c tVarArrayConfig *cfg = (tVarArrayConfig*)(ci[i].var); ci 1305 core/conf.c memcpy(ci[i].var, buf+offs, size); ci 1307 core/conf.c if (info_func) info_func(ci[i].id); ci 1339 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1341 core/conf.c config_restore(confinfo_handlers[i].ci, confinfo_handlers[i].filename, confinfo_handlers[i].info_func); ci 1343 core/conf.c config_update_last_saved(confinfo_handlers[i].ci); ci 1363 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1367 core/conf.c config_restore(confinfo_handlers[i].ci, (filename != 0) ? filename : confinfo_handlers[i].filename, confinfo_handlers[i].info_func); ci 1369 core/conf.c config_update_last_saved(confinfo_handlers[i].ci); ci 1378 core/conf.c static int findConfInfo(ConfInfo *ci, unsigned short id) ci 1381 core/conf.c for( i=0; ci[i].id > 0; ++i ) ci 1382 core/conf.c if( ci[i].id==id ) ci 1404 core/conf.c static int getValue(ConfInfo *ci, unsigned short id, tConfigVal* configVal) ci 1413 core/conf.c for ( i=0; ci[i].id > 0; ++i ) ci 1414 core/conf.c if ( configVal->numb<ci[i].id ) ci 1415 core/conf.c configVal->numb = ci[i].id; ci 1420 core/conf.c i = findConfInfo(ci, id); ci 1423 core/conf.c switch( ci[i].type ) ci 1427 core/conf.c switch( ci[i].size ) ci 1430 core/conf.c configVal->numb = *(int*)ci[i].var; ci 1434 core/conf.c configVal->numb = *(short*)ci[i].var; ci 1438 core/conf.c configVal->numb = *(char*)ci[i].var; ci 1442 core/conf.c configVal->pInt = (int*)ci[i].var; ci 1445 core/conf.c configVal->numb = ci[i].size/sizeof(int); ci 1446 core/conf.c configVal->pInt = (int*)ci[i].var; ci 1450 core/conf.c configVal->str = ci[i].var; ci 1454 core/conf.c pos = (OSD_pos*)ci[i].var; ci 1458 core/conf.c configVal->pInt = (int*)ci[i].var; ci 1473 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1475 core/conf.c return getValue(confinfo_handlers[i].ci, id - confinfo_handlers[i].start_id, configVal); ci 1483 core/conf.c static int setValue(ConfInfo *ci, unsigned short id, tConfigVal configVal, void (*info_func)(unsigned short id)) ci 1492 core/conf.c i = findConfInfo(ci, id); ci 1495 core/conf.c switch( ci[i].type ) ci 1501 core/conf.c switch( ci[i].size ) ci 1504 core/conf.c *(int*)ci[i].var = (int)configVal.numb; ci 1508 core/conf.c *(short*)ci[i].var = (short)configVal.numb; ci 1512 core/conf.c *(char*)ci[i].var = (char)configVal.numb; ci 1521 core/conf.c len = ci[i].size; ci 1524 core/conf.c memcpy(ci[i].var, configVal.pInt, len); ci 1534 core/conf.c strncpy(ci[i].var, configVal.str ,len+1); ci 1542 core/conf.c pos = (OSD_pos*)ci[i].var; ci 1571 core/conf.c for (i=0; confinfo_handlers[i].ci != 0; i++) ci 1573 core/conf.c return setValue(confinfo_handlers[i].ci, id - confinfo_handlers[i].start_id, configVal, confinfo_handlers[i].info_func); ci 45 lib/lua/lapi.c #define api_incr_top(L) {api_check(L, L->top < L->ci->top); L->top++;} ci 52 lib/lua/lapi.c api_check(L, idx <= L->ci->top - L->base); ci 80 lib/lua/lapi.c if (L->ci == L->base_ci) /* no enclosing function? */ ci 102 lib/lua/lapi.c if (L->ci->top < L->top + size) ci 103 lib/lua/lapi.c L->ci->top = L->top + size; ci 116 lib/lua/lapi.c api_check(from, to->ci->top - to->top >= n); ci 207 lib/lua/lapi.c if (idx == LUA_ENVIRONINDEX && L->ci == L->base_ci) ci 769 lib/lua/lapi.c { if (nres == LUA_MULTRET && L->top >= L->ci->top) L->ci->top = L->top; } ci 773 lib/lua/lapi.c api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na))) ci 33 lib/lua/ldebug.c static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name); ci 36 lib/lua/ldebug.c static int currentpc (lua_State *L, CallInfo *ci) { ci 37 lib/lua/ldebug.c if (!isLua(ci)) return -1; /* function is not a Lua function? */ ci 38 lib/lua/ldebug.c if (ci == L->ci) ci 39 lib/lua/ldebug.c ci->savedpc = L->savedpc; ci 40 lib/lua/ldebug.c return pcRel(ci->savedpc, ci_func(ci)->l.p); ci 44 lib/lua/ldebug.c static int currentline (lua_State *L, CallInfo *ci) { ci 45 lib/lua/ldebug.c int pc = currentpc(L, ci); ci 49 lib/lua/ldebug.c return getline(ci_func(ci)->l.p, pc); ci 86 lib/lua/ldebug.c CallInfo *ci; ci 88 lib/lua/ldebug.c for (ci = L->ci; level > 0 && ci > L->base_ci; ci--) { ci 90 lib/lua/ldebug.c if (f_isLua(ci)) /* Lua function? */ ci 91 lib/lua/ldebug.c level -= ci->tailcalls; /* skip lost tail calls */ ci 93 lib/lua/ldebug.c if (level == 0 && ci > L->base_ci) { /* level found? */ ci 95 lib/lua/ldebug.c ar->i_ci = cast_int(ci - L->base_ci); ci 107 lib/lua/ldebug.c static Proto *getluaproto (CallInfo *ci) { ci 108 lib/lua/ldebug.c return (isLua(ci) ? ci_func(ci)->l.p : NULL); ci 112 lib/lua/ldebug.c static const char *findlocal (lua_State *L, CallInfo *ci, int n) { ci 114 lib/lua/ldebug.c Proto *fp = getluaproto(ci); ci 115 lib/lua/ldebug.c if (fp && (name = luaF_getlocalname(fp, n, currentpc(L, ci))) != NULL) ci 118 lib/lua/ldebug.c StkId limit = (ci == L->ci) ? L->top : (ci+1)->func; ci 119 lib/lua/ldebug.c if (limit - ci->base >= n && n > 0) /* is 'n' inside 'ci' stack? */ ci 128 lib/lua/ldebug.c CallInfo *ci = L->base_ci + ar->i_ci; ci 129 lib/lua/ldebug.c const char *name = findlocal(L, ci, n); ci 132 lib/lua/ldebug.c luaA_pushobject(L, ci->base + (n - 1)); ci 139 lib/lua/ldebug.c CallInfo *ci = L->base_ci + ar->i_ci; ci 140 lib/lua/ldebug.c const char *name = findlocal(L, ci, n); ci 143 lib/lua/ldebug.c setobjs2s(L, ci->base + (n - 1), L->top - 1); ci 194 lib/lua/ldebug.c Closure *f, CallInfo *ci) { ci 207 lib/lua/ldebug.c ar->currentline = (ci) ? currentline(L, ci) : -1; ci 215 lib/lua/ldebug.c ar->namewhat = (ci) ? getfuncname(L, ci, &ar->name) : NULL; ci 235 lib/lua/ldebug.c CallInfo *ci = NULL; ci 245 lib/lua/ldebug.c ci = L->base_ci + ar->i_ci; ci 246 lib/lua/ldebug.c lua_assert(ttisfunction(ci->func)); ci 247 lib/lua/ldebug.c f = clvalue(ci->func); ci 249 lib/lua/ldebug.c status = auxgetinfo(L, what, ar, f, ci); ci 497 lib/lua/ldebug.c static const char *getobjname (lua_State *L, CallInfo *ci, int stackpos, ci 499 lib/lua/ldebug.c if (isLua(ci)) { /* a Lua function? */ ci 500 lib/lua/ldebug.c Proto *p = ci_func(ci)->l.p; ci 501 lib/lua/ldebug.c int pc = currentpc(L, ci); ci 519 lib/lua/ldebug.c return getobjname(L, ci, b, name); /* get name for `b' */ ci 544 lib/lua/ldebug.c static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name) { ci 546 lib/lua/ldebug.c if ((isLua(ci) && ci->tailcalls > 0) || !isLua(ci - 1)) ci 548 lib/lua/ldebug.c ci--; /* calling function */ ci 549 lib/lua/ldebug.c i = ci_func(ci)->l.p->code[currentpc(L, ci)]; ci 552 lib/lua/ldebug.c return getobjname(L, ci, GETARG_A(i), name); ci 559 lib/lua/ldebug.c static int isinstack (CallInfo *ci, const TValue *o) { ci 561 lib/lua/ldebug.c for (p = ci->base; p < ci->top; p++) ci 570 lib/lua/ldebug.c const char *kind = (isinstack(L->ci, o)) ? ci 571 lib/lua/ldebug.c getobjname(L, L->ci, cast_int(o - L->base), &name) : ci 608 lib/lua/ldebug.c CallInfo *ci = L->ci; ci 609 lib/lua/ldebug.c if (isLua(ci)) { /* is Lua code? */ ci 611 lib/lua/ldebug.c int line = currentline(L, ci); ci 612 lib/lua/ldebug.c luaO_chunkid(buff, getstr(getluaproto(ci)->source), LUA_IDSIZE); ci 74 lib/lua/ldo.c int inuse = cast_int(L->ci - L->base_ci); ci 82 lib/lua/ldo.c L->ci = L->base_ci; ci 83 lib/lua/ldo.c L->base = L->ci->base; ci 127 lib/lua/ldo.c CallInfo *ci; ci 132 lib/lua/ldo.c for (ci = L->base_ci; ci <= L->ci; ci++) { ci 133 lib/lua/ldo.c ci->top = (ci->top - oldstack) + L->stack; ci 134 lib/lua/ldo.c ci->base = (ci->base - oldstack) + L->stack; ci 135 lib/lua/ldo.c ci->func = (ci->func - oldstack) + L->stack; ci 156 lib/lua/ldo.c L->ci = (L->ci - oldci) + L->base_ci; ci 177 lib/lua/ldo.c return ++L->ci; ci 185 lib/lua/ldo.c ptrdiff_t ci_top = savestack(L, L->ci->top); ci 192 lib/lua/ldo.c ar.i_ci = cast_int(L->ci - L->base_ci); ci 194 lib/lua/ldo.c L->ci->top = L->top + LUA_MINSTACK; ci 195 lib/lua/ldo.c lua_assert(L->ci->top <= L->stack_last); ci 202 lib/lua/ldo.c L->ci->top = restorestack(L, ci_top); ci 261 lib/lua/ldo.c ((L->ci == L->end_ci) ? growCI(L) : \ ci 262 lib/lua/ldo.c (condhardstacktests(luaD_reallocCI(L, L->size_ci)), ++L->ci)) ci 272 lib/lua/ldo.c L->ci->savedpc = L->savedpc; ci 274 lib/lua/ldo.c CallInfo *ci; ci 289 lib/lua/ldo.c ci = inc_ci(L); /* now `enter' new function */ ci 290 lib/lua/ldo.c ci->func = func; ci 291 lib/lua/ldo.c L->base = ci->base = base; ci 292 lib/lua/ldo.c ci->top = L->base + p->maxstacksize; ci 293 lib/lua/ldo.c lua_assert(ci->top <= L->stack_last); ci 295 lib/lua/ldo.c ci->tailcalls = 0; ci 296 lib/lua/ldo.c ci->nresults = nresults; ci 297 lib/lua/ldo.c for (st = L->top; st < ci->top; st++) ci 299 lib/lua/ldo.c L->top = ci->top; ci 308 lib/lua/ldo.c CallInfo *ci; ci 311 lib/lua/ldo.c ci = inc_ci(L); /* now `enter' new function */ ci 312 lib/lua/ldo.c ci->func = restorestack(L, funcr); ci 313 lib/lua/ldo.c L->base = ci->base = ci->func + 1; ci 314 lib/lua/ldo.c ci->top = L->top + LUA_MINSTACK; ci 315 lib/lua/ldo.c lua_assert(ci->top <= L->stack_last); ci 316 lib/lua/ldo.c ci->nresults = nresults; ci 335 lib/lua/ldo.c if (f_isLua(L->ci)) { /* Lua function? */ ci 336 lib/lua/ldo.c while ((L->hookmask & LUA_MASKRET) && L->ci->tailcalls--) /* tail calls */ ci 346 lib/lua/ldo.c CallInfo *ci; ci 349 lib/lua/ldo.c ci = L->ci--; ci 350 lib/lua/ldo.c res = ci->func; /* res == final position of 1st result */ ci 351 lib/lua/ldo.c wanted = ci->nresults; ci 352 lib/lua/ldo.c L->base = (ci - 1)->base; /* restore base */ ci 353 lib/lua/ldo.c L->savedpc = (ci - 1)->savedpc; /* restore savedpc */ ci 386 lib/lua/ldo.c CallInfo *ci = L->ci; ci 388 lib/lua/ldo.c lua_assert(ci == L->base_ci && firstArg > L->base); ci 395 lib/lua/ldo.c if (!f_isLua(ci)) { /* `common' yield? */ ci 397 lib/lua/ldo.c lua_assert(GET_OPCODE(*((ci-1)->savedpc - 1)) == OP_CALL || ci 398 lib/lua/ldo.c GET_OPCODE(*((ci-1)->savedpc - 1)) == OP_TAILCALL); ci 400 lib/lua/ldo.c L->top = L->ci->top; /* and correct top if not multiple results */ ci 403 lib/lua/ldo.c L->base = L->ci->base; ci 405 lib/lua/ldo.c luaV_execute(L, cast_int(L->ci - L->base_ci)); ci 410 lib/lua/ldo.c L->top = L->ci->base; ci 421 lib/lua/ldo.c if (L->status != LUA_YIELD && (L->status != 0 || L->ci != L->base_ci)) ci 432 lib/lua/ldo.c L->ci->top = L->top; ci 460 lib/lua/ldo.c ptrdiff_t old_ci = saveci(L, L->ci); ci 470 lib/lua/ldo.c L->ci = restoreci(L, old_ci); ci 471 lib/lua/ldo.c L->base = L->ci->base; ci 472 lib/lua/ldo.c L->savedpc = L->ci->savedpc; ci 242 lib/lua/lgc.c int ci_used = cast_int(L->ci - L->base_ci); /* number of `ci' in use */ ci 258 lib/lua/lgc.c CallInfo *ci; ci 261 lib/lua/lgc.c for (ci = l->base_ci; ci <= l->ci; ci++) { ci 262 lib/lua/lgc.c lua_assert(ci->top <= l->stack_last); ci 263 lib/lua/lgc.c if (lim < ci->top) lim = ci->top; ci 45 lib/lua/lstate.c L1->ci = L1->base_ci; ci 54 lib/lua/lstate.c L1->ci->func = L1->top; ci 56 lib/lua/lstate.c L1->base = L1->ci->base = L1->top; ci 57 lib/lua/lstate.c L1->ci->top = L1->top + LUA_MINSTACK; ci 98 lib/lua/lstate.c L->base_ci = L->ci = NULL; ci 206 lib/lua/lstate.c L->ci = L->base_ci; ci 207 lib/lua/lstate.c L->base = L->top = L->ci->base; ci 59 lib/lua/lstate.h #define curr_func(L) (clvalue(L->ci->func)) ci 60 lib/lua/lstate.h #define ci_func(ci) (clvalue((ci)->func)) ci 61 lib/lua/lstate.h #define f_isLua(ci) (!ci_func(ci)->c.isC) ci 62 lib/lua/lstate.h #define isLua(ci) (ttisfunction((ci)->func) && f_isLua(ci)) ci 106 lib/lua/lstate.h CallInfo *ci; /* call info for current function */ ci 85 lib/lua/lvm.c Proto *p = ci_func(L->ci)->l.p; ci 399 lib/lua/lvm.c lua_assert(isLua(L->ci)); ci 401 lib/lua/lvm.c cl = &clvalue(L->ci->func)->l; ci 419 lib/lua/lvm.c lua_assert(base == L->base && L->base == L->ci->base); ci 421 lib/lua/lvm.c lua_assert(L->top == L->ci->top || luaG_checkopenop(i)); ci 614 lib/lua/lvm.c if (nresults >= 0) L->top = L->ci->top; ci 631 lib/lua/lvm.c CallInfo *ci = L->ci - 1; /* previous frame */ ci 633 lib/lua/lvm.c StkId func = ci->func; ci 634 lib/lua/lvm.c StkId pfunc = (ci+1)->func; /* previous function index */ ci 635 lib/lua/lvm.c if (L->openupval) luaF_close(L, ci->base); ci 636 lib/lua/lvm.c L->base = ci->base = ci->func + ((ci+1)->base - pfunc); ci 639 lib/lua/lvm.c ci->top = L->top = func+aux; /* correct top */ ci 641 lib/lua/lvm.c ci->savedpc = L->savedpc; ci 642 lib/lua/lvm.c ci->tailcalls++; /* one more call lost */ ci 643 lib/lua/lvm.c L->ci--; /* remove new frame */ ci 664 lib/lua/lvm.c if (b) L->top = L->ci->top; ci 665 lib/lua/lvm.c lua_assert(isLua(L->ci)); ci 666 lib/lua/lvm.c lua_assert(GET_OPCODE(*((L->ci)->savedpc - 1)) == OP_CALL); ci 704 lib/lua/lvm.c L->top = L->ci->top; ci 720 lib/lua/lvm.c L->top = L->ci->top; ci 762 lib/lua/lvm.c CallInfo *ci = L->ci; ci 763 lib/lua/lvm.c int n = cast_int(ci->base - ci->func) - cl->p->numparams - 1; ci 772 lib/lua/lvm.c setobjs2s(L, ra + j, ci->base - n + j); ci 768 modules/rawhookops.c int ci=0; ci 771 modules/rawhookops.c ci=0; ci 775 modules/rawhookops.c ci=1; ci 778 modules/rawhookops.c ci=2; ci 782 modules/rawhookops.c ci=3; ci 785 modules/rawhookops.c cfa_offsets[ci][0] = i&1; ci 786 modules/rawhookops.c cfa_offsets[ci][1] = (i&2)>>1;