From 01b00cc29261579600ce414b470c339510ac49d5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Nov 2000 16:50:47 -0200 Subject: better control over extensions of char/short to int --- lcode.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lcode.h') diff --git a/lcode.h b/lcode.h index c0f3392a..bb032267 100644 --- a/lcode.h +++ b/lcode.h @@ -1,5 +1,5 @@ /* -** $Id: lcode.h,v 1.15 2000/06/28 20:20:36 roberto Exp roberto $ +** $Id: lcode.h,v 1.16 2000/08/09 14:49:13 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -38,11 +38,13 @@ enum Mode {iO, iU, iS, iAB}; /* instruction format */ #define VD 100 /* flag for variable delta */ -extern const struct OpProperties { +typedef struct OpProperties { char mode; unsigned char push; unsigned char pop; -} luaK_opproperties[]; +} OpProperties; + +extern const OpProperties luaK_opproperties[]; void luaK_error (LexState *ls, const char *msg); -- cgit v1.2.3-55-g6feb