mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
3bfb7580c5
Redbean Lua Server Pages may now be stored in the zip as byte code. This can improve performance, since redbean currently doesn't cache byte code but it might be more useful for anyone wanting to create a closed source redbean. The .lua extension should be used for byte code files. Lua will tell them apart based on a magic number at the start of the file. This change also improves some Lua error reporting conditions. See #97
41 lines
733 B
C
41 lines
733 B
C
#ifndef COSMOPOLITAN_THIRD_PARTY_LUA_TMS_H_
|
|
#define COSMOPOLITAN_THIRD_PARTY_LUA_TMS_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
/*
|
|
* WARNING: if you change the order of this enumeration,
|
|
* grep "ORDER TM" and "ORDER OP"
|
|
*/
|
|
typedef enum {
|
|
TM_INDEX,
|
|
TM_NEWINDEX,
|
|
TM_GC,
|
|
TM_MODE,
|
|
TM_LEN,
|
|
TM_EQ, /* last tag method with fast access */
|
|
TM_ADD,
|
|
TM_SUB,
|
|
TM_MUL,
|
|
TM_MOD,
|
|
TM_POW,
|
|
TM_DIV,
|
|
TM_IDIV,
|
|
TM_BAND,
|
|
TM_BOR,
|
|
TM_BXOR,
|
|
TM_SHL,
|
|
TM_SHR,
|
|
TM_UNM,
|
|
TM_BNOT,
|
|
TM_LT,
|
|
TM_LE,
|
|
TM_CONCAT,
|
|
TM_CALL,
|
|
TM_CLOSE,
|
|
TM_N /* number of elements in the enum */
|
|
} TMS;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_LUA_TMS_H_ */
|