zig/lib/compiler
Parker Liu de62dc884e
translate-c: fix function prototype decalared inside a function
* If a function prototype is declarated inside a function, do not
  translate it to a top-level extern function declaration. Similar to
  extern local variable, just wrapped it into a block-local struct.

* Add a new extern_local_fn tag of aro_translate_c node for present
  extern local function declaration.

* When a function body has a C function prototype declaration, it adds
  an extern local function declaration. Subsequent function references
  will look for this function declaration.
2025-04-02 20:07:41 +00:00
..
aro std: Abi.default: only require an os tag 2025-03-09 09:44:11 +01:00
aro_translate_c translate-c: fix function prototype decalared inside a function 2025-04-02 20:07:41 +00:00
reduce std.zig.Ast: store lbrace and rbrace token in data of .error_set_decl 2025-03-07 22:22:01 +01:00
resinator Trick the meson build system into thinking zig rc is rc.exe 2025-03-21 18:07:16 -04:00
aro_translate_c.zig translate-c: fix function prototype decalared inside a function 2025-04-02 20:07:41 +00:00
build_runner.zig std.Build: implement addEmbedPath for adding C #embed search directories 2025-03-27 09:47:42 +01:00
libc.zig zig libc: allow non-native targets 2024-03-13 02:17:28 -04:00
objcopy.zig objcopy: check both global and local when remapping 2024-10-12 10:44:17 -07:00
reduce.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
std-docs.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
test_runner.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00