X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=48371adb6427fecabb5218ef72f6bad8e55de501;hb=0a8f96e95c703feb86bb9770442d6842e3d67248;hp=3a1347a3c00130da71cc4ac4aa9299d7914db627;hpb=9ca523a5b93999a5bd327ab44f6829622d40c557;p=xboard.git diff --git a/args.h b/args.h index 3a1347a..48371ad 100644 --- a/args.h +++ b/args.h @@ -102,8 +102,8 @@ typedef struct { IcsTextMenuEntry icsTextMenuEntry[ICS_TEXT_MENU_SIZE]; int junk; -int saveDate; -int dateStamp; +unsigned int saveDate; +unsigned int dateStamp; Boolean singleList; Boolean autoClose; char *homeDir; @@ -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 }, @@ -850,7 +852,7 @@ AppendToSettingsFile (char *line) if(f = fopen(SETTINGS_FILE, "a")) { TimeMark now; GetTimeMark(&now); - fprintf(f, "-date %ld\n%s\n", now.sec, line); + fprintf(f, "-date %10lu\n%s\n", now.sec, line); fclose(f); } } @@ -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 &&