Changeset 00f9a7d
- Timestamp:
- Jan 8, 2007, 6:50:12 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- f265f94
- Parents:
- 15bd5ef
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 18:50:09)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 18:50:12)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.c
r312675c r00f9a7d 108 108 } 109 109 configfile=argv[1]; 110 abort(); /*We dirty hackers have broken -c for now--hartmans*/111 110 argv+=2; 112 111 argc-=2; … … 305 304 owl_function_debugmsg("startup: processing config file"); 306 305 owl_context_set_readconfig(owl_global_get_context(&g)); 307 perlerr=owl_perlconfig_readconfig( );306 perlerr=owl_perlconfig_readconfig(configfile); 308 307 if (perlerr) { 309 308 endwin(); -
perlconfig.c
r25729b2 r00f9a7d 220 220 221 221 222 char *owl_perlconfig_readconfig( void)222 char *owl_perlconfig_readconfig(char * file) 223 223 { 224 224 int ret; … … 267 267 perl_get_sv("owl::host", TRUE); 268 268 perl_get_av("owl::fields", TRUE); 269 269 270 if(file) { 271 SV * cfg = get_sv("owl::configfile", TRUE); 272 sv_setpv(cfg, file); 273 } 274 270 275 perl_eval_pv(owl_perlwrap_codebuff, FALSE); 271 276 -
perlwrap.pm
r25729b2 r00f9a7d 18 18 19 19 20 our $configfile = $::ENV{'HOME'}."/.owlconf"; 20 our $configfile; 21 22 $configfile ||= $::ENV{'HOME'}."/.owlconf"; 21 23 22 24 # populate global variable space for legacy owlconf files … … 455 457 # load the config file 456 458 if (-r $owl::configfile) { 457 do $owl::configfile or die $@; 459 undef $!; 460 undef $@; 461 do $owl::configfile; 462 die $@ if $@; 463 die $! if $!; 458 464 } 459 465
Note: See TracChangeset
for help on using the changeset viewer.