Changeset 601733d
- Timestamp:
- Jul 30, 2008, 6:35:08 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 731dd1e
- Parents:
- bfc127b
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
filter.c
raf1920fd r601733d 29 29 while ( argc>=2 && ( !strcmp(argv[0], "-c") || 30 30 !strcmp(argv[0], "-b") ) ) { 31 if (owl_util_string_to_color(argv[1])== -1) {31 if (owl_util_string_to_color(argv[1])==OWL_COLOR_INVALID) { 32 32 owl_function_error("The color '%s' is not available, using default.", argv[1]); 33 33 } else { -
functions.c
rdd28b51 r601733d 2392 2392 return; 2393 2393 } 2394 if (owl_util_string_to_color(argv[3])== -1) {2394 if (owl_util_string_to_color(argv[3])==OWL_COLOR_INVALID) { 2395 2395 owl_function_error("The color '%s' is not available.", argv[3]); 2396 2396 return; … … 2407 2407 return; 2408 2408 } 2409 if (owl_util_string_to_color(argv[3])== -1) {2409 if (owl_util_string_to_color(argv[3])==OWL_COLOR_INVALID) { 2410 2410 owl_function_error("The color '%s' is not available.", argv[3]); 2411 2411 return; … … 2941 2941 } 2942 2942 2943 if (owl_util_string_to_color(fgcolor)== -1) {2943 if (owl_util_string_to_color(fgcolor)==OWL_COLOR_INVALID) { 2944 2944 owl_function_error("No color named '%s' avilable.", fgcolor); 2945 2945 return(-1); … … 2948 2948 2949 2949 if (bgcolor != NULL) { 2950 if (owl_util_string_to_color(bgcolor)== -1) {2950 if (owl_util_string_to_color(bgcolor)==OWL_COLOR_INVALID) { 2951 2951 owl_function_error("No color named '%s' avilable.", bgcolor); 2952 2952 return(-1); -
owl.h
rd7a3188 r601733d 100 100 #define OWL_COLOR_WHITE 7 101 101 #define OWL_COLOR_DEFAULT -1 102 #define OWL_COLOR_INVALID -2 102 103 103 104 #define OWL_EDITWIN_STYLE_MULTILINE 0 -
util.c
ree310eb r601733d 498 498 return(c); 499 499 } 500 return( -1);500 return(OWL_COLOR_INVALID); 501 501 } 502 502
Note: See TracChangeset
for help on using the changeset viewer.