aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c10
-rw-r--r--lauxlib.c10
-rw-r--r--lbaselib.c9
-rw-r--r--lbitlib.c5
-rw-r--r--lcode.c10
-rw-r--r--lcorolib.c9
-rw-r--r--lctype.c5
-rw-r--r--ldblib.c10
-rw-r--r--ldebug.c11
-rw-r--r--ldo.c10
-rw-r--r--ldump.c9
-rw-r--r--lfunc.c10
-rw-r--r--lgc.c9
-rw-r--r--linit.c12
-rw-r--r--liolib.c16
-rw-r--r--llex.c10
-rw-r--r--lmathlib.c10
-rw-r--r--lmem.c10
-rw-r--r--loadlib.c15
-rw-r--r--lobject.c11
-rw-r--r--lopcodes.c5
-rw-r--r--loslib.c10
-rw-r--r--lparser.c10
-rw-r--r--lstate.c10
-rw-r--r--lstring.c10
-rw-r--r--lstrlib.c10
-rw-r--r--ltable.c10
-rw-r--r--ltablib.c10
-rw-r--r--ltests.c10
-rw-r--r--ltm.c10
-rw-r--r--lua.c8
-rw-r--r--lundump.c9
-rw-r--r--lutf8lib.c10
-rw-r--r--lvm.c10
-rw-r--r--lzio.c10
35 files changed, 198 insertions, 145 deletions
diff --git a/lapi.c b/lapi.c
index 34a52390..d6f448c2 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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"
diff --git a/lauxlib.c b/lauxlib.c
index 74fd74f3..865006d8 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -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"
diff --git a/lbaselib.c b/lbaselib.c
index e28b467f..fd71a9fc 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -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"
diff --git a/lbitlib.c b/lbitlib.c
index be02892f..93688288 100644
--- a/lbitlib.c
+++ b/lbitlib.c
@@ -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"
diff --git a/lcode.c b/lcode.c
index 2e7af2f7..acf637c9 100644
--- a/lcode.c
+++ b/lcode.c
@@ -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"
diff --git a/lcorolib.c b/lcorolib.c
index a0df0e79..a46f33ee 100644
--- a/lcorolib.c
+++ b/lcorolib.c
@@ -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
diff --git a/lctype.c b/lctype.c
index 9e161601..367640c6 100644
--- a/lctype.c
+++ b/lctype.c
@@ -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 /* { */
diff --git a/ldblib.c b/ldblib.c
index cae32286..eb334100 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -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"
diff --git a/ldebug.c b/ldebug.c
index 26f8ef80..a8ec52a7 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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"
diff --git a/ldo.c b/ldo.c
index e0ad718c..e598ae96 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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"
diff --git a/ldump.c b/ldump.c
index a8c66183..a3da9a9f 100644
--- a/ldump.c
+++ b/ldump.c
@@ -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"
diff --git a/lfunc.c b/lfunc.c
index 0e5d2f52..4c10230e 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -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"
diff --git a/lgc.c b/lgc.c
index 30779328..a3db97b4 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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"
diff --git a/linit.c b/linit.c
index 96b55c71..96378037 100644
--- a/linit.c
+++ b/linit.c
@@ -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"
diff --git a/liolib.c b/liolib.c
index 0927d7c0..4e839006 100644
--- a/liolib.c
+++ b/liolib.c
@@ -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"
diff --git a/llex.c b/llex.c
index e737c169..31b4ce85 100644
--- a/llex.c
+++ b/llex.c
@@ -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"
diff --git a/lmathlib.c b/lmathlib.c
index d9f63c17..212dc696 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -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"
diff --git a/lmem.c b/lmem.c
index 83f1d2c8..80b30f58 100644
--- a/lmem.c
+++ b/lmem.c
@@ -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"
diff --git a/loadlib.c b/loadlib.c
index 898ac92e..79a7b86c 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -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"
diff --git a/lobject.c b/lobject.c
index 78f71179..bdcb8257 100644
--- a/lobject.c
+++ b/lobject.c
@@ -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"
diff --git a/lopcodes.c b/lopcodes.c
index cf2c4d3d..bfc3d5fc 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -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
diff --git a/loslib.c b/loslib.c
index 12d7c0d3..98809da3 100644
--- a/loslib.c
+++ b/loslib.c
@@ -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"
diff --git a/lparser.c b/lparser.c
index 603998da..56c73acc 100644
--- a/lparser.c
+++ b/lparser.c
@@ -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"
diff --git a/lstate.c b/lstate.c
index a63ae14d..75d914e4 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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"
diff --git a/lstring.c b/lstring.c
index 8e7516af..27b06dd3 100644
--- a/lstring.c
+++ b/lstring.c
@@ -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"
diff --git a/lstrlib.c b/lstrlib.c
index caac826d..99dbee06 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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"
diff --git a/ltable.c b/ltable.c
index 71259630..131a9aa2 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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"
diff --git a/ltablib.c b/ltablib.c
index 52595fab..53fdec80 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -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"
diff --git a/ltests.c b/ltests.c
index 68f0c4a9..19989e82 100644
--- a/ltests.c
+++ b/ltests.c
@@ -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"
diff --git a/ltm.c b/ltm.c
index 396b28ea..94c077d5 100644
--- a/ltm.c
+++ b/ltm.c
@@ -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"
diff --git a/lua.c b/lua.c
index 99aabfac..600e2063 100644
--- a/lua.c
+++ b/lua.c
@@ -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"
diff --git a/lundump.c b/lundump.c
index 2a9eac28..039e4a0f 100644
--- a/lundump.c
+++ b/lundump.c
@@ -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"
diff --git a/lutf8lib.c b/lutf8lib.c
index 7b783da7..4d89ee4b 100644
--- a/lutf8lib.c
+++ b/lutf8lib.c
@@ -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"
diff --git a/lvm.c b/lvm.c
index af4d9f0b..b554c8d8 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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"
diff --git a/lzio.c b/lzio.c
index 9cfa215c..63ade652 100644
--- a/lzio.c
+++ b/lzio.c
@@ -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"