Field 'Proto.is_vararg' uses only one bit

So that the other bits can be used for other purposes.
This commit is contained in:
Roberto Ierusalimschy
2023-08-30 10:44:28 -03:00
parent 0554581605
commit 96f7714237
8 changed files with 20 additions and 13 deletions

View File

@@ -544,13 +544,20 @@ typedef struct AbsLineInfo {
int line;
} AbsLineInfo;
/*
** Flags in Prototypes
*/
#define PF_ISVARARG 1
/*
** Function Prototypes
*/
typedef struct Proto {
CommonHeader;
lu_byte numparams; /* number of fixed (named) parameters */
lu_byte is_vararg;
lu_byte flag;
lu_byte maxstacksize; /* number of registers needed by this function */
int sizeupvalues; /* size of 'upvalues' */
int sizek; /* size of 'k' */