zig/src
Andrew Kelley 0ad1239522 rework enums and unions and their relationship to each other
* @enumTagName renamed to @tagName and it works on enums and
   union-enums
 * Remove the EnumTag type. Now there is only enum and union,
   and the tag type of a union is always an enum.
 * unions support specifying the tag enum type, and they support
   inferring an enum tag type.
 * Enums no longer support field types but they do support
   setting the tag values. Likewise union-enums when inferring
   an enum tag type support setting the tag values.
 * It is now an error for enums and unions to have 0 fields.
 * switch statements support union-enums

closes #618
2017-12-03 20:43:56 -05:00
..
all_types.hpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
analyze.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
analyze.hpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
ast_render.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
ast_render.hpp rewrite parseh to use AST instead of direct types 2017-09-02 04:11:23 -04:00
bigfloat.cpp depend on embedded SoftFloat-3d instead of __float128 2017-09-14 01:46:47 -04:00
bigfloat.hpp depend on embedded SoftFloat-3d instead of __float128 2017-09-14 01:46:47 -04:00
bigint.cpp ability to set tag values of enums 2017-12-02 22:32:39 -05:00
bigint.hpp ability to set tag values of enums 2017-12-02 22:32:39 -05:00
buffer.cpp
buffer.hpp fix up msvc stuff to make it work on linux and macos too 2017-09-13 02:40:02 -04:00
c_tokenizer.cpp translate-c: detect macros referencing field lookup 2017-11-28 02:58:51 -05:00
c_tokenizer.hpp Added support for exporting of C field expressions 2017-11-27 11:23:14 -06:00
codegen.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
codegen.hpp rename "parsec" to "translate-c" 2017-11-24 14:56:05 -05:00
config.h.in remove CXX ABI workaround 2017-10-23 22:37:59 -04:00
errmsg.cpp better output when @cImport generates invalid zig 2017-10-26 00:32:30 -04:00
errmsg.hpp
error.cpp fix build broken by previous commit 2017-11-29 23:09:35 -05:00
error.hpp fix build broken by previous commit 2017-11-29 23:09:35 -05:00
hash_map.hpp
ir_print.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
ir_print.hpp
ir.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
ir.hpp rewrite parseh to use AST instead of direct types 2017-09-02 04:11:23 -04:00
link.cpp Fixed duplicate decl detection for typedefs/enums 2017-11-13 16:37:46 -06:00
link.hpp
list.hpp
main.cpp rename "parsec" to "translate-c" 2017-11-24 14:56:05 -05:00
os.cpp windows: use the same libc search within a compilation unit 2017-11-01 23:08:34 -04:00
os.hpp windows: use the same libc search within a compilation unit 2017-11-01 23:08:34 -04:00
parser.cpp rework enums and unions and their relationship to each other 2017-12-03 20:43:56 -05:00
parser.hpp fix up msvc stuff to make it work on linux and macos too 2017-09-13 02:40:02 -04:00
range_set.cpp
range_set.hpp
softfloat.hpp depend on embedded SoftFloat-3d instead of __float128 2017-09-14 01:46:47 -04:00
target.cpp Add emit command-line option (#580) 2017-11-03 09:09:33 -04:00
target.hpp Add emit command-line option (#580) 2017-11-03 09:09:33 -04:00
tokenizer.cpp Improve invalid character error messages (#566) 2017-10-26 10:00:23 -04:00
tokenizer.hpp introduce align keyword 2017-08-29 07:51:34 -04:00
translate_c.cpp translate-c: only emit enum tag type if not c_int or c_uint 2017-12-01 00:37:15 -05:00
translate_c.hpp rename "parsec" to "translate-c" 2017-11-24 14:56:05 -05:00
util.cpp support linking against MSVC libc 2017-10-01 21:05:08 -04:00
util.hpp WIN32: Linking with the CRT at runtime. (#570) 2017-11-01 15:33:14 -04:00
windows_com.hpp WIN32: Linking with the CRT at runtime. (#570) 2017-11-01 15:33:14 -04:00
zig_llvm.cpp update to LLVM 5.0.1rc2 2017-12-01 13:44:28 -05:00
zig_llvm.hpp basic union support 2017-11-15 13:04:18 -05:00