diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 15:11:52 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 15:11:52 -0200 |
| commit | 9deac27704eee47f858f6b41a386c3198bc49587 (patch) | |
| tree | 27f28b2953f4cd9e2ee60a2ae7067fadb21b8a00 /fallback.h | |
| parent | d531ccd082a73aa2fda585dfe5edf2749c7e7d13 (diff) | |
| download | lua-9deac27704eee47f858f6b41a386c3198bc49587.tar.gz lua-9deac27704eee47f858f6b41a386c3198bc49587.tar.bz2 lua-9deac27704eee47f858f6b41a386c3198bc49587.zip | |
fallback list moved from opcode.c to fallback.c
Diffstat (limited to 'fallback.h')
| -rw-r--r-- | fallback.h | 17 |
1 files changed, 16 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: fallback.h,v 1.1 1994/11/07 15:20:56 roberto Exp roberto $ | 2 | ** $Id: fallback.h,v 1.2 1994/11/08 19:56:39 roberto Exp roberto $ |
| 3 | */ | 3 | */ |
| 4 | 4 | ||
| 5 | #ifndef fallback_h | 5 | #ifndef fallback_h |
| @@ -7,6 +7,21 @@ | |||
| 7 | 7 | ||
| 8 | #include "opcode.h" | 8 | #include "opcode.h" |
| 9 | 9 | ||
| 10 | extern struct FB { | ||
| 11 | char *kind; | ||
| 12 | Object function; | ||
| 13 | } luaI_fallBacks[]; | ||
| 14 | |||
| 15 | #define FB_ERROR 0 | ||
| 16 | #define FB_INDEX 1 | ||
| 17 | #define FB_GETTABLE 2 | ||
| 18 | #define FB_ARITH 3 | ||
| 19 | #define FB_ORDER 4 | ||
| 20 | #define FB_CONCAT 5 | ||
| 21 | #define FB_UNMINUS 6 | ||
| 22 | #define FB_SETTABLE 7 | ||
| 23 | |||
| 24 | void luaI_setfallback (void); | ||
| 10 | void luaI_errorFB (void); | 25 | void luaI_errorFB (void); |
| 11 | void luaI_indexFB (void); | 26 | void luaI_indexFB (void); |
| 12 | void luaI_gettableFB (void); | 27 | void luaI_gettableFB (void); |
