Browse Source

added include for 'lprefix.h', for stuff that must be added before

any other header file
pull/9/head
Roberto Ierusalimschy 10 years ago
parent
commit
28fdbcf393
  1. 10
      lapi.c
  2. 10
      lauxlib.c
  3. 9
      lbaselib.c
  4. 5
      lbitlib.c
  5. 10
      lcode.c
  6. 9
      lcorolib.c
  7. 5
      lctype.c
  8. 10
      ldblib.c
  9. 11
      ldebug.c
  10. 10
      ldo.c
  11. 9
      ldump.c
  12. 10
      lfunc.c
  13. 9
      lgc.c
  14. 12
      linit.c
  15. 16
      liolib.c
  16. 10
      llex.c
  17. 10
      lmathlib.c
  18. 10
      lmem.c
  19. 15
      loadlib.c
  20. 11
      lobject.c
  21. 5
      lopcodes.c
  22. 10
      loslib.c
  23. 10
      lparser.c
  24. 10
      lstate.c
  25. 10
      lstring.c
  26. 10
      lstrlib.c
  27. 10
      ltable.c
  28. 10
      ltablib.c
  29. 10
      ltests.c
  30. 10
      ltm.c
  31. 8
      lua.c
  32. 9
      lundump.c
  33. 10
      lutf8lib.c
  34. 10
      lvm.c
  35. 10
      lzio.c

10
lapi.c

@ -1,16 +1,18 @@
/*
** $Id: lapi.c,v 2.240 2014/10/28 17:27:50 roberto Exp roberto $
** $Id: lapi.c,v 2.241 2014/10/31 17:41:51 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
#define lapi_c
#define LUA_CORE
#include "lprefix.h"
#include <stdarg.h>
#include <string.h>
#define lapi_c
#define LUA_CORE
#include "lua.h"
#include "lapi.h"

10
lauxlib.c

@ -1,9 +1,14 @@
/*
** $Id: lauxlib.c,v 1.271 2014/10/25 11:50:46 roberto Exp roberto $
** $Id: lauxlib.c,v 1.272 2014/10/29 16:11:17 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
#define lauxlib_c
#define LUA_LIB
#include "lprefix.h"
#include <errno.h>
#include <stdarg.h>
@ -16,9 +21,6 @@
** Any function declared here could be written as an application function.
*/
#define lauxlib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

9
lbaselib.c

@ -1,9 +1,13 @@
/*
** $Id: lbaselib.c,v 1.304 2014/10/25 11:50:46 roberto Exp roberto $
** $Id: lbaselib.c,v 1.305 2014/10/29 16:11:17 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
#define lbaselib_c
#define LUA_LIB
#include "lprefix.h"
#include <ctype.h>
@ -11,9 +15,6 @@
#include <stdlib.h>
#include <string.h>
#define lbaselib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

5
lbitlib.c

@ -1,5 +1,5 @@
/*
** $Id: lbitlib.c,v 1.26 2014/05/15 19:28:34 roberto Exp roberto $
** $Id: lbitlib.c,v 1.27 2014/10/01 11:54:56 roberto Exp roberto $
** Standard library for bitwise operations
** See Copyright Notice in lua.h
*/
@ -7,6 +7,9 @@
#define lbitlib_c
#define LUA_LIB
#include "lprefix.h"
#include "lua.h"
#include "lauxlib.h"

10
lcode.c

@ -1,16 +1,18 @@
/*
** $Id: lcode.c,v 2.93 2014/10/28 17:27:41 roberto Exp roberto $
** $Id: lcode.c,v 2.94 2014/10/30 18:53:28 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
#define lcode_c
#define LUA_CORE
#include "lprefix.h"
#include <math.h>
#include <stdlib.h>
#define lcode_c
#define LUA_CORE
#include "lua.h"
#include "lcode.h"

9
lcorolib.c

@ -1,15 +1,16 @@
/*
** $Id: lcorolib.c,v 1.7 2014/09/01 18:00:04 roberto Exp roberto $
** $Id: lcorolib.c,v 1.8 2014/10/25 11:50:46 roberto Exp roberto $
** Coroutine Library
** See Copyright Notice in lua.h
*/
#define lcorolib_c
#define LUA_LIB
#include <stdlib.h>
#include "lprefix.h"
#define lcorolib_c
#define LUA_LIB
#include <stdlib.h>
#include "lua.h"

