]> git.kaiwu.me - njs.git/commitdiff
Parser: shrink variable flags
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 3 Sep 2026 00:39:41 +0000 (17:39 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 10 Sep 2026 03:11:04 +0000 (20:11 -0700)
src/njs_variable.h

index 980782baee0ff73c1df0ed6b9a4d899dd867d369..d417cd377f8b5d562800cbd01e78a54b9f6dd21c 100644 (file)
@@ -21,11 +21,11 @@ typedef struct {
     uintptr_t             atom_id;
 
     njs_variable_type_t   type:8;    /* 3 bits */
-    njs_bool_t            argument;
-    njs_bool_t            arguments_object;
-    njs_bool_t            self;
-    njs_bool_t            init;
-    njs_bool_t            closure;
+    uint8_t               argument;
+    uint8_t               arguments_object;
+    uint8_t               self;
+    uint8_t               init;
+    uint8_t               closure;
 
     njs_parser_scope_t    *scope;
     njs_parser_scope_t    *original;