1
0
Fork 0
forked from len0rd/rockbox

Fix some plugins that use NULL instead of -1 when not using a voice id in struct opt_items. Change as many '#define NULL 0' to '#define NULL ((void*)0)' as grep would find - somewehere the former is still hiding it seems. :\

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15117 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-10-15 07:59:13 +00:00
parent 887ff33f2e
commit 0b0c23ff13
6 changed files with 87 additions and 87 deletions

View file

@ -322,9 +322,9 @@ static void reversi_gui_display_board(void) {
/* Menu entries and the corresponding values for cursor wrap mode */
#define MENU_TEXT_WRAP_MODE "Cursor wrap mode"
static const struct opt_items cursor_wrap_mode_settings[] = {
{ "Flat board", NULL },
{ "Sphere", NULL },
{ "Torus", NULL },
{ "Flat board", -1 },
{ "Sphere", -1 },
{ "Torus", -1 },
};
static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = {
WRAP_FLAT, WRAP_SPHERE, WRAP_TORUS };
@ -335,10 +335,10 @@ static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = {
#define MENU_TEXT_STRAT_BLACK "Strategy for black"
static struct opt_items strategy_settings[] = {
{ "Human", NULL },
{ "Naive robot", NULL },
{ "Simple robot", NULL },
//{ "AB robot", NULL },
{ "Human", -1 },
{ "Naive robot", -1 },
{ "Simple robot", -1 },
//{ "AB robot", -1 },
};
static const game_strategy_t * const strategy_values[] = {
&strategy_human, &strategy_naive, &strategy_simple, /*&strategy_ab*/ };