5
lctype.c

@ -1,5 +1,5 @@
/*
** $Id: lctype.c,v 1.10 2011/06/24 12:25:33 roberto Exp roberto $
** $Id: lctype.c,v 1.11 2011/10/03 16:19:23 roberto Exp roberto $
** 'ctype' functions for Lua
** See Copyright Notice in lua.h
*/
@ -7,6 +7,9 @@
#define lctype_c
#define LUA_CORE
#include "lprefix.h"
#include "lctype.h"
#if !LUA_USE_CTYPE /* { */

10
ldblib.c

@ -1,17 +1,19 @@
/*
** $Id: ldblib.c,v 1.143 2014/10/17 11:07:26 roberto Exp roberto $
** $Id: ldblib.c,v 1.144 2014/10/29 16:12:30 roberto Exp roberto $
** Interface from Lua to its debug API
** See Copyright Notice in lua.h
*/
#define ldblib_c
#define LUA_LIB
#include "lprefix.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ldblib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

11
ldebug.c

@ -1,18 +1,19 @@
/*
** $Id: ldebug.c,v 2.101 2014/10/17 16:28:21 roberto Exp roberto $
** $Id: ldebug.c,v 2.102 2014/10/25 11:50:46 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
#define ldebug_c
#define LUA_CORE
#include "lprefix.h"
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#define ldebug_c
#define LUA_CORE
#include "lua.h"
#include "lapi.h"

10
ldo.c

@ -1,17 +1,19 @@
/*
** $Id: ldo.c,v 2.130 2014/10/17 16:28:21 roberto Exp roberto $
** $Id: ldo.c,v 2.131 2014/10/25 11:50:46 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
#define ldo_c
#define LUA_CORE
#include "lprefix.h"
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#define ldo_c
#define LUA_CORE
#include "lua.h"
#include "lapi.h"

9
ldump.c

@ -1,14 +1,17 @@
/*
** $Id: ldump.c,v 2.32 2014/06/18 18:35:43 roberto Exp roberto $
** $Id: ldump.c,v 2.33 2014/07/18 13:36:14 roberto Exp roberto $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
#include <stddef.h>
#define ldump_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"

10
lfunc.c

@ -1,15 +1,17 @@
/*
** $Id: lfunc.c,v 2.43 2014/06/19 18:27:20 roberto Exp roberto $
** $Id: lfunc.c,v 2.44 2014/10/25 11:50:46 roberto Exp roberto $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
#include <stddef.h>
#define lfunc_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lfunc.h"

9
lgc.c

@ -1,14 +1,17 @@
/*
** $Id: lgc.c,v 2.198 2014/10/29 15:02:53 roberto Exp roberto $
** $Id: lgc.c,v 2.199 2014/10/30 18:53:28 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lgc_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"

12
linit.c

@ -1,10 +1,16 @@
/*
** $Id: linit.c,v 1.33 2014/02/06 17:32:33 roberto Exp roberto $
** $Id: linit.c,v 1.34 2014/05/15 19:28:34 roberto Exp roberto $
** Initialization of libraries for lua.c and other clients
** See Copyright Notice in lua.h
*/
#define linit_c
#define LUA_LIB
#include "lprefix.h"
/*
** If you embed Lua in your program and need to open the standard
** libraries, call luaL_openlibs in your program. If you need a
@ -12,10 +18,6 @@
** it to suit your needs.
*/
#define linit_c
#define LUA_LIB
#include "lua.h"
#include "lualib.h"

16
liolib.c

@ -1,18 +1,13 @@
/*
** $Id: liolib.c,v 2.137 2014/10/25 11:50:46 roberto Exp roberto $
** $Id: liolib.c,v 2.138 2014/10/31 15:54:06 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
#define liolib_c
#define LUA_LIB
/*
** This definition must come before the inclusion of 'stdio.h'; it
** should not affect non-POSIX systems
*/
#if !defined(_FILE_OFFSET_BITS)
#define _LARGEFILE_SOURCE 1
#define _FILE_OFFSET_BITS 64
#endif
#include "lprefix.h"
#include <ctype.h>
@ -22,9 +17,6 @@
#include <stdlib.h>
#include <string.h>
#define liolib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
llex.c

