From 96f77142374da8a4a7d4e5e8afd559fbaf0430e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 30 Aug 2023 10:44:28 -0300 Subject: Field 'Proto.is_vararg' uses only one bit So that the other bits can be used for other purposes. --- lobject.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 79dc6b1c..0e4924f5 100644 --- a/lobject.h +++ b/lobject.h @@ -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' */ -- cgit v1.2.3-55-g6feb