aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 15:09:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 15:09:16 -0300
commitb5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17 (patch)
tree9cc4873a1a80cb02137ec54abd21ce0a858b19b7 /luaconf.h
parent7d57ea70bc975922485d589c8a6d8dedaa0fba02 (diff)
downloadlua-b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17.tar.gz
lua-b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17.tar.bz2
lua-b5b230d95cdf0b7dbe94ec1a5a8433f93ac2de17.zip
fewer #include's in luaconf.h
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/luaconf.h b/luaconf.h
index c7734a24..62665d0d 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.31 2005/03/08 13:27:36 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.32 2005/03/08 18:00:16 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -223,7 +223,6 @@ __inline int l_lrint (double flt)
223 223
224#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199900L) 224#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199900L)
225/* on machines compliant with C99, you can try `lrint' */ 225/* on machines compliant with C99, you can try `lrint' */
226#include <math.h>
227#define lua_number2int(i,d) ((i)=lrint(d)) 226#define lua_number2int(i,d) ((i)=lrint(d))
228 227
229#else 228#else
@@ -237,7 +236,6 @@ __inline int l_lrint (double flt)
237 236
238 237
239/* function to convert a lua_Number to a string */ 238/* function to convert a lua_Number to a string */
240#include <stdio.h>
241#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) 239#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
242/* maximum size of previous conversion */ 240/* maximum size of previous conversion */
243#define MAX_NUMBER2STR 32 /* 16 digits, sign, point and \0 (+ some extra) */ 241#define MAX_NUMBER2STR 32 /* 16 digits, sign, point and \0 (+ some extra) */
@@ -260,7 +258,6 @@ __inline int l_lrint (double flt)
260#define num_eq(a,b) ((a)==(b)) 258#define num_eq(a,b) ((a)==(b))
261#define num_lt(a,b) ((a)<(b)) 259#define num_lt(a,b) ((a)<(b))
262#define num_le(a,b) ((a)<=(b)) 260#define num_le(a,b) ((a)<=(b))
263#include <math.h>
264#define num_mod(a,b) ((a) - floor((a)/(b))*(b)) 261#define num_mod(a,b) ((a) - floor((a)/(b))*(b))
265#define num_pow(a,b) pow(a,b) 262#define num_pow(a,b) pow(a,b)
266 263
@@ -277,7 +274,6 @@ __inline int l_lrint (double flt)
277*/ 274*/
278#ifndef __cplusplus 275#ifndef __cplusplus
279/* default handling with long jumps */ 276/* default handling with long jumps */
280#include <setjmp.h>
281#define L_THROW(L,c) longjmp((c)->b, 1) 277#define L_THROW(L,c) longjmp((c)->b, 1)
282#define L_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } 278#define L_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
283#define l_jmpbuf jmp_buf 279#define l_jmpbuf jmp_buf