Changeset ac70242 for readconfig.c
- Timestamp:
- Apr 20, 2003, 12:05:15 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:
- 69894d2
- Parents:
- 801c7cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
readconfig.c
rb45293f rac70242 11 11 static const char fileIdent[] = "$Id$"; 12 12 13 14 15 13 extern XS(boot_owl); 16 14 … … 45 43 perl_construct(p); 46 44 45 /* start by assuming no config */ 47 46 owl_global_set_no_have_config(&g); 48 47 … … 52 51 } 53 52 53 /* This is the CMU code for reading a site owlconf. Not sure if I 54 want it yet */ 55 /* 56 ret=stat(filename, &statbuff); 57 if (ret) { 58 sprintf(filename, "%s/%s", DATADIR, "owl/owlconf"); 59 ret=stat(filename, &statbuff); 60 if (ret) { 61 return(0); 62 } 63 } 64 */ 65 54 66 ret=perl_parse(p, owl_perl_xs_init, 2, embedding, NULL); 55 67 if (ret) return(-1); 56 57 68 ret=perl_run(p); 58 69 if (ret) return(-1); 59 70 71 /* if we get this far, we have a good config file */ 60 72 owl_global_set_have_config(&g); 61 73
Note: See TracChangeset
for help on using the changeset viewer.