aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/llimits.h b/llimits.h
index da14a37c..51dbe7af 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.26 2001/02/23 17:28:12 roberto Exp roberto $ 2** $Id: llimits.h,v 1.27 2001/02/23 20:28:56 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -33,31 +33,6 @@
33#endif 33#endif
34 34
35 35
36/* function to convert a lua_Number to a string */
37#ifndef NUMBER_FMT
38#define NUMBER_FMT l_s("%.16g") /* LUA_NUMBER */
39#endif
40#ifndef lua_number2str
41#define lua_number2str(s,n) sprintf((s), NUMBER_FMT, (n))
42#endif
43
44/* function to convert a string to a lua_Number */
45#ifndef lua_str2number
46#define lua_str2number(s,p) strtod((s), (p))
47#endif
48
49
50/* macro to control type of literal strings */
51#ifndef l_s
52#define l_s(x) x
53#endif
54
55/* macro to control type of literal chars */
56#ifndef l_c
57#define l_c(x) x
58#endif
59
60
61/* 36/*
62** the following types define integer types for values that may not 37** the following types define integer types for values that may not
63** fit in a `small int' (16 bits), but may waste space in a 38** fit in a `small int' (16 bits), but may waste space in a
@@ -81,12 +56,6 @@ typedef long ls_nstr;
81typedef unsigned char lu_byte; 56typedef unsigned char lu_byte;
82 57
83 58
84/* macro to `unsign' a character */
85#ifndef uchar
86#define uchar(c) ((unsigned char)(c))
87#endif
88
89
90#define MAX_SIZET ((size_t)(~(size_t)0)-2) 59#define MAX_SIZET ((size_t)(~(size_t)0)-2)
91 60
92 61