summaryrefslogtreecommitdiff
path: root/apps/plugins/goban/goban.c
diff options
context:
space:
mode:
authorMustapha Senhaji <moos@rockbox.org>2009-02-19 23:51:47 +0000
committerMustapha Senhaji <moos@rockbox.org>2009-02-19 23:51:47 +0000
commit07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937 (patch)
treedf5c68d24e5ce84f171cb97ab309da8ed828cb8f /apps/plugins/goban/goban.c
parent56ad29bab89bfdb5eaa95a4da906f8b5d68b950b (diff)
downloadrockbox-07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937.tar.gz
rockbox-07ae1e4fb9a1fd9d6ce9c48c5300b53e87303937.zip
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
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)))