file: object.cc
#include "object.h" void listing::getcode() { line temp; while(lineres.next(temp)) //OVERLOAD CALL: next: resolved_line.cc(resolved_line), line.cpp(line), pre.cpp(preprocessor) { const pair<const int,line> tmp(temp.number(),temp); code.insert(tmp); } } void ex_listing::output(line& in,ostream& dumper) { if (in.location()!=-1){ for(;location_number<in.location();location_number++) dumper << endl; dumper << in.resolvedstring(); } } void object::dump(String filename) { ofstream dumper; dumper.open(filename); getcode();//get all the code //OVERLOAD CALL: getcode: object.cc(listing), object.cc(object_object) map<int,line,comp_int>::iterator counter=code.begin(); for (;counter!=code.end();counter++){ output((*counter).second,dumper); //OVERLOAD CALL: output: object.cc(ex_listing), object.cc(object_object), object.h(listing) } } void object_object::getcode() { line temp; while(lineres.next(temp)) //OVERLOAD CALL: next: resolved_line.cc(resolved_line), line.cpp(line), pre.cpp(preprocessor) { if (code.find(temp.location())!=code.end()) err(DOUBLE_MAP,temp,(*(code.find(temp.location()))).second); else { const pair<const int,line> tmp(temp.location(),temp); code.insert(tmp); } } } void object_object::output(line& in,ostream& dumper) { if (in.location()!=-1){ for(;location_number<in.location();location_number++) dumper << 0; dumper << in.byte(); } }
Back to Source File Index
C++ to HTML Conversion by ctoohtml