@ -1,16 +1,18 @@
/*
** $Id: llex.c,v 2.86 2014/10/26 15:45:41 roberto Exp roberto $
** $Id: llex.c,v 2.87 2014/10/30 18:53:28 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
#define llex_c
#define LUA_CORE
#include "lprefix.h"
#include <locale.h>
#include <string.h>
#define llex_c
#define LUA_CORE
#include "lua.h"
#include "lctype.h"

10
lmathlib.c

@ -1,16 +1,18 @@
/*
** $Id: lmathlib.c,v 1.110 2014/10/08 19:57:31 roberto Exp roberto $
** $Id: lmathlib.c,v 1.111 2014/10/24 11:42:06 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
#define lmathlib_c
#define LUA_LIB
#include "lprefix.h"
#include <stdlib.h>
#include <math.h>
#define lmathlib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
lmem.c

@ -1,15 +1,17 @@
/*
** $Id: lmem.c,v 1.86 2014/07/15 21:26:50 roberto Exp roberto $
** $Id: lmem.c,v 1.87 2014/10/25 11:50:46 roberto Exp roberto $
** Interface to Memory Manager
** See Copyright Notice in lua.h
*/
#include <stddef.h>
#define lmem_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "ldebug.h"

15
loadlib.c

@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.118 2014/10/25 11:50:46 roberto Exp roberto $
** $Id: loadlib.c,v 1.119 2014/10/27 18:05:37 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@ -8,22 +8,15 @@
** systems.
*/
#define loadlib_c
#define LUA_LIB
/*
** if needed, includes windows header before everything else
*/
#if defined(_WIN32)
#include <windows.h>
#endif
#include "lprefix.h"
#include <stdlib.h>
#include <string.h>
#define loadlib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

11
lobject.c

@ -1,17 +1,20 @@
/*
** $Id: lobject.c,v 2.96 2014/10/27 19:21:56 roberto Exp roberto $
** $Id: lobject.c,v 2.97 2014/10/28 18:41:38 roberto Exp roberto $
** Some generic functions over Lua objects
** See Copyright Notice in lua.h
*/
#define lobject_c
#define LUA_CORE
#include "lprefix.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lobject_c
#define LUA_CORE
#include "lua.h"
#include "lctype.h"

5
lopcodes.c

@ -1,13 +1,14 @@
/*
** $Id: lopcodes.c,v 1.52 2013/12/18 14:12:03 roberto Exp roberto $
** $Id: lopcodes.c,v 1.53 2013/12/30 20:47:58 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
#define lopcodes_c
#define LUA_CORE
#include "lprefix.h"
#include "lopcodes.h"

10
loslib.c

@ -1,9 +1,14 @@
/*
** $Id: loslib.c,v 1.49 2014/10/17 16:28:21 roberto Exp roberto $
** $Id: loslib.c,v 1.50 2014/10/25 11:50:46 roberto Exp roberto $
** Standard Operating System library
** See Copyright Notice in lua.h
*/
#define loslib_c
#define LUA_LIB
#include "lprefix.h"
#include <errno.h>
#include <locale.h>
@ -11,9 +16,6 @@
#include <string.h>
#include <time.h>
#define loslib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
lparser.c

