mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-14 13:44:49 +08:00
d19754567d
* .h include only the strict minimum for their own parsing * this forces all files to include explicitment their needs and not count on far streched dependencies * this helps Makefile to rebuild only the minimum * according to this rule, most standalone .h are now gone * big app.h is gone * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway * all unrequired include were removed * split common/ into common/ (client+arm) and common_arm/ (os+bootloader) * bring zlib to common/ * bring stuff not really/not yet used in common back to armsrc/ or client/ * bring liblua into client/ * bring uart into client/ * move some portions of code around (dbprint, protocols,...) * rename unused files into *_disabled.[ch] to make it explicit * rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash * remove PrintAndLogDevice * move deprecated-hid-flasher from client to tools * Makefiles * treat deps in armsrc/ as in client/ * client: stop on warning (-Werror), same as for armsrc/ Tested on: * all standalone modes * Linux
57 lines
1.1 KiB
C
57 lines
1.1 KiB
C
/*
|
|
** $Id: ltm.h,v 2.11 2011/02/28 17:32:10 roberto Exp $
|
|
** Tag methods
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef ltm_h
|
|
#define ltm_h
|
|
|
|
|
|
#include "lobject.h"
|
|
|
|
|
|
/*
|
|
* WARNING: if you change the order of this enumeration,
|
|
* grep "ORDER TM"
|
|
*/
|
|
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_DIV,
|
|
TM_MOD,
|
|
TM_POW,
|
|
TM_UNM,
|
|
TM_LT,
|
|
TM_LE,
|
|
TM_CONCAT,
|
|
TM_CALL,
|
|
TM_N /* number of elements in the enum */
|
|
} TMS;
|
|
|
|
|
|
|
|
#define gfasttm(g,et,e) ((et) == NULL ? NULL : \
|
|
((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
|
|
|
|
#define fasttm(l,et,e) gfasttm(G(l), et, e)
|
|
|
|
#define ttypename(x) luaT_typenames_[(x) + 1]
|
|
#define objtypename(x) ttypename(ttypenv(x))
|
|
|
|
LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS];
|
|
|
|
|
|
LUAI_FUNC const TValue *luaT_gettm(Table *events, TMS event, TString *ename);
|
|
LUAI_FUNC const TValue *luaT_gettmbyobj(lua_State *L, const TValue *o,
|
|
TMS event);
|
|
LUAI_FUNC void luaT_init(lua_State *L);
|
|
|
|
#endif
|