0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src/analyze.cpp

8216 lines
336 KiB

WIN32: Linking with the CRT at runtime. (#570) Disclaimer: Forgive me if my format sucks, I've never submitted a PR before! Fixes: #517 I added a few things to allow zig to link with the CRT properly both statically and dynamically. In Visual Studio 2017, Microsoft changed how the c-runtime is factored again. With this change, they also added a COM interface to allow you to query the respective Visual Studio instance for two of them. This does that and also falls back on a registry query for 2015 support. If you're using a Visual Studio instance older than 2015, you'll have to use the existing options available with the zig compiler. Changes are listed below along with a general description of the changes. all_types.cpp: The separate variables for msvc/kern32 have been removed and all win32 libc directory paths have been combined into a ZigList since we're querying more than two directories and differentiating one from another doesn't matter to lld. analyze.cpp: The existing functions were extended to support querying libc libs & libc headers at runtime. codegen.cpp/hpp: Microsoft uses the new 'Universal C Runtime' name now. Doesn't matter from a functionality standpoint. I left the compiler switches as is to not introduce any breaking changes. link.cpp: We're linking 4 libs and generating another in order to support the UCRT. Dynamic: msvcrt/d, vcruntime/d, ucrt/d, legacy_stdio_definitions.lib Static: libcmt/d, libvcruntime/d libucrt/d, legacy_stdio_definitions.lib main.cpp: Update function call names. os.cpp/hpp: COM/Registry interface for querying Windows UCRT/SDK. Sources: [Windows CRT](https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features) [VS 2015 Breaking Changes](https://msdn.microsoft.com/en-us/library/bb531344.aspx)
2017-11-01 14:33:14 -05:00
2015-11-30 09:14:58 -07:00
2016-09-30 02:21:21 -04:00
2016-09-30 02:21:21 -04:00
2015-11-30 09:14:58 -07:00
2016-09-30 02:21:21 -04:00
2015-11-30 22:53:37 -07:00
2016-09-30 02:21:21 -04:00
2015-11-30 09:14:58 -07:00
2015-12-08 15:31:43 -07:00
2018-09-05 18:34:33 -04:00
2019-07-23 18:54:45 -04:00
2015-12-08 14:15:34 -07:00
2015-12-07 08:29:19 -07:00
2016-12-05 18:43:16 -05:00
2016-12-06 21:26:17 -05:00
2016-12-05 18:43:16 -05:00
2017-04-10 20:02:39 -04:00
2016-01-03 19:38:36 -07:00
2019-07-21 16:21:16 -04:00
2019-07-21 16:21:16 -04:00
2016-05-07 18:45:28 -07:00
2019-07-21 16:21:16 -04:00
2019-07-21 16:21:16 -04:00
2019-07-21 16:21:16 -04:00
breaking API changes to all readInt/writeInt functions & more * add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-12 20:19:46 -05:00
2015-12-01 14:41:03 -07:00
2015-12-01 14:41:03 -07:00
2015-12-01 14:41:03 -07:00
2018-01-31 22:48:40 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2015-12-07 08:29:19 -07:00
2015-12-07 08:29:19 -07:00
2017-05-23 00:26:12 -04:00
2015-12-07 08:29:19 -07:00
2016-01-18 04:34:26 -07:00
2016-01-06 01:28:58 -07:00
2016-01-18 04:34:26 -07:00
2016-02-07 01:53:38 -07:00
2016-01-06 01:28:58 -07:00
2016-01-06 01:28:58 -07:00
2016-01-06 01:28:58 -07:00
2017-04-13 03:07:58 -04:00
2017-04-13 03:07:58 -04:00
2018-09-05 18:34:33 -04:00
2018-02-20 00:31:52 -05:00
2018-02-20 00:31:52 -05:00
2019-08-15 14:05:12 -04:00
2019-08-15 14:05:12 -04:00
2018-08-25 03:07:37 -04:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2016-04-24 11:24:04 -07:00
breaking changes to zig build API and improved caching * in Zig build scripts, getOutputPath() is no longer a valid function to call, unless setOutputDir() was used, or within a custom make() function. Instead there is more convenient API to use which takes advantage of the caching system. Search this commit diff for `exe.run()` for an example. * Zig build by default enables caching. All build artifacts will go into zig-cache. If you want to access build artifacts in a convenient location, it is recommended to add an `install` step. Otherwise you can use the `run()` API mentioned above to execute programs directly from their location in the cache. Closes #330. `addSystemCommand` is available for programs not built with Zig build. * Please note that Zig does no cache evicting yet. You may have to manually delete zig-cache directories periodically to keep disk usage down. It's planned for this to be a simple Least Recently Used eviction system eventually. * `--output`, `--output-lib`, and `--output-h` are removed. Instead, use `--output-dir` which defaults to the current working directory. Or take advantage of `--cache on`, which will print the main output path to stdout, and the other artifacts will be in the same directory with predictable file names. `--disable-gen-h` is available when one wants to prevent .h file generation. * `@cImport` is always independently cached now. Closes #2015. It always writes the generated Zig code to disk which makes debug info and compile errors better. No more "TODO: remember C source location to display here" * Fix .d file parsing. (Fixes the MacOS CI failure) * Zig no longer creates "temporary files" other than inside a zig-cache directory. This breaks the CLI API that Godbolt uses. The suggested new invocation can be found in this commit diff, in the changes to `test/cli.zig`.
2019-03-08 22:53:35 -05:00
2017-02-03 11:39:24 -05:00
2017-02-03 11:39:24 -05:00
2017-02-03 11:39:24 -05:00
2016-04-24 11:24:04 -07:00
2017-02-03 11:39:24 -05:00
2016-04-24 11:24:04 -07:00
2019-08-22 12:07:56 -04:00
2016-12-04 23:52:43 -05:00
2019-08-22 12:07:56 -04:00
2019-08-22 18:24:15 -04:00
2016-11-04 15:36:30 -04:00
2016-12-05 05:12:05 -05:00
2017-12-19 01:19:49 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2018-09-05 18:34:33 -04:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2019-04-02 11:11:42 -04:00
2018-01-31 01:51:15 -05:00
2018-09-05 18:34:33 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-01-31 22:48:40 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2016-09-08 00:24:48 -04:00
2016-09-08 00:24:48 -04:00
2017-01-13 16:24:13 -05:00
2017-01-13 16:24:13 -05:00
2017-01-13 16:24:13 -05:00
2017-01-13 16:24:13 -05:00
2015-12-16 17:11:35 -07:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2015-12-16 17:11:35 -07:00
2016-01-10 18:56:50 -07:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-01 19:53:52 -04:00
2015-12-16 17:11:35 -07:00
2018-08-25 03:07:37 -04:00
2019-04-02 11:11:42 -04:00
2018-08-25 03:07:37 -04:00
2015-12-16 17:11:35 -07:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2016-04-24 11:24:04 -07:00
2019-05-10 18:16:28 +02:00
2019-05-10 18:16:28 +02:00
2018-08-25 03:07:37 -04:00
2017-04-10 20:02:39 -04:00
2018-08-25 03:07:37 -04:00
2019-05-11 21:27:52 +02:00
2019-05-11 21:27:52 +02:00
2019-05-09 18:40:00 +02:00
2018-08-25 03:33:25 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:33:25 -04:00
2018-08-25 03:07:37 -04:00
2019-08-22 18:24:15 -04:00
2017-04-10 20:02:39 -04:00
2019-08-22 18:24:15 -04:00
2017-04-10 20:02:39 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-12-20 12:36:15 -05:00
2019-08-22 20:41:33 +00:00
2019-08-22 20:41:33 +00:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:33:25 -04:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:07:37 -04:00
2017-11-14 23:53:53 -05:00
2019-08-25 21:16:03 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2018-08-25 03:07:37 -04:00
2018-08-25 03:33:25 -04:00
2018-08-25 03:33:25 -04:00
2018-08-25 03:07:37 -04:00
2016-12-18 16:56:50 -05:00
2018-09-05 18:34:33 -04:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2019-08-22 18:24:15 -04:00
2016-12-05 05:12:05 -05:00
2016-12-18 16:56:50 -05:00
2016-12-18 16:56:50 -05:00
2018-01-31 01:51:15 -05:00
2018-09-05 18:34:33 -04:00
2017-12-19 01:49:42 -05:00
2017-12-19 01:49:42 -05:00
2017-12-19 01:49:42 -05:00
2017-12-19 01:49:42 -05:00
2017-12-19 01:49:42 -05:00
2016-09-08 00:24:48 -04:00
2017-12-19 01:49:42 -05:00
2016-12-05 05:12:05 -05:00
2017-12-18 09:59:57 -05:00
2018-01-31 01:51:15 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2019-07-23 18:54:45 -04:00
2017-12-19 01:19:49 -05:00
2017-12-19 01:19:49 -05:00
2017-12-19 01:19:49 -05:00
2017-12-19 01:19:49 -05:00
2016-11-04 15:36:30 -04:00
2016-12-18 16:56:50 -05:00
2017-01-10 15:39:52 -05:00
2016-12-18 16:56:50 -05:00
2016-11-04 15:36:30 -04:00
2016-12-18 16:56:50 -05:00
2016-11-04 15:36:30 -04:00
2016-12-18 16:56:50 -05:00
2016-11-04 15:36:30 -04:00
2016-12-18 16:56:50 -05:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-12-18 16:56:50 -05:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2019-06-08 01:16:19 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2018-04-30 14:20:56 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2018-01-31 01:51:15 -05:00
2018-02-28 22:18:48 -05:00
2016-11-04 15:36:30 -04:00
2017-04-13 03:07:58 -04:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2017-04-13 03:07:58 -04:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2018-10-13 16:35:38 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2018-10-13 16:35:38 -04:00
2018-08-25 03:07:37 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2017-01-10 15:39:52 -05:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-10-29 19:14:48 -04:00
2017-12-19 01:19:49 -05:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2017-12-19 01:19:49 -05:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-11-04 15:36:30 -04:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2016-10-29 19:14:48 -04:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2016-10-29 19:14:48 -04:00
2015-11-30 09:14:58 -07:00
2015-11-30 09:14:58 -07:00
2017-02-23 16:52:13 -05:00
2016-12-05 18:43:16 -05:00
2019-02-28 15:54:09 -05:00
2016-12-05 18:43:16 -05:00
2016-12-05 18:43:16 -05:00
2018-09-05 18:34:33 -04:00
2016-12-05 18:43:16 -05:00
2016-01-11 01:15:17 -07:00
2017-11-14 23:53:53 -05:00
2018-09-05 18:34:33 -04:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2018-09-05 18:34:33 -04:00
2016-11-04 15:36:30 -04:00
2016-12-05 05:12:05 -05:00
2017-05-23 00:26:12 -04:00
2016-01-04 16:57:22 -07:00
2016-12-05 05:12:05 -05:00
2016-12-22 00:46:17 -05:00
2018-09-05 18:34:33 -04:00
2019-07-23 18:54:45 -04:00
2019-07-23 18:54:45 -04:00
2019-08-02 01:05:34 -04:00
2019-08-15 14:05:12 -04:00
2019-07-23 18:54:45 -04:00
2019-07-23 18:54:45 -04:00
2019-07-23 18:54:45 -04:00
2019-07-23 18:54:45 -04:00
2019-07-25 00:03:06 -04:00
2019-07-23 18:54:45 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-23 18:54:45 -04:00
2019-07-25 00:03:06 -04:00
2019-07-23 18:54:45 -04:00
2016-01-04 16:57:22 -07:00
2016-04-09 16:41:17 -07:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2018-01-31 01:51:15 -05:00
2016-10-06 01:09:01 -04:00
2016-01-04 16:57:22 -07:00
2018-09-05 18:34:33 -04:00
breaking changes to zig build API and improved caching * in Zig build scripts, getOutputPath() is no longer a valid function to call, unless setOutputDir() was used, or within a custom make() function. Instead there is more convenient API to use which takes advantage of the caching system. Search this commit diff for `exe.run()` for an example. * Zig build by default enables caching. All build artifacts will go into zig-cache. If you want to access build artifacts in a convenient location, it is recommended to add an `install` step. Otherwise you can use the `run()` API mentioned above to execute programs directly from their location in the cache. Closes #330. `addSystemCommand` is available for programs not built with Zig build. * Please note that Zig does no cache evicting yet. You may have to manually delete zig-cache directories periodically to keep disk usage down. It's planned for this to be a simple Least Recently Used eviction system eventually. * `--output`, `--output-lib`, and `--output-h` are removed. Instead, use `--output-dir` which defaults to the current working directory. Or take advantage of `--cache on`, which will print the main output path to stdout, and the other artifacts will be in the same directory with predictable file names. `--disable-gen-h` is available when one wants to prevent .h file generation. * `@cImport` is always independently cached now. Closes #2015. It always writes the generated Zig code to disk which makes debug info and compile errors better. No more "TODO: remember C source location to display here" * Fix .d file parsing. (Fixes the MacOS CI failure) * Zig no longer creates "temporary files" other than inside a zig-cache directory. This breaks the CLI API that Godbolt uses. The suggested new invocation can be found in this commit diff, in the changes to `test/cli.zig`.
2019-03-08 22:53:35 -05:00
2015-11-30 22:53:37 -07:00
2018-01-31 01:51:15 -05:00
2015-12-01 02:08:58 -07:00
2018-09-05 18:34:33 -04:00
2015-12-01 02:08:58 -07:00
2019-07-23 18:54:45 -04:00
2019-07-23 18:54:45 -04:00
2015-11-30 22:53:37 -07:00
2016-01-04 03:31:57 -07:00
2016-01-25 13:53:40 -07:00
2016-01-25 13:53:40 -07:00
2016-01-25 13:53:40 -07:00
2018-01-31 01:51:15 -05:00
2019-04-02 17:25:44 -04:00
2016-01-25 13:53:40 -07:00
2017-04-10 20:02:39 -04:00
2017-04-10 20:02:39 -04:00
2018-09-05 18:34:33 -04:00
2018-09-05 18:34:33 -04:00
2016-02-07 18:32:19 -07:00
2017-04-10 20:02:39 -04:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2017-04-10 20:02:39 -04:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2017-04-13 03:07:58 -04:00
2017-04-10 20:02:39 -04:00
2016-04-06 11:38:12 -07:00
2017-04-10 20:02:39 -04:00
2017-04-10 20:02:39 -04:00
2016-04-06 11:38:12 -07:00
2016-08-25 17:25:18 -07:00
2016-04-06 11:38:12 -07:00
2016-04-06 11:38:12 -07:00
2016-04-24 11:24:04 -07:00
2016-04-06 11:38:12 -07:00
2016-04-06 11:38:12 -07:00
2016-04-06 11:38:12 -07:00
2019-07-21 16:21:16 -04:00
2016-04-06 11:38:12 -07:00
2016-04-07 18:02:30 -07:00
2016-04-06 11:38:12 -07:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2019-08-22 18:24:15 -04:00
2019-08-22 12:07:56 -04:00
2019-08-22 12:07:56 -04:00
2019-08-22 12:07:56 -04:00
2019-08-22 12:07:56 -04:00
2019-08-22 12:07:56 -04:00
2019-08-22 18:24:15 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-15 14:05:12 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-09 17:34:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-15 14:05:12 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-15 14:05:12 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-11 19:53:10 -04:00
2019-07-25 00:03:06 -04:00
2019-07-25 00:03:06 -04:00
2019-08-25 21:16:03 -04:00
2018-08-25 03:07:37 -04:00
2019-08-25 21:16:03 -04:00
2019-08-25 21:16:03 -04:00
2017-04-13 03:07:58 -04:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2018-01-31 01:51:15 -05:00
2016-12-20 01:50:32 -05:00
2019-07-21 16:21:16 -04:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2016-12-20 01:50:32 -05:00
2018-09-05 18:34:33 -04:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-08-22 12:07:56 -04:00
2017-04-13 03:07:58 -04:00
2018-09-05 18:34:33 -04:00
2019-02-03 01:15:51 -08:00
2018-09-05 18:34:33 -04:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-07-21 16:21:16 -04:00
2017-05-16 10:19:16 -04:00
2018-01-31 01:51:15 -05:00
2017-04-10 20:02:39 -04:00
2017-04-10 20:02:39 -04:00
2018-01-31 01:51:15 -05:00
2017-04-10 20:02:39 -04:00
2017-04-10 20:02:39 -04:00
2018-07-07 00:25:32 -04:00
breaking API changes to all readInt/writeInt functions & more * add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-12 20:19:46 -05:00
2017-04-10 20:02:39 -04:00
2018-07-07 00:25:32 -04:00
breaking API changes to all readInt/writeInt functions & more * add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-12 20:19:46 -05:00
2017-02-26 23:50:04 -05:00
2019-07-21 16:21:16 -04:00
2018-06-05 11:30:01 +02:00
2018-01-31 01:51:15 -05:00
2019-07-21 16:21:16 -04:00
2017-12-18 09:59:57 -05:00
2019-07-21 16:21:16 -04:00
2019-03-02 14:31:04 -05:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-04-02 19:09:25 -04:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-04-02 11:11:42 -04:00
2019-04-01 19:53:52 -04:00
2019-04-01 19:53:52 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-06-04 09:05:33 +02:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-08-25 21:16:03 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 18:43:25 -04:00
2019-06-04 09:05:33 +02:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-06-04 09:05:33 +02:00
2019-04-02 11:11:42 -04:00
2019-04-02 11:11:42 -04:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-08-25 21:16:03 -04:00
2019-04-02 19:09:25 -04:00
2019-04-02 19:09:25 -04:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-06-04 09:05:33 +02:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-08-15 14:05:12 -04:00
2019-08-02 01:05:34 -04:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-08-02 01:05:34 -04:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-07-21 23:27:47 -04:00
2019-07-23 18:54:45 -04:00
2019-08-02 01:05:34 -04:00
2019-08-02 01:05:34 -04:00
2019-04-01 19:53:52 -04:00
2019-07-21 16:21:16 -04:00
2019-08-02 01:05:34 -04:00
2019-08-15 14:05:12 -04:00
2019-08-15 14:05:12 -04:00
2019-08-15 14:05:12 -04:00
2019-08-15 14:05:12 -04:00