Skip to content

Commit

Permalink
Work around stack overflow problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieleecho committed Jun 4, 2017
1 parent f42ea2f commit c240328
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 1 addition & 9 deletions cfgs/rgb/default.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<port type="UI_TOGGLE_UI">
<newseq type="standard">
KEYCODE_F1
</newseq>
</port>
</input>
</system>
<system name="default" />
</mameconfig>
3 changes: 2 additions & 1 deletion minilisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ static void gc(void *root) {
// Finish up GC.
size_t old_nused = mem_nused;
mem_nused = (size_t)((uint8_t *)scan1 - (uint8_t *)memory);
byte sp;
if (debug_gc)
fprintf(stderr, "GC: %x/%x\n", mem_nused, old_nused);
fprintf(stderr, "GC: %x/%x SP: %x\n", mem_nused, old_nused, &sp);
gc_running = false;
}

Expand Down
2 changes: 1 addition & 1 deletion nqueens.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@
;;; MAIN
;;;

(DEFINE BOARD-SIZE 4)
(DEFINE BOARD-SIZE 3)
(DEFINE BOARD (MAKE-BOARD BOARD-SIZE))
(SOLVE BOARD)

0 comments on commit c240328

Please sign in to comment.