cleanup
This commit is contained in:
+14
-14
@@ -41,20 +41,20 @@ int print_logging = 0;
|
||||
int corba_binding = 0;
|
||||
int old_accessors = 0;
|
||||
|
||||
/* several classes use attr_count for naming attr dictionary entry
|
||||
variables. All but the last function generating code for a particular
|
||||
entity increment a copy of it for naming each attr in the entity.
|
||||
Here are the functions:
|
||||
ENTITYhead_print (Entity entity, FILE* file,Schema schema)
|
||||
LIBdescribe_entity (Entity entity, FILE* file, Schema schema)
|
||||
LIBcopy_constructor (Entity ent, FILE* file)
|
||||
LIBstructor_print (Entity entity, FILE* file, Schema schema)
|
||||
LIBstructor_print_w_args (Entity entity, FILE* file, Schema schema)
|
||||
ENTITYincode_print (Entity entity, FILE* file,Schema schema)
|
||||
DAS
|
||||
*/
|
||||
static int attr_count; ///< number each attr to avoid inter-entity clashes
|
||||
static int type_count; ///< number each temporary type for same reason above
|
||||
static int attr_count; /**< number each attr to avoid inter-entity clashes
|
||||
several classes use attr_count for naming attr dictionary entry
|
||||
variables. All but the last function generating code for a particular
|
||||
entity increment a copy of it for naming each attr in the entity.
|
||||
Here are the functions:
|
||||
ENTITYhead_print (Entity entity, FILE* file,Schema schema)
|
||||
LIBdescribe_entity (Entity entity, FILE* file, Schema schema)
|
||||
LIBcopy_constructor (Entity ent, FILE* file)
|
||||
LIBstructor_print (Entity entity, FILE* file, Schema schema)
|
||||
LIBstructor_print_w_args (Entity entity, FILE* file, Schema schema)
|
||||
ENTITYincode_print (Entity entity, FILES* files,Schema schema)
|
||||
DAS
|
||||
*/
|
||||
static int type_count; ///< number each temporary type for same reason as \sa attr_count
|
||||
|
||||
extern int any_duplicates_in_select( const Linked_List list );
|
||||
extern int unique_types( const Linked_List list );
|
||||
|
||||
@@ -700,37 +700,21 @@ EXPRESSPrint( Express express, ComplexCollect & col, FILES * files ) {
|
||||
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
** Procedure: print_schemas_combined
|
||||
** Parameters:
|
||||
Express express -- in memory representation of an express model
|
||||
FILES* files -- set of output files to print to
|
||||
** Returns:
|
||||
** Description: drives functions to generate code for all the schemas
|
||||
** in an Express model into one set of files -- works with EXPRESSPrint
|
||||
** Side Effects: generates code
|
||||
** Status: 24-Feb-1992 new -kcm
|
||||
******************************************************************/
|
||||
|
||||
void
|
||||
print_schemas_combined( Express express, ComplexCollect & col, FILES * files ) {
|
||||
|
||||
/**
|
||||
* drives functions to generate code for all the schemas
|
||||
* in an Express model into one set of files -- works with EXPRESSPrint
|
||||
* Side Effects: generates code
|
||||
* Status: 24-Feb-1992 new -kcm
|
||||
*/
|
||||
void print_schemas_combined( Express express, ComplexCollect & col, FILES * files ) {
|
||||
EXPRESSPrint( express, col, files );
|
||||
}
|
||||
|
||||
/*
|
||||
** Procedure: print_file
|
||||
** Parameters: const Schema schema - top-level schema to print
|
||||
** FILE* file - file on which to print
|
||||
** Returns: void
|
||||
** Description: this function calls one of two different functions
|
||||
** depending on whether the output should be combined into a single
|
||||
** set of files or a separate set for each schema
|
||||
**
|
||||
*/
|
||||
|
||||
void
|
||||
print_file( Express express ) {
|
||||
/** this function calls one of two different functions
|
||||
* depending on whether the output should be combined into a single
|
||||
* set of files or a separate set for each schema
|
||||
*/
|
||||
void print_file( Express express ) {
|
||||
extern void RESOLUTIONsucceed( void );
|
||||
int separate_schemas = 1;
|
||||
ComplexCollect col( express );
|
||||
|
||||
Reference in New Issue
Block a user