remove helper function header - code moved to headers for individual types/entities

This commit is contained in:
Mark Pictor 2014-02-02 14:39:56 -05:00
parent 317b40bff0
commit a7579f0bc9
3 changed files with 1 additions and 25 deletions

View file

@ -115,7 +115,7 @@ string makeShortName( const char * longName ) {
if( strlen( longName ) < filename.size() ) {
filename = longName;
}
filename.insert( 0, "Sdai_" );
filename.insert( 0, "sdai_" );
return filename;
}
@ -164,7 +164,6 @@ void writeLists( const char * schemaName, stringstream & eh, stringstream & ei,
cmLists << "set( " << shortName << "_misc_hdrs" << endl;
cmLists << " Sdaiclasses.h schema.h" << endl;
cmLists << " Sdai" << schema_upper << "Helpers.h" << endl;
cmLists << " Sdai" << schema_upper << "Names.h" << endl;
cmLists << " Sdai" << schema_upper << ".h" << endl;
cmLists << " )" << endl << endl;

View file

@ -67,8 +67,6 @@ typedef struct file_holder {
* Nec. if ent1 of schemaA has attribute ent2 from schemaB.
*/
FILE * names; /**< MAP Nov 2011 - header with namespace for entity and attr descriptors */
FILE * helpers; /**< MAP Mar 2012 - header with inline helper functions. Currently only used for
helper functions to find runtime aggregate bounds */
} File_holder, FILES;
/** these fields are used so that ENTITY types are processed in order

View file

@ -448,7 +448,6 @@ void SCHEMAprint( Schema schema, FILES * files, void * complexCol,
#endif
fprintf( initfile, "#include <Registry.h>\n#include <string>\n" );
fprintf( initfile, "#include <sc_memmgr.h>\n" );
fprintf( files->init, "\n#include \"%sHelpers.h\"\n", schnm );
fprintf( initfile, "\nvoid %sInit (Registry& reg) {\n", schnm );
@ -497,15 +496,6 @@ void SCHEMAprint( Schema schema, FILES * files, void * complexCol,
initfile = files->init = fopen( fnm, "a" );
}
// 5. header containing inline helper functions (for runtime aggregate bounds, possibly other uses)
sprintf( fnm, "%sHelpers.h", schnm );
if( !( files->helpers = FILEcreate( fnm ) ) ) {
return;
}
fprintf( files->helpers, "\n// In the exp2cxx source code, this file is referred to as files->helpers.\n// This line printed at %s:%d (one of two possible locations).\n\n", __FILE__, __LINE__ );
fprintf( files->helpers, "//this file contains inline helper functions (for runtime aggregate bounds, possibly other uses)\n\n" );
/********** record in files relating to entire input ***********/
/* add to schema's include and initialization file */
@ -533,7 +523,6 @@ void SCHEMAprint( Schema schema, FILES * files, void * complexCol,
} else {
fclose( initfile );
}
FILEclose( files->helpers );
}
/** ****************************************************************
@ -650,18 +639,8 @@ EXPRESSPrint( Express express, ComplexCollect & col, FILES * files ) {
fprintf( files->init, "\n// in the exp2cxx source code, this file is generally referred to as files->init or initfile\n" );
fprintf( initfile, "#include \"%s.h\"\n\n", schnm );
fprintf( files->init, "\n#include \"%sHelpers.h\"\n", schnm );
fprintf( initfile, "void \n%sInit (Registry& reg)\n{\n", schnm );
// 5. header containing inline helper functions (for runtime aggregate bounds, possibly other uses)
sprintf( fnm, "%sHelpers.h", schnm );
if( !( files->helpers = FILEcreate( fnm ) ) ) {
return;
}
fprintf( files->helpers, "\n// In the exp2cxx source code, this file is referred to as files->helpers.\n// This line printed at %s:%d (one of two possible locations).\n\n", __FILE__, __LINE__ );
fprintf( files->helpers, "//this file contains inline helper functions (for runtime aggregate bounds, possibly other uses)\n\n" );
/********** record in files relating to entire input ***********/
/* add to schema's include and initialization file */