Home
last modified time | relevance | path

Searched full:2 (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/civetweb-2.7.6/
Dmingw.cmd2 @verify other 2>nul
10 @chcp 65001 1>nul 2>nul
28 @set two=%arg:~0,2%
36 @if /i [%arg%] == [/version] set "version=%~2" & shift
37 @if /i [%arg%] == [/arch] set "arch=%~2" & shift
38 @if /i [%arg%] == [/exceptions] set "exceptions=%~2" & shift
39 @if /i [%arg%] == [/threading] set "threading=%~2" & shift
40 @if /i [%arg%] == [/revision] set "revision=%~2" & shift
101 :: %2 - Version of MinGW to get [optional]
107 @call :log 2 "Welcome to the MinGW download script"
[all …]
Dbuild.cmd2 @verify other 2>nul
10 @chcp 65001 1>nul 2>nul
36 @set two=!arg:~0,2!
115 @call :log 2 "Welcome to the %project% build script"
118 @call :log 2 "This script builds the project using CMake"
120 @call :log 2 "Generating %generator%..."
137 @call :log 2 "Build complete"
263 @call :log 2 "Build command: %build_command:"=%"
304 @verify other 2>nul
348 @for /f "skip=2 tokens=2,*" %%a in ('reg query "%key%" /v "%var%"') do @set "arch=%%b"
[all …]
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/
Dltablib.c25 luaL_checktype(L, 2, LUA_TFUNCTION); in foreachi()
27 lua_pushvalue(L, 2); /* function */ in foreachi()
29 lua_rawgeti(L, 1, i); /* 2nd argument */ in foreachi()
30 lua_call(L, 2, 1); in foreachi()
41 luaL_checktype(L, 2, LUA_TFUNCTION); in foreach()
44 lua_pushvalue(L, 2); /* function */ in foreach()
47 lua_call(L, 2, 1); in foreach()
50 lua_pop(L, 2); /* remove value and result */ in foreach()
81 luaL_setn(L, 1, luaL_checkint(L, 2)); in setn()
94 case 2: { /* called with only 2 arguments */ in tinsert()
[all …]
Dlbaselib.c54 int base = luaL_optint(L, 2, 10); in luaB_tonumber()
66 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
82 int level = luaL_optint(L, 2, 1); in luaB_error()
87 lua_concat(L, 2); in luaB_error()
105 int t = lua_type(L, 2); in luaB_setmetatable()
107 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
111 lua_settop(L, 2); in luaB_setmetatable()
144 luaL_checktype(L, 2, LUA_TTABLE); in luaB_setfenv()
146 lua_pushvalue(L, 2); in luaB_setfenv()
150 lua_insert(L, -2); in luaB_setfenv()
[all …]
Dldblib.c38 int t = lua_type(L, 2); in db_setmetatable()
39 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in db_setmetatable()
41 lua_settop(L, 2); in db_setmetatable()
55 luaL_checktype(L, 2, LUA_TTABLE); in db_setfenv()
56 lua_settop(L, 2); in db_setfenv()
66 lua_setfield(L, -2, i); in settabss()
72 lua_setfield(L, -2, i); in settabsi()
90 lua_pushvalue(L, -2); in treatstackoption()
95 lua_setfield(L, -2, fname); in treatstackoption()
103 const char *options = luaL_optstring(L, arg+2, "flnSu"); in db_getinfo()
[all …]
Dloadlib.c40 #define ERRFUNC 2
107 lua_remove(L, -2); /* remove original string */ in setprogdir()
273 lua_setmetatable(L, -2); in ll_register()
275 lua_pushvalue(L, -2); in ll_register()
311 const char *init = luaL_checkstring(L, 2); in ll_loadlib()
317 lua_insert(L, -2); in ll_loadlib()
363 lua_remove(L, -2); /* remove path template */ in findfile()
367 lua_remove(L, -2); /* remove file name */ in findfile()
368 lua_concat(L, 2); /* add entry to possible error message */ in findfile()
397 lua_remove(L, -2); /* remove 'gsub' result */ in mkfuncname()
[all …]
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/
Dltablib.c46 case 2: { /* called with only 2 arguments */ in tinsert()
52 pos = luaL_checkint(L, 2); /* 2nd argument is the position */ in tinsert()
53 luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); in tinsert()
71 int pos = luaL_optint(L, 2, size); in tremove()
98 const char *sep = luaL_optlstring(L, 2, "", &lsep); in tconcat()
124 lua_setfield(L, -2, "n"); /* t.n = number of elements */ in pack()
128 lua_rawseti(L, -2, 1); /* insert first element */ in pack()
130 for (i = n; i >= 2; i--) /* assign other elements */ in pack()
141 i = luaL_optint(L, 2, 1); in unpack()
172 if (!lua_isnil(L, 2)) { /* function? */ in sort_comp()
[all …]
Dlbaselib.c49 if (lua_isnoneornil(L, 2)) { /* standard conversion */ in luaB_tonumber()
62 int base = luaL_checkint(L, 2); in luaB_tonumber()
64 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
90 int level = luaL_optint(L, 2, 1); in luaB_error()
95 lua_concat(L, 2); in luaB_error()
113 int t = lua_type(L, 2); in luaB_setmetatable()
115 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
119 lua_settop(L, 2); in luaB_setmetatable()
127 luaL_checkany(L, 2); in luaB_rawequal()
128 lua_pushboolean(L, lua_rawequal(L, 1, 2)); in luaB_rawequal()
[all …]
Dldblib.c46 int t = lua_type(L, 2); in db_setmetatable()
47 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in db_setmetatable()
49 lua_settop(L, 2); in db_setmetatable()
68 if (!lua_isnoneornil(L, 2)) in db_setuservalue()
69 luaL_checktype(L, 2, LUA_TTABLE); in db_setuservalue()
70 lua_settop(L, 2); in db_setuservalue()
78 lua_setfield(L, -2, i); in settabss()
84 lua_setfield(L, -2, i); in settabsi()
90 lua_setfield(L, -2, i); in settabsb()
108 lua_pushvalue(L, -2); in treatstackoption()
[all …]
Dloadlib.c103 #define ERRFUNC 2
178 lua_remove(L, -2); /* remove original string */ in setprogdir()
256 lua_pop(L, 2); /* pop CLIBS table and 'plib' */ in ll_checkclib()
266 lua_rawseti(L, -2, luaL_len(L, -2) + 1); /* CLIBS[#CLIBS + 1] = plib */ in ll_addtoclib()
309 const char *init = luaL_checkstring(L, 2); in ll_loadlib()
315 lua_insert(L, -2); in ll_loadlib()
360 lua_remove(L, -2); /* remove path template */ in searchpath()
364 lua_remove(L, -2); /* remove file name */ in searchpath()
374 luaL_checkstring(L, 2), in ll_searchpath()
380 lua_insert(L, -2); in ll_searchpath()
[all …]
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/
Dlbaselib.c70 if (lua_isnoneornil(L, 2)) { /* standard conversion? */ in luaB_tonumber()
88 lua_Integer base = luaL_checkinteger(L, 2); in luaB_tonumber()
91 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
103 int level = (int)luaL_optinteger(L, 2, 1); in luaB_error()
108 lua_concat(L, 2); in luaB_error()
126 int t = lua_type(L, 2); in luaB_setmetatable()
128 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
132 lua_settop(L, 2); in luaB_setmetatable()
140 luaL_checkany(L, 2); in luaB_rawequal()
141 lua_pushboolean(L, lua_rawequal(L, 1, 2)); in luaB_rawequal()
[all …]
Dldblib.c57 int t = lua_type(L, 2); in db_setmetatable()
58 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in db_setmetatable()
60 lua_settop(L, 2); in db_setmetatable()
77 luaL_checkany(L, 2); in db_setuservalue()
78 lua_settop(L, 2); in db_setuservalue()
109 lua_setfield(L, -2, k); in settabss()
114 lua_setfield(L, -2, k); in settabsi()
119 lua_setfield(L, -2, k); in settabsb()
132 lua_rotate(L, -2, 1); /* exchange object and table */ in treatstackoption()
135 lua_setfield(L, -2, fname); /* put object into table */ in treatstackoption()
[all …]
Dloadlib.c178 lua_remove(L, -2); /* remove original string */ in setprogdir()
304 lua_remove(L, -2); /* remove result from 1st 'gsub' */ in setpath()
322 lua_pop(L, 2); /* pop CLIBS table and 'plib' */ in checkclib()
336 lua_rawseti(L, -2, luaL_len(L, -2) + 1); /* CLIBS[#CLIBS + 1] = plib */ in addtoclib()
359 #define ERRFUNC 2
395 const char *init = luaL_checkstring(L, 2); in ll_loadlib()
401 lua_insert(L, -2); in ll_loadlib()
446 lua_remove(L, -2); /* remove path template */ in searchpath()
450 lua_remove(L, -2); /* remove file name */ in searchpath()
460 luaL_checkstring(L, 2), in ll_searchpath()
[all …]
Dltablib.c28 #define TAB_W 2 /* write */
83 case 2: { /* called with only 2 arguments */ in tinsert()
89 pos = luaL_checkinteger(L, 2); /* 2nd argument is the position */ in tinsert()
90 luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); in tinsert()
108 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove()
129 lua_Integer f = luaL_checkinteger(L, 2); in tmove()
173 const char *sep = luaL_optlstring(L, 2, "", &lsep); in tconcat()
209 lua_Integer i = luaL_optinteger(L, 2, 1); in unpack()
288 if (lua_isnil(L, 2)) /* no function? */ in sort_comp()
292 lua_pushvalue(L, 2); /* push function */ in sort_comp()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_bi_array.c14 * XXX: array lengths above 2G won't work reliably. There are many places
102 …duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); /* [ ToUint32(len) array … in duk_bi_array_constructor()
112 duk_xdef_prop_index_wec(ctx, -2, (duk_uarridx_t) i); in duk_bi_array_constructor()
116 duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); in duk_bi_array_constructor()
159 duk_insert(ctx, -2); in duk_bi_array_prototype_to_string()
164 (duk_tval *) duk_get_tval(ctx, -2), in duk_bi_array_prototype_to_string()
208 duk_xdef_prop_index_wec(ctx, -2, idx++); in duk_bi_array_prototype_concat()
248 duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); in duk_bi_array_prototype_concat()
313 duk_insert(ctx, -2); /* -> [ sep ToObject(this) len sep str ] */ in duk_bi_array_prototype_join_shared()
329 duk_insert(ctx, -2); /* -> [ ... toLocaleString ToObject(val) ] */ in duk_bi_array_prototype_join_shared()
[all …]
Dduk_bi_function.c39 DUK_ASSERT_TOP(ctx, 2); in duk_bi_function_constructor()
59 h_sourcecode = duk_require_hstring(ctx, -2); in duk_bi_function_constructor()
161 DUK_ASSERT_TOP(ctx, 2); /* not a vararg function */ in duk_bi_function_prototype_apply()
174 (duk_tval *) duk_get_tval(ctx, 2))); in duk_bi_function_prototype_apply()
178 if (duk_is_null_or_undefined(ctx, 2)) { in duk_bi_function_prototype_apply()
181 } else if (!duk_is_object(ctx, 2)) { in duk_bi_function_prototype_apply()
187 duk_get_prop_stridx(ctx, 2, DUK_STRIDX_LENGTH); in duk_bi_function_prototype_apply()
195 duk_get_prop_index(ctx, 2, i); in duk_bi_function_prototype_apply()
198 duk_remove(ctx, 2); in duk_bi_function_prototype_apply()
199 DUK_ASSERT_TOP(ctx, 2 + len); in duk_bi_function_prototype_apply()
[all …]
Dduk_numconv.c36 69, 44, 35, 30, 27, 25, 23, 22, 20, 20, /* 2 to 11 */
438 * 1st mult, 32-bit: (A*2^16 + B) in duk__bi_mul()
439 * 2nd mult, 32-bit: (C*2^16 + D) in duk__bi_mul()
443 * (AC*2^16 + B) * (C*2^16 + D) + E + F in duk__bi_mul()
444 * = AC*2^32 + AD*2^16 + BC*2^16 + BD + E + F in duk__bi_mul()
445 * = AC*2^32 + (AD + BC)*2^16 + (BD + E + F) in duk__bi_mul()
446 * = AC*2^32 + AD*2^16 + BC*2^16 + (BD + E + F) in duk__bi_mul()
472 /* add BC*2^16 */ in duk__bi_mul()
479 /* add AD*2^16 */ in duk__bi_mul()
486 /* add AC*2^32 */ in duk__bi_mul()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_bi_array.c14 * XXX: array lengths above 2G won't work reliably. There are many places
102 …duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); /* [ ToUint32(len) array … in duk_bi_array_constructor()
112 duk_xdef_prop_index_wec(ctx, -2, (duk_uarridx_t) i); in duk_bi_array_constructor()
116 duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); in duk_bi_array_constructor()
159 duk_insert(ctx, -2); in duk_bi_array_prototype_to_string()
164 (duk_tval *) duk_get_tval(ctx, -2), in duk_bi_array_prototype_to_string()
208 duk_xdef_prop_index_wec(ctx, -2, idx++); in duk_bi_array_prototype_concat()
248 duk_xdef_prop_stridx(ctx, -2, DUK_STRIDX_LENGTH, DUK_PROPDESC_FLAGS_W); in duk_bi_array_prototype_concat()
313 duk_insert(ctx, -2); /* -> [ sep ToObject(this) len sep str ] */ in duk_bi_array_prototype_join_shared()
329 duk_insert(ctx, -2); /* -> [ ... toLocaleString ToObject(val) ] */ in duk_bi_array_prototype_join_shared()
[all …]
Dduk_bi_function.c39 DUK_ASSERT_TOP(ctx, 2); in duk_bi_function_constructor()
59 h_sourcecode = duk_require_hstring(ctx, -2); in duk_bi_function_constructor()
161 DUK_ASSERT_TOP(ctx, 2); /* not a vararg function */ in duk_bi_function_prototype_apply()
174 (duk_tval *) duk_get_tval(ctx, 2))); in duk_bi_function_prototype_apply()
178 if (duk_is_null_or_undefined(ctx, 2)) { in duk_bi_function_prototype_apply()
181 } else if (!duk_is_object(ctx, 2)) { in duk_bi_function_prototype_apply()
187 duk_get_prop_stridx(ctx, 2, DUK_STRIDX_LENGTH); in duk_bi_function_prototype_apply()
195 duk_get_prop_index(ctx, 2, i); in duk_bi_function_prototype_apply()
198 duk_remove(ctx, 2); in duk_bi_function_prototype_apply()
199 DUK_ASSERT_TOP(ctx, 2 + len); in duk_bi_function_prototype_apply()
[all …]
Dduk_numconv.c36 69, 44, 35, 30, 27, 25, 23, 22, 20, 20, /* 2 to 11 */
438 * 1st mult, 32-bit: (A*2^16 + B) in duk__bi_mul()
439 * 2nd mult, 32-bit: (C*2^16 + D) in duk__bi_mul()
443 * (AC*2^16 + B) * (C*2^16 + D) + E + F in duk__bi_mul()
444 * = AC*2^32 + AD*2^16 + BC*2^16 + BD + E + F in duk__bi_mul()
445 * = AC*2^32 + (AD + BC)*2^16 + (BD + E + F) in duk__bi_mul()
446 * = AC*2^32 + AD*2^16 + BC*2^16 + (BD + E + F) in duk__bi_mul()
472 /* add BC*2^16 */ in duk__bi_mul()
479 /* add AD*2^16 */ in duk__bi_mul()
486 /* add AC*2^32 */ in duk__bi_mul()
[all …]
/civetweb-2.7.6/unittest/
Dtimertest.c95 c[2] = 20; in START_TEST()
96 timer_add(&ctx, 0.25, 0.5, 1, action_dec, c + 2); in START_TEST()
108 mg_sleep(2000); /* Sleep 2 second - timers will not run */ in START_TEST()
124 ck_assert_int_ge(c[2], -1); in START_TEST()
125 ck_assert_int_le(c[2], +1); in START_TEST()
146 c[2] = 2; in START_TEST()
147 timer_add(&ctx, 0, 0.5, 1, action_dec, c + 2); in START_TEST()
170 ck_assert_int_eq(c[2], 1); in START_TEST()
191 c[2] = 2; in START_TEST()
192 timer_add(&ctx, 0, 0, 1, action_dec, c + 2); in START_TEST()
[all …]
/civetweb-2.7.6/src/
Dmod_duktape.inl232 duk_put_prop_string(duk_ctx, -2, civetweb_conn_id);
233 duk_put_prop_string(duk_ctx, -2, "write");
238 duk_put_prop_string(duk_ctx, -2, civetweb_conn_id);
239 duk_put_prop_string(duk_ctx, -2, "read");
244 -2,
248 duk_put_prop_string(duk_ctx, -2, "request_uri");
251 duk_put_prop_string(duk_ctx, -2, "uri");
254 duk_put_prop_string(duk_ctx, -2, "http_version");
257 duk_put_prop_string(duk_ctx, -2, "query_string");
260 duk_put_prop_string(duk_ctx, -2, "remote_addr");
[all …]
/civetweb-2.7.6/src/third_party/
Dlsqlite3.c202 lua_setmetatable(L, -2); /* set metatable */ in newvm()
350 int index = luaL_checkint(L, 2); in dbvm_get_value()
359 int index = luaL_checknumber(L, 2); in dbvm_get_name()
367 int index = luaL_checknumber(L, 2); in dbvm_get_type()
383 lua_rawseti(L, -2, n); in dbvm_get_values()
397 lua_rawseti(L, -2, n); in dbvm_get_names()
411 lua_rawseti(L, -2, n); in dbvm_get_types()
520 int index = luaL_checknumber(L, 2); in dbvm_bind_parameter_name()
529 int index = luaL_checkint(L, 2); in dbvm_bind()
541 int index = luaL_checkint(L, 2); in dbvm_bind_blob()
[all …]
Dlfs.c171 return 2; in change_dir()
190 return 2; in get_dir()
276 lua_pushnil(L); lua_pushstring(L, strerror(errno)); return 2; in lfs_lock_dir()
287 return 2; in lfs_lock_dir()
293 lua_setmetatable (L, -2); in lfs_lock_dir()
317 lua_pushnil(L); lua_pushstring(L, strerror(errno)); return 2; in lfs_lock_dir()
322 lua_pushstring(L, strerror(errno)); return 2; in lfs_lock_dir()
326 lua_setmetatable (L, -2); in lfs_lock_dir()
356 return 2; in lfs_g_setmode()
367 return lfs_g_setmode(L, check_file(L, 1, "setmode"), 2); in lfs_f_setmode()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/coffee/
Dmandel.coffee12 # (xx+i*yy)^2 + (x+i*y) = xx^2 + i*2*xx*yy - yy^2 + x + i*y
13 # = (xx^2 - yy^2 + x) + i*(2*xx*yy + y)
18 [xx, yy] = [xx2 - yy2 + x, 2*xx*yy + y]
27 mandel(-2, 2, 2, -2, 200, 100, 1000)

12345678910>>...22