Changeset 27c3a93
- Timestamp:
- Oct 17, 2003, 8:55:32 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 2a2bb60
- Parents:
- b4db911
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r6a50af2 r27c3a93 1 1 $Id$ 2 2 3 2.0.9-pre-2 4 Better reporting of perl errors (both into the errqueue 5 and also clearing the error after displaying it). 6 Allow default_style to be specified in config. 7 3 8 2.0.9-pre-1 4 9 Added errqueue -
owl.c
rec6ff52 r27c3a93 279 279 /* set the startup and default style, based on userclue and presence of a 280 280 * formatting function */ 281 if (owl_global_is_config_format(&g)) { 281 if (0 != strcmp(owl_global_get_default_style(&g), "__unspecified__")) { 282 /* the style was set by the user: leave it alone */ 283 } else if (owl_global_is_config_format(&g)) { 282 284 owl_global_set_default_style(&g, "perl"); 283 285 } else if (owl_global_is_userclue(&g, OWL_USERCLUE_CLASSES)) { -
owl.h
rec6ff52 r27c3a93 21 21 static const char owl_h_fileIdent[] = "$Id$"; 22 22 23 #define OWL_VERSION 2.0.9-pre- 124 #define OWL_VERSION_STRING "2.0.9-pre- 1"23 #define OWL_VERSION 2.0.9-pre-2 24 #define OWL_VERSION_STRING "2.0.9-pre-2" 25 25 26 26 #define OWL_DEBUG 0 -
perlconfig.c
rf1e629d r27c3a93 121 121 if (SvTRUE(ERRSV)) { 122 122 STRLEN n_a; 123 owl_function_makemsg("Perl Error: '%s'", SvPV(ERRSV, n_a)); 123 owl_function_error("Perl Error: '%s'", SvPV(ERRSV, n_a)); 124 /* and clear the error */ 125 sv_setsv (ERRSV, &PL_sv_undef); 124 126 } 125 127 … … 178 180 if (ret || SvTRUE(ERRSV)) { 179 181 STRLEN n_a; 180 return owl_strdup(SvPV(ERRSV, n_a)); 182 char *err; 183 err = owl_strdup(SvPV(ERRSV, n_a)); 184 sv_setsv (ERRSV, &PL_sv_undef); /* and clear the error */ 185 return err; 181 186 } 182 187 … … 184 189 if (ret || SvTRUE(ERRSV)) { 185 190 STRLEN n_a; 186 return owl_strdup(SvPV(ERRSV, n_a)); 191 char *err; 192 err = owl_strdup(SvPV(ERRSV, n_a)); 193 sv_setsv (ERRSV, &PL_sv_undef); /* and clear the error */ 194 return err; 187 195 } 188 196 … … 207 215 if (SvTRUE(ERRSV)) { 208 216 STRLEN n_a; 209 return owl_strdup(SvPV(ERRSV, n_a)); 217 char *err; 218 err = owl_strdup(SvPV(ERRSV, n_a)); 219 sv_setsv (ERRSV, &PL_sv_undef); /* and clear the error */ 220 return err; 210 221 } 211 222 … … 257 268 if (SvTRUE(ERRSV)) { 258 269 STRLEN n_a; 259 owl_function_makemsg("Perl Error: '%s'", SvPV(ERRSV, n_a)); 270 owl_function_error("Perl Error: '%s'", SvPV(ERRSV, n_a)); 271 sv_setsv (ERRSV, &PL_sv_undef); /* and clear the error */ 260 272 } 261 273 -
variable.c
r836ea3a3 r27c3a93 202 202 NULL, owl_variable_tty_set, NULL), 203 203 204 OWLVAR_STRING( "default_style" /* %OwlVarStub */, " default",204 OWLVAR_STRING( "default_style" /* %OwlVarStub */, "__unspecified__", 205 205 "name of the default formatting style", 206 206 "This sets the default message formatting style.\n"
Note: See TracChangeset
for help on using the changeset viewer.