1997-09-17 03:25:59 +08:00
|
|
|
/*
|
1999-10-05 01:51:04 +08:00
|
|
|
** $Id: lstring.h,v 1.8 1999/08/16 20:52:00 roberto Exp roberto $
|
1997-09-17 03:25:59 +08:00
|
|
|
** String table (keep all strings handled by Lua)
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef lstring_h
|
|
|
|
#define lstring_h
|
|
|
|
|
|
|
|
|
|
|
|
#include "lobject.h"
|
|
|
|
|
1997-11-04 23:27:53 +08:00
|
|
|
|
1999-10-05 01:51:04 +08:00
|
|
|
#define NUM_HASHSTR 31
|
|
|
|
#define NUM_HASHUDATA 31
|
|
|
|
#define NUM_HASHS (NUM_HASHSTR+NUM_HASHUDATA)
|
|
|
|
|
|
|
|
|
|
|
|
extern TaggedString luaS_EMPTY;
|
|
|
|
|
1997-11-04 23:27:53 +08:00
|
|
|
void luaS_init (void);
|
1997-09-17 03:25:59 +08:00
|
|
|
TaggedString *luaS_createudata (void *udata, int tag);
|
1999-10-05 01:51:04 +08:00
|
|
|
void luaS_freeall (void);
|
|
|
|
void luaS_free (TaggedString *ts);
|
1999-08-17 04:52:00 +08:00
|
|
|
TaggedString *luaS_newlstr (const char *str, long l);
|
|
|
|
TaggedString *luaS_new (const char *str);
|
|
|
|
TaggedString *luaS_newfixedstring (const char *str);
|
1999-10-05 01:51:04 +08:00
|
|
|
void luaS_rawsetglobal (TaggedString *ts, const TObject *newval);
|
1999-08-17 04:52:00 +08:00
|
|
|
int luaS_globaldefined (const char *name);
|
1997-12-02 04:31:25 +08:00
|
|
|
|
1997-09-17 03:25:59 +08:00
|
|
|
|
|
|
|
#endif
|