@@ -90,6 +90,7 @@ void print_file_header( Express express, FILES * files ) {
9090 files -> initall = FILEcreate ( " schema.cc" );
9191 fprintf ( files->initall , " \n // in the fedex_plus source code, this file is generally referred to as files->initall or schemainit\n " );
9292 fprintf ( files->initall , " #include \" schema.h\"\n " );
93+ fprintf ( files->initall , " #include \" scl_memmgr.h\"\n " );
9394 fprintf ( files->initall , " class Registry;\n " );
9495
9596 fprintf ( files->initall , " \n void SchemaInit (Registry & reg) {\n " );
@@ -103,6 +104,7 @@ void print_file_header( Express express, FILES * files ) {
103104 files -> create = FILEcreate ( " SdaiAll.cc" );
104105 fprintf ( files->create , " \n // in the fedex_plus source code, this file is generally referred to as files->create or createall\n " );
105106 fprintf ( files->create , " #include \" schema.h\"\n " );
107+ fprintf ( files->create , " #include \" scl_memmgr.h\"\n " );
106108 fprintf ( files->create , " \n void InitSchemasAndEnts (Registry & reg) {\n " );
107109
108110 // This file declares all entity classes as incomplete types. This will
@@ -379,6 +381,7 @@ void SCHEMAprint( Schema schema, FILES * files, Express model, void * complexCol
379381 fprintf ( files->inc , " \n // in the fedex_plus source code, this file is generally referred to as files->inc or incfile\n " );
380382
381383 fprintf ( incfile, " #include \" schema.h\"\n " );
384+ fprintf ( incfile, " #include \" scl_memmgr.h\"\n " );
382385
383386 np = fnm + strlen ( fnm ) - 1 ; /* point to end of constant part of string */
384387
@@ -397,6 +400,8 @@ void SCHEMAprint( Schema schema, FILES * files, Express model, void * complexCol
397400#else
398401 fprintf ( libfile, " #include \" schema.h\"\n " );
399402#endif
403+ fprintf ( libfile, " #include \" scl_memmgr.h\"\n " );
404+
400405 fprintf ( libfile,
401406 " \n #ifdef SCL_LOGGING \n "
402407 " #include <fstream.h>\n "
@@ -444,6 +449,7 @@ void SCHEMAprint( Schema schema, FILES * files, Express model, void * complexCol
444449 " #endif\n " );
445450#endif
446451 fprintf ( initfile, " #include <Registry.h>\n #include <string>\n " );
452+ fprintf ( initfile, " #include <scl_memmgr.h>\n " );
447453
448454 fprintf ( initfile, " \n void %sInit (Registry& reg) {\n std::string str;\n " , schnm );
449455
0 commit comments