diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-08-16 17:52:00 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-08-16 17:52:00 -0300 |
| commit | c787dccd9b5c3e55547a2c4bb598c0276de65034 (patch) | |
| tree | c4cdf2f7319fee48e048472a2044119f541e8da2 /lobject.h | |
| parent | b44e35b773bcaa9891d80a117392911ab5f656e5 (diff) | |
| download | lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.gz lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.bz2 lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.zip | |
"const" !!!
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 1.27 1999/03/04 21:17:26 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.28 1999/03/16 16:43:27 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -178,19 +178,19 @@ typedef struct Hash { | |||
| 178 | } Hash; | 178 | } Hash; |
| 179 | 179 | ||
| 180 | 180 | ||
| 181 | extern char *luaO_typenames[]; | 181 | extern const char *const luaO_typenames[]; |
| 182 | 182 | ||
| 183 | #define luaO_typename(o) luaO_typenames[-ttype(o)] | 183 | #define luaO_typename(o) luaO_typenames[-ttype(o)] |
| 184 | 184 | ||
| 185 | 185 | ||
| 186 | extern TObject luaO_nilobject; | 186 | extern const TObject luaO_nilobject; |
| 187 | 187 | ||
| 188 | #define luaO_equalObj(t1,t2) ((ttype(t1) != ttype(t2)) ? 0 \ | 188 | #define luaO_equalObj(t1,t2) ((ttype(t1) != ttype(t2)) ? 0 \ |
| 189 | : luaO_equalval(t1,t2)) | 189 | : luaO_equalval(t1,t2)) |
| 190 | int luaO_equalval (TObject *t1, TObject *t2); | 190 | int luaO_equalval (const TObject *t1, const TObject *t2); |
| 191 | int luaO_redimension (int oldsize); | 191 | int luaO_redimension (int oldsize); |
| 192 | void luaO_insertlist (GCnode *root, GCnode *node); | 192 | void luaO_insertlist (GCnode *root, GCnode *node); |
| 193 | double luaO_str2d (char *s); | 193 | double luaO_str2d (const char *s); |
| 194 | 194 | ||
| 195 | #ifdef OLD_ANSI | 195 | #ifdef OLD_ANSI |
| 196 | void luaO_memup (void *dest, void *src, int size); | 196 | void luaO_memup (void *dest, void *src, int size); |
