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

9319 lines
378 KiB

2019-11-23 12:07:39 -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
2019-08-26 12:43:36 -04:00
2015-12-08 14:15:34 -07:00
2015-12-07 08:29:19 -07:00
2019-12-09 21:34:40 +01: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
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
2019-11-24 02:14:21 -05: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
2019-11-25 15:04:29 -05:00
2019-11-11 17:50:41 -05:00
2019-12-06 14:12:01 -05:00
2015-12-01 14:41:03 -07:00
2015-12-01 14:41:03 -07:00
2019-11-11 17:50:41 -05: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
2019-11-25 15:04:29 -05:00
2015-12-07 08:29:19 -07:00
2015-12-07 08:29:19 -07: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
2017-04-13 03:07:58 -04:00
2017-04-13 03:07:58 -04:00
2018-09-05 18:34:33 -04:00
2019-12-23 21:52:06 +01:00
2019-12-23 21:52:06 +01:00
2019-12-23 21:52:06 +01:00
2019-08-15 14:05:12 -04:00
2019-12-05 16:55:32 -05: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
2019-12-23 21:52:06 +01:00
2016-02-07 18:32:19 -07:00
2016-02-07 18:32:19 -07:00
2019-12-23 21:52:06 +01: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-11-25 15:04:29 -05:00
2019-08-22 12:07:56 -04:00
2016-12-04 23:52:43 -05:00
2019-11-25 15:04:29 -05:00
2019-08-26 11:23:25 -04:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:29 -05:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:29 -05:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:29 -05:00
2019-08-29 12:43:56 -04:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-08-29 12:43:56 -04:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:29 -05:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:29 -05:00
2019-08-29 12:43:56 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:29 -05:00
2016-11-04 15:36:30 -04:00
2019-12-23 21:52:06 +01:00
2019-12-23 21:52:06 +01:00
2019-12-23 21:52:06 +01:00
2016-12-05 05:12:05 -05:00
2019-12-23 21:52:06 +01:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2019-11-25 15:04:29 -05:00
2017-12-18 09:59:57 -05:00
2019-11-25 15:04:29 -05:00
2017-12-18 09:59:57 -05:00
2019-11-25 15:04:29 -05:00
2017-12-18 09:59:57 -05:00
2019-11-25 15:04:29 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2019-11-25 15:04:29 -05:00
2017-12-18 09:59:57 -05:00
2017-12-18 09:59:57 -05:00
2019-12-23 21:52:06 +01:00
2018-09-05 18:34:33 -04:00
2018-01-31 01:51:15 -05:00
2019-12-09 21:34:40 +01: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
2019-12-23 21:52:06 +01: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
2019-08-26 22:38:45 -04:00
2019-08-26 22:38:45 -04:00
2019-08-26 22:38:45 -04: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
2019-08-26 12:43:36 -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-01 19:53:52 -04:00
2015-12-16 17:11:35 -07:00
2018-08-25 03:07:37 -04:00
2019-08-26 12:43:36 -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
2019-08-26 22:38:45 -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
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
2019-08-26 12:43:36 -04:00
2017-11-14 23:53:53 -05:00
2017-11-14 23:53:53 -05:00
2019-08-26 22:38:45 -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
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
2019-08-26 12:43:36 -04:00
2019-08-26 11:23:25 -04:00
2017-04-10 20:02:39 -04:00
2018-08-25 03:07:37 -04:00
2019-11-25 15:04:29 -05:00
2019-05-09 18:40:00 +02:00
2019-12-15 00:05:13 +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-26 12:43:36 -04:00
2019-08-22 18:24:15 -04:00
2019-11-11 17:50:41 -05:00
2019-12-08 22:44:41 -05:00
2019-11-11 17:50:41 -05:00
2019-12-05 16:55:32 -05:00
2019-11-11 17:50:41 -05:00
2019-11-11 17:50:41 -05:00
2019-11-11 17:50:41 -05:00
2019-12-08 22:44:41 -05:00
2019-11-11 17:50:41 -05:00
2019-11-25 15:04:29 -05:00
2019-11-11 17:50:41 -05:00
2019-12-08 22:44:41 -05:00
2019-11-11 17:50:41 -05:00
2019-12-08 11:40:17 -05: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
2019-08-26 12:43:36 -04:00
2018-08-25 03:07:37 -04:00
2018-12-20 12:36:15 -05:00
2019-11-11 17:50:41 -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
2019-08-26 12:43:36 -04:00
2019-08-26 11:23:25 -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
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
2019-11-25 15:04:29 -05:00
2017-11-14 23:53:53 -05:00
2019-11-25 15:04:29 -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
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
2018-01-31 01:51:15 -05:00
2019-11-20 11:46:04 +01:00
2017-12-19 01:49:42 -05:00
2019-11-20 11:46:04 +01:00
2017-12-19 01:49:42 -05:00
2019-11-20 11:46:04 +01: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
2016-12-05 05:12:05 -05:00
2017-12-18 09:59:57 -05:00
2019-12-23 21:52:06 +01: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-12-23 21:52:06 +01:00
2019-12-23 21:52:06 +01: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
2019-11-25 15:04:29 -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
2019-10-06 16:39:27 -04: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
2019-11-25 15:04:29 -05: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
2019-08-26 12:43:36 -04:00
2016-10-29 19:14:48 -04:00
2017-12-19 01:19:49 -05:00
2019-11-25 15:04:29 -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
2019-11-25 15:04:29 -05: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
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05: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
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-26 12:43:36 -04:00
2019-07-23 18:54:45 -04:00
2019-08-29 22:44:07 -04:00
2019-08-02 01:05:34 -04:00
2019-08-29 22:44:07 -04:00
2019-08-15 14:05:12 -04:00
std lib networking improvements, especially non-blocking I/O * delete the std/event/net directory * `std.event.Loop.waitUntilFdReadable` and related functions no longer have possibility of failure. On Linux, they fall back to poll() and then fall back to sleep(). * add some missing `noasync` decorations in `std.event.Loop` * redo the `std.net.Server` API. it's quite nice now, but shutdown does not work cleanly. There is a race condition with close() that I am actively working on. * move `std.io.OutStream` to its own file to match `std.io.InStream`. I started working on making `write` integrated with evented I/O, but it got tricky so I backed off and filed #3557. However I did integrate `std.os.writev` and `std.os.pwritev` with evented I/O. * add `std.Target.stack_align` * move networking tests to `lib/std/net/test.zig` * add `std.net.tcpConnectToHost` and `std.net.tcpConnectToAddress`. * rename `error.UnknownName` to `error.UnknownHostName` within the context of DNS resolution. * add `std.os.readv`, which is integrated with evented I/O. * `std.os.preadv`, is now integrated with evented I/O. * `std.os.accept4` now asserts that ENOTSOCK and EOPNOTSUPP never occur (misuse of API), instead of returning errors. * `std.os.connect` is now integrated with evented I/O. `std.os.connect_async` is gone. Just use `std.os.connect`. * fix false positive dependency loop regarding async function frames * add more compile notes to help when dependency loops occur in determining whether a function is async. * ir: change an assert to ir_assert to make it easier to find workarounds for when such an assert is triggered. In this case it was trying to parse an IPv4 address at comptime.
2019-10-29 22:59:30 -04:00
2019-08-29 22:44:07 -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-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
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-08-29 12:43:56 -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
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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
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
2019-11-25 15:04:29 -05:00
2016-12-05 05:12:05 -05:00
2016-12-05 05:12:05 -05:00
2019-11-25 15:04:29 -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-11-25 15:04:29 -05:00
2019-11-11 17:50:41 -05:00
2019-08-22 18:24:15 -04:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-07-25 00:03:06 -04:00
2019-08-26 12:43:36 -04:00
2019-07-25 00:03:06 -04:00
2019-08-26 12:43:36 -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-08-15 14:05:12 -04:00
2019-07-25 00:03:06 -04:00
2019-11-25 15:04:39 -05: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-29 12:43:56 -04:00
2019-07-25 00:03:06 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-07-25 00:03:06 -04:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05: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-10-30 00:40:17 -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-11-25 15:04:39 -05:00
2019-07-25 00:03:06 -04:00
2019-11-25 15:04:39 -05: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-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
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:39 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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-11-25 15:04:29 -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
2019-11-25 15:04:29 -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
2019-11-25 15:04:29 -05:00
2018-09-05 18:34:33 -04:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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-11-25 15:04:29 -05:00
2019-02-03 01:15:51 -08:00
2019-02-03 01:15:51 -08:00
2019-11-25 15:04:29 -05: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-11-25 15:04:29 -05:00
2019-02-03 01:15:51 -08:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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
2019-11-14 03:26:33 -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
2019-11-11 17:50:41 -05:00
2019-11-11 17:50:41 -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-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05:00
2019-12-05 16:55:32 -05:00
2019-07-21 16:21:16 -04:00
std lib networking improvements, especially non-blocking I/O * delete the std/event/net directory * `std.event.Loop.waitUntilFdReadable` and related functions no longer have possibility of failure. On Linux, they fall back to poll() and then fall back to sleep(). * add some missing `noasync` decorations in `std.event.Loop` * redo the `std.net.Server` API. it's quite nice now, but shutdown does not work cleanly. There is a race condition with close() that I am actively working on. * move `std.io.OutStream` to its own file to match `std.io.InStream`. I started working on making `write` integrated with evented I/O, but it got tricky so I backed off and filed #3557. However I did integrate `std.os.writev` and `std.os.pwritev` with evented I/O. * add `std.Target.stack_align` * move networking tests to `lib/std/net/test.zig` * add `std.net.tcpConnectToHost` and `std.net.tcpConnectToAddress`. * rename `error.UnknownName` to `error.UnknownHostName` within the context of DNS resolution. * add `std.os.readv`, which is integrated with evented I/O. * `std.os.preadv`, is now integrated with evented I/O. * `std.os.accept4` now asserts that ENOTSOCK and EOPNOTSUPP never occur (misuse of API), instead of returning errors. * `std.os.connect` is now integrated with evented I/O. `std.os.connect_async` is gone. Just use `std.os.connect`. * fix false positive dependency loop regarding async function frames * add more compile notes to help when dependency loops occur in determining whether a function is async. * ir: change an assert to ir_assert to make it easier to find workarounds for when such an assert is triggered. In this case it was trying to parse an IPv4 address at comptime.
2019-10-29 22:59:30 -04:00
2019-11-25 15:04:29 -05:00
2019-11-25 15:04:29 -05: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-12-08 11:40:17 -05:00
2019-12-08 11:40:17 -05: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-11-11 17:50:41 -05: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-08-25 21:16:03 -04:00
2019-08-24 01:54:44 -06:00
2019-08-24 01:54:44 -06: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-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
2019-11-25 15:04:39 -05:00