From 07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937 Mon Sep 17 00:00:00 2001 From: Mustapha Senhaji Date: Thu, 19 Feb 2009 23:51:47 +0000 Subject: FS#9930 by Joshua Simmons: Code clean up the goban plugin a bit, mostly by improving comments. No functional changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20060 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/goban/goban.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/plugins/goban/goban.c') 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; #endif +/* the stack that uses this buffer is used for both storing intersections + * in board algorithms (could store one short for each board location), and + * for parsing (could store an indefinite number of ints, related to how + * many levels deep branches go (in other words, how many branches off of + * branches there are). 50 should take care of any reasonable file. + */ #define PARSE_STACK_BUFFER_SIZE (max(MAX_BOARD_SIZE * MAX_BOARD_SIZE * sizeof(unsigned short), 50 * sizeof(int))) /* used in SGF file parsing and outputting as well as in liberty counting @@ -243,7 +249,7 @@ plugin_start (const void *parameter) #ifdef GBN_TEST run_tests (); - return 0; + return PLUGIN_OK; #endif if (!(parameter && load_game (parameter))) -- cgit v1.2.3