Explorar o código

+ added enums for the wasm symbol type and constnats for the bitflags

Nikolay Nikolov %!s(int64=3) %!d(string=hai) anos
pai
achega
8295173f86
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      compiler/wasmbase.pas

+ 18 - 0
compiler/wasmbase.pas

@@ -71,6 +71,24 @@ type
     WASM_COMDAT_INFO  = 7,
     WASM_COMDAT_INFO  = 7,
     WASM_SYMBOL_TABLE = 8);
     WASM_SYMBOL_TABLE = 8);
 
 
+  TWasmSymbolType   = (
+    SYMTAB_FUNCTION = 0,
+    SYMTAB_DATA     = 1,
+    SYMTAB_GLOBAL   = 2,
+    SYMTAB_SECTION  = 3,
+    SYMTAB_EVENT    = 4,
+    SYMTAB_TABLE    = 5);
+
+const
+  { symbol flags }
+  WASM_SYM_BINDING_WEAK      = $01;
+  WASM_SYM_BINDING_LOCAL     = $02;
+  WASM_SYM_VISIBILITY_HIDDEN = $04;
+  WASM_SYM_UNDEFINED         = $10;
+  WASM_SYM_EXPORTED          = $20;
+  WASM_SYM_EXPLICIT_NAME     = $40;
+  WASM_SYM_NO_STRIP          = $80;
+
 implementation
 implementation
 
 
 end.
 end.