Feoramund
67b786c738
Fix more race conditions in error reporting
2024-05-01 16:41:02 -04:00
Feoramund
bbebb4ad60
Fix unseen print call in demo
2024-04-28 17:20:52 -04:00
Feoramund
700f9c94bd
Combine adjacent sbprint*/to_string calls
...
The `sbprint*` procs already return a string conversion.
2024-04-28 17:18:46 -04:00
Feoramund
c712de0cd0
Require results for non-buffered print procs
2024-04-28 17:17:01 -04:00
Feoramund
a573161abd
Allow @(init) procs to be @(disabled)
2024-04-28 14:42:04 -04:00
Feoramund
f1c13d6bd8
Fix race condition in error_va
...
If the error count exceeded `MAX_ERROR_COLLECTOR_COUNT`, multiple
threads could print and exit simultaneously, causing a segfault.
This change moves the mutex lock back before the conditional.
2024-04-28 14:03:11 -04:00
Feoramund
29987c20c0
Fix invalid rune literal reported twice
...
The tokenizer and the parser were reporting it in different positions.
This way, they'll report in the same spot.
2024-04-28 07:02:21 -04:00
Feoramund
ebfbe4d260
Clear unused global_error_collector.curr_error
...
This should cleanly prevent acknowledging duplicate errors on the same
position as seems to be the intent based on the prior `else if`
condition.
2024-04-28 06:44:28 -04:00
Feoramund
309a770cbf
Fix omitempty in json.marshal
2024-04-27 05:24:59 -04:00
Feoramund
92402a75f6
Fix wrong llvm-config in build script for FreeBSD
2024-04-26 18:40:59 -04:00
Feoramund
f95bb77f72
Fix memory leak in sync/chan
2024-04-26 05:19:52 -04:00
Feoramund
3e449e93dd
Implement Fisher-Yates shuffle
2024-04-15 17:07:05 -04:00
Feoramund
a294f067a9
Fix big.internal_random_prime with Second_MSB_On
2024-04-15 05:49:15 -04:00