Changeset 711 for trunk/gsdl/src/mgpp/text/bool_tester.cpp
- Timestamp:
- 1999-10-18T12:43:31+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/bool_tester.cpp
r655 r711 24 24 /* 25 25 $Log$ 26 Revision 1.2 1999/10/17 23:43:23 cs025 27 Changes to eradicate Xmalloc 28 26 29 Revision 1.1 1999/10/11 02:57:06 cs025 27 30 Base install of MG-PP … … 76 79 #define STEM_METHOD 3 77 80 78 static FILE *file_in = stdin; 79 static FILE *file_out = stdout; 81 #define FILE_IN stdin 82 #define FILE_OUT stdout 80 83 static char line[MAX_LINE_LEN + 1]; 81 84 … … 147 150 if (res == 0) 148 151 { 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); 152 155 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); 156 159 } 157 160 … … 170 173 prompt (char *str) 171 174 { 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); 174 177 }
Note:
See TracChangeset
for help on using the changeset viewer.