Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/lua/src/luaconf.h.dist
/* | /* | ||||
** $Id: luaconf.h,v 1.259 2016/12/22 13:08:50 roberto Exp $ | ** $Id: luaconf.h,v 1.259.1.1 2017/04/19 17:29:57 roberto Exp $ | ||||
** Configuration file for Lua | ** Configuration file for Lua | ||||
** See Copyright Notice in lua.h | ** See Copyright Notice in lua.h | ||||
*/ | */ | ||||
#ifndef luaconf_h | #ifndef luaconf_h | ||||
#define luaconf_h | #define luaconf_h | ||||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
#define LUA_INT_INT 1 | #define LUA_INT_INT 1 | ||||
#define LUA_INT_LONG 2 | #define LUA_INT_LONG 2 | ||||
#define LUA_INT_LONGLONG 3 | #define LUA_INT_LONGLONG 3 | ||||
/* predefined options for LUA_FLOAT_TYPE */ | /* predefined options for LUA_FLOAT_TYPE */ | ||||
#define LUA_FLOAT_FLOAT 1 | #define LUA_FLOAT_FLOAT 1 | ||||
#define LUA_FLOAT_DOUBLE 2 | #define LUA_FLOAT_DOUBLE 2 | ||||
#define LUA_FLOAT_LONGDOUBLE 3 | #define LUA_FLOAT_LONGDOUBLE 3 | ||||
#define LUA_FLOAT_INT64 4 | |||||
#if defined(LUA_32BITS) /* { */ | #if defined(LUA_32BITS) /* { */ | ||||
/* | /* | ||||
** 32-bit integers and 'float' | ** 32-bit integers and 'float' | ||||
*/ | */ | ||||
#if LUAI_BITSINT >= 32 /* use 'int' if big enough */ | #if LUAI_BITSINT >= 32 /* use 'int' if big enough */ | ||||
#define LUA_INT_TYPE LUA_INT_INT | #define LUA_INT_TYPE LUA_INT_INT | ||||
#else /* otherwise use 'long' */ | #else /* otherwise use 'long' */ | ||||
▲ Show 20 Lines • Show All 488 Lines • ▼ Show 20 Lines | |||||
@@ lua_strx2number converts an hexadecimal numeric string to a number. | @@ lua_strx2number converts an hexadecimal numeric string to a number. | ||||
** In C99, 'strtod' does that conversion. Otherwise, you can | ** In C99, 'strtod' does that conversion. Otherwise, you can | ||||
** leave 'lua_strx2number' undefined and Lua will provide its own | ** leave 'lua_strx2number' undefined and Lua will provide its own | ||||
** implementation. | ** implementation. | ||||
*/ | */ | ||||
#if !defined(LUA_USE_C89) | #if !defined(LUA_USE_C89) | ||||
#define lua_strx2number(s,p) lua_str2number(s,p) | #define lua_strx2number(s,p) lua_str2number(s,p) | ||||
#endif | #endif | ||||
/* | |||||
@@ lua_pointer2str converts a pointer to a readable string in a | |||||
** non-specified way. | |||||
*/ | |||||
#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) | |||||
/* | /* | ||||
@@ lua_number2strx converts a float to an hexadecimal numeric string. | @@ lua_number2strx converts a float to an hexadecimal numeric string. | ||||
** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | ||||
** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | ||||
** provide its own implementation. | ** provide its own implementation. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |