zig/lib/compiler
Parker Liu 06fc600aec
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 23:56:07 +02:00
..
aro zig build fmt 2025-02-22 17:09:20 -08:00
aro_translate_c translate-c: fix function prototype decalared inside a function 2025-04-02 23:56:07 +02:00
reduce reduce: fix compile errors 2024-03-24 17:29:39 +01:00
resinator Trick the meson build system into thinking zig rc is rc.exe 2025-03-21 15:07:57 -07:00
aro_translate_c.zig translate-c: fix function prototype decalared inside a function 2025-04-02 23:56:07 +02:00
build_runner.zig Revert "Merge pull request #22898 from kristoff-it/deprecated-proposal" 2025-02-28 01:37:10 -08: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 Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
std-docs.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
test_runner.zig build: add spirv to test matrix 2025-02-24 19:12:38 +01:00