Ignore:
Timestamp:
2004-05-26T16:38:42+12:00 (20 years ago)
Author:
kjdon
Message:

tidied up the setting filename and basepath path stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/packages/mg/src/text/gs3_mg_passes.c

    r7440 r7452  
    4545/*
    4646   $Log$
     47   Revision 1.3  2004/05/26 04:38:42  kjdon
     48   tidied up the setting filename and basepath path stuff
     49
    4750   Revision 1.2  2004/05/26 02:39:57  kjdon
    4851   some hacky changes - fix up under linux
     
    281284}
    282285
    283 void set_path(char * filen) {
     286void set_filename(char * filen) {
    284287  int len = strlen(filen);
    285288  if (filename) {
     
    300303 
    301304}
    302 void set_paths(char * basep, char* filen) {
    303   int len = strlen(filen);
    304   if (filename) {
    305     Xfree (filename);
    306     filename = NULL;
    307   }
    308 
    309   filename = Xstrdup (filen);
    310   set_basepath(basep);
    311   // put this here for now
    312   SkipSGML=0;
    313   Dump=1;
    314   trace = 512;
    315   if (!trace_name)
    316     trace_name = make_name (filename, TRACE_SUFFIX, NULL);
    317   if (!(Trace = fopen (trace_name, "a")))
    318     Message ("Unable to open \"%s\". No tracing will be done.", trace_name);
    319   else
    320     setbuf (Trace, NULL);
    321  
    322  
    323 }
     305
    324306
    325307void add_pass (char pass_type, char pass_num) {
Note: See TracChangeset for help on using the changeset viewer.