More markdown fix.

This commit is contained in:
antirez 2023-02-01 19:07:41 +01:00
parent c63b410c4c
commit d5801540d9

View file

@ -629,7 +629,7 @@ It contains the following elements:
2. A list of procedures: lists bound to symbols, via the `def` word. 2. A list of procedures: lists bound to symbols, via the `def` word.
3. A stack frame, that is just what contains our local variables: 3. A stack frame, that is just what contains our local variables:
```
/* We have local vars, so we need a stack frame. We start with a top level /* We have local vars, so we need a stack frame. We start with a top level
* stack frame. Each time a procedure is called, we create a new stack frame * stack frame. Each time a procedure is called, we create a new stack frame
* and free it once the procedure returns. */ * and free it once the procedure returns. */
@ -640,6 +640,7 @@ It contains the following elements:
int curline; /* Current line number during execution. */ int curline; /* Current line number during execution. */
struct stackframe *prev; /* Upper level stack frame or NULL. */ struct stackframe *prev; /* Upper level stack frame or NULL. */
} stackframe; } stackframe;
```
The stack frame has a pointer to the previous stack frame. This is useful both in order to implement `upeval` and to show a stack trace when an exception happens and the program is halted. The stack frame has a pointer to the previous stack frame. This is useful both in order to implement `upeval` and to show a stack trace when an exception happens and the program is halted.