Freeciv-3.3
Loading...
Searching...
No Matches
tolua_common_a_gen.c
Go to the documentation of this file.
1/*
2** Lua binding: common_a
3*/
4
5#include "tolua.h"
6
7#ifndef __cplusplus
8#include <stdlib.h>
9#endif
10#ifdef __cplusplus
11 extern "C" int tolua_bnd_takeownership (lua_State* L); // from tolua_map.c
12#else
13 int tolua_bnd_takeownership (lua_State* L); /* from tolua_map.c */
14#endif
15#include <string.h>
16
17/* Exported function */
20
21#ifdef HAVE_CONFIG_H
22#include <fc_config.h>
23#endif
24#include "api_common_intl.h"
26#include "luascript.h"
27#include "luascript_types.h"
28
29/* function to register type */
31{
32 tolua_usertype(tolua_S,"Nonexistent");
33}
34
35/* function: api_intl__ */
37{
38#ifndef TOLUA_RELEASE
40 if (
43 )
44 goto tolua_lerror;
45 else
46#endif
47 {
49 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
50 {
51 const char* tolua_ret = (const char*) api_intl__(L,untranslated);
53 }
54 }
55 return 1;
56#ifndef TOLUA_RELEASE
58 tolua_error(tolua_S,"#ferror in function '_'.",&tolua_err);
59 return 0;
60#endif
61}
62
63/* function: api_intl_N_ */
65{
66#ifndef TOLUA_RELEASE
68 if (
71 )
72 goto tolua_lerror;
73 else
74#endif
75 {
77 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
78 {
79 const char* tolua_ret = (const char*) api_intl_N_(L,untranslated);
81 }
82 }
83 return 1;
84#ifndef TOLUA_RELEASE
86 tolua_error(tolua_S,"#ferror in function 'N_'.",&tolua_err);
87 return 0;
88#endif
89}
90
91/* function: api_intl_Q_ */
93{
94#ifndef TOLUA_RELEASE
96 if (
99 )
100 goto tolua_lerror;
101 else
102#endif
103 {
105 const char* untranslated = ((const char*) tolua_tostring(tolua_S,1,0));
106 {
107 const char* tolua_ret = (const char*) api_intl_Q_(L,untranslated);
108 tolua_pushstring(tolua_S,(const char*)tolua_ret);
109 }
110 }
111 return 1;
112#ifndef TOLUA_RELEASE
114 tolua_error(tolua_S,"#ferror in function 'Q_'.",&tolua_err);
115 return 0;
116#endif
117}
118
119/* function: api_intl_PL_ */
121{
122#ifndef TOLUA_RELEASE
124 if (
129 )
130 goto tolua_lerror;
131 else
132#endif
133 {
135 const char* singular = ((const char*) tolua_tostring(tolua_S,1,0));
136 const char* plural = ((const char*) tolua_tostring(tolua_S,2,0));
137 int n = ((int) tolua_tonumber(tolua_S,3,0));
138 {
139 const char* tolua_ret = (const char*) api_intl_PL_(L,singular,plural,n);
140 tolua_pushstring(tolua_S,(const char*)tolua_ret);
141 }
142 }
143 return 1;
144#ifndef TOLUA_RELEASE
146 tolua_error(tolua_S,"#ferror in function 'PL_'.",&tolua_err);
147 return 0;
148#endif
149}
150
151/* function: api_utilities_log_base */
153{
154#ifndef TOLUA_RELEASE
156 if (
160 )
161 goto tolua_lerror;
162 else
163#endif
164 {
166 int log_level = ((int) tolua_tonumber(tolua_S,1,0));
167 const char* message = ((const char*) tolua_tostring(tolua_S,2,0));
168 {
170 }
171 }
172 return 0;
173#ifndef TOLUA_RELEASE
175 tolua_error(tolua_S,"#ferror in function 'base'.",&tolua_err);
176 return 0;
177#endif
178}
179
180/* function: api_utilities_deprecation_warning */
182{
183#ifndef TOLUA_RELEASE
185 if (
190 )
191 goto tolua_lerror;
192 else
193#endif
194 {
196 char* method = ((char*) tolua_tostring(tolua_S,1,0));
197 char* replacement = ((char*) tolua_tostring(tolua_S,2,0));
198 char* deprecated_since = ((char*) tolua_tostring(tolua_S,3,0));
199 {
201 }
202 }
203 return 0;
204#ifndef TOLUA_RELEASE
206 tolua_error(tolua_S,"#ferror in function 'deprecation_warning'.",&tolua_err);
207 return 0;
208#endif
209}
210
211/* function: api_utilities_random */
213{
214#ifndef TOLUA_RELEASE
216 if (
220 )
221 goto tolua_lerror;
222 else
223#endif
224 {
226 int min = ((int) tolua_tonumber(tolua_S,1,0));
227 int max = ((int) tolua_tonumber(tolua_S,2,0));
228 {
229 int tolua_ret = (int) api_utilities_random(L,min,max);
231 }
232 }
233 return 1;
234#ifndef TOLUA_RELEASE
236 tolua_error(tolua_S,"#ferror in function 'random'.",&tolua_err);
237 return 0;
238#endif
239}
240
241/* function: api_utilities_fc_version */
243{
244#ifndef TOLUA_RELEASE
246 if (
248 )
249 goto tolua_lerror;
250 else
251#endif
252 {
254 {
255 const char* tolua_ret = (const char*) api_utilities_fc_version(L);
256 tolua_pushstring(tolua_S,(const char*)tolua_ret);
257 }
258 }
259 return 1;
260#ifndef TOLUA_RELEASE
262 tolua_error(tolua_S,"#ferror in function 'fc_version'.",&tolua_err);
263 return 0;
264#endif
265}
266
267/* function: api_utilities_name_version */
269{
270#ifndef TOLUA_RELEASE
272 if (
274 )
275 goto tolua_lerror;
276 else
277#endif
278 {
280 {
281 const char* tolua_ret = (const char*) api_utilities_name_version(L);
282 tolua_pushstring(tolua_S,(const char*)tolua_ret);
283 }
284 }
285 return 1;
286#ifndef TOLUA_RELEASE
288 tolua_error(tolua_S,"#ferror in function 'name_version'.",&tolua_err);
289 return 0;
290#endif
291}
292
293/* function: api_utilities_comparable_version */
295{
296#ifndef TOLUA_RELEASE
298 if (
300 )
301 goto tolua_lerror;
302 else
303#endif
304 {
306 {
307 const char* tolua_ret = (const char*) api_utilities_comparable_version(L);
308 tolua_pushstring(tolua_S,(const char*)tolua_ret);
309 }
310 }
311 return 1;
312#ifndef TOLUA_RELEASE
314 tolua_error(tolua_S,"#ferror in function 'comparable_version'.",&tolua_err);
315 return 0;
316#endif
317}
318
319/* function: api_utilities_version_string */
321{
322#ifndef TOLUA_RELEASE
324 if (
326 )
327 goto tolua_lerror;
328 else
329#endif
330 {
332 {
333 const char* tolua_ret = (const char*) api_utilities_version_string(L);
334 tolua_pushstring(tolua_S,(const char*)tolua_ret);
335 }
336 }
337 return 1;
338#ifndef TOLUA_RELEASE
340 tolua_error(tolua_S,"#ferror in function 'version_string'.",&tolua_err);
341 return 0;
342#endif
343}
344
345/* function: api_utilities_versions_compare */
347{
348#ifndef TOLUA_RELEASE
350 if (
354 )
355 goto tolua_lerror;
356 else
357#endif
358 {
360 const char* ver1 = ((const char*) tolua_tostring(tolua_S,1,0));
361 const char* ver2 = ((const char*) tolua_tostring(tolua_S,2,0));
362 {
365 }
366 }
367 return 1;
368#ifndef TOLUA_RELEASE
370 tolua_error(tolua_S,"#ferror in function 'versions_compare'.",&tolua_err);
371 return 0;
372#endif
373}
374
375/* Open lib function */
377{
382 tolua_cclass(tolua_S,"Nonexistent","Nonexistent","",NULL);
383 tolua_beginmodule(tolua_S,"Nonexistent");
385
386 { /* begin embedded lua code */
387 static unsigned char B[] = {
388 10,102,117,110, 99,116,105,111,110, 32, 78,111,110,101,120,
389 105,115,116,101,110,116, 58,101,120,105,115,116,115, 40, 41,
390 10,114,101,116,117,114,110, 32,102, 97,108,115,101, 10,101,
391 110,100,32
392 };
393 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
395 } /* end of embedded lua code */
396
401 tolua_module(tolua_S,"log",0);
403 tolua_module(tolua_S,"level",0);
404 tolua_beginmodule(tolua_S,"level");
415
416 { /* begin embedded lua code */
417 static unsigned char B[] = {
418 10,102,117,110, 99,116,105,111,110, 32,108,111,103, 46,102,
419 97,116, 97,108, 40,102,109,116, 44, 32, 46, 46, 46, 41, 10,
420 108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,108,101,
421 118,101,108, 46, 70, 65, 84, 65, 76, 44, 32,115,116,114,105,
422 110,103, 46,102,111,114,109, 97,116, 40,102,109,116, 44, 32,
423 46, 46, 46, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,
424 105,111,110, 32,108,111,103, 46,101,114,114,111,114, 40,102,
425 109,116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,
426 115,101, 40,108,111,103, 46,108,101,118,101,108, 46, 69, 82,
427 82, 79, 82, 44, 32,115,116,114,105,110,103, 46,102,111,114,
428 109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46, 41, 41, 10,
429 101,110,100, 10,102,117,110, 99,116,105,111,110, 32,108,111,
430 103, 46,119, 97,114,110, 40,102,109,116, 44, 32, 46, 46, 46,
431 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,
432 108,101,118,101,108, 46, 87, 65, 82, 78, 44, 32,115,116,114,
433 105,110,103, 46,102,111,114,109, 97,116, 40,102,109,116, 44,
434 32, 46, 46, 46, 41, 41, 10,101,110,100, 10,102,117,110, 99,
435 116,105,111,110, 32,108,111,103, 46,110,111,114,109, 97,108,
436 40,102,109,116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46,
437 98, 97,115,101, 40,108,111,103, 46,108,101,118,101,108, 46,
438 78, 79, 82, 77, 65, 76, 44, 32,115,116,114,105,110,103, 46,
439 102,111,114,109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46,
440 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
441 32,108,111,103, 46,118,101,114, 98,111,115,101, 40,102,109,
442 116, 44, 32, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,
443 101, 40,108,111,103, 46,108,101,118,101,108, 46, 86, 69, 82,
444 66, 79, 83, 69, 44, 32,115,116,114,105,110,103, 46,102,111,
445 114,109, 97,116, 40,102,109,116, 44, 32, 46, 46, 46, 41, 41,
446 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,108,
447 111,103, 46,100,101, 98,117,103, 40,102,109,116, 44, 32, 46,
448 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,
449 103, 46,108,101,118,101,108, 46, 68, 69, 66, 85, 71, 44, 32,
450 115,116,114,105,110,103, 46,102,111,114,109, 97,116, 40,102,
451 109,116, 44, 32, 46, 46, 46, 41, 41, 10,101,110,100, 10,102,
452 117,110, 99,116,105,111,110, 32,101,114,114,111,114, 95,108,
453 111,103, 40,109,115,103, 41, 10,108,111,103, 46,100,101,112,
454 114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,
455 103, 40, 34,101,114,114,111,114, 95,108,111,103, 40, 41, 34,
456 44, 32, 34,108,111,103, 46,101,114,114,111,114, 40, 41, 34,
457 44, 32, 34, 50, 46, 52, 34, 41, 59, 10,108,111,103, 46,101,
458 114,114,111,114, 40,109,115,103, 41, 10,101,110,100, 10,102,
459 117,110, 99,116,105,111,110, 32,100,101, 98,117,103, 95,108,
460 111,103, 40,109,115,103, 41, 10,108,111,103, 46,100,101,112,
461 114,101, 99, 97,116,105,111,110, 95,119, 97,114,110,105,110,
462 103, 40, 34,100,101, 98,117,103, 95,108,111,103, 40, 41, 34,
463 44, 32, 34,108,111,103, 46,100,101, 98,117,103, 40, 41, 34,
464 44, 32, 34, 50, 46, 52, 34, 41, 59, 10,108,111,103, 46,100,
465 101, 98,117,103, 40,109,115,103, 41, 10,101,110,100,32
466 };
467 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
469 } /* end of embedded lua code */
470
477
478 { /* begin embedded lua code */
479 static unsigned char B[] = {
480 10,102,117,110, 99,116,105,111,110, 32, 95,102,114,101,101,
481 99,105,118, 95,115,116, 97,116,101, 95,100,117,109,112, 40,
482 41, 10,108,111, 99, 97,108, 32,114,101,115, 32, 61, 32, 39,
483 39, 10,102,111,114, 32,107, 44, 32,118, 32,105,110, 32,112,
484 97,105,114,115, 40, 95, 71, 41, 32,100,111, 10,105,102, 32,
485 107, 32, 61, 61, 32, 39, 95, 86, 69, 82, 83, 73, 79, 78, 39,
486 32,116,104,101,110, 10,101,108,115,101,105,102, 32,116,121,
487 112,101, 40,118, 41, 32, 61, 61, 32, 39, 98,111,111,108,101,
488 97,110, 39, 10,111,114, 32,116,121,112,101, 40,118, 41, 32,
489 61, 61, 32, 39,110,117,109, 98,101,114, 39, 32,116,104,101,
490 110, 10,108,111, 99, 97,108, 32,114,118, 97,108,117,101, 32,
491 61, 32,116,111,115,116,114,105,110,103, 40,118, 41, 10,114,
492 101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107, 32, 46,
493 46, 32, 39, 61, 39, 32, 46, 46, 32,114,118, 97,108,117,101,
494 32, 46, 46, 32, 39, 92,110, 39, 10,101,108,115,101,105,102,
495 32,116,121,112,101, 40,118, 41, 32, 61, 61, 32, 39,115,116,
496 114,105,110,103, 39, 32,116,104,101,110, 10,108,111, 99, 97,
497 108, 32,114,118, 97,108,117,101, 32, 61, 32,115,116,114,105,
498 110,103, 46,102,111,114,109, 97,116, 40, 39, 37,113, 39, 44,
499 32,118, 41, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46,
500 46, 32,107, 32, 46, 46, 32, 39, 61, 39, 32, 46, 46, 32,114,
501 118, 97,108,117,101, 32, 46, 46, 32, 39, 92,110, 39, 10,101,
502 108,115,101,105,102, 32,116,121,112,101, 40,118, 41, 32, 61,
503 61, 32, 39,117,115,101,114,100, 97,116, 97, 39, 32,116,104,
504 101,110, 10,108,111, 99, 97,108, 32,109,101,116,104,111,100,
505 32, 61, 32,115,116,114,105,110,103, 46,108,111,119,101,114,
506 40,116,111,108,117, 97, 46,116,121,112,101, 40,118, 41, 41,
507 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107,
508 32, 46, 46, 32, 39, 61,102,105,110,100, 46, 39, 32, 46, 46,
509 32,109,101,116,104,111,100, 10,105,102, 32,109,101,116,104,
510 111,100, 32, 61, 61, 32, 39, 99,105,116,121, 39, 32,111,114,
511 32,109,101,116,104,111,100, 32, 61, 61, 32, 39,117,110,105,
512 116, 39, 32,116,104,101,110, 10,114,101,115, 32, 61, 32,114,
513 101,115, 32, 46, 46, 32, 39, 40,110,105,108, 44, 39, 32, 46,
514 46, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,116,
515 40, 34, 37,100, 34, 44, 32,118, 46,105,100, 41, 32, 46, 46,
516 32, 39, 41, 39, 10,101,108,115,101,105,102, 32,116,121,112,
517 101, 40,118, 46,114,117,108,101, 95,110, 97,109,101, 41, 32,
518 61, 61, 32, 39,102,117,110, 99,116,105,111,110, 39, 32,116,
519 104,101,110, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46,
520 46, 32, 39, 40, 39, 32, 46, 46, 32,115,116,114,105,110,103,
521 46,102,111,114,109, 97,116, 40, 34, 39, 37,115, 39, 34, 44,
522 32,118, 46,114,117,108,101, 95,110, 97,109,101, 40,118, 41,
523 41, 32, 46, 46, 32, 39, 41, 39, 10,101,108,115,101,105,102,
524 32,116,121,112,101, 40,118, 46,110, 97,109,101, 41, 32, 61,
525 61, 32, 39,102,117,110, 99,116,105,111,110, 39, 32,116,104,
526 101,110, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46,
527 32, 39, 40, 39, 32, 46, 46, 32,115,116,114,105,110,103, 46,
528 102,111,114,109, 97,116, 40, 34, 39, 37,115, 39, 34, 44, 32,
529 118, 46,110, 97,109,101, 40,118, 41, 41, 32, 46, 46, 32, 39,
530 41, 39, 10,101,108,115,101,105,102, 32,118, 46,110, 97,109,
531 101, 32,126, 61, 32,110,105,108, 32,116,104,101,110, 10,114,
532 101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 39,
533 32, 46, 46, 32,115,116,114,105,110,103, 46,102,111,114,109,
534 97,116, 40, 34, 39, 37,115, 39, 34, 44, 32,118, 46,110, 97,
535 109,101, 41, 32, 46, 46, 32, 39, 41, 39, 10,101,108,115,101,
536 105,102, 32,118, 46,105,100, 32,116,104,101,110, 10,114,101,
537 115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 39, 32,
538 46, 46, 32,115,116,114,105,110,103, 46,102,111,114,109, 97,
539 116, 40, 34, 37,100, 34, 44, 32,118, 46,105,100, 41, 32, 46,
540 46, 32, 39, 41, 39, 10,101,108,115,101, 10,114,101,115, 32,
541 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 41, 39, 10,101,
542 110,100, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46,
543 32, 39, 92,110, 39, 10,101,110,100, 10,101,110,100, 10,114,
544 101,116,117,114,110, 32,114,101,115, 10,101,110,100, 10,102,
545 117,110, 99,116,105,111,110, 32,108,105,115,116,101,110,118,
546 40, 41, 10,102, 99,101, 40, 95, 71, 41, 10,101,110,100, 10,
547 102,117,110, 99,116,105,111,110, 32,102, 99,101, 40,100, 97,
548 116,117,109, 44, 32,100,101,112,116,104, 44, 32,112,114,101,
549 102,105,120, 44, 32,115,116,114,105,110,103, 95,112, 97,114,
550 115,101, 41, 10,108,111, 99, 97,108, 32,115, 32, 61, 32, 34,
551 32, 37,115, 32, 34, 59, 10,108,111, 99, 97,108, 32,113, 32,
552 61, 32, 34, 32, 37,113, 32, 34, 10,108,111, 99, 97,108, 32,
553 102,117,110, 99,116,105,111,110, 32,113, 95,102,109,116, 32,
554 40,100, 41, 32,114,101,116,117,114,110, 32, 40, 34, 37,113,
555 34, 41, 58,102,111,114,109, 97,116, 40,100, 41, 32,101,110,
556 100, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
557 110, 32,115, 95,102,109,116, 32, 40,100, 41, 32,114,101,116,
558 117,114,110, 32, 40, 34, 37,115, 34, 41, 58,102,111,114,109,
559 97,116, 40,100, 41, 32,101,110,100, 10,108,111, 99, 97,108,
560 32,108,105,115,116,115, 32, 61, 32,115,101,116,109,101,116,
561 97,116, 97, 98,108,101, 32, 40, 32,123,125, 44, 32,123, 10,
562 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,116,
563 105,111,110, 32, 40,116, 44, 32, 84, 41, 32,116, 91, 84, 93,
564 32, 61, 32,123,110, 32, 61, 32, 48,125, 59, 32,114,101,116,
565 117,114,110, 32,116, 91, 84, 93, 32,101,110,100, 59, 10,125,
566 32, 41, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,
567 111,110, 32,116, 97, 98,117,108, 97,114, 32, 40,100, 97,116,
568 117,109, 44, 32, 84,121,112,101, 44, 32,105,100, 41, 10,108,
569 111, 99, 97,108, 32,108,105,115,116, 32, 61, 32,108,105,115,
570 116,115, 32, 91, 84,121,112,101, 93, 59, 32,108,111, 99, 97,
571 108, 32,105,110,120, 32, 61, 32,108,105,115,116, 32, 91,100,
572 97,116,117,109, 93, 10,105,102, 32,105,110,120, 32,116,104,
573 101,110, 32,114,101,116,117,114,110, 32,105,110,120, 46, 46,
574 34, 61, 34, 44, 32, 84,121,112,101, 10,101,108,115,101,105,
575 102, 32,105,100, 32,116,104,101,110, 32,108,105,115,116, 32,
576 91,100, 97,116,117,109, 93, 32, 61, 32,105,100, 59, 32,108,
577 105,115,116, 46,110, 32, 61, 32,109, 97,116,104, 46,109, 97,
578 120, 40,105,100, 44, 32,108,105,115,116, 46,110, 41, 10,114,
579 101,116,117,114,110, 32,105,100, 44, 32, 84,121,112,101, 44,
580 32, 34, 34, 10,101,108,115,101, 32,105,110,120, 32, 61, 32,
581 108,105,115,116, 46,110, 32, 43, 49, 59, 32,108,105,115,116,
582 32, 91,100, 97,116,117,109, 93, 32, 61, 32,105,110,120, 59,
583 32,108,105,115,116, 46,110, 32, 61, 32,105,110,120, 59, 10,
584 114,101,116,117,114,110, 32,105,110,120, 44, 32, 84,121,112,
585 101, 44, 32,105,110,120, 10,101,110,100, 10,101,110,100, 10,
586 108,111, 99, 97,108, 32, 84, 84, 32, 61, 32,115,101,116,109,
587 101,116, 97,116, 97, 98,108,101, 32, 40, 32,123, 10,110,117,
588 109, 98,101,114, 32, 61, 32,102,117,110, 99,116,105,111,110,
589 32, 40,100, 44, 32, 84, 41, 32,114,101,116,117,114,110, 32,
590 115, 95,102,109,116, 40,100, 41, 44, 32,109, 97,116,104, 46,
591 116,121,112,101, 40,100, 41, 32,101,110,100, 59, 10,115,116,
592 114,105,110,103, 32, 61, 32,102,117,110, 99,116,105,111,110,
593 32, 40,100, 44, 32, 84, 41, 10,108,111, 99, 97,108, 32,115,
594 116,114, 44, 32, 99,111,117,110,116, 44, 32,105,110,120, 44,
595 32,110,101,119, 32, 61, 32,100, 58,103,115,117, 98, 32, 40,
596 34, 91, 37, 99, 92,120, 56, 48, 45, 92,120, 70, 70, 93, 34,
597 44, 32, 34, 42, 34, 41, 10,105,102, 32, 99,111,117,110,116,
598 32,126, 61, 32, 48, 32,116,104,101,110, 32,105,110,120, 44,
599 32, 84, 44, 32,110,101,119, 32, 61, 32,116, 97, 98,117,108,
600 97,114, 40,100, 44, 32, 34, 83, 84, 82, 73, 78, 71, 34, 46,
601 46, 99,111,117,110,116, 41, 32,101,110,100, 10,114,101,116,
602 117,114,110, 32,113, 95,102,109,116, 40,115,116,114, 41, 46,
603 46, 40,105,110,120, 32, 97,110,100, 32, 34, 32, 34, 46, 46,
604 32,105,110,120, 32,111,114, 32, 34, 34, 41, 44, 10,100, 58,
605 102,105,110,100, 40, 34, 94, 91, 95, 37, 97, 93, 91, 95, 37,
606 97, 37,100, 93, 42, 36, 34, 41, 32, 97,110,100, 32, 34,105,
607 100,101,110,116,105,102,105,101,114, 34, 32,111,114, 32, 84,
608 44, 10,110,105,108, 10,101,110,100, 59, 10, 91, 34,102,117,
609 110, 99,116,105,111,110, 34, 93, 32, 61, 32,116, 97, 98,117,
610 108, 97,114, 59, 10,116,104,114,101, 97,100, 32, 61, 32,116,
611 97, 98,117,108, 97,114, 59, 10,116, 97, 98,108,101, 32, 61,
612 32,116, 97, 98,117,108, 97,114, 59, 10,117,115,101,114,100,
613 97,116, 97, 32, 61, 32,102,117,110, 99,116,105,111,110, 32,
614 40,100, 44, 32, 84, 41, 32, 84, 32, 61, 32,116,111,108,117,
615 97, 46,116,121,112,101, 40,100, 41, 59, 32,108,111, 99, 97,
616 108, 32,105,100, 32, 61, 32,100, 46,105,100, 59, 10,105,102,
617 32,100, 46,114,117,108,101, 95,110, 97,109,101, 32,116,104,
618 101,110, 32,114,101,116,117,114,110, 40, 34, 37,115, 32, 37,
619 113, 32, 34, 41, 58,102,111,114,109, 97,116, 40,105,100, 44,
620 100, 58,114,117,108,101, 95,110, 97,109,101, 40, 41, 41, 44,
621 84, 10,101,108,115,101, 32,114,101,116,117,114,110, 32,116,
622 97, 98,117,108, 97,114, 32, 40,100, 44, 32, 84, 44, 32,105,
623 100, 41, 10,101,110,100, 10,101,110,100, 59, 10,125, 44, 32,
624 123, 10, 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110,
625 99,116,105,111,110, 32, 40, 41, 32,114,101,116,117,114,110,
626 32, 40,102,117,110, 99,116,105,111,110, 32, 40,100, 44, 84,
627 41, 32,114,101,116,117,114,110, 32,113, 95,102,109,116, 40,
628 100, 41, 44, 84, 32,101,110,100, 41, 32,101,110,100, 59, 10,
629 95, 95, 99, 97,108,108, 32, 61, 32,102,117,110, 99,116,105,
630 111,110, 32, 40,116, 44, 32,100, 41, 32,108,111, 99, 97,108,
631 32, 84, 32, 61, 32,116,121,112,101, 40,100, 41, 59, 32,114,
632 101,116,117,114,110, 32,116, 32, 91, 84, 93, 32, 40,100, 44,
633 32, 84, 41, 32,101,110,100, 59, 10,125, 32, 41, 10,108,111,
634 99, 97,108, 32,109,116, 32, 61, 32, 34, 32,109,101,116, 97,
635 32, 37,115, 32, 34, 10,108,111, 99, 97,108, 32,102,117,110,
636 99,116,105,111,110, 32,100,111, 95,100, 97,116,117,109, 32,
637 40,116,101,120,116, 44, 32,100, 97,116,117,109, 44, 32, 84,
638 121,112,101, 41, 10,108,111, 99, 97,108, 32,109,101,116, 97,
639 44, 32,118, 97,108, 44, 32, 84, 44, 32,110,101,119, 32, 61,
640 32,103,101,116,109,101,116, 97,116, 97, 98,108,101, 32, 40,
641 100, 97,116,117,109, 41, 59, 10,105,102, 32,116,121,112,101,
642 40,109,101,116, 97, 41, 32,126, 61, 32, 34,110,105,108, 34,
643 10,116,104,101,110, 32,118, 97,108, 44, 32, 84, 44, 32,110,
644 101,119, 32, 61, 32, 84, 84, 40,109,101,116, 97, 41, 59, 32,
645 116,101,120,116, 32, 61, 32,116,101,120,116, 46, 46,109,116,
646 58,102,111,114,109, 97,116, 40, 84, 41, 46, 46,118, 97,108,
647 10,101,110,100, 59, 10, 99,111,114,111,117,116,105,110,101,
648 46,121,105,101,108,100, 32, 40,116,101,120,116, 44, 32,100,
649 97,116,117,109, 44, 32, 84,121,112,101, 41, 59, 10,105,102,
650 32,110,101,119, 32,116,104,101,110, 32,114,101,116,117,114,
651 110, 32,109,101,116, 97, 44, 32,118, 97,108, 44, 32, 84, 32,
652 101,110,100, 10,101,110,100, 10,108,111, 99, 97,108, 32,102,
653 117,110, 99,116,105,111,110, 32, 99,111, 32, 40,116,101,120,
654 116, 44, 32,100, 49, 44, 32,112,114,101,102,105,120, 41, 10,
655 108,111, 99, 97,108, 32,118, 49, 44, 32, 84, 49, 44, 32,110,
656 101,119, 32, 61, 32, 84, 84, 40,100, 49, 41, 10,108,111, 99,
657 97,108, 32,100, 50, 44, 32,118, 50, 44, 32, 84, 50, 32, 61,
658 10,100,111, 95,100, 97,116,117,109, 32, 40,116,101,120,116,
659 46, 46, 34, 32, 40, 34, 46, 46, 84, 49, 46, 46, 34, 41, 32,
660 34, 46, 46,118, 49, 44, 32,100, 49, 44, 32, 84, 49, 41, 10,
661 105,102, 32,110,101,119, 32,116,104,101,110, 10, 99,111,114,
662 111,117,116,105,110,101, 46,121,105,101,108,100, 32, 40,112,
663 114,101,102,105,120, 46, 46,115, 58,102,111,114,109, 97,116,
664 40,100, 49, 41, 46, 46,110,101,119, 44, 32,100, 49, 44, 32,
665 84, 49, 41, 10,101,110,100, 10,119,104,105,108,101, 32,100,
666 50, 32,100,111, 32,100, 50, 44, 32,118, 50, 44, 32, 84, 50,
667 32, 61, 10,100,111, 95,100, 97,116,117,109, 32, 40,112,114,
668 101,102,105,120, 46, 46,109,116, 58,102,111,114,109, 97,116,
669 40,100, 50, 41, 46, 46,118, 50, 44, 32,100, 50, 44, 32, 84,
670 50, 41, 10,101,110,100, 10,101,110,100, 10,108,111, 99, 97,
671 108, 32,112,114,105,110,116,105,116, 32, 61, 32,108,111,103,
672 46,101,114,114,111,114, 10,108,111, 99, 97,108, 32,102,117,
673 110, 99,116,105,111,110, 32,112, 97,114,116, 95, 48, 32, 40,
674 100, 97,116,117,109, 44, 32, 99,111, 95,116,101,120,116, 41,
675 10,114,101,116,117,114,110, 32,123, 99,111, 95,116, 32, 61,
676 32, 99,111,114,111,117,116,105,110,101, 46,119,114, 97,112,
677 40, 99,111, 41, 59, 32,100, 97,116,117,109, 32, 61, 32,100,
678 97,116,117,109, 59, 32, 99,111, 95,116,101,120,116, 32, 61,
679 32, 99,111, 95,116,101,120,116, 59,125, 10,101,110,100, 10,
680 108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,
681 112, 97,114,116, 95, 49, 32, 40, 99,111, 95,115, 44, 32,112,
682 114,101,102,105,120, 41, 10,114,101,116,117,114,110, 32, 99,
683 111, 95,115, 46, 99,111, 95,116, 32, 40, 99,111, 95,115, 46,
684 99,111, 95,116,101,120,116, 44, 32, 99,111, 95,115, 46,100,
685 97,116,117,109, 44, 32,112,114,101,102,105,120, 41, 10,101,
686 110,100, 10,108,111, 99, 97,108, 32,100,101,116, 97,105,108,
687 115, 10,108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,
688 110, 32,112, 97,114,116, 95,120, 32, 40, 99,111, 95,115,115,
689 44, 32,100,101,112,116,104, 44, 32,112,114,101,102,105,120,
690 41, 10,108,111, 99, 97,108, 32,116,101,120,116, 44, 32,115,
691 101,112, 32, 61, 32,112,114,101,102,105,120, 44, 32, 34, 34,
692 10,102,111,114, 32, 99, 44, 32, 99,111, 95,115, 32,105,110,
693 32,105,112, 97,105,114,115, 32, 40, 99,111, 95,115,115, 41,
694 10,100,111, 32,116,101,120,116, 44, 32,115,101,112, 32, 61,
695 32,116,101,120,116, 46, 46,115,101,112, 46, 46,112, 97,114,
696 116, 95, 49, 32, 40, 99,111, 95,115, 44, 32,112,114,101,102,
697 105,120, 41, 44, 32, 34, 59, 32, 34, 10,101,110,100, 59, 32,
698 112,114,105,110,116,105,116, 32, 40,116,101,120,116, 41, 10,
699 102,111,114, 32, 99, 44, 32, 99,111, 95,115, 32,105,110, 32,
700 105,112, 97,105,114,115, 32, 40, 99,111, 95,115,115, 41, 32,
701 100,111, 10,102,111,114, 32,116,101,120,116, 44, 32,100, 97,
702 116,117,109, 44, 32, 84,121,112,101, 32,105,110, 32,112, 97,
703 114,116, 95, 49, 44, 32, 99,111, 95,115, 44, 32, 34, 34, 32,
704 100,111, 10,100,101,116, 97,105,108,115, 32, 91, 84,121,112,
705 101, 93, 32, 40,112,114,101,102,105,120, 46, 46,116,101,120,
706 116, 44, 32,100, 97,116,117,109, 44, 32,100,101,112,116,104,
707 44, 32,112,114,101,102,105,120, 41, 10,101,110,100, 10,101,
708 110,100, 10,101,110,100, 10,108,111, 99, 97,108, 32, 77, 70,
709 32, 61, 32,109, 97,116,104, 46,102,108,111,111,114, 10,108,
710 111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32,112,
711 112, 95,116,105,108,101, 32, 40,100, 41, 10,114,101,116,117,
712 114,110, 32, 40, 34, 32, 40, 37,115, 44, 37,115, 41, 32, 34,
713 41, 58,102,111,114,109, 97,116, 40, 32, 77, 70, 40,100, 46,
714 120, 41, 44, 32, 77, 70, 40,100, 46,121, 41, 32, 41, 10,101,
715 110,100, 10,100,101,116, 97,105,108,115, 32, 61, 32,115,101,
716 116,109,101,116, 97,116, 97, 98,108,101, 32, 40,123, 10,116,
717 97, 98,108,101, 32, 61, 32,102,117,110, 99,116,105,111,110,
718 32, 40,116,101,120,116, 44, 32,100, 44, 32,100,101,112,116,
719 104, 44, 32,112,114,101,102,105,120, 41, 10,105,102, 32,100,
720 101,112,116,104, 32, 61, 61, 32, 48, 10,116,104,101,110, 32,
721 112,114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46,
722 34, 32,108,105,109,105,116, 32,114,101, 97, 99,104,101,100,
723 34, 41, 10,101,108,115,101, 32,112,114,105,110,116,105,116,
724 32, 40,116,101,120,116, 41, 59, 32,102,111,114, 32,107,101,
725 121, 44, 32,118, 97,108, 32,105,110, 32,110,101,120,116, 44,
726 32,100, 44, 32,110,105,108, 32,100,111, 10,112, 97,114,116,
727 95,120, 40,123, 32,112, 97,114,116, 95, 48, 32, 40,107,101,
728 121, 44, 32, 34,107,101,121, 34, 41, 59, 32,112, 97,114,116,
729 95, 48, 32, 40,118, 97,108, 44, 32, 34,118, 97,108,117,101,
730 34, 41, 59, 32,125, 44, 10,100,101,112,116,104, 32, 45, 49,
731 44, 32,112,114,101,102,105,120, 46, 46, 34, 46, 34, 41, 10,
732 101,110,100, 10,101,110,100, 10,101,110,100, 59, 10,116,104,
733 114,101, 97,100, 32, 61, 32,102,117,110, 99,116,105,111,110,
734 32, 40,116,101,120,116, 44, 32,100, 41, 10,112,114,105,110,
735 116,105,116, 32, 40,116,101,120,116, 46, 46,115, 58,102,111,
736 114,109, 97,116, 40,100, 41, 46, 46, 99,111,114,111,117,116,
737 105,110,101, 46,115,116, 97,116,117,115, 40,100, 41, 46, 46,
738 10, 34, 32, 34, 32, 41, 10,101,110,100, 59, 10, 68,105,114,
739 101, 99,116,105,111,110, 32, 61, 32,102,117,110, 99,116,105,
740 111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,101,110,
741 100, 59, 10, 84,105,108,101, 32, 61, 32,102,117,110, 99,116,
742 105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,112,
743 114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46,112,
744 112, 95,116,105,108,101, 32, 40,100, 41, 32, 41, 32,101,110,
745 100, 59, 10, 80,108, 97,121,101,114, 32, 61, 32,102,117,110,
746 99,116,105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41,
747 32,112,114,105,110,116,105,116, 32, 40,116,101,120,116, 46,
748 46, 40, 34, 32, 37,115, 37,115, 32, 40, 37,115, 58, 37,115,
749 41, 34, 41, 58, 10,102,111,114,109, 97,116, 40, 32,100, 46,
750 110, 97,116,105,111,110, 44, 32,100, 46, 97,105, 95, 99,111,
751 110,116,114,111,108,108,101,100, 32, 97,110,100, 32, 34, 45,
752 34, 32,111,114, 32, 34, 43, 34, 44, 10, 77, 70, 40,100, 58,
753 110,117,109, 95, 99,105,116,105,101,115, 40, 41, 41, 44, 32,
754 77, 70, 40,100, 58,110,117,109, 95,117,110,105,116,115, 40,
755 41, 41, 41, 32, 41, 10,101,110,100, 59, 10, 67,105,116,121,
756 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40,116,101,
757 120,116, 44, 32,100, 41, 32,112,114,105,110,116,105,116, 32,
758 40,116,101,120,116, 46, 46, 40, 34, 32, 37,113, 32, 40, 37,
759 115, 41, 32, 37,115, 32, 37,115, 34, 41, 58, 10,102,111,114,
760 109, 97,116, 40, 32,100, 46,110, 97,109,101, 44, 32,100, 46,
761 115,105,122,101, 44, 32,100, 46,111,119,110,101,114, 44, 32,
762 100, 46,116,105,108,101, 41, 46, 46,112,112, 95,116,105,108,
763 101, 32, 40,100, 46,116,105,108,101, 41, 32, 41, 10,101,110,
764 100, 59, 10, 85,110,105,116, 32, 61, 32,102,117,110, 99,116,
765 105,111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,112,
766 114,105,110,116,105,116, 32, 40,116,101,120,116, 46, 46, 40,
767 34, 32, 37,115, 44, 32, 37,115, 32, 37,115, 34, 41, 58, 10,
768 102,111,114,109, 97,116, 40, 32,100, 46,117,116,121,112,101,
769 44, 32,100, 46,111,119,110,101,114, 44, 32,100, 58,103,101,
770 116, 95,104,111,109,101, 99,105,116,121, 40, 41, 32,111,114,
771 32, 34,110,111, 32,104,111,109,101, 32, 99,105,116,121, 34,
772 41, 32, 41, 10,101,110,100, 59, 10, 91, 34,102,117,110, 99,
773 116,105,111,110, 34, 93, 32, 61, 32,102,117,110, 99,116,105,
774 111,110, 32, 40,116,101,120,116, 44, 32,100, 41, 32,101,110,
775 100, 59, 10,125, 44,123, 10, 95, 95,105,110,100,101,120, 32,
776 61, 32,102,117,110, 99,116,105,111,110, 32, 40,116, 44, 32,
777 84, 41, 32,114,101,116,117,114,110, 32,112,114,105,110,116,
778 105,116, 32,101,110,100, 59, 10,125, 41, 10,105,102, 32,115,
779 116,114,105,110,103, 95,112, 97,114,115,101, 32,116,104,101,
780 110, 32,101,108,115,101, 32,116, 97, 98,117,108, 97,114, 40,
781 103,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 34, 34,
782 41, 44, 32, 34,116, 97, 98,108,101, 34, 41, 32,101,110,100,
783 10,112, 97,114,116, 95,120, 32, 40,123, 32,112, 97,114,116,
784 95, 48, 32, 40,100, 97,116,117,109, 44, 32, 34,104,101, 97,
785 100, 34, 32, 41,125, 44, 10,116,121,112,101, 32, 40,100,101,
786 112,116,104, 41, 32, 61, 61, 32, 34,110,117,109, 98,101,114,
787 34, 32, 97,110,100, 32,100,101,112,116,104, 32,111,114, 32,
788 45, 49, 44, 10,116,121,112,101, 32, 40,112,114,101,102,105,
789 120, 41, 32, 61, 61, 32, 34,115,116,114,105,110,103, 34, 32,
790 97,110,100, 32,112,114,101,102,105,120, 32,111,114, 32, 34,
791 34, 41, 10,114,101,116,117,114,110, 32,108,105,115,116,115,
792 10,101,110,100, 10, 99,111,110,115,116, 32, 61, 32,123,125,
793 10,108,111, 99, 97,108, 32,100, 97,116, 97, 32, 61, 32,123,
794 125, 10, 99,111,110,115,116, 95,109,116, 32, 61, 32,123, 10,
795 95, 95,110,101,119,105,110,100,101,120, 32, 61, 32,102,117,
796 110, 99,116,105,111,110, 40, 97, 44, 98, 44, 99, 41, 10,105,
797 102, 32,100, 97,116, 97, 91, 98, 93, 32, 61, 61, 32,110,105,
798 108, 32,116,104,101,110, 10,105,102, 32,116,121,112,101, 40,
799 99, 41, 32, 61, 61, 32, 39,116, 97, 98,108,101, 39, 32,116,
800 104,101,110, 10,108,111, 99, 97,108, 32,112,114,111,120,121,
801 32, 61, 32,123,125, 10,108,111, 99, 97,108, 32,109,116, 32,
802 61, 32,123, 10, 95, 95,105,110,100,101,120, 32, 61, 32, 99,
803 44, 10, 95, 95,110,101,119,105,110,100,101,120, 32, 61, 32,
804 102,117,110, 99,116,105,111,110, 32, 40,116, 44,107, 44,118,
805 41, 10,108,111,103, 46,101,114,114,111,114, 40, 91, 91, 34,
806 65,116,116,101,109,112,116, 32,116,111, 32,117,112,100, 97,
807 116,101, 32,114,101, 97,100, 45,111,110,108,121, 32,116, 97,
808 98,108,101, 32, 39, 37,115, 39, 32,105,110,100,101,120, 32,
809 39, 37,115, 39, 32, 34, 10, 34,119,105,116,104, 32, 39, 37,
810 115, 39, 46, 34, 93, 93, 44, 32, 98, 44, 32,116,111,115,116,
811 114,105,110,103, 40,107, 41, 44, 32,116,111,115,116,114,105,
812 110,103, 40,118, 41, 41, 10,101,110,100, 10,125, 10,115,101,
813 116,109,101,116, 97,116, 97, 98,108,101, 40,112,114,111,120,
814 121, 44, 32,109,116, 41, 10,100, 97,116, 97, 91, 98, 93, 32,
815 61, 32,112,114,111,120,121, 10,101,108,115,101, 10,100, 97,
816 116, 97, 91, 98, 93, 32, 61, 32, 99, 10,101,110,100, 10,101,
817 108,115,101, 10,108,111,103, 46,101,114,114,111,114, 40, 34,
818 73,108,108,101,103, 97,108, 32, 97,115,115,105,103,110,109,
819 101,110,116, 32,116,111, 32, 99,111,110,115,116, 97,110,116,
820 32, 39, 37,115, 39, 46, 34, 44, 32,116,111,115,116,114,105,
821 110,103, 40, 98, 41, 41, 10,101,110,100, 10,101,110,100, 44,
822 10, 95, 95,105,110,100,101,120, 32, 61, 32,102,117,110, 99,
823 116,105,111,110, 40, 97, 44, 98, 41, 10,114,101,116,117,114,
824 110, 32,100, 97,116, 97, 91, 98, 93, 10,101,110,100, 10,125,
825 10,115,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 99,
826 111,110,115,116, 44, 32, 99,111,110,115,116, 95,109,116, 41,
827 32
828 };
829 if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
831 } /* end of embedded lua code */
832
834 return 1;
835}
836/* Open tolua function */
const char * api_intl_N_(lua_State *L, const char *untranslated)
const char * api_intl_PL_(lua_State *L, const char *singular, const char *plural, int n)
const char * api_intl__(lua_State *L, const char *untranslated)
const char * api_intl_Q_(lua_State *L, const char *untranslated)
const char * api_utilities_fc_version(lua_State *L)
int api_utilities_versions_compare(lua_State *L, const char *ver1, const char *ver2)
const char * api_utilities_comparable_version(lua_State *L)
int api_utilities_random(lua_State *L, int min, int max)
void api_utilities_log_base(lua_State *L, int level, const char *message)
const char * api_utilities_name_version(lua_State *L)
const char * api_utilities_version_string(lua_State *L)
void api_utilities_deprecation_warning(lua_State *L, char *method, char *replacement, char *deprecated_since)
#define n
Definition astring.c:77
char * incite_cost
Definition comments.c:76
log_level
Definition log.h:29
@ LOG_ERROR
Definition log.h:31
@ LOG_DEBUG
Definition log.h:35
@ LOG_NORMAL
Definition log.h:33
@ LOG_FATAL
Definition log.h:30
@ LOG_VERBOSE
Definition log.h:34
@ LOG_WARN
Definition log.h:32
static int tolua_common_a_name_version00(lua_State *tolua_S)
static int tolua_common_a__00(lua_State *tolua_S)
static int tolua_common_a_random00(lua_State *tolua_S)
static int tolua_common_a_N_00(lua_State *tolua_S)
static int tolua_common_a_version_string00(lua_State *tolua_S)
TOLUA_API int tolua_common_a_open(lua_State *tolua_S)
static int tolua_common_a_versions_compare00(lua_State *tolua_S)
static void tolua_reg_types(lua_State *tolua_S)
LUALIB_API int luaopen_common_a(lua_State *tolua_S)
static int tolua_common_a_log_deprecation_warning00(lua_State *tolua_S)
int tolua_bnd_takeownership(lua_State *L)
static int tolua_common_a_log_base00(lua_State *tolua_S)
static int tolua_common_a_comparable_version00(lua_State *tolua_S)
static int tolua_common_a_fc_version00(lua_State *tolua_S)
static int tolua_common_a_Q_00(lua_State *tolua_S)
static int tolua_common_a_PL_00(lua_State *tolua_S)