diff options
| author | Evan Haas <evan@lagerdata.com> | 2021-07-07 00:11:02 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-07-19 12:56:23 +0300 |
| commit | 3e67ef5c9f539d63e93867c0928ad1fdf2658682 (patch) | |
| tree | 0e99cee6aa6b700a0b87a182f83acd0ca5a14edc /src/Compilation.zig | |
| parent | c9050565625bb7a43b8cc10b1103826ffccea69d (diff) | |
| download | zig-3e67ef5c9f539d63e93867c0928ad1fdf2658682.tar.gz zig-3e67ef5c9f539d63e93867c0928ad1fdf2658682.zip | |
translate-c: Handle underscore when used as an identifier
Use `@` syntax to escape `_` when used as an identifier.
Remove the stage1 astgen prohibition against assigning from `_`
Note: there a few stage1 bugs preventing `_` from being used as an identifier
for a local variable or function parameter; these will be fixed by stage2.
They are unlikely to arise in real C code since identifiers starting with
underscore are reserved for the implementation.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
