| Age | Commit message (Collapse) | Author |
|
stage2: make --color on affect progress bar too
|
|
|
|
Closes #13837
|
|
|
|
|
|
|
|
|
|
Closes #14072
|
|
When reading a document with nested sections, it is not easy to discover
the depth of the current section.
Add support for nested section numbers, from the h2 to the h4 heading,
in the format "lv1. ", "lv1.lv2. ", "lv1.lv2.lv3. ". The "Zig Version"
and "Table of Content" sections are excluded.
The section numbers are implemented in CSS, with the CSS rules declared
inside a @media rule. Currently the @media rule targets all media.
|
|
implement defining C variadic functions
|
|
std.builtin: renamings
|
|
|
|
|
|
This was a poor naming choice; these are parameters, not arguments.
Parameters specify what kind of arguments are expected, whereas the arguments are the actual values passed.
|
|
It's the type of a parameter, not an argument, but the prefix is redundant either way.
|
|
|
|
Remove `stack` option from `@call`
|
|
closes #13870
|
|
Add a new subsection within the C section, documenting extern variadic
functions.
|
|
A self-closing tag for void elements like link is only required under
XHTML 1.0.
See https://developer.mozilla.org/en-US/docs/Glossary/Void_element#self-closing_tags.
|
|
Add a missing ReleaseSmall when describing unreachable in the try
section and the unreachable entry in the Keyword Reference section.
Additionally, transform Debug, ReleaseSafe, ReleaseFast and ReleaseSmall
into links in the try section.
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
|
|
Currently, the test_fn_reflection.zig doctest has an example of
.Fn.is_var_args. This example can confuse the reader, since there is no
documentation about variadic functions and is_var_args is mainly used in
the compiler.
Remove the example with .Fn.is_var_args and add instead examples with
.Fn.return_type and .Fn.is_generic.
|
|
In the slice_bounds.zig doctest, the code "const slice = array[2..4]" is
incorrect, since the actual type is a pointer to an array, instead of a
slice.
Use a runtime know value to slice the array.
|
|
In the slices.zig doctest, the code
`const all_together_slice = all_together[0..]` is incorrect, since the
actual type is a pointer to an array, instead of a slice.
Use a runtime-known value to slice the array.
In the next "slice pointer" test, clarify that slicing a slice to
produce a pointer to an array, requires comptime-known indexes, not just
constant indexes.
|
|
|
|
|
|
Split the original `defer.zig` doctest into 3 doctest:
1. Document the defer keyword
2. Document that the return statement is not allowed inside a defer
expression
3. Document the errdefer keyword
Replace "method" with "expression" in the text `defer method`.
|
|
Re-enable many previously failing tests and add test coverage
|
|
Several <em> elements where added inside a shell node in the
Using--target-and--cflags section. Remove them, since they are not
supposed to be handled by codegen.
For the original commit, see
0c091feb5 (Improve HTML semantics and a11y of language reference).
Fixes #13846
|
|
powerpc64le
Closes #3282
|
|
Eliminate `BoundFn` type from the language
|
|
See #707
|
|
Closes #9484
|
|
Closes #13841
|
|
|
|
|
|
|
|
This commit removes async/await/suspend/resume from the language
reference, as that feature does not yet work in the self-hosted
compiler.
We will be regressing this feature temporarily. Users of these language
features should stick with 0.10.x with the `-fstage1` flag until they
are restored.
See tracking issue #6025.
|
|
See tracking issue #13724
|
|
closes #13535
|
|
|
|
The packed struct example was mistakenly applying endianness where it
shouldn't have been. This wasn't being caught because we don't currently
test the examples on Big-endian systems.
I updated the test to remove the endianness where it didn't apply, and
added a new part of the test to demonstrate when it would apply.
|
|
|
|
zig stdlib fmt has a formatter for types which prints the type name. So,
just use @TypeOf(type) instead of the longer @typeInfo(@TypeOf(type)).
|
|
|
|
|
|
closes #11112
closes #12496
|
|
|
|
|
|
|