Re: [AD] force update selection |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> while there, remove duplicated code and add some consts.
I'm a big fan of this kind of green patches (green because it's the color
used by kwrite to display lines starting with '-' in diff files :-) that
adds a new feature and simultaneously reduces the number of lines of code!
Applied minus the two following hunks:
dat.c
@@ -758,7 +729,7 @@
case 'c':
if ((opt_compression >= 0) ||
- (argv[c][2] < '0') || (argv[c][2] > '2')) {
+ (argv[c][2] < '0') || (argv[c][2] > '3')) {
usage();
return 1;
}
grabber.c
@@ -3315,14 +3265,6 @@ int datedit_ask(AL_CONST char *fmt, ...)
return 'y';
else
return 'n';
-}
-
-
-
-/* close button callback */
-static void close_callback(void)
-{
- simulate_keypress(27 + (KEY_ESC << 8));
}
--
Eric Botcazou