/netbsd-src/sys/modules/luapmf/ |
H A D | luapmf.c | 97 lua_pushinteger(L, PMFE_DISPLAY_ON); in luaopen_pmf() 99 lua_pushinteger(L, PMFE_DISPLAY_REDUCED); in luaopen_pmf() 101 lua_pushinteger(L, PMFE_DISPLAY_STANDBY); in luaopen_pmf() 103 lua_pushinteger(L, PMFE_DISPLAY_SUSPEND); in luaopen_pmf() 105 lua_pushinteger(L, PMFE_DISPLAY_OFF); in luaopen_pmf() 107 lua_pushinteger(L, PMFE_DISPLAY_BRIGHTNESS_UP); in luaopen_pmf() 109 lua_pushinteger(L, PMFE_DISPLAY_BRIGHTNESS_DOWN); in luaopen_pmf() 111 lua_pushinteger(L, PMFE_AUDIO_VOLUME_UP); in luaopen_pmf() 113 lua_pushinteger(L, PMFE_AUDIO_VOLUME_DOWN); in luaopen_pmf() 115 lua_pushinteger(L, PMFE_AUDIO_VOLUME_TOGGLE); in luaopen_pmf() [all …]
|
/netbsd-src/lib/lua/sqlite/ |
H A D | sqlite.c | 67 lua_pushinteger(L, sqlite3_initialize()); in sqlite_initialize() 74 lua_pushinteger(L, sqlite3_shutdown()); in sqlite_shutdown() 88 lua_pushinteger(L, sqlite3_open_v2(luaL_checkstring(L, -3), db, in sqlite_open() 91 lua_pushinteger(L, sqlite3_open(luaL_checkstring(L, -2), db)); in sqlite_open() 106 lua_pushinteger(L, sqlite3_libversion_number()); in sqlite_libversion_number() 124 lua_pushinteger(L, sqlite3_close(*db)); in db_close() 142 lua_pushinteger(L, sqlite3_prepare_v2(*db, sql, in db_prepare() 156 lua_pushinteger(L, sqlite3_exec(*db, lua_tostring(L, 2), NULL, in db_exec() 167 lua_pushinteger(L, sqlite3_errcode(*db)); in db_errcode() 197 lua_pushinteger(L, sqlite3_changes(*db)); in db_changes() [all …]
|
/netbsd-src/external/bsd/lutok/dist/ |
H A D | state_test.cpp | 114 lua_pushinteger(raw_state, i1); in c_get_upvalues() 115 lua_pushinteger(raw_state, i2); in c_get_upvalues() 133 lua_pushinteger(raw(state), f1 * f2); in cxx_multiply_closure() 288 lua_pushinteger(raw(state), 5555); in ATF_TEST_CASE_BODY() 329 lua_pushinteger(raw(state), 1); in ATF_TEST_CASE_BODY() 355 lua_pushinteger(raw(state), 3); in ATF_TEST_CASE_BODY() 357 lua_pushinteger(raw(state), 3); in ATF_TEST_CASE_BODY() 367 lua_pushinteger(raw(state), 1); in ATF_TEST_CASE_BODY() 368 lua_pushinteger(raw(state), 2); in ATF_TEST_CASE_BODY() 369 lua_pushinteger(raw(state), 3); in ATF_TEST_CASE_BODY() [all …]
|
H A D | c_gate_test.cpp | 46 lua_pushinteger(raw(state), 123); in ATF_TEST_CASE_BODY()
|
H A D | state.cpp | 322 lua_pushinteger(_pimpl->lua_state, LUA_RIDX_GLOBALS); in get_global_table() 699 lua_pushinteger(_pimpl->lua_state, value); in push_integer()
|
/netbsd-src/external/mit/lua/dist/src/ |
H A D | lutf8lib.c | 115 lua_pushinteger(L, posi + 1); /* ... and current position */ in utflen() 121 lua_pushinteger(L, n); in utflen() 152 lua_pushinteger(L, code); in codepoint() 225 lua_pushinteger(L, posi + 1); in byteoffset() 246 lua_pushinteger(L, n + 1); in iter_aux() 247 lua_pushinteger(L, code); in iter_aux() 268 lua_pushinteger(L, 0); in iter_codes()
|
H A D | lmathlib.c | 35 lua_pushinteger(L, n); in math_abs() 79 lua_pushinteger(L, n); in math_toint() 91 lua_pushinteger(L, n); /* result is integer */ in pushnumint() 124 lua_pushinteger(L, 0); /* avoid overflow with 0x80000... / -1 */ in math_fmod() 127 lua_pushinteger(L, lua_tointeger(L, 1) % d); in math_fmod() 573 lua_pushinteger(L, I2UInt(rv)); /* full random integer */ in math_random() 589 lua_pushinteger(L, p + (lua_Unsigned)low); in math_random() 603 lua_pushinteger(L, n1); in setseed() 604 lua_pushinteger(L, n2); in setseed() 686 lua_pushinteger(L, e); in math_frexp() [all …]
|
H A D | lbaselib.c | 109 lua_pushinteger(L, n); in luaB_tonumber() 165 lua_pushinteger(L, lua_rawlen(L, 1)); in luaB_rawlen() 231 lua_pushinteger(L, previous); in luaB_collectgarbage() 254 lua_pushinteger(L, res); in luaB_collectgarbage() 309 lua_pushinteger(L, i); in ipairsaux() 322 lua_pushinteger(L, 0); /* initial value */ in luaB_ipairs() 449 lua_pushinteger(L, n-1); in luaB_select()
|
H A D | ldblib.c | 121 lua_pushinteger(L, v); in settabsi() 335 lua_pushinteger(L, ar->currentline); /* push current line */ in hookf() 419 lua_pushinteger(L, lua_gethookcount(L1)); /* 3rd result = count */ in db_gethook() 458 lua_pushinteger(L, res); in db_setcstacklimit()
|
H A D | lstrlib.c | 62 lua_pushinteger(L, (lua_Integer)l); in str_len() 194 lua_pushinteger(L, uchar(s[posi+i-1])); in str_byte() 724 lua_pushinteger(ms->L, (ms->capture[i].init - ms->src_init) + 1); in get_onecapture() 795 lua_pushinteger(L, (s2 - s) + 1); in str_find_aux() 796 lua_pushinteger(L, (s2 - s) + lp); in str_find_aux() 813 lua_pushinteger(L, (s1 - s) + 1); /* start */ in str_find_aux() 814 lua_pushinteger(L, res - s); /* end */ in str_find_aux() 989 lua_pushinteger(L, n); /* number of substitutions */ in str_gsub() 1743 lua_pushinteger(L, (lua_Integer)totalsize); in str_packsize() 1805 lua_pushinteger(L, res); in str_unpack() [all …]
|
H A D | lua.h | 267 #define lua_pushnumber(L, n) lua_pushinteger(L, (lua_Integer)(n)) 269 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); variable 440 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
|
H A D | loslib.c | 61 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) 216 lua_pushinteger(L, (lua_Integer)value + delta); in setfield()
|
H A D | lauxlib.c | 264 lua_pushinteger(L, en); in luaL_fileresult() 305 lua_pushinteger(L, stat); in luaL_execresult() 682 lua_pushinteger(L, 0); /* initialize as an empty list */ in luaL_ref() 707 lua_pushinteger(L, ref); in luaL_unref()
|
H A D | liolib.c | 369 lua_pushinteger(L, n); /* number of arguments to read */ in aux_lines() 712 lua_pushinteger(L, (lua_Integer)l_ftell(f)); in f_seek()
|
H A D | ltablib.c | 192 lua_pushinteger(L, n); in tpack()
|
H A D | lua.c | 673 lua_pushinteger(L, argc); /* 1st argument */ in main()
|
H A D | luac.c | 207 lua_pushinteger(L,argc); in main()
|
H A D | lapi.c | 523 LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { in lua_pushinteger() function
|
/netbsd-src/lib/lua/gpio/ |
H A D | gpio.c | 106 lua_pushinteger(L, info.gpio_npins); in gpio_info() 166 lua_pushinteger(L, req.gp_value); in gpio_read() 186 lua_pushinteger(L, req.gp_value); in gpio_write() 201 lua_pushinteger(L, req.gp_value); in gpio_toggle() 314 lua_pushinteger(L, gpio_constant[n].value); in luaopen_gpio()
|
/netbsd-src/sys/modules/luasystm/ |
H A D | luasystm.c | 140 lua_pushinteger(L, aprint_get_error_count()); in systm_aprint_get_error_count() 206 lua_pushinteger(L, ncpu); in luaopen_systm()
|
/netbsd-src/lib/lua/syslog/ |
H A D | syslog.c | 72 lua_pushinteger(L, setlogmask((int) luaL_checkinteger(L, 1))); in syslog_setlogmask() 161 lua_pushinteger(L, syslog_constant[n].value); in luaopen_syslog()
|
/netbsd-src/lib/lua/libm/ |
H A D | libm.c | 211 lua_pushinteger(L, ilogb(x)); in libm_ilogb()
|
/netbsd-src/libexec/httpd/ |
H A D | lua-bozo.c | 145 lua_pushinteger(L, n); in lua_write()
|