1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Mustapha Senhaji 2009-02-19 23:51:47 +00:00
parent 56ad29bab8
commit 07ae1e4fb9
8 changed files with 30 additions and 22 deletions

View file

@ -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)))