From c787dccd9b5c3e55547a2c4bb598c0276de65034 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 Aug 1999 17:52:00 -0300 Subject: "const" !!! --- lobject.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 7c6a4959..91bf0cac 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.27 1999/03/04 21:17:26 roberto Exp roberto $ +** $Id: lobject.h,v 1.28 1999/03/16 16:43:27 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -178,19 +178,19 @@ typedef struct Hash { } Hash; -extern char *luaO_typenames[]; +extern const char *const luaO_typenames[]; #define luaO_typename(o) luaO_typenames[-ttype(o)] -extern TObject luaO_nilobject; +extern const TObject luaO_nilobject; #define luaO_equalObj(t1,t2) ((ttype(t1) != ttype(t2)) ? 0 \ : luaO_equalval(t1,t2)) -int luaO_equalval (TObject *t1, TObject *t2); +int luaO_equalval (const TObject *t1, const TObject *t2); int luaO_redimension (int oldsize); void luaO_insertlist (GCnode *root, GCnode *node); -double luaO_str2d (char *s); +double luaO_str2d (const char *s); #ifdef OLD_ANSI void luaO_memup (void *dest, void *src, int size); -- cgit v1.2.3-55-g6feb