summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index bd5fbfc3..35da0a43 100644
--- a/lib.h
+++ b/lib.h
@@ -147,10 +147,13 @@ struct package {
typedef struct args *varg;
+#define FIXPARAM_BITS 7
+#define FIXPARAM_MAX ((1U << FIXPARAM_BITS) - 1)
+
struct func {
obj_common;
- unsigned fixparam : 7; /* total non-variadic parameters */
- unsigned optargs : 7; /* fixparam - optargs = required args */
+ unsigned fixparam : FIXPARAM_BITS; /* total non-variadic parameters */
+ unsigned optargs : FIXPARAM_BITS; /* fixparam - optargs = required args */
unsigned variadic : 1;
unsigned : 1;
unsigned functype : 16;