summaryrefslogtreecommitdiff
path: root/apps/plugins/goban/goban.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/goban/goban.c')
-rw-r--r--apps/plugins/goban/goban.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/goban/goban.c b/apps/plugins/goban/goban.c
index d00f0d9ab2..04b74b7f59 100644
--- a/apps/plugins/goban/goban.c
+++ b/apps/plugins/goban/goban.c
@@ -45,6 +45,12 @@ int nav_mode = NAV_MODE_BOARD;
45 45
46#endif 46#endif
47 47
48/* the stack that uses this buffer is used for both storing intersections
49 * in board algorithms (could store one short for each board location), and
50 * for parsing (could store an indefinite number of ints, related to how
51 * many levels deep branches go (in other words, how many branches off of
52 * branches there are). 50 should take care of any reasonable file.
53 */
48#define PARSE_STACK_BUFFER_SIZE (max(MAX_BOARD_SIZE * MAX_BOARD_SIZE * sizeof(unsigned short), 50 * sizeof(int))) 54#define PARSE_STACK_BUFFER_SIZE (max(MAX_BOARD_SIZE * MAX_BOARD_SIZE * sizeof(unsigned short), 50 * sizeof(int)))
49 55
50/* used in SGF file parsing and outputting as well as in liberty counting 56/* used in SGF file parsing and outputting as well as in liberty counting
@@ -243,7 +249,7 @@ plugin_start (const void *parameter)
243 249
244#ifdef GBN_TEST 250#ifdef GBN_TEST
245 run_tests (); 251 run_tests ();
246 return 0; 252 return PLUGIN_OK;
247#endif 253#endif
248 254
249 if (!(parameter && load_game (parameter))) 255 if (!(parameter && load_game (parameter)))