Ignore:
Timestamp:
1999-10-18T12:43:31+13:00 (25 years ago)
Author:
cs025
Message:

Changes to eradicate Xmalloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/bool_tester.cpp

    r655 r711  
    2424/*
    2525   $Log$
     26   Revision 1.2  1999/10/17 23:43:23  cs025
     27   Changes to eradicate Xmalloc
     28
    2629   Revision 1.1  1999/10/11 02:57:06  cs025
    2730   Base install of MG-PP
     
    7679#define STEM_METHOD 3
    7780
    78 static FILE *file_in = stdin;
    79 static FILE *file_out = stdout;
     81#define FILE_IN stdin
     82#define FILE_OUT stdout
    8083static char line[MAX_LINE_LEN + 1];
    8184
     
    147150      if (res == 0)
    148151    {
    149       fprintf (file_out, "\n***Parsed Expression***\n");
    150       PrintBoolTree (tree, file_out);
    151       fputc ('\n', file_out);
     152      fprintf (FILE_OUT, "\n***Parsed Expression***\n");
     153      PrintBoolTree (tree, FILE_OUT);
     154      fputc ('\n', FILE_OUT);
    152155      OptimiseBoolTree (tree, term_list, opt_type);
    153       fprintf (file_out, "\n***Optimised Expression ***\n");
    154       PrintBoolTree (tree, file_out);
    155       fputc ('\n', file_out);
     156      fprintf (FILE_OUT, "\n***Optimised Expression ***\n");
     157      PrintBoolTree (tree, FILE_OUT);
     158      fputc ('\n', FILE_OUT);
    156159    }
    157160
     
    170173prompt (char *str)
    171174{
    172   fprintf (file_out, "\n%s\n", str);
    173   return fgets (line, MAX_LINE_LEN, file_in);
     175  fprintf (FILE_OUT, "\n%s\n", str);
     176  return fgets (line, MAX_LINE_LEN, FILE_IN);
    174177}
Note: See TracChangeset for help on using the changeset viewer.