The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/module/lua/ltm.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2 ** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $
    3 ** Tag methods
    4 ** See Copyright Notice in lua.h
    5 */
    6 
    7 #ifndef ltm_h
    8 #define ltm_h
    9 
   10 
   11 #include "lobject.h"
   12 
   13 
   14 /*
   15 * WARNING: if you change the order of this enumeration,
   16 * grep "ORDER TM"
   17 */
   18 typedef enum {
   19   TM_INDEX,
   20   TM_NEWINDEX,
   21   TM_GC,
   22   TM_MODE,
   23   TM_LEN,
   24   TM_EQ,  /* last tag method with `fast' access */
   25   TM_ADD,
   26   TM_SUB,
   27   TM_MUL,
   28   TM_DIV,
   29   TM_MOD,
   30   TM_POW,
   31   TM_UNM,
   32   TM_LT,
   33   TM_LE,
   34   TM_CONCAT,
   35   TM_CALL,
   36   TM_N          /* number of elements in the enum */
   37 } TMS;
   38 
   39 
   40 
   41 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
   42   ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
   43 
   44 #define fasttm(l,et,e)  gfasttm(G(l), et, e)
   45 
   46 #define ttypename(x)    luaT_typenames_[(x) + 1]
   47 #define objtypename(x)  ttypename(ttypenv(x))
   48 
   49 LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS];
   50 
   51 
   52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
   53 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
   54                                                        TMS event);
   55 LUAI_FUNC void luaT_init (lua_State *L);
   56 
   57 #endif

Cache object: 1c18128875e155f79ca5b6bb1fe41b5d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.