diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 09:51:05 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-18 09:51:05 -0300 |
| commit | b43300c14f562bcdc1050f2c05e52fac3f6c99b7 (patch) | |
| tree | b21fb2577e9f40340f22cbe44648a37f8d16f12f /luaconf.h | |
| parent | af70905246acfad225904b64d027e5b01c7b10eb (diff) | |
| download | lua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.tar.gz lua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.tar.bz2 lua-b43300c14f562bcdc1050f2c05e52fac3f6c99b7.zip | |
change in 'LUAI_DDEC' to allow variables to be static in 'onelua'
+ change in 'LUAMOD_API' as opening functions do not need to be global
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 16 |
1 files changed, 10 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.268 2018/04/02 13:58:33 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.269 2018/06/15 15:49:28 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 | */ |
| @@ -254,16 +254,20 @@ | |||
| 254 | #endif /* } */ | 254 | #endif /* } */ |
| 255 | 255 | ||
| 256 | 256 | ||
| 257 | /* more often than not the libs go together with the core */ | 257 | /* |
| 258 | ** More often than not the libs go together with the core; | ||
| 259 | ** Functions from the auxiliary library must be exported, | ||
| 260 | ** but opening functions do not. | ||
| 261 | */ | ||
| 258 | #define LUALIB_API LUA_API | 262 | #define LUALIB_API LUA_API |
| 259 | #define LUAMOD_API LUALIB_API | 263 | #define LUAMOD_API LUAI_FUNC |
| 260 | 264 | ||
| 261 | 265 | ||
| 262 | /* | 266 | /* |
| 263 | @@ LUAI_FUNC is a mark for all extern functions that are not to be | 267 | @@ LUAI_FUNC is a mark for all extern functions that are not to be |
| 264 | ** exported to outside modules. | 268 | ** exported to outside modules. |
| 265 | @@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables | 269 | @@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables, |
| 266 | ** that are not to be exported to outside modules (LUAI_DDEF for | 270 | ** none of which to be exported to outside modules (LUAI_DDEF for |
| 267 | ** definitions and LUAI_DDEC for declarations). | 271 | ** definitions and LUAI_DDEC for declarations). |
| 268 | ** CHANGE them if you need to mark them in some special way. Elf/gcc | 272 | ** CHANGE them if you need to mark them in some special way. Elf/gcc |
| 269 | ** (versions 3.2 and later) mark them as "hidden" to optimize access | 273 | ** (versions 3.2 and later) mark them as "hidden" to optimize access |
| @@ -280,7 +284,7 @@ | |||
| 280 | #define LUAI_FUNC extern | 284 | #define LUAI_FUNC extern |
| 281 | #endif /* } */ | 285 | #endif /* } */ |
| 282 | 286 | ||
| 283 | #define LUAI_DDEC LUAI_FUNC | 287 | #define LUAI_DDEC(dec) LUAI_FUNC dec |
| 284 | #define LUAI_DDEF /* empty */ | 288 | #define LUAI_DDEF /* empty */ |
| 285 | 289 | ||
| 286 | /* }================================================================== */ | 290 | /* }================================================================== */ |
