Home
last modified time | relevance | path

Searched full:local (Results 1 – 25 of 188) sorted by relevance

12345678

/civetweb-2.7.6/test/luarest/api/1/sensors/
Dindex.lua5 local http_status = "200 OK";
6 local response_table = {};
19 local request_len = mg.request_info.content_length
20 local read_len = 0
21 local request_body_sep = {}
22 local error_reading = false
25 local chunk = mg.read()
39 local request_body = table.concat(request_body_sep)
40 local isok, request_table = pcall(json.parse, request_body)
57 local response_body = json.stringify(response_table)
/civetweb-2.7.6/
Dbuild14 local E_BADARGS=65
48 local E_BADARGS=65
62 local E_BADARGS=65
73 local src_dir=$(cd $(dirname $0); pwd -P)
76 local E_BADARGS=65
77 local generator="Unix Makefiles"
78 local shared=NO
79 local build_type=Release
80 local output_dir="${src_dir}/output"
100 local build_dir=${output_dir}/build
[all …]
/civetweb-2.7.6/src/third_party/lua-5.1.5/test/
Dlife.lua6 local write=io.write
13 -- local i=os.clock()+1 while(os.clock()<i) do end
17 local t = {w=w,h=h}
40 local ym1,y,yp1,yi=self.h-1,self.h,1,self.h
42 local xm1,x,xp1,xi=self.w-1,self.w,1,self.w
44 local sum = self[ym1][xm1] + self[ym1][x] + self[ym1][xp1] +
56 local out="" -- accumulate to reduce flicker
68 local c = ARRAY2D(w,h)
87 local thisgen = CELLS(w,h)
88 local nextgen = CELLS(w,h)
[all …]
Dtrace-globals.lua5 local _tostring=tostring
6 local tostring=function(a)
14 local log=function (name,old,new)
15 local t=debug.getinfo(3,"Sl")
16 local line=t.currentline
22 local g={}
23 local set=function (t,name,value)
Dsort.lua7 local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
9 local t=x[l] -- pivot value
11 local i=l+1
28 local i=1
30 local m,j=i,i+1
42 local i=1
52 local n=1
Dfib.lua15 local c={}
17 local y=c[x]
29 local c=os.clock()
30 local v=f(n)
31 local t=os.clock()-c
/civetweb-2.7.6/src/third_party/
DLuaXML.lua1 local base = _G
21 local var={}
30 local newVar = xml.new(tag)
38 local indent = indent or 0
39 local indentStr=""
41 local tableStr=""
44 local tag = var[0] or tagValue or base.type(var)
45 local s = indentStr.."<"..tag
72 local tag = base.type(var)
82 local file = base.io.open(filename,"w")
[all …]
/civetweb-2.7.6/test/
Dhandle_form.lua23 local fields = 0
24 local datasize = 0
31 local add_data = mg.read()
58 local form_field_name, file_name
71 local part_body_end = bdata:find(bs, 1, true)
74 local form_field_value = bdata:sub(1,part_body_end-1)
83 local len = #form_field_value
89 local maxlen
94 local b = form_field_value:byte(l+m)
DHugeText.lua5 local letterCode = {
119 local function HugeLetter(letter)
121 local code = letterCode[letter]
122 local str = {"", "", "", "", "", "", "", ""}
124 local n = code[i]
135 local txt = {"", "", "", "", "", "", "", ""}
137 local s = HugeLetter(str:sub(i,i))
Dwebsocket.lua5 local f = io.open("websocket.trace", "a")
31 local t
52 local ri = allConnections[tab.client].request_info
93 local date = os.date('*t');
94 local hand = (date.hour%12)*60+date.min;
Dpage2.lua69 local t = {GUID = mg.uuid(), random = mg.random()}
112 local cnt = 0
116 local mime = mg.get_mime_type(f)
118 local at = lfs.attributes(f);
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/
Dlparser.h36 VLOCAL, /* local variable; info = local register */
71 /* description of active local variable */
82 lu_byte nactvar; /* local level where it appears in current block */
96 struct { /* list of active local variables */
121 int firstlocal; /* index of first local var (in Dyndata array) */
123 lu_byte nactvar; /* number of active local variables */
Dlparser.c32 /* maximum number of local variables per function (must be smaller
166 LocVar, SHRT_MAX, "local variables"); in registerlocalvar()
180 MAXVARS, "local variables"); in new_localvar()
182 dyd->actvar.size, Vardesc, MAX_INT, "local variables"); in new_localvar()
276 init_exp(var, VLOCAL, v); /* variable is local */ in singlevaraux()
278 markupval(fs, v); /* local will be used as an upval */ in singlevaraux()
280 else { /* not found as local at current level; try upvalues */ in singlevaraux()
286 /* else was LOCAL or UPVAL */ in singlevaraux()
350 "<goto %s> at line %d jumps into the scope of local '%s'", in closegoto()
488 ls->dyd->label.n = bl->firstlabel; /* remove local labels */ in leaveblock()
[all …]
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/
Dlparser.h27 VLOCAL, /* info = local register */
56 /* description of active local variable */
67 lu_byte nactvar; /* local level where it appears in current block */
81 struct { /* list of active local variables */
107 int firstlocal; /* index of first local var (in Dyndata array) */
109 lu_byte nactvar; /* number of active local variables */
Dlparser.c30 /* maximum number of local variables per function (must be smaller
170 LocVar, SHRT_MAX, "local variables"); in registerlocalvar()
183 MAXVARS, "local variables"); in new_localvar()
185 dyd->actvar.size, Vardesc, MAX_INT, "local variables"); in new_localvar()
277 init_exp(var, VLOCAL, v); /* variable is local */ in singlevaraux()
279 markupval(fs, v); /* local will be used as an upval */ in singlevaraux()
282 else { /* not found as local at current level; try upvalues */ in singlevaraux()
287 /* else was LOCAL or UPVAL */ in singlevaraux()
349 "<goto %s> at line %d jumps into the scope of local " LUA_QS, in closegoto()
487 ls->dyd->label.n = bl->firstlabel; /* remove local labels */ in leaveblock()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/
DMakefile.sharedlibrary15 # libduktape.so.104 => /usr/local/lib/libduktape.so.104 (0x00007fb2f9753000)
32 INSTALL_PREFIX=/usr/local
66 # Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
68 #CCOPTS=-I/usr/local/include -L/usr/local/lib
/civetweb-2.7.6/src/third_party/duktape-1.8.0/
DMakefile.sharedlibrary15 # libduktape.so.104 => /usr/local/lib/libduktape.so.104 (0x00007fb2f9753000)
32 INSTALL_PREFIX=/usr/local
66 # Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
68 #CCOPTS=-I/usr/local/include -L/usr/local/lib
/civetweb-2.7.6/src/third_party/lua-5.1.5/etc/
Dstrict.lua9 local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget
11 local mt = getmetatable(_G)
19 local function what ()
20 local d = getinfo(3, "S")
26 local w = what()
/civetweb-2.7.6/resources/
Dcheck_defines.lua25 local out = {}
26 local changed = false
28 local n = l:gsub("^#ifdef ([%w_]+)", "#if defined(%1)")
37 local q = n:gsub("%/%*.+%*%/", "")
50 local fi = io.open(f, "w")
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_bi_date_unix.c48 /* Get local time offset (in seconds) for a certain (UTC) instant 'd'. */
87 * - Create a UTC and local time breakdowns from 't'. Then create in duk_bi_date_get_local_tzoffset_gmtime()
111 * Since we rely on the platform APIs for conversions between local in duk_bi_date_get_local_tzoffset_gmtime()
164 t2 = mktime(&tms[1]); /* local */ in duk_bi_date_get_local_tzoffset_gmtime()
173 DUK_DDD(DUK_DDDPRINT("t1=%ld (utc), t2=%ld (local)", (long) t1, (long) t2)); in duk_bi_date_get_local_tzoffset_gmtime()
175 /* Compute final offset in seconds, positive if local time ahead of in duk_bi_date_get_local_tzoffset_gmtime()
176 * UTC (returned value is UTC-to-local offset). in duk_bi_date_get_local_tzoffset_gmtime()
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_bi_date_unix.c48 /* Get local time offset (in seconds) for a certain (UTC) instant 'd'. */
87 * - Create a UTC and local time breakdowns from 't'. Then create in duk_bi_date_get_local_tzoffset_gmtime()
111 * Since we rely on the platform APIs for conversions between local in duk_bi_date_get_local_tzoffset_gmtime()
164 t2 = mktime(&tms[1]); /* local */ in duk_bi_date_get_local_tzoffset_gmtime()
173 DUK_DDD(DUK_DDDPRINT("t1=%ld (utc), t2=%ld (local)", (long) t1, (long) t2)); in duk_bi_date_get_local_tzoffset_gmtime()
175 /* Compute final offset in seconds, positive if local time ahead of in duk_bi_date_get_local_tzoffset_gmtime()
176 * UTC (returned value is UTC-to-local offset). in duk_bi_date_get_local_tzoffset_gmtime()
/civetweb-2.7.6/distribution/arch/
DPKGBUILD.git.example33 make install PREFIX="$pkgdir/usr" SYSCONFDIR="$pkgdir/etc/local/$_pkgname"
37 …sed -i "s/^document_root [^\n]*/document_root \/srv\/http/g" "$pkgdir/etc/local/$_pkgname/$_pkgnam…
38 …og_file/access_log_file \/var\/log\/$_pkgname\/access.log/g" "$pkgdir/etc/local/$_pkgname/$_pkgnam…
39 …log_file/access_log_file \/var\/log\/$_pkgname\/error.log/g" "$pkgdir/etc/local/$_pkgname/$_pkgnam…
/civetweb-2.7.6/src/third_party/lua-5.2.4/
DMakefile10 # so take care if INSTALL_TOP is not an absolute path. See the local target.
13 INSTALL_TOP= /usr/local
73 local: target
112 .PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
/civetweb-2.7.6/src/third_party/lua-5.3.5/
DMakefile10 # so take care if INSTALL_TOP is not an absolute path. See the local target.
13 INSTALL_TOP= /usr/local
73 local: target
112 .PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
/civetweb-2.7.6/src/third_party/lua-5.1.5/doc/
Dmanual.html136 in local nil not or
380 global variables, local variables, and table fields.
384 A single name can denote a global variable or a local variable
386 which is a particular kind of local variable):
396 as a local (see <a href="#2.4.7">&sect;2.4.7</a>).
397 Local variables are <em>lexically scoped</em>:
398 local variables can be freely accessed by functions
495 As such, chunks can define local variables,
655 So, the condition can refer to local variables
725local <em>var</em>, <em>limit</em>, <em>step</em> = tonumber(<em>e1</em>), tonumber(<em>e2</em>), …
[all …]

12345678