From dec2fe4d04b68c21f86dc391ab4a464cac2aed64 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 2 Jun 2012 14:31:18 -0700 Subject: [PATCH] bug #36229: changed ICS_* from define to enum --- backend.c | 2 +- backend.h | 7 ++----- winboard/winboard.c | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/backend.c b/backend.c index c346231..46bb39d 100644 --- a/backend.c +++ b/backend.c @@ -421,7 +421,7 @@ Boolean alarmSounded; /* end premove variables */ char *ics_prefix = "$"; -int ics_type = ICS_GENERIC; +enum ICS_TYPE ics_type = ICS_GENERIC; int currentMove = 0, forwardMostMove = 0, backwardMostMove = 0; int pauseExamForwardMostMove = 0; diff --git a/backend.h b/backend.h index 25fbf71..94031d2 100644 --- a/backend.h +++ b/backend.h @@ -264,11 +264,8 @@ int ToUpper P((int c)); extern GameInfo gameInfo; /* ICS vars used with backend.c and zippy.c */ -#define ICS_GENERIC 0 -#define ICS_ICC 1 -#define ICS_FICS 2 -#define ICS_CHESSNET 3 /* not really supported */ -int ics_type; +enum ICS_TYPE { ICS_GENERIC, ICS_ICC, ICS_FICS, ICS_CHESSNET /* not really supported */ }; +enum ICS_TYPE ics_type; /* pgntags.c prototypes */ diff --git a/winboard/winboard.c b/winboard/winboard.c index a9d7454..2e9e2a6 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -100,7 +100,7 @@ extern int whiteFlag, blackFlag; Boolean flipClock = FALSE; extern HANDLE chatHandle[]; -extern int ics_type; +extern enum ICS_TYPE ics_type; int MySearchPath P((char *installDir, char *name, char *fullname)); int MyGetFullPathName P((char *name, char *fullname)); -- 1.7.0.4