include •file.Parent in system value docs
This commit is contained in:
parent
eb9550aa29
commit
355d7978ed
@ -15,7 +15,7 @@ See [the BQN specification](https://mlochbaum.github.io/BQN/spec/system.html) fo
|
||||
| `•name` | |
|
||||
| `•wdpath` | |
|
||||
| `•Exit` | |
|
||||
| `•file` | Fields: `path`, `At`, `List`, `Bytes`, `Chars`, `Lines`, `Type`, `Exists`, `Name`, `MapBytes`, `CreateDir`, `Rename`, `Remove` |
|
||||
| `•file` | Fields: `path`, `At`, `List`, `Bytes`, `Chars`, `Lines`, `Type`, `Exists`, `Name`, `Parent`, `MapBytes`, `CreateDir`, `Rename`, `Remove` |
|
||||
| `•FChars` | |
|
||||
| `•FBytes` | |
|
||||
| `•FLines` | |
|
||||
@ -37,7 +37,7 @@ See [the BQN specification](https://mlochbaum.github.io/BQN/spec/system.html) fo
|
||||
| `•rand` | seeds with system time (can be hard-coded by setting the C macro `RANDSEED`), same algorithm as `•MakeRand` |
|
||||
| `•bit` | Fields: `_cast`; casting an sNaN bit pattern to a float is undefined behavior |
|
||||
|
||||
# CBQN-specific system functions and extensions
|
||||
# CBQN-specific system values and extensions
|
||||
|
||||
## `•term`
|
||||
|
||||
|
||||
2
src/vm.c
2
src/vm.c
@ -689,7 +689,7 @@ B evalBC(Body* b, Scope* sc, Block* bl) { // doesn't consume
|
||||
u32* bc = b->bc;
|
||||
pushEnv(sc, bc);
|
||||
gsReserve(b->maxStack);
|
||||
Scope* pscs[b->maxPSC];
|
||||
Scope* pscs[b->maxPSC]; // -fsanitize=undefined complains when this is 0. ¯\_(ツ)_/¯
|
||||
if (b->maxPSC) {
|
||||
pscs[0] = sc;
|
||||
for (i32 i = 1; i < b->maxPSC; i++) pscs[i] = pscs[i-1]->psc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user