Commit Graph
80 Commits
Author SHA1 Message Date
Meghan Denny b2b830e0e9 std.c: was missing calloc 2025-02-11 17:21:07 -08:00
Meghan Denny 9142482372 std.ArrayList: popOrNull() -> pop() [v2] (#22720) 2025-02-10 04:21:31 +00:00
Meghan Denny 933ba935c5 std.BoundedArray: popOrNull() -> pop() [v2] (#22723) 2025-02-09 11:46:15 +00:00
Meghan Denny a8af36ab10 std.ArrayHashMap: popOrNul() -> pop() 2025-02-07 17:52:19 -08:00
Meghan Denny 84d2c6dc72 std.MultiArrayList: popOrNull() -> pop() 2025-02-07 17:50:09 -08:00
Meghan Denny 3a4bb47fed std.meta.FieldType: use builtin and deprecate 2025-02-04 16:12:10 +00:00
Meghan Denny 7ac110ac25 meta: fix failing test case affecting master 2025-02-03 14:54:39 +01:00
Meghan Denny 7cef585f55 std.c: define more fields for darwin.AI 2025-01-30 01:44:45 +01:00
Meghan Denny 0bf57b7114 std: mkdir(2) mode uses mode_t 2025-01-29 14:57:07 +01:00
Meghan Denny 97ccf3504f std.c: was missing darwin.kevent64_s 2025-01-29 06:34:34 +01:00
Meghan Denny 0bbea1e848 std.c: was missing darwin.@"close$NOCANCEL" 2025-01-27 22:26:20 -08:00
Meghan Denny 1bfadc1381 std.c: was missing darwin.host_t 2025-01-27 21:40:23 -08:00
Meghan Denny 87b0e0821a std.c: was missing darwin.natural_t 2025-01-27 21:38:25 -08:00
Meghan Denny 92b20e4216 stf: do not call xcode-select or xcrun by absolute path in darwin sdk detection 2025-01-26 09:07:39 +01:00
Meghan Denny 5e4da1ff30 std: add arch bits for s390x-linux (#21342)
see #21402
2024-09-24 13:35:12 -07:00
Meghan Denny 7071d1b3c2 std: add native cpu detection for apple m3 (#21116)
* std.c.darwin: add missing CPUFAMILY fields

* std.zig.system.detectNativeCpuAndFeatures: add missing darwin fields

* add comment so the prong isnt lost and easily discoverable during next llvm upgrade
2024-08-19 11:49:02 -07:00
Meghan Denny db75a8781b std.meta.hasUniqueRepresentation: better support packed structs 2024-06-02 23:29:10 +00:00
Meghan Denny f03829a2da define std.crypto.sha2.Sha512224 (#19697)
* define std.crypto.sha2.Sha512224

* rename blunder

* add sha512-224 and sha512-256 tests

* fix Sha2x64 for variations that aren't a multiple of 64 bits
2024-04-19 14:50:46 +00:00
Meghan DennyandCarl Åstholm 1b4ea80654 do more robust import
Co-authored-by: Carl Åstholm <carl@astholm.se>
2024-04-18 11:24:42 -07:00
Meghan Denny 0820aa4a46 std: fix and add test for Build.dependencyFromBuildZig 2024-04-18 03:07:44 -07:00
Meghan Denny 4b1edad6e2 test: reenable some behavior vector tests 2024-03-15 16:42:10 +02:00
Meghan Denny 7d41a5cbcf cli: add --rpath and -R linker arg aliases 2024-03-05 10:39:55 -08:00
Meghan Denny 8a0429e885 test: add behavior coverage for global setter in function liveness 2024-01-26 15:26:37 +02:00
Meghan Denny 46d592e485 do not enforce function parameters to be marked comptime if only called at comptime 2024-01-19 15:31:18 -08:00
Meghan Denny 3d6c26525f sema: forbid asm output to const locals 2024-01-12 16:23:42 -08:00
Meghan Denny f49a8c5431 std: make c.versionCheck() a comptime-known function 2024-01-12 16:17:39 -08:00
Meghan Denny e19219fa0e std.ComptimeStringMap: allow getting kv index 2024-01-02 17:40:30 +02:00
Meghan Denny cbf2b1fea4 test: add coverage for index into comptime-known vector is comptime-known 2023-12-22 04:44:15 +02:00
Meghan Denny 6a12fd62c1 std: make std.unicode.initComptime() a comptime-known function
resolved a TODO :)
2023-12-08 15:59:17 +02:00
Meghan Denny f29302f915 build.zig: remove an unneeded 'else unreachable'
removed a TODO 🎊
2023-11-26 14:29:34 -05:00
Meghan Denny 2549de80b2 move Module.Decl.Index and Module.Namespace.Index to InternPool 2023-11-26 02:24:40 -05:00
Meghan Denny c6e02044da cmake: fix location of AstRlAnnotate.zig 2023-11-24 18:17:28 -08:00
Meghan Denny 121d995fcb frontend: move AstRlAnnotate to std.zig namespace 2023-11-24 17:09:08 -08:00
Meghan Denny 84d58aaa1f frontend: move BuiltinFn to std.zig namespace 2023-11-24 17:04:52 -08:00
Meghan Denny 2b2c13926d AstGen: remove calls to tracy 2023-11-24 17:04:03 -08:00
Meghan Denny 5af5d87ad2 std: math.absInt: update docs to use fabs for floats 2023-09-18 21:44:56 +03:00
Meghan 3d5751b579 std.meta: remove isTag (#15584)
This is not used by Zig itself anywhere and not using the function is more idiomatic.
2023-07-10 14:35:36 -04:00
Meghan cd0594e4a6 std: add mem.SplitIterator.peek() (#15670) 2023-07-10 14:34:39 -04:00
Meghan Denny 7322aa1183 std.Uri: allow getting the mutable result from (un)escape 2023-06-26 15:46:04 +03:00
Meghan 7077e90b3f std.meta: allow ArgsTuple to be used on functions with comptime parameters
any comptime parameter sets `.is_generic` to be true but in many cases these will still be discrete types available in `.params`
2023-05-20 11:21:06 +03:00
Meghan ac385bd8a6 std.fmt.parseIntSizeSuffix: add R and Q
https://www.nist.gov/pml/owm/metric-si-prefixes

https://www.npl.co.uk/si-prefix
2023-05-10 20:11:18 +03:00
Meghan 0972196f4d std.meta: remove tagName
not used by Zig itself anywhere
2023-05-10 16:00:14 +03:00
Meghan 66da64d77c std.http: fix name of Status field to better match RFC name (#15455)
.header_fields_too_large -> .request_header_fields_too_large
2023-04-26 14:02:55 -04:00
Meghan 1704971666 std: make builtin.Type.{Int,Float}.bits a u16 instead of comptime_int 2022-12-15 23:08:51 +02:00
Meghan 332020f310 std: add object format extension for dxcontainer
source: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst
2022-12-13 15:06:55 -05:00
Meghan 3318611618 re-enable "signed zeros are represented properly" beahvior tests for f80 and c_longdouble 2022-12-13 13:33:16 +02:00
Meghan 759f72fcfe std.debug: define error set in DebugInfo.lookupModuleDl 2022-10-18 13:03:49 +02:00
Meghan c37b40248c stage2: remove --verbose-mir from help menu
removed in https://github.com/ziglang/zig/commit/5f97652da8881773b823a0730e5791816668528a
2022-10-16 11:35:06 -04:00
Meghan 521c753fda std: fix os.linux.S function signatures to use mode_t 2022-09-20 17:54:32 -04:00
Meghan 56bdd0127f implement cache environment variables for zig build 2022-08-29 22:26:41 -04:00
Meghan Denny 0879cbeed2 remove 'builtin.stage2_arch', Sema is smart enough now 2022-08-07 16:07:08 -07:00
Meghan Denny b5861193e0 std: rename std.Target.systemz to .s390x 2022-07-28 23:22:44 -07:00
Meghan 02acde99a1 stage2: ensure 'std', 'builtin', and 'root' is always available to @import 2022-07-28 15:19:17 -07:00
Meghan dea437edfb stage2: implement noinline fn 2022-07-24 11:56:33 +03:00
Meghan 3a64693db3 std: add http definitions for Method and Status (#10661) 2022-05-11 15:43:18 -04:00
Meghan Denny 08565b23f9 stage2: fix print_zir for .builtin_src 2022-03-31 02:12:44 -04:00
Meghan b73cf97c93 replace other uses of std.meta.Vector with @Vector (#11346) 2022-03-30 14:12:14 -04:00
Meghan 017d3864de std: fix false positive for zig.isValidId with empty string (#11104)
* std: fix false positive for `zig.isValidId` with empty string, fixes #11099
* std: add zig.isValidId tests
2022-03-09 19:38:47 -05:00
Meghan 5e60ee4127 std: define static error set for fs.Dir.copyFile 2022-01-29 20:48:36 +02:00
Meghan f1b79c9a44 std.crypto.random: Randoms are no longer passed by reference 2022-01-25 13:00:39 -05:00
Meghan Denny b7ba728929 std: add meta.DeclEnum 2022-01-20 10:54:45 +02:00
Meghan 4a92f42ed7 std.c: add shm_open and shm_unlink
https://man7.org/linux/man-pages/man3/shm_open.3.html
2022-01-17 16:56:50 +02:00
Meghan Denny 0d0f277954 std: add json.stringifyAlloc 2022-01-17 12:32:02 +01:00
Meghan Denny 3f586781b6 std: fix zig.Ast being called Tree internally 2022-01-08 01:01:09 -05:00
Meghan c08b190c69 lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
Meghan c84147f90d std: add writer methods on all crypto.hash types (#10168) 2021-11-20 01:37:17 -08:00
Meghan Denny 0ef2e2520a stage2: implement @hasField
struct and union are kept in stage1 because struct/unionFieldCount are returning zero
2021-10-17 21:42:22 -07:00
Meghan Denny 7d0a74456b alphebetize behavior tests 2021-10-17 21:42:22 -07:00
Meghan Denny 6f30c8c098 elevate more passing tests 2021-10-16 15:04:48 -04:00
Meghan 1df926b24e stage2: @hasDecl is passing 2021-10-16 04:09:16 -04:00
Meghan 50c6b6cc66 stage2: only initialize the llvm backend for the target we are building (#9659) 2021-08-31 13:50:09 -04:00
Meghan Denny cf9684ce75 stage2: add @rem tests to llvm and c backends 2021-08-30 19:48:31 -07:00
Meghan Denny e878a6633f stage2: implement runtime % and @rem 2021-08-30 00:31:40 -07:00
Meghan Denny 56845082bc stage2/sema: clarify todo arithmetic operator error 2021-08-30 00:30:14 -07:00
Meghan 7e7d67d8ee std.fmt: add support for printing slices strings (#9562) 2021-08-19 14:12:11 +03:00
Meghan fcf2ce0ffe std.fmt: add name of type in unsupport format string compile error 2021-08-14 11:07:01 +03:00
Meghan 7e52a096db langref- fix packed struct error code 2021-08-01 12:42:48 +03:00
Meghan 32069d2330 langref- fix use after block error code 2021-08-01 12:42:05 +03:00
Meghan Denny bb2accba9b stage1: add c_longdouble mapping for s390x 2021-07-27 21:08:04 -04:00
Meghan Denny ab43f2376e lib/std: remove empty init from HashMapUnmanaged 2021-04-10 12:49:02 -07:00