[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Changelog 1.740: typo - consistency
From: |
Nardy Pillards |
Subject: |
[Bug-gnubg] Changelog 1.740: typo - consistency |
Date: |
Tue, 15 Oct 2002 20:40:43 +0200 |
1. First: the typo
gnubg.c, line 3177:
TIME_CRITIAL
has to be:
TIME_CRITICAL
=====================================================================
2. And next:
To keep consistency, maybe change 'high' to 'highest' and 'realtime' to
'timecritical' all over the project?
The changes to (eventually) make follow (and typo is included here).
(
gnubg.c, line 999 e.a.
change from:
#ifdef WIN32
}, acSetPriority[] = {
{ "idle", CommandSetPriorityIdle,
N_("Set priority to IDLE_PRIORITY_CLASS"), NULL, NULL },
{ "belownormal", CommandSetPriorityBelowNormal,
N_("Set priority to BELOW_NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "normal", CommandSetPriorityNormal,
N_("Set priority to NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "abovenormal", CommandSetPriorityAboveNormal,
N_("Set priority to ABOVE_NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "high", CommandSetPriorityHigh,
N_("Set priority to HIGH_PRIORITY_CLASS"), NULL, NULL },
{ "realtime", CommandSetPriorityRealtime,
N_("Set priority to REALTIME_PRIORITY_CLASS"), NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
#endif /* WIN32 */
CHANGE TO:
#ifdef WIN32
}, acSetPriority[] = {
{ "idle", CommandSetPriorityIdle,
N_("Set priority to IDLE_PRIORITY_CLASS"), NULL, NULL },
{ "belownormal", CommandSetPriorityBelowNormal,
N_("Set priority to BELOW_NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "normal", CommandSetPriorityNormal,
N_("Set priority to NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "abovenormal", CommandSetPriorityAboveNormal,
N_("Set priority to ABOVE_NORMAL_PRIORITY_CLASS"), NULL, NULL },
{ "high", CommandSetPriorityHighest,
N_("Set priority to HIGHEST_PRIORITY_CLASS"), NULL, NULL },
{ "realtime", CommandSetPriorityTimeCritical,
N_("Set priority to TIME_CRITICAL_PRIORITY_CLASS"), NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL }
#endif /* WIN32 */
*****************************************************************
gnubg.c, line 4333 e.a.
change from:
#ifdef WIN32
switch ( fThreadPriority ) {
case THREAD_PRIORITY_ABOVE_NORMAL:
fprintf ( pf, "set priority abovenormal\n" );
break;
case THREAD_PRIORITY_BELOW_NORMAL:
fprintf ( pf, "set priority belownormal\n" );
break;
case THREAD_PRIORITY_NORMAL:
fprintf ( pf, "set priority normal\n" );
break;
case THREAD_PRIORITY_IDLE:
fprintf ( pf, "set priority idle\n" );
break;
case THREAD_PRIORITY_HIGHEST:
fprintf ( pf, "set priority high\n" );
break;
case THREAD_PRIORITY_TIME_CRITICAL:
fprintf ( pf, "set priority realtime\n" );
break;
default:
break;
}
#endif /* WIN32 */
CHANGE TO:
#ifdef WIN32
switch ( fThreadPriority ) {
case THREAD_PRIORITY_ABOVE_NORMAL:
fprintf ( pf, "set priority abovenormal\n" );
break;
case THREAD_PRIORITY_BELOW_NORMAL:
fprintf ( pf, "set priority belownormal\n" );
break;
case THREAD_PRIORITY_NORMAL:
fprintf ( pf, "set priority normal\n" );
break;
case THREAD_PRIORITY_IDLE:
fprintf ( pf, "set priority idle\n" );
break;
case THREAD_PRIORITY_HIGHEST:
fprintf ( pf, "set priority highest\n" );
break;
case THREAD_PRIORITY_TIME_CRITICAL:
fprintf ( pf, "set priority timecritical\n" );
break;
default:
break;
}
#endif /* WIN32 */
*****************************************************************
backgammon.h, line 746 e.a.
change from:
CommandSetPriorityIdle ( char * ),
CommandSetPriorityBelowNormal ( char * ),
CommandSetPriorityNormal ( char * ),
CommandSetPriorityAboveNormal ( char * ),
CommandSetPriorityHigh ( char * ),
CommandSetPriorityRealtime ( char * ),
CHANGE TO:
CommandSetPriorityIdle ( char * ),
CommandSetPriorityBelowNormal ( char * ),
CommandSetPriorityNormal ( char * ),
CommandSetPriorityAboveNormal ( char * ),
CommandSetPriorityHighest ( char * ),
CommandSetPriorityTimeCritical ( char * ),
*****************************************************************
set.c, line 3166 e.a.
change from:
extern void
CommandSetPriorityHigh ( char *sz ) {
Win32SetPriority ( THREAD_PRIORITY_HIGHEST,
"highest priority" );
}
extern void
CommandSetPriorityRealtime ( char *sz ) {
Win32SetPriority ( THREAD_PRIORITY_TIME_CRITIAL,
"time critical" );
}
CHANGE TO:
extern void
CommandSetPriorityHighest ( char *sz ) {
Win32SetPriority ( THREAD_PRIORITY_HIGHEST,
"highest priority" );
}
extern void
CommandSetPriorityTimeCritical ( char *sz ) {
Win32SetPriority ( THREAD_PRIORITY_TIME_CRITICAL,
"time critical" );
}
*****************************************************************
=====================================================================
3. and the makefile for win32 (but only for reckless win32 users)
add
-liconv
in line LIBS=
(and copy the libiconv.a file to mingw\lib)
__________
Nardy
- [Bug-gnubg] Changelog 1.740: typo - consistency,
Nardy Pillards <=