Commit 9524a4a5 authored by rdubner's avatar rdubner

Remove references to files that are no longer needed

parent f4cfe0b3
......@@ -100,7 +100,7 @@ CreateSymc(PARAMETERS &params,
compiling .sym.c
*/
string fname = params.cbl_filename.GetFname();
string fname = params.c_filename.GetFname();
stringstream ss_tab;
stringstream ss;
......@@ -281,8 +281,8 @@ main(int argc, char *argv[])
#endif
// Scan the .h files for working storage and local storage locations
ScanAllDotHFiles(params.cbl_filename.Path(),
params.cbl_filename.GetFname(),
ScanAllDotHFiles(params.c_filename.Path(),
params.c_filename.GetFname(),
cob_pic_symbols,
cob_data,
cob_field_attributes,
......
......@@ -264,23 +264,15 @@ GetParameters(int argc, char *argv[])
}
input_parameter = argv[optind];
retval.cbl_filename.Decode(input_parameter);
retval.basename = retval.cbl_filename.GetFname();
retval.i_filename.Decode(retval.cbl_filename.Stem() + ".i");
retval.c_filename.Decode(retval.cbl_filename.Stem() + ".c");
retval.lst_filename.Decode(retval.cbl_filename.Stem() + ".lst");
retval.cbl_lst_filename.Decode(retval.cbl_filename.Stem() + ".cbl.lst");
retval.full_csv_filename.Decode(retval.cbl_filename.Stem() + ".full.tab");
retval.csv_filename.Decode(retval.cbl_filename.Stem() + ".tab");
retval.symc_filename.Decode(retval.cbl_filename.Stem() + ".sym.c");
retval.c_filename.Decode(input_parameter);
retval.basename = retval.c_filename.GetFname();
retval.c_filename.Decode(retval.c_filename.Stem() + ".c");
retval.cbl_lst_filename.Decode(retval.c_filename.Stem() + ".cbl.lst");
retval.symc_filename.Decode(retval.c_filename.Stem() + ".sym.c");
//OpenOrFail(retval.cbl,retval.cbl_filename.WholePath());
OpenOrFail(retval.i,retval.i_filename.WholePath());
OpenOrFail(retval.c,retval.c_filename.WholePath());
OpenOrFail(retval.lst,retval.lst_filename.WholePath());
OpenOrFail(retval.cbl_lst,retval.cbl_lst_filename.WholePath());
OpenOrFail(retval.full_csv,retval.full_csv_filename.WholePath());
OpenOrFail(retval.csv,retval.csv_filename.WholePath());
OpenOrFail(retval.symc,retval.symc_filename.WholePath());
return retval;
......
......@@ -110,29 +110,15 @@ class PARAMETERS
public:
std::string basename;
FILENAME cbl_filename; // Original COBOL source code
FILENAME cbl_lst_filename; // GnucCOBOL-generated stylized source code,
// // with parsed STORAGE sections
FILENAME i_filename; // intermediate COBOL source code file
// // generated by GnuCOBOL
FILENAME c_filename; // intermediate C source code file
// // generated by GnuCOBOL
FILENAME lst_filename; // Mixed C/assembler listing file generated
// // by GAS assembler when gcc processes c_filename
FILENAME full_csv_filename; // Our original output file, with everything
// // we know in it.
FILENAME csv_filename; // Our output file, destined to be read
// // downstream
FILENAME symc_filename; // The source file for the .debug_gdb_scrips
// //
//std::ifstream cbl; // Streams for the above files
std::ifstream cbl_lst;
std::ifstream i;
std::ifstream c;
std::ifstream lst;
std::ofstream full_csv;
std::ofstream csv;
std::ofstream symc;
bool quiet;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment