no more explicit support for 'luaall_c': unifying file can do

the work
This commit is contained in:
Roberto Ierusalimschy 2011-12-06 14:58:36 -02:00
parent e320b5b672
commit 138be5b843
2 changed files with 7 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/* /*
** $Id: llimits.h,v 1.93 2011/10/07 20:45:19 roberto Exp roberto $ ** $Id: llimits.h,v 1.94 2011/11/29 15:39:48 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions ** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -269,7 +269,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
#if (defined(ltable_c) || defined(luaall_c)) && !defined(luai_hashnum) #if defined(ltable_c) && !defined(luai_hashnum)
#include <float.h> #include <float.h>
#include <math.h> #include <math.h>

View File

@ -1,5 +1,5 @@
/* /*
** $Id: luaconf.h,v 1.168 2011/11/29 17:15:42 roberto Exp roberto $ ** $Id: luaconf.h,v 1.169 2011/11/30 12:35:05 roberto Exp roberto $
** Configuration file for Lua ** Configuration file for Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -174,13 +174,8 @@
** give a warning about it. To avoid these warnings, change to the ** give a warning about it. To avoid these warnings, change to the
** default definition. ** default definition.
*/ */
#if defined(luaall_c) /* { */ #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
#define LUAI_FUNC static defined(__ELF__) /* { */
#define LUAI_DDEC static
#define LUAI_DDEF static
#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
defined(__ELF__)
#define LUAI_FUNC __attribute__((visibility("hidden"))) extern #define LUAI_FUNC __attribute__((visibility("hidden"))) extern
#define LUAI_DDEC LUAI_FUNC #define LUAI_DDEC LUAI_FUNC
#define LUAI_DDEF /* empty */ #define LUAI_DDEF /* empty */
@ -214,7 +209,7 @@
** They are only used in libraries and the stand-alone program. (The #if ** They are only used in libraries and the stand-alone program. (The #if
** avoids including 'stdio.h' everywhere.) ** avoids including 'stdio.h' everywhere.)
*/ */
#if defined(LUA_LIB) || defined(lua_c) || defined(luaall_c) #if defined(LUA_LIB) || defined(lua_c)
#include <stdio.h> #include <stdio.h>
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) #define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
@ -423,7 +418,7 @@
*/ */
/* the following operations need the math library */ /* the following operations need the math library */
#if defined(lobject_c) || defined(lvm_c) || defined(luaall_c) #if defined(lobject_c) || defined(lvm_c)
#include <math.h> #include <math.h>
#define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b)) #define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b))
#define luai_numpow(L,a,b) (pow(a,b)) #define luai_numpow(L,a,b) (pow(a,b))