Tadeo Kondrak
362c87f1aa
Update std.meta.ArgsTuple for alignment in StructField/UnionField
2020-10-01 15:06:24 -06:00
Tadeo Kondrak
ec8f0777f2
Update std.meta.Tuple for alignment in StructField/UnionField
2020-10-01 15:06:23 -06:00
Alexandros Naskos
d27a34f05c
Merge branch 'master' into args-tuple
2020-09-29 16:19:44 +03:00
Felix (xq) Queißner
c2d60bc5b5
Follows @tadeokondrak remark about taking []const type
.
2020-09-28 12:24:22 +02:00
Felix (xq) Queißner
55dfe729b4
Changes comptime block to test.
2020-09-28 11:44:55 +02:00
Felix (xq) Queißner
9331466998
Changes comptime block to test.
2020-09-28 11:42:39 +02:00
Felix (xq) Queißner
7f68b14377
Implements std.meta.Tuple(), implements #4607 in userland.
2020-09-25 09:27:00 +02:00
Felix (xq) Queißner
93291cc472
Implements std.meta.ArgsTuple.
2020-09-25 09:16:43 +02:00
Vexu
a3624e94f8
translate-c: determine sizeof using std.meta.sizeof
2020-09-14 23:53:38 +03:00
Vexu
29fd0c6d61
fix meta.cast behavior; add exhaustive tests
2020-09-14 23:21:26 +03:00
Tadeo Kondrak
771f35c593
Use less inefficient method of replacing TypeInfo.UnionField.enum_field
2020-09-07 06:23:27 -06:00
Tadeo Kondrak
ac19ccf595
Update standard library for removal of TypeInfo.UnionField.enum_field
2020-09-07 06:23:26 -06:00
Lachlan Easton
2a58e30bd5
std meta: fix use of alignOf in meta.cast
2020-09-03 14:11:04 -04:00
Andrew Kelley
4a69b11e74
add license header to all std lib files
...
add SPDX license identifier
copyright ownership is zig contributors
2020-08-20 16:07:04 -04:00
Andrew Kelley
eac6280241
add std.meta.TrailerFlags API
...
This is useful for saving memory when allocating an object that has many
optional components. The optional objects are allocated sequentially in
memory, and a single integer is used to represent each optional object
and whether it is present based on each corresponding bit.
2020-07-14 17:19:17 -07:00
Vexu
e85fe13e44
run zig fmt on std lib and self hosted
2020-07-11 20:41:19 +03:00
Charlie Stanton
8c15cfe3da
Compacts switch statements and string literal
2020-06-21 21:48:12 +01:00
Charlie Stanton
6f47513009
Adds std.meta.cast and uses it to simplify translate-c
2020-06-21 18:24:59 +01:00
Andrew Kelley
c70633eacd
Merge pull request #5203 from tadeokondrak/@type-for-even-more-types
...
implement @typeInfo for Frame and implement @Type for Frame, EnumLiteral, and ErrorSet
2020-06-18 21:25:03 -04:00
Cassidy Dingenskirchen
57f1ed5325
Fix a few std.sort.sort invocations
2020-06-12 13:33:31 -04:00
Ryan Liptak
3cac0a5614
Not sure how a tab snuck in there
2020-05-26 23:26:19 -07:00
Ryan Liptak
b683498ae8
Use ComptimeStringMap in std.meta.stringToEnum when feasible
2020-05-26 23:10:13 -07:00
data-man
d10e407977
More vector support in std.meta
2020-05-26 10:56:29 -04:00
Tadeo Kondrak
647901b4a8
Constify TypeInfo
2020-05-02 14:39:31 -06:00
Tadeo Kondrak
eb183ad9fe
rename std.meta.IntType to std.meta.Int
...
Closes https://github.com/ziglang/zig/issues/5194
2020-04-28 19:11:18 -06:00
Tadeo Kondrak
ee5b358d71
add std.meta.Vector to replace @Vector
2020-04-28 00:24:46 -06:00
Andrew Kelley
b5dba702ff
fixes to std.meta
...
behavior tests are passing now
2020-03-19 09:53:55 -04:00
Andrew Kelley
8ea0a00f40
improve std lib code for the new semantics
2020-03-19 09:53:54 -04:00
daurnimator
0b0de22fd1
std: format contents of sentinel terminated many pointers
...
std: add std.meta.Sentinel to get sentinel of a type
2020-03-01 13:04:29 -05:00
Vexu
538d9a5dd8
remove uses of @ArgType
and @IntType
2020-02-24 23:39:03 +02:00
Vexu
45da72c5b6
remove usages of @typeId
, @memberCount
, @memberName
and @memberType
2020-02-24 23:09:01 +02:00
Andrew Kelley
d056c7732b
fix std.meta.refAllDecls
2020-02-18 15:34:13 -05:00
xackus
7396b144ba
modernize std.meta
2020-02-14 09:35:38 -05:00
data-man
4578d13b49
Vector comparison in meta and testing
2020-02-13 12:13:55 +01:00
Andrew Kelley
a867b43366
progress towards merging
...
see BRANCH_TODO file
2020-01-19 20:54:04 -05:00
daurnimator
51943ff432
std: meta.TagPayloadType takes the tag type of the union
2019-12-30 23:09:18 +11:00
Robin Voetter
4b4fbe3887
Replace @typeOf with @TypeOf in all zig source
...
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
2019-12-10 11:09:41 -05:00
Vexu
bfb15f1c9f
fix casts
2019-12-05 15:47:06 -05:00
Andrew Kelley
47f06be369
string literals are now null terminated
...
this also deletes C string literals from the language, and then makes
the std lib changes and compiler changes necessary to get the behavior
tests and std lib tests passing again.
2019-11-21 20:43:41 -05:00
Andrew Kelley
1aa978f32e
implement null terminated pointers
2019-11-21 20:43:41 -05:00
Andrew Kelley
aa0daea541
update more of the std lib to use @as
2019-11-08 15:57:25 -05:00
Andrew Kelley
e0db54e89d
update the codebase to use @as
2019-11-08 15:57:24 -05:00
Andrew Kelley
f80c01f9d8
ref more math decls for better docs
2019-10-16 19:16:57 -04:00
Andrew Kelley
1014cfdf3b
generated docs: progress towards generic types being useful
...
See #3406
2019-10-16 01:49:02 -04:00
Andrew Kelley
ed36dbbd9c
mv std/ lib/
...
that's all this commit does. further commits will fix cli flags and
such.
see #2221
2019-09-25 23:35:41 -04:00