diff options
-rw-r--r-- | lapi.c | 10 | ||||
-rw-r--r-- | lauxlib.c | 10 | ||||
-rw-r--r-- | lbaselib.c | 9 | ||||
-rw-r--r-- | lbitlib.c | 5 | ||||
-rw-r--r-- | lcode.c | 10 | ||||
-rw-r--r-- | lcorolib.c | 9 | ||||
-rw-r--r-- | lctype.c | 5 | ||||
-rw-r--r-- | ldblib.c | 10 | ||||
-rw-r--r-- | ldebug.c | 11 | ||||
-rw-r--r-- | ldo.c | 10 | ||||
-rw-r--r-- | ldump.c | 9 | ||||
-rw-r--r-- | lfunc.c | 10 | ||||
-rw-r--r-- | lgc.c | 9 | ||||
-rw-r--r-- | linit.c | 12 | ||||
-rw-r--r-- | liolib.c | 16 | ||||
-rw-r--r-- | llex.c | 10 | ||||
-rw-r--r-- | lmathlib.c | 10 | ||||
-rw-r--r-- | lmem.c | 10 | ||||
-rw-r--r-- | loadlib.c | 15 | ||||
-rw-r--r-- | lobject.c | 11 | ||||
-rw-r--r-- | lopcodes.c | 5 | ||||
-rw-r--r-- | loslib.c | 10 | ||||
-rw-r--r-- | lparser.c | 10 | ||||
-rw-r--r-- | lstate.c | 10 | ||||
-rw-r--r-- | lstring.c | 10 | ||||
-rw-r--r-- | lstrlib.c | 10 | ||||
-rw-r--r-- | ltable.c | 10 | ||||
-rw-r--r-- | ltablib.c | 10 | ||||
-rw-r--r-- | ltests.c | 10 | ||||
-rw-r--r-- | ltm.c | 10 | ||||
-rw-r--r-- | lua.c | 8 | ||||
-rw-r--r-- | lundump.c | 9 | ||||
-rw-r--r-- | lutf8lib.c | 10 | ||||
-rw-r--r-- | lvm.c | 10 | ||||
-rw-r--r-- | lzio.c | 10 |
35 files changed, 198 insertions, 145 deletions
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.240 2014/10/28 17:27:50 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.241 2014/10/31 17:41:51 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lapi_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <stdarg.h> | 13 | #include <stdarg.h> |
9 | #include <string.h> | 14 | #include <string.h> |
10 | 15 | ||
11 | #define lapi_c | ||
12 | #define LUA_CORE | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lapi.h" | 18 | #include "lapi.h" |
@@ -1,9 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.271 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.272 2014/10/29 16:11:17 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lauxlib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <errno.h> | 13 | #include <errno.h> |
9 | #include <stdarg.h> | 14 | #include <stdarg.h> |
@@ -16,9 +21,6 @@ | |||
16 | ** Any function declared here could be written as an application function. | 21 | ** Any function declared here could be written as an application function. |
17 | */ | 22 | */ |
18 | 23 | ||
19 | #define lauxlib_c | ||
20 | #define LUA_LIB | ||
21 | |||
22 | #include "lua.h" | 24 | #include "lua.h" |
23 | 25 | ||
24 | #include "lauxlib.h" | 26 | #include "lauxlib.h" |
@@ -1,9 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.304 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.305 2014/10/29 16:11:17 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lbaselib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
7 | 11 | ||
8 | 12 | ||
9 | #include <ctype.h> | 13 | #include <ctype.h> |
@@ -11,9 +15,6 @@ | |||
11 | #include <stdlib.h> | 15 | #include <stdlib.h> |
12 | #include <string.h> | 16 | #include <string.h> |
13 | 17 | ||
14 | #define lbaselib_c | ||
15 | #define LUA_LIB | ||
16 | |||
17 | #include "lua.h" | 18 | #include "lua.h" |
18 | 19 | ||
19 | #include "lauxlib.h" | 20 | #include "lauxlib.h" |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbitlib.c,v 1.26 2014/05/15 19:28:34 roberto Exp roberto $ | 2 | ** $Id: lbitlib.c,v 1.27 2014/10/01 11:54:56 roberto Exp roberto $ |
3 | ** Standard library for bitwise operations | 3 | ** Standard library for bitwise operations |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -7,6 +7,9 @@ | |||
7 | #define lbitlib_c | 7 | #define lbitlib_c |
8 | #define LUA_LIB | 8 | #define LUA_LIB |
9 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
10 | #include "lua.h" | 13 | #include "lua.h" |
11 | 14 | ||
12 | #include "lauxlib.h" | 15 | #include "lauxlib.h" |
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 2.93 2014/10/28 17:27:41 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.94 2014/10/30 18:53:28 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lcode_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <math.h> | 13 | #include <math.h> |
9 | #include <stdlib.h> | 14 | #include <stdlib.h> |
10 | 15 | ||
11 | #define lcode_c | ||
12 | #define LUA_CORE | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lcode.h" | 18 | #include "lcode.h" |
@@ -1,15 +1,16 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcorolib.c,v 1.7 2014/09/01 18:00:04 roberto Exp roberto $ | 2 | ** $Id: lcorolib.c,v 1.8 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Coroutine Library | 3 | ** Coroutine Library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lcorolib_c | ||
8 | #define LUA_LIB | ||
7 | 9 | ||
8 | #include <stdlib.h> | 10 | #include "lprefix.h" |
9 | 11 | ||
10 | 12 | ||
11 | #define lcorolib_c | 13 | #include <stdlib.h> |
12 | #define LUA_LIB | ||
13 | 14 | ||
14 | #include "lua.h" | 15 | #include "lua.h" |
15 | 16 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lctype.c,v 1.10 2011/06/24 12:25:33 roberto Exp roberto $ | 2 | ** $Id: lctype.c,v 1.11 2011/10/03 16:19:23 roberto Exp roberto $ |
3 | ** 'ctype' functions for Lua | 3 | ** 'ctype' functions for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -7,6 +7,9 @@ | |||
7 | #define lctype_c | 7 | #define lctype_c |
8 | #define LUA_CORE | 8 | #define LUA_CORE |
9 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
10 | #include "lctype.h" | 13 | #include "lctype.h" |
11 | 14 | ||
12 | #if !LUA_USE_CTYPE /* { */ | 15 | #if !LUA_USE_CTYPE /* { */ |
@@ -1,17 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.143 2014/10/17 11:07:26 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.144 2014/10/29 16:12:30 roberto Exp roberto $ |
3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ldblib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <stdio.h> | 13 | #include <stdio.h> |
9 | #include <stdlib.h> | 14 | #include <stdlib.h> |
10 | #include <string.h> | 15 | #include <string.h> |
11 | 16 | ||
12 | #define ldblib_c | ||
13 | #define LUA_LIB | ||
14 | |||
15 | #include "lua.h" | 17 | #include "lua.h" |
16 | 18 | ||
17 | #include "lauxlib.h" | 19 | #include "lauxlib.h" |
@@ -1,18 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.101 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.102 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ldebug_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <stdarg.h> | 13 | #include <stdarg.h> |
9 | #include <stddef.h> | 14 | #include <stddef.h> |
10 | #include <string.h> | 15 | #include <string.h> |
11 | 16 | ||
12 | |||
13 | #define ldebug_c | ||
14 | #define LUA_CORE | ||
15 | |||
16 | #include "lua.h" | 17 | #include "lua.h" |
17 | 18 | ||
18 | #include "lapi.h" | 19 | #include "lapi.h" |
@@ -1,17 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.130 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.131 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ldo_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <setjmp.h> | 13 | #include <setjmp.h> |
9 | #include <stdlib.h> | 14 | #include <stdlib.h> |
10 | #include <string.h> | 15 | #include <string.h> |
11 | 16 | ||
12 | #define ldo_c | ||
13 | #define LUA_CORE | ||
14 | |||
15 | #include "lua.h" | 17 | #include "lua.h" |
16 | 18 | ||
17 | #include "lapi.h" | 19 | #include "lapi.h" |
@@ -1,14 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 2.32 2014/06/18 18:35:43 roberto Exp roberto $ | 2 | ** $Id: ldump.c,v 2.33 2014/07/18 13:36:14 roberto Exp roberto $ |
3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <stddef.h> | ||
8 | |||
9 | #define ldump_c | 7 | #define ldump_c |
10 | #define LUA_CORE | 8 | #define LUA_CORE |
11 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <stddef.h> | ||
14 | |||
12 | #include "lua.h" | 15 | #include "lua.h" |
13 | 16 | ||
14 | #include "lobject.h" | 17 | #include "lobject.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 2.43 2014/06/19 18:27:20 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.44 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <stddef.h> | ||
9 | |||
10 | #define lfunc_c | 7 | #define lfunc_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <stddef.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "lfunc.h" | 17 | #include "lfunc.h" |
@@ -1,14 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.198 2014/10/29 15:02:53 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.199 2014/10/30 18:53:28 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <string.h> | ||
8 | |||
9 | #define lgc_c | 7 | #define lgc_c |
10 | #define LUA_CORE | 8 | #define LUA_CORE |
11 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
12 | #include "lua.h" | 15 | #include "lua.h" |
13 | 16 | ||
14 | #include "ldebug.h" | 17 | #include "ldebug.h" |
@@ -1,10 +1,16 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: linit.c,v 1.33 2014/02/06 17:32:33 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.34 2014/05/15 19:28:34 roberto Exp roberto $ |
3 | ** Initialization of libraries for lua.c and other clients | 3 | ** Initialization of libraries for lua.c and other clients |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | 7 | ||
8 | #define linit_c | ||
9 | #define LUA_LIB | ||
10 | |||
11 | #include "lprefix.h" | ||
12 | |||
13 | |||
8 | /* | 14 | /* |
9 | ** If you embed Lua in your program and need to open the standard | 15 | ** If you embed Lua in your program and need to open the standard |
10 | ** libraries, call luaL_openlibs in your program. If you need a | 16 | ** libraries, call luaL_openlibs in your program. If you need a |
@@ -12,10 +18,6 @@ | |||
12 | ** it to suit your needs. | 18 | ** it to suit your needs. |
13 | */ | 19 | */ |
14 | 20 | ||
15 | |||
16 | #define linit_c | ||
17 | #define LUA_LIB | ||
18 | |||
19 | #include "lua.h" | 21 | #include "lua.h" |
20 | 22 | ||
21 | #include "lualib.h" | 23 | #include "lualib.h" |
@@ -1,18 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.137 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.138 2014/10/31 15:54:06 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define liolib_c | ||
8 | #define LUA_LIB | ||
7 | 9 | ||
8 | /* | 10 | #include "lprefix.h" |
9 | ** This definition must come before the inclusion of 'stdio.h'; it | ||
10 | ** should not affect non-POSIX systems | ||
11 | */ | ||
12 | #if !defined(_FILE_OFFSET_BITS) | ||
13 | #define _LARGEFILE_SOURCE 1 | ||
14 | #define _FILE_OFFSET_BITS 64 | ||
15 | #endif | ||
16 | 11 | ||
17 | 12 | ||
18 | #include <ctype.h> | 13 | #include <ctype.h> |
@@ -22,9 +17,6 @@ | |||
22 | #include <stdlib.h> | 17 | #include <stdlib.h> |
23 | #include <string.h> | 18 | #include <string.h> |
24 | 19 | ||
25 | #define liolib_c | ||
26 | #define LUA_LIB | ||
27 | |||
28 | #include "lua.h" | 20 | #include "lua.h" |
29 | 21 | ||
30 | #include "lauxlib.h" | 22 | #include "lauxlib.h" |
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.86 2014/10/26 15:45:41 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.87 2014/10/30 18:53:28 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define llex_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <locale.h> | 13 | #include <locale.h> |
9 | #include <string.h> | 14 | #include <string.h> |
10 | 15 | ||
11 | #define llex_c | ||
12 | #define LUA_CORE | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lctype.h" | 18 | #include "lctype.h" |
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.110 2014/10/08 19:57:31 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.111 2014/10/24 11:42:06 roberto Exp roberto $ |
3 | ** Standard mathematical library | 3 | ** Standard mathematical library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lmathlib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <stdlib.h> | 13 | #include <stdlib.h> |
9 | #include <math.h> | 14 | #include <math.h> |
10 | 15 | ||
11 | #define lmathlib_c | ||
12 | #define LUA_LIB | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lauxlib.h" | 18 | #include "lauxlib.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.c,v 1.86 2014/07/15 21:26:50 roberto Exp roberto $ | 2 | ** $Id: lmem.c,v 1.87 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <stddef.h> | ||
9 | |||
10 | #define lmem_c | 7 | #define lmem_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <stddef.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "ldebug.h" | 17 | #include "ldebug.h" |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.118 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.119 2014/10/27 18:05:37 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -8,22 +8,15 @@ | |||
8 | ** systems. | 8 | ** systems. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #define loadlib_c | ||
12 | #define LUA_LIB | ||
11 | 13 | ||
12 | /* | 14 | #include "lprefix.h" |
13 | ** if needed, includes windows header before everything else | ||
14 | */ | ||
15 | #if defined(_WIN32) | ||
16 | #include <windows.h> | ||
17 | #endif | ||
18 | 15 | ||
19 | 16 | ||
20 | #include <stdlib.h> | 17 | #include <stdlib.h> |
21 | #include <string.h> | 18 | #include <string.h> |
22 | 19 | ||
23 | |||
24 | #define loadlib_c | ||
25 | #define LUA_LIB | ||
26 | |||
27 | #include "lua.h" | 20 | #include "lua.h" |
28 | 21 | ||
29 | #include "lauxlib.h" | 22 | #include "lauxlib.h" |
@@ -1,17 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.96 2014/10/27 19:21:56 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.97 2014/10/28 18:41:38 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lobject_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
7 | #include <stdarg.h> | 13 | #include <stdarg.h> |
8 | #include <stdio.h> | 14 | #include <stdio.h> |
9 | #include <stdlib.h> | 15 | #include <stdlib.h> |
10 | #include <string.h> | 16 | #include <string.h> |
11 | 17 | ||
12 | #define lobject_c | ||
13 | #define LUA_CORE | ||
14 | |||
15 | #include "lua.h" | 18 | #include "lua.h" |
16 | 19 | ||
17 | #include "lctype.h" | 20 | #include "lctype.h" |
@@ -1,13 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.c,v 1.52 2013/12/18 14:12:03 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.53 2013/12/30 20:47:58 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #define lopcodes_c | 7 | #define lopcodes_c |
9 | #define LUA_CORE | 8 | #define LUA_CORE |
10 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
11 | 12 | ||
12 | #include "lopcodes.h" | 13 | #include "lopcodes.h" |
13 | 14 | ||
@@ -1,9 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loslib.c,v 1.49 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.50 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Standard Operating System library | 3 | ** Standard Operating System library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define loslib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <errno.h> | 13 | #include <errno.h> |
9 | #include <locale.h> | 14 | #include <locale.h> |
@@ -11,9 +16,6 @@ | |||
11 | #include <string.h> | 16 | #include <string.h> |
12 | #include <time.h> | 17 | #include <time.h> |
13 | 18 | ||
14 | #define loslib_c | ||
15 | #define LUA_LIB | ||
16 | |||
17 | #include "lua.h" | 19 | #include "lua.h" |
18 | 20 | ||
19 | #include "lauxlib.h" | 21 | #include "lauxlib.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.143 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.144 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <string.h> | ||
9 | |||
10 | #define lparser_c | 7 | #define lparser_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "lcode.h" | 17 | #include "lcode.h" |
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.124 2014/07/24 14:00:16 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.125 2014/07/24 16:17:56 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lstate_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <stddef.h> | 13 | #include <stddef.h> |
9 | #include <string.h> | 14 | #include <string.h> |
10 | 15 | ||
11 | #define lstate_c | ||
12 | #define LUA_CORE | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lapi.h" | 18 | #include "lapi.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.c,v 2.43 2014/07/18 14:46:47 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 2.44 2014/07/21 16:02:10 roberto Exp roberto $ |
3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <string.h> | ||
9 | |||
10 | #define lstring_c | 7 | #define lstring_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "ldebug.h" | 17 | #include "ldebug.h" |
@@ -1,9 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.210 2014/10/30 18:53:28 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.211 2014/10/31 15:53:31 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lstrlib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <ctype.h> | 13 | #include <ctype.h> |
9 | #include <limits.h> | 14 | #include <limits.h> |
@@ -12,9 +17,6 @@ | |||
12 | #include <stdlib.h> | 17 | #include <stdlib.h> |
13 | #include <string.h> | 18 | #include <string.h> |
14 | 19 | ||
15 | #define lstrlib_c | ||
16 | #define LUA_LIB | ||
17 | |||
18 | #include "lua.h" | 20 | #include "lua.h" |
19 | 21 | ||
20 | #include "lauxlib.h" | 22 | #include "lauxlib.h" |
@@ -1,9 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.97 2014/10/24 11:42:06 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.98 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ltable_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | /* | 13 | /* |
9 | ** Implementation of tables (aka arrays, objects, or hash tables). | 14 | ** Implementation of tables (aka arrays, objects, or hash tables). |
@@ -23,9 +28,6 @@ | |||
23 | #include <string.h> | 28 | #include <string.h> |
24 | #include <limits.h> | 29 | #include <limits.h> |
25 | 30 | ||
26 | #define ltable_c | ||
27 | #define LUA_CORE | ||
28 | |||
29 | #include "lua.h" | 31 | #include "lua.h" |
30 | 32 | ||
31 | #include "ldebug.h" | 33 | #include "ldebug.h" |
@@ -1,16 +1,18 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltablib.c,v 1.77 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.78 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ltablib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <limits.h> | 13 | #include <limits.h> |
9 | #include <stddef.h> | 14 | #include <stddef.h> |
10 | 15 | ||
11 | #define ltablib_c | ||
12 | #define LUA_LIB | ||
13 | |||
14 | #include "lua.h" | 16 | #include "lua.h" |
15 | 17 | ||
16 | #include "lauxlib.h" | 18 | #include "lauxlib.h" |
@@ -1,18 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.190 2014/10/27 17:00:02 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.191 2014/10/30 18:53:28 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define ltests_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <limits.h> | 13 | #include <limits.h> |
9 | #include <stdio.h> | 14 | #include <stdio.h> |
10 | #include <stdlib.h> | 15 | #include <stdlib.h> |
11 | #include <string.h> | 16 | #include <string.h> |
12 | 17 | ||
13 | #define ltests_c | ||
14 | #define LUA_CORE | ||
15 | |||
16 | #include "lua.h" | 18 | #include "lua.h" |
17 | 19 | ||
18 | #include "lapi.h" | 20 | #include "lapi.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 2.28 2014/07/18 12:17:54 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.29 2014/07/18 13:36:14 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <string.h> | ||
9 | |||
10 | #define ltm_c | 7 | #define ltm_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "ldebug.h" | 17 | #include "ldebug.h" |
@@ -1,17 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.218 2014/10/29 16:11:17 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.219 2014/10/31 15:54:06 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lua_c | ||
8 | |||
9 | #include "lprefix.h" | ||
10 | |||
7 | 11 | ||
8 | #include <signal.h> | 12 | #include <signal.h> |
9 | #include <stdio.h> | 13 | #include <stdio.h> |
10 | #include <stdlib.h> | 14 | #include <stdlib.h> |
11 | #include <string.h> | 15 | #include <string.h> |
12 | 16 | ||
13 | #define lua_c | ||
14 | |||
15 | #include "lua.h" | 17 | #include "lua.h" |
16 | 18 | ||
17 | #include "lauxlib.h" | 19 | #include "lauxlib.h" |
@@ -1,14 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 2.39 2014/06/18 18:35:43 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 2.40 2014/06/19 18:27:20 roberto Exp roberto $ |
3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <string.h> | ||
8 | |||
9 | #define lundump_c | 7 | #define lundump_c |
10 | #define LUA_CORE | 8 | #define LUA_CORE |
11 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
12 | #include "lua.h" | 15 | #include "lua.h" |
13 | 16 | ||
14 | #include "ldebug.h" | 17 | #include "ldebug.h" |
@@ -1,17 +1,19 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lutf8lib.c,v 1.11 2014/10/01 11:52:33 roberto Exp roberto $ | 2 | ** $Id: lutf8lib.c,v 1.12 2014/10/15 14:31:10 roberto Exp roberto $ |
3 | ** Standard library for UTF-8 manipulation | 3 | ** Standard library for UTF-8 manipulation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lutf8lib_c | ||
8 | #define LUA_LIB | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <assert.h> | 13 | #include <assert.h> |
9 | #include <stdlib.h> | 14 | #include <stdlib.h> |
10 | #include <string.h> | 15 | #include <string.h> |
11 | 16 | ||
12 | #define lutf8lib_c | ||
13 | #define LUA_LIB | ||
14 | |||
15 | #include "lua.h" | 17 | #include "lua.h" |
16 | 18 | ||
17 | #include "lauxlib.h" | 19 | #include "lauxlib.h" |
@@ -1,18 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.225 2014/10/24 11:42:06 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.226 2014/10/25 11:50:46 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define lvm_c | ||
8 | #define LUA_CORE | ||
9 | |||
10 | #include "lprefix.h" | ||
11 | |||
7 | 12 | ||
8 | #include <limits.h> | 13 | #include <limits.h> |
9 | #include <stdio.h> | 14 | #include <stdio.h> |
10 | #include <stdlib.h> | 15 | #include <stdlib.h> |
11 | #include <string.h> | 16 | #include <string.h> |
12 | 17 | ||
13 | #define lvm_c | ||
14 | #define LUA_CORE | ||
15 | |||
16 | #include "lua.h" | 18 | #include "lua.h" |
17 | 19 | ||
18 | #include "ldebug.h" | 20 | #include "ldebug.h" |
@@ -1,15 +1,17 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lzio.c,v 1.34 2011/07/15 12:35:32 roberto Exp roberto $ | 2 | ** $Id: lzio.c,v 1.35 2012/05/14 13:34:18 roberto Exp roberto $ |
3 | ** Buffered streams | 3 | ** Buffered streams |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
6 | 6 | ||
7 | |||
8 | #include <string.h> | ||
9 | |||
10 | #define lzio_c | 7 | #define lzio_c |
11 | #define LUA_CORE | 8 | #define LUA_CORE |
12 | 9 | ||
10 | #include "lprefix.h" | ||
11 | |||
12 | |||
13 | #include <string.h> | ||
14 | |||
13 | #include "lua.h" | 15 | #include "lua.h" |
14 | 16 | ||
15 | #include "llimits.h" | 17 | #include "llimits.h" |