Changeset 1342 for branches/z3950-branch/gsdl/src/recpt/recptconfig.cpp
- Timestamp:
- 2000-08-03T14:49:41+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/z3950-branch/gsdl/src/recpt/recptconfig.cpp
r1090 r1342 22 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 23 * 24 * $Id$25 *26 24 *********************************************************************/ 27 28 /*29 $Log$30 Revision 1.8 2000/04/14 03:10:35 sjboddie31 tidied up a few issues concerning the new debug info which showed32 up on windows33 34 Revision 1.7 2000/04/14 02:52:06 sjboddie35 tidied up error messaging and set up some debugging info to be output36 when running library from command line37 38 Revision 1.6 2000/02/21 21:55:33 sjboddie39 gsdlhome now comes from gsdlsite.cfg40 41 Revision 1.5 1999/09/07 04:56:59 sjboddie42 added GPL notice43 44 Revision 1.4 1999/09/07 00:09:31 sjboddie45 now reads in both main.cfg and collect.cfg always46 47 Revision 1.3 1999/02/21 22:33:57 rjmcnab48 49 Lots of stuff :-)50 51 Revision 1.2 1999/02/08 01:28:04 rjmcnab52 53 Got the receptionist producing something using the statusaction.54 55 Revision 1.1 1999/02/05 06:50:32 rjmcnab56 57 Initial revision.58 59 */60 61 25 62 26 #include "recptconfig.h" … … 87 51 text_tarray cfgline; 88 52 text_t key; 53 54 #ifdef GSDL_USE_IOS_H 89 55 ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate); 56 #else 57 ifstream confin ("gsdlsite.cfg", ios::in); 58 #endif 90 59 91 60 if (confin) { … … 122 91 text_tarray cfgline; 123 92 text_t key; 93 94 #ifdef GSDL_USE_IOS_H 124 95 ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate); 96 #else 97 ifstream confin ("gsdlsite.cfg", ios::in); 98 #endif 125 99 126 100 if (confin) { … … 153 127 if (file_exists (filename)) { 154 128 char *cstr = filename.getcstr(); 129 130 #ifdef GSDL_USE_IOS_H 155 131 ifstream confin (cstr, ios::in | ios::nocreate); 132 #else 133 ifstream confin (cstr, ios::in); 134 #endif 135 156 136 delete cstr; 157 137 … … 186 166 if (!filename.empty()) { 187 167 char *cstr = filename.getcstr(); 168 169 #ifdef GSDL_USE_IOS_H 188 170 ifstream confin (cstr, ios::in | ios::nocreate); 171 #else 172 ifstream confin (cstr, ios::in); 173 #endif 174 189 175 delete cstr; 190 176
Note:
See TracChangeset
for help on using the changeset viewer.