From b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Mar 2005 15:09:16 -0300 Subject: fewer #include's in luaconf.h --- lapi.c | 3 ++- ldo.c | 3 ++- lobject.c | 3 ++- ltable.c | 3 ++- luaconf.h | 6 +----- lvm.c | 4 +++- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lapi.c b/lapi.c index 17868b92..23488256 100644 --- a/lapi.c +++ b/lapi.c @@ -1,11 +1,12 @@ /* -** $Id: lapi.c,v 2.27 2005/02/18 12:40:02 roberto Exp roberto $ +** $Id: lapi.c,v 2.28 2005/02/23 17:30:22 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ #include +#include #include #include diff --git a/ldo.c b/ldo.c index a96cc388..cf1bd65a 100644 --- a/ldo.c +++ b/ldo.c @@ -1,10 +1,11 @@ /* -** $Id: ldo.c,v 2.13 2004/12/03 20:35:33 roberto Exp roberto $ +** $Id: ldo.c,v 2.14 2005/02/18 12:40:02 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ +#include #include #include diff --git a/lobject.c b/lobject.c index 65e3153d..71607c34 100644 --- a/lobject.c +++ b/lobject.c @@ -1,11 +1,12 @@ /* -** $Id: lobject.c,v 2.7 2004/11/24 19:16:03 roberto Exp roberto $ +** $Id: lobject.c,v 2.8 2005/01/10 18:17:39 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ #include #include +#include #include #include diff --git a/ltable.c b/ltable.c index 361facc8..d9c43a7f 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.14 2005/01/05 18:20:51 roberto Exp roberto $ +** $Id: ltable.c,v 2.15 2005/01/10 18:17:39 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -18,6 +18,7 @@ ** Hence even when the load factor reaches 100%, performance remains good. */ +#include #include #define ltable_c diff --git a/luaconf.h b/luaconf.h index c7734a24..62665d0d 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.31 2005/03/08 13:27:36 roberto Exp roberto $ +** $Id: luaconf.h,v 1.32 2005/03/08 18:00:16 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -223,7 +223,6 @@ __inline int l_lrint (double flt) #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199900L) /* on machines compliant with C99, you can try `lrint' */ -#include #define lua_number2int(i,d) ((i)=lrint(d)) #else @@ -237,7 +236,6 @@ __inline int l_lrint (double flt) /* function to convert a lua_Number to a string */ -#include #define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) /* maximum size of previous conversion */ #define MAX_NUMBER2STR 32 /* 16 digits, sign, point and \0 (+ some extra) */ @@ -260,7 +258,6 @@ __inline int l_lrint (double flt) #define num_eq(a,b) ((a)==(b)) #define num_lt(a,b) ((a)<(b)) #define num_le(a,b) ((a)<=(b)) -#include #define num_mod(a,b) ((a) - floor((a)/(b))*(b)) #define num_pow(a,b) pow(a,b) @@ -277,7 +274,6 @@ __inline int l_lrint (double flt) */ #ifndef __cplusplus /* default handling with long jumps */ -#include #define L_THROW(L,c) longjmp((c)->b, 1) #define L_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } #define l_jmpbuf jmp_buf diff --git a/lvm.c b/lvm.c index 003e2a43..d2f91ff2 100644 --- a/lvm.c +++ b/lvm.c @@ -1,10 +1,12 @@ /* -** $Id: lvm.c,v 2.28 2005/03/07 18:27:34 roberto Exp roberto $ +** $Id: lvm.c,v 2.29 2005/03/08 18:00:16 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ +#include +#include #include #include -- cgit v1.2.3-55-g6feb