File: lua.cfg

package info (click to toggle)
cppcheck 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,128 kB
  • sloc: cpp: 227,006; python: 12,193; ansic: 7,078; xml: 958; sh: 865; makefile: 709; cs: 291
file content (316 lines) | stat: -rw-r--r-- 9,461 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<?xml version="1.0"?>
<def format="2">
  <!-- Lua C API. See https://www.lua.org/manual/5.3/manual.html#4 -->
  <!-- The Lua C API is typically include by '#include <lua.h>' or '#include "lua.h"' -->
  <!-- ########## Lua C API Types ########## -->
  <!-- https://www.lua.org/manual/5.3/manual.html#lua_Number -->
  <define name="lua_Number" value="double"/>
  <!-- https://www.lua.org/manual/5.3/manual.html#lua_Integer -->
  <podtype name="lua_Integer" sign="s"/>
  <!-- https://www.lua.org/manual/5.3/manual.html#lua_Unsigned -->
  <podtype name="lua_Unsigned" sign="u"/>
  <!-- ########## Lua C API Defines / Macros ########## -->
  <define name="define lua_setglobal(L,s)" value="lua_setfield(L, LUA_GLOBALSINDEX, s)"/>
  <!-- ########## Lua C API Functions ########## -->
  <!-- int lua_error (lua_State *L); -->
  <function name="lua_error">
    <noreturn>true</noreturn>
    <returnValue type="int"/>
    <arg nr="1"/>
  </function>
  <!-- int lua_gettop (lua_State *L); -->
  <function name="lua_gettop">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <arg nr="1"/>
  </function>
  <!-- int lua_isboolean (lua_State *L, int index); -->
  <!-- int lua_iscfunction (lua_State *L, int index); -->
  <!-- int lua_isfunction (lua_State *L, int index); -->
  <!-- int lua_isinteger (lua_State *L, int index); -->
  <!-- int lua_islightuserdata (lua_State *L, int index); -->
  <!-- int lua_isnil (lua_State *L, int index); -->
  <!-- int lua_isnone (lua_State *L, int index); -->
  <!-- int lua_isnoneornil (lua_State *L, int index); -->
  <!-- int lua_isnumber (lua_State *L, int index); -->
  <!-- int lua_isstring (lua_State *L, int index); -->
  <!-- int lua_istable (lua_State *L, int index); -->
  <!-- int lua_isthread (lua_State *L, int index); -->
  <!-- int lua_isuserdata (lua_State *L, int index); -->
  <function name="lua_isboolean,lua_iscfunction,lua_isfunction,lua_isinteger,lua_islightuserdata,lua_isnil,lua_isnone,lua_isnoneornil,lua_isnumber,lua_isstring,lua_istable,lua_isthread,lua_isuserdata">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- int lua_isyieldable (lua_State *L); -->
  <function name="lua_isyieldable">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <arg nr="1"/>
  </function>
  <!-- lua_State *lua_newstate (lua_Alloc f, void *ud); -->
  <function name="lua_newstate">
    <noreturn>false</noreturn>
    <returnValue type="lua_State *"/>
    <use-retval/>
    <arg nr="1"/>
    <arg nr="2"/>
  </function>
  <!-- void lua_pop (lua_State *L, int n); -->
  <function name="lua_pop">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <valid>1:</valid>
    </arg>
  </function>
  <!-- void lua_pushboolean (lua_State *L, int b); -->
  <function name="lua_pushboolean">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- const char *lua_pushfstring (lua_State *L, const char *fmt, ...); -->
  <function name="lua_pushfstring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <formatstr/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <formatstr/>
    </arg>
  </function>
  <!-- void lua_pushglobaltable (lua_State *L); -->
  <function name="lua_pushglobaltable">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
  </function>
  <!-- void lua_pushinteger (lua_State *L, lua_Integer n); -->
  <function name="lua_pushinteger">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- const char *lua_pushliteral (lua_State *L, const char *s); -->
  <function name="lua_pushliteral">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
      <strz/>
    </arg>
  </function>
  <!-- const char *lua_pushlstring (lua_State *L, const char *s, size_t len); -->
  <function name="lua_pushlstring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <minsize type="argvalue" arg="3"/>
    </arg>
    <arg nr="3" direction="in">
      <not-uninit/>
      <not-bool/>
      <valid>0:</valid>
    </arg>
  </function>
  <!-- void lua_pushnil (lua_State *L); -->
  <function name="lua_pushnil">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
  </function>
  <!-- void lua_pushnumber (lua_State *L, lua_Number n); -->
  <function name="lua_pushnumber">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- const char *lua_pushstring (lua_State *L, const char *s); -->
  <function name="lua_pushstring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
      <strz/>
    </arg>
  </function>
  <!-- int lua_pushthread (lua_State *L); -->
  <function name="lua_pushthread">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <arg nr="1"/>
  </function>
  <!-- void lua_pushvalue (lua_State *L, int index); -->
  <function name="lua_pushvalue">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- const char *lua_pushvfstring (lua_State *L, const char *fmt, va_list argp); -->
  <function name="lua_pushvfstring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <formatstr/>
    </arg>
    <arg nr="3" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- int lua_rawequal (lua_State *L, int index1, int index2); -->
  <function name="lua_rawequal">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="3" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- void lua_rawgeti (lua_State *L, int index, int n); -->
  <function name="lua_rawgeti">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <leak-ignore/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="3" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- void lua_setfield (lua_State *L, int index, const char *k); -->
  <function name="lua_setfield">
    <noreturn>false</noreturn>
    <returnValue type="void"/>
    <leak-ignore/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="3" direction="in">
      <not-uninit/>
    </arg>
  </function>
  <!-- const char *lua_tolstring (lua_State *L, int index, size_t *len); -->
  <function name="lua_tolstring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="3" direction="out">
      <not-bool/>
    </arg>
  </function>
  <!-- lua_Number lua_tonumber (lua_State *L, int index); -->
  <function name="lua_tonumber">
    <noreturn>false</noreturn>
    <returnValue type="lua_Number"/>
    <use-retval/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- lua_Number lua_tonumberx (lua_State *L, int index, int *isnum); -->
  <function name="lua_tonumberx">
    <noreturn>false</noreturn>
    <returnValue type="lua_Number"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="3" direction="out">
      <not-bool/>
    </arg>
  </function>
  <!-- const char *lua_tostring (lua_State *L, int index); -->
  <function name="lua_tostring">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <use-retval/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- int lua_type (lua_State *L, int index); -->
  <function name="lua_type">
    <noreturn>false</noreturn>
    <returnValue type="int"/>
    <use-retval/>
    <leak-ignore/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- const char *lua_typename (lua_State *L, int tp); -->
  <function name="lua_typename">
    <noreturn>false</noreturn>
    <returnValue type="const char *"/>
    <use-retval/>
    <leak-ignore/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
      <not-bool/>
    </arg>
  </function>
  <!-- int luaL_error (lua_State *L, const char *fmt, ...); -->
  <function name="luaL_error">
    <noreturn>true</noreturn>
    <returnValue type="int"/>
    <arg nr="1"/>
    <arg nr="2" direction="in">
      <not-uninit/>
    </arg>
    <arg nr="variadic" direction="in">
      <not-uninit/>
    </arg>
  </function>
</def>