@ -1,15 +1,17 @@
/*
** $Id: lparser.c,v 2.143 2014/10/17 16:28:21 roberto Exp roberto $
** $Id: lparser.c,v 2.144 2014/10/25 11:50:46 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lparser_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "lcode.h"

10
lstate.c

@ -1,16 +1,18 @@
/*
** $Id: lstate.c,v 2.124 2014/07/24 14:00:16 roberto Exp roberto $
** $Id: lstate.c,v 2.125 2014/07/24 16:17:56 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
#define lstate_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include <string.h>
#define lstate_c
#define LUA_CORE
#include "lua.h"
#include "lapi.h"

10
lstring.c

@ -1,15 +1,17 @@
/*
** $Id: lstring.c,v 2.43 2014/07/18 14:46:47 roberto Exp roberto $
** $Id: lstring.c,v 2.44 2014/07/21 16:02:10 roberto Exp roberto $
** String table (keeps all strings handled by Lua)
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lstring_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"

10
lstrlib.c

@ -1,9 +1,14 @@
/*
** $Id: lstrlib.c,v 1.210 2014/10/30 18:53:28 roberto Exp roberto $
** $Id: lstrlib.c,v 1.211 2014/10/31 15:53:31 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
#define lstrlib_c
#define LUA_LIB
#include "lprefix.h"
#include <ctype.h>
#include <limits.h>
@ -12,9 +17,6 @@
#include <stdlib.h>
#include <string.h>
#define lstrlib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
ltable.c

@ -1,9 +1,14 @@
/*
** $Id: ltable.c,v 2.97 2014/10/24 11:42:06 roberto Exp roberto $
** $Id: ltable.c,v 2.98 2014/10/25 11:50:46 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
#define ltable_c
#define LUA_CORE
#include "lprefix.h"
/*
** Implementation of tables (aka arrays, objects, or hash tables).
@ -23,9 +28,6 @@
#include <string.h>
#include <limits.h>
#define ltable_c
#define LUA_CORE
#include "lua.h"
#include "ldebug.h"

10
ltablib.c

@ -1,16 +1,18 @@
/*
** $Id: ltablib.c,v 1.77 2014/10/17 16:28:21 roberto Exp roberto $
** $Id: ltablib.c,v 1.78 2014/10/25 11:50:46 roberto Exp roberto $
** Library for Table Manipulation
** See Copyright Notice in lua.h
*/
#define ltablib_c
#define LUA_LIB
#include "lprefix.h"
#include <limits.h>
#include <stddef.h>
#define ltablib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
ltests.c

@ -1,18 +1,20 @@
/*
** $Id: ltests.c,v 2.190 2014/10/27 17:00:02 roberto Exp roberto $
** $Id: ltests.c,v 2.191 2014/10/30 18:53:28 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
#define ltests_c
#define LUA_CORE
#include "lprefix.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ltests_c
#define LUA_CORE
#include "lua.h"
#include "lapi.h"

10
ltm.c

@ -1,15 +1,17 @@
/*
** $Id: ltm.c,v 2.28 2014/07/18 12:17:54 roberto Exp roberto $
** $Id: ltm.c,v 2.29 2014/07/18 13:36:14 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
#include <string.h>
#define ltm_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"

8
lua.c

@ -1,17 +1,19 @@
/*
** $Id: lua.c,v 1.218 2014/10/29 16:11:17 roberto Exp roberto $
** $Id: lua.c,v 1.219 2014/10/31 15:54:06 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
#define lua_c
#include "lprefix.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lua_c
#include "lua.h"
#include "lauxlib.h"

9
lundump.c

@ -1,14 +1,17 @@
/*
** $Id: lundump.c,v 2.39 2014/06/18 18:35:43 roberto Exp roberto $
** $Id: lundump.c,v 2.40 2014/06/19 18:27:20 roberto Exp roberto $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lundump_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"

10
lutf8lib.c

@ -1,17 +1,19 @@
/*
** $Id: lutf8lib.c,v 1.11 2014/10/01 11:52:33 roberto Exp roberto $
** $Id: lutf8lib.c,v 1.12 2014/10/15 14:31:10 roberto Exp roberto $
** Standard library for UTF-8 manipulation
** See Copyright Notice in lua.h
*/
#define lutf8lib_c
#define LUA_LIB
#include "lprefix.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#define lutf8lib_c
#define LUA_LIB
#include "lua.h"
#include "lauxlib.h"

10
lvm.c

@ -1,18 +1,20 @@
/*
** $Id: lvm.c,v 2.225 2014/10/24 11:42:06 roberto Exp roberto $
** $Id: lvm.c,v 2.226 2014/10/25 11:50:46 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#define lvm_c
#define LUA_CORE
#include "lprefix.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lvm_c
#define LUA_CORE
#include "lua.h"
#include "ldebug.h"

10
lzio.c

@ -1,15 +1,17 @@
/*
** $Id: lzio.c,v 1.34 2011/07/15 12:35:32 roberto Exp roberto $
** $Id: lzio.c,v 1.35 2012/05/14 13:34:18 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
#include <string.h>
#define lzio_c
#define LUA_CORE
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "llimits.h"

Loading…
Cancel
Save