X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=d1463ec2ffa3fc88b409141fe1087c798aadfbd4;hb=e6e38912837a4fe2464356408d10dee950b3121c;hp=0c403de9f8df1bf8cf9e90b61623ffdf9d5f2492;hpb=0d7cbd3e93e8868922b92d5ada9a41991bbcfe8b;p=xboard.git diff --git a/args.h b/args.h index 0c403de..d1463ec 100644 --- a/args.h +++ b/args.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -697,6 +697,8 @@ ArgDescriptor argDescriptors[] = { { "topLevel", ArgBoolean, (void *) &appData.topLevel, XBOARD, (ArgIniType) TOPLEVEL }, { "dialogColor", ArgString, (void *) &appData.dialogColor, XBOARD, (ArgIniType) "" }, { "buttonColor", ArgString, (void *) &appData.buttonColor, XBOARD, (ArgIniType) "" }, + { "firstDrawDepth", ArgInt, (void *) &appData.drawDepth[0], FALSE, (ArgIniType) 0 }, + { "secondDrawDepth", ArgInt, (void *) &appData.drawDepth[1], FALSE, (ArgIniType) 0 }, #if ZIPPY { "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK }, @@ -947,7 +949,7 @@ ParseArgs(GetFunc get, void *cl) ch = get(cl); while (ch != '\n' && ch != NULLCHAR) ch = get(cl); continue; - } else if (ch == '/' || ch == '-') { + } else if (ch == SLASH || ch == '-') { /* Switch */ q = argName; while (ch != ' ' && ch != '=' && ch != ':' && ch != NULLCHAR && @@ -1145,14 +1147,12 @@ ParseArgs(GetFunc get, void *cl) case ArgString: case ArgFilename: -#ifdef DATADIR if(argValue[0] == '~' && argValue[1] == '~') { char buf[4*MSG_SIZ]; // expand ~~ - snprintf(buf, 4*MSG_SIZ, DATADIR "%s", argValue+2); + snprintf(buf, 4*MSG_SIZ, "%s%s", DATADIR, argValue+2); ASSIGN(*(char **) ad->argLoc, buf); break; } -#endif ASSIGN(*(char **) ad->argLoc, argValue); break;