diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-05 11:48:33 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-05 11:48:33 -0200 |
| commit | 3317f5c6d9f3c8370430bb8b412b7f7a65b797b2 (patch) | |
| tree | be94c4a4d7ab5179cb2a796a286008d9dab3053d | |
| parent | dbf911c516acc51770f99f362e59cd32b621b3b8 (diff) | |
| download | lua-3317f5c6d9f3c8370430bb8b412b7f7a65b797b2.tar.gz lua-3317f5c6d9f3c8370430bb8b412b7f7a65b797b2.tar.bz2 lua-3317f5c6d9f3c8370430bb8b412b7f7a65b797b2.zip | |
includes 'stddef.h' (as it uses NULL)
| -rw-r--r-- | linit.c | 10 | ||||
| -rw-r--r-- | lopcodes.c | 4 |
2 files changed, 9 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: linit.c,v 1.36 2014/12/06 20:42:58 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.37 2014/12/09 15:00:17 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 | */ |
| @@ -8,9 +8,6 @@ | |||
| 8 | #define linit_c | 8 | #define linit_c |
| 9 | #define LUA_LIB | 9 | #define LUA_LIB |
| 10 | 10 | ||
| 11 | #include "lprefix.h" | ||
| 12 | |||
| 13 | |||
| 14 | /* | 11 | /* |
| 15 | ** If you embed Lua in your program and need to open the standard | 12 | ** If you embed Lua in your program and need to open the standard |
| 16 | ** libraries, call luaL_openlibs in your program. If you need a | 13 | ** libraries, call luaL_openlibs in your program. If you need a |
| @@ -27,6 +24,11 @@ | |||
| 27 | ** lua_pop(L, 1); // remove _PRELOAD table | 24 | ** lua_pop(L, 1); // remove _PRELOAD table |
| 28 | */ | 25 | */ |
| 29 | 26 | ||
| 27 | #include "lprefix.h" | ||
| 28 | |||
| 29 | |||
| 30 | #include <stddef.h> | ||
| 31 | |||
| 30 | #include "lua.h" | 32 | #include "lua.h" |
| 31 | 33 | ||
| 32 | #include "lualib.h" | 34 | #include "lualib.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.c,v 1.53 2013/12/30 20:47:58 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.54 2014/11/02 19:19:04 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 | */ |
| @@ -10,6 +10,8 @@ | |||
| 10 | #include "lprefix.h" | 10 | #include "lprefix.h" |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | #include <stddef.h> | ||
| 14 | |||
| 13 | #include "lopcodes.h" | 15 | #include "lopcodes.h" |
| 14 | 16 | ||
| 15 | 17 | ||
