Jakub Konka
515ee5b2fa
libstd: do not follow symlinks in renameatW
...
This correctly mimicks POSIX behavior.
2022-08-17 23:13:58 +02:00
Andrew Kelley
a12abc6d6c
Merge pull request #12456 from Vexu/stage2
...
Stage2 namespacing fixes
2022-08-16 19:57:22 -04:00
Andrew Kelley
9d85335de9
Merge pull request #12427 from r00ster91/nicelexer
...
tokenizer: cleanups
2022-08-16 14:08:31 -04:00
Veikka Tuominen
9d4561ef00
AstGen: detect declarations shadowing locals
...
Closes #9355
2022-08-16 20:35:03 +03:00
Loris Cro
7f7d58ee89
Merge branch 'master' into autodoc-links
2022-08-16 16:52:26 +02:00
Loris Cro
5929da37a1
autodoc: absolute line numbers in decl [src] links
2022-08-16 16:51:32 +02:00
Loris Cro
0a0b3dda03
autodoc: remove reference to github, replace with placeholder link
2022-08-16 16:19:54 +02:00
r00ster91
83909651ea
test: simplify testTokenize
...
What this does is already done by `expectEqual`.
Now the trace seems to be shorter and more concise so the errors should be easier to read now.
2022-08-16 00:20:19 +02:00
r00ster91
5490688d65
refactor: use std.ascii functions
2022-08-16 00:20:19 +02:00
r00ster91
e3b3eab840
test(names): some renamings
2022-08-16 00:20:19 +02:00
r00ster91
f07cba10a3
test(names): remove unnecessary "tokenizer - " prefix
2022-08-16 00:20:19 +02:00
Loris Cro
aefb091973
Merge pull request #12445 from r00ster91/noresults
...
autodoc: better No Results Found page and other improvements
2022-08-15 20:50:34 +02:00
Ryan Liptak
764cf4e53f
std.fs: Fix WalkerEntry.dir not always being the containing dir
...
Before this commit, the modified test would fail with `FileNotFound` because the `entry.dir` would be for the entry itself rather than the containing dir of the entry. That is, if you were walking a tree of `a/b`, then (previously) the entry for `b` would incorrectly have an `entry.dir` for `b` rather than `a`.
2022-08-15 11:25:51 +03:00
Yujiri
2279f27e0f
Fix #12423 : auto_hash not hashing arrays of slices uniquely
2022-08-14 23:12:48 +03:00
r00ster91
78bb29d1dc
fix: scroll page to very top when S is pressed
...
Credits go to @rudedogg
2022-08-14 19:19:44 +02:00
r00ster91
af20dfae60
bug: add TODO
2022-08-14 12:20:26 +02:00
r00ster91
e5379e5027
docs: add comment
2022-08-14 12:18:08 +02:00
r00ster91
2723d8e6e2
style: format
...
Some formatting, apparently.
2022-08-14 11:54:51 +02:00
r00ster91
8f6f4bc7ca
feat: make modal more restrictive and more Esc freedom
...
This makes it so that you can no longer interact with the search bar
or the results or anything while the modal is open. That's why it's a "modal" and not a "dialog".
It also makes it so that you can now always press Esc to return to the results or the main page.
Previously this was only possible when the search field was active.
2022-08-14 11:54:51 +02:00
r00ster91
9900413eb1
feat: indent keyboard shortcuts
...
This indents the keyboard shortcuts related to the S key because you can only
use these keyboard shortcuts after you pressed S (when the search field is focused).
This is a visual hint.
2022-08-14 11:54:51 +02:00
r00ster91
e1eaa1f7d6
fix: var(--mono) used for font-size
2022-08-14 11:54:51 +02:00
r00ster91
dc5174440c
feat: better No Results Found page
...
This adds some helpful links to the page and makes it look nicer by using <kbd> etc.
2022-08-14 11:54:51 +02:00
Andrew Kelley
e67a43a673
Merge pull request #12410 from ifreund/sig-err-dfl-ign-fix
...
std: fix definition of SIG_IGN, SIG_DFL, etc.
2022-08-11 15:05:07 -04:00
LordMZTE
bbcc26a9b6
fix error message when providing slice to std.hash.autoHash
2022-08-11 21:44:33 +03:00
Andrew Kelley
a82d7c2063
std: add missing error to windows.WriteFile
...
I encountered this error today when testing the self-hosted compiler on
Windows.
2022-08-11 06:22:05 -04:00
Isaac Freund
b78f3bf1f1
std: fix definition of SIG_IGN, SIG_DFL, etc.
...
POSIX specifies that the sa_handler field of the sigaction struct may
be set to SIG_IGN or SIG_DFL. However, the current constants in the
standard library use the function pointer signature corresponding to
the sa_sigaction field instead.
This may not cause issues in practice because the fields usually occupy
the same memory in a union, but this isn't required by POSIX and there
may be systems we do not yet support that do this differently.
Fixing this also makes the Zig interface less confusing to use after
reading the man page.
2022-08-11 12:09:34 +02:00
Isaac Freund
7d6a7f513b
std: Don't pass undefined memory to the kernel in os.abort()
2022-08-11 11:05:53 +02:00
Andrew Kelley
fa620ef710
link.MachO: use accurate alignment attribute on pointers
...
Also adds a new method to ArrayList: appendUnalignedSlice
2022-08-10 22:28:05 -07:00
Andrew Kelley
e0178890ba
Merge pull request #12379 from ifreund/packed-struct-explicit-backing-int
...
stage2: Implement explicit backing integers for packed structs
2022-08-10 19:13:29 -04:00
zooster
8fd20a5eb0
fix: disallow newline in char literal
2022-08-10 16:13:56 -04:00
Isaac Freund
0d32b73078
stage2: Implement explicit backing integers for packed structs
...
Now the backing integer of a packed struct type may be explicitly
specified with e.g. `packed struct(u32) { ... }`.
2022-08-10 19:54:45 +02:00
Veikka Tuominen
19af4b5cad
std: add workaround for stage2 bug
2022-08-09 16:19:55 +03:00
Andrew Kelley
1a500b9699
Sema: avoid error return traces when possible
...
stage2 was adding bogus error return trace frames when an error was not
being returned. This commit makes several improvements:
* Make a runtime check if necessary to only emit a frame into the error
return trace when an actual error is returned.
* Use the `analyzeIsNonErrComptimeOnly` machinery to avoid runtime
checks when it is compile-time-known that the value is an error, or a
non-error.
* Make std.builtin.returnError take a non-optional stack trace pointer.
closes #12174
2022-08-08 19:16:21 -07:00
Ryotaro "Justin" Kimura
50b36e84fa
std: fix BoundedArray test checking wrong condition ( #12372 )
2022-08-08 18:13:35 -04:00
Maciej 'vesim' Kuliński
a0a1178694
autodoc: links to source code
2022-08-08 21:42:38 +02:00
Loris Cro
1db99b08e2
Merge pull request #12347 from r00ster91/nicedocs
...
autodoc: various improvements
2022-08-08 18:31:01 +02:00
r00ster91
ff6d2e632f
fix: cleanup recent changes
2022-08-08 18:14:26 +02:00
Meghan Denny
0879cbeed2
remove 'builtin.stage2_arch', Sema is smart enough now
2022-08-07 16:07:08 -07:00
Jakub Konka
ae16c1d083
std: use std.macho.LoadCommandIterator for MachO parsing in std.debug
2022-08-06 23:14:54 -07:00
Veikka Tuominen
bd21f499dc
Type: adjust C type sizes
2022-08-06 14:42:05 -07:00
zooster
3debd6b732
Merge branch 'master' into nicedocs
2022-08-06 19:32:42 +02:00
Loris Cro
cb7c912a1b
autodoc: use location.replace to avoid history spam when searching
2022-08-06 17:29:39 +02:00
Loris Cro
9fc6990052
autodoc: re-introduce search result limits
2022-08-06 17:29:13 +02:00
r00ster91
943f4eb515
fix: use brighter bg color for help modal in light mode
...
You can see this issue in the video.
2022-08-06 16:07:32 +02:00
r00ster91
60b04b0988
style: some more formatting
2022-08-06 16:01:43 +02:00
r00ster91
2f5afe1194
let -> const for dom elements
...
These should never be reassigned.
2022-08-06 15:53:20 +02:00
r00ster91
e921dd1136
style: missing semi
2022-08-06 15:38:32 +02:00
r00ster91
beba29c24f
feat: make shadow of <kbd>s look nicer
2022-08-06 15:34:38 +02:00
r00ster91
ee72868f92
style: format
...
This is mostly manually formatted. I couldn't find a good HTML formatter for this file.
It also converts a bunch of tabs to spaces.
2022-08-06 15:34:00 +02:00
r00ster91
2f0abe63d4
fix: disable search bar before loading
...
This fixes the new search placeholder not disappearing if you type before
it finished loading, and maybe some other things.
2022-08-06 15:16:27 +02:00