Changeset 1864
- Timestamp:
- 2001-01-26T10:29:32+13:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/cnfgator.h
r1860 r1864 1 #include <vector.h> 1 #if defined(GSDL_USE_OBJECTSPACE) 2 # include <ospace/std/vector> 3 # include <ospace/std/vector> 4 #elif defined(GSDL_USE_IOS_H) 5 # include <vector.h> 6 #else 7 # include <vector> 8 #endif 2 9 3 10 #include "cfgread.h" -
trunk/gsdl/lib/fileutil.cpp
r1837 r1864 346 346 // For current needs it's fine though. 347 347 // -- Pass a linelength of 0 to use the default linelength (256 chars). 348 // -- The maximum value of linelength is MAXLINELENGTH 348 349 text_t file_tail (const text_t &filename, int numlines, int linelength) { 349 350 351 #define MAXLINELENGTH 2048 352 350 353 if (numlines < 1) numlines = 1; 351 if (linelength == 0) linelength = 256; 352 354 if (linelength < 1) linelength = 256; 355 if (linelength > MAXLINELENGTH) linelength = MAXLINELENGTH; 356 353 357 streampos numchars = linelength*numlines; 354 358 … … 357 361 358 362 char *filenamec = filename.getcstr(); 359 char linec[ linelength];363 char linec[MAXLINELENGTH]; 360 364 ifstream file_in (filenamec); 361 365 delete filenamec; -
trunk/gsdl/src/recpt/cgiwrapper.cpp
r1860 r1864 30 30 #include <stdlib.h> 31 31 #include <assert.h> 32 #include <iostream.h>33 32 34 33 #if defined(GSDL_USE_OBJECTSPACE) … … 282 281 283 282 outconvertclass text_t2ascii; 284 recptconf &configinfo = recpt.get_configinfo ();283 const recptconf &configinfo = recpt.get_configinfo (); 285 284 text_t etc_dir = filename_cat (configinfo.gsdlhome, "etc"); 286 285 … … 449 448 int numrequests = 0; 450 449 bool debug = false; 451 recptconfconfiginfo = recpt.get_configinfo ();450 const recptconf &configinfo = recpt.get_configinfo (); 452 451 453 452 // find out whether this is being run as a cgi-script
Note:
See TracChangeset
for help on using the changeset viewer.