~/02f522/gencpp/testgenv11/aareadme - RJL 021004 First try at rebuilding gencpp/src with GENV11: Results (compared to KMiu's original gencpp/src with genv11): ----------- saturn.cs.uml.edu(274)> pwd /usr/cs/fac1/lechner/02f522/gencpp/testgenv11/src saturn.cs.uml.edu(275)> diff . ../../src|wc 162 681 6364 saturn.cs.uml.edu(276)> diff . ../../src | grep ^diff 1:diff -bitw ./Makefile ../../src/Makefile 9:diff -bitw ./metaschema.h ../../src/metaschema.h 16:diff -bitw ./pr_delete.c ../../src/pr_delete.c 36:diff -bitw ./pr_dump.c ../../src/pr_dump.c 55:diff -bitw ./pr_free.c ../../src/pr_free.c 68:diff -bitw ./pr_load.c ../../src/pr_load.c 149:diff -bitw ./pr_stats.c ../../src/pr_stats.c -------------- Full diff output: diff -bitw ./Makefile ../../src/Makefile 3,8d2 < ## Precondition: run genv11 or genv12 -ansi -DNEW_VERSION ../metadata.sch < ## to produce pr*.c and #included metaschema.h source files listed below. < ## genv12 adds more replay functions and reduces warning messages. < ## These benefits apply to building and running a more robusts version < ## of gencpp itself, not to its generated .cc application files.-RJL 021004. < diff -bitw ./metaschema.h ../../src/metaschema.h 15a16 > #ifndef TRUE /* kmiu-added ifndef */ 17a19 > #endif Only in .: metaschema.msdat Only in .: metaschema.sch diff -bitw ./pr_delete.c ../../src/pr_delete.c 4a5,10 > /* */ > /* Revisions : */ > /* 11/30/00 kmiu NT port: included prototypes.h */ > /* 11/30/00 kmiu Added forward declaration for pr_del_bt */ > /* 11/30/00 kmiu Removed unreferenced variables */ > /* */ 8a15,17 > #include "prototypes.h" > > void pr_del_bt(char *temp1, hcg_key temp2); 239c248 < pr_del_bt(temp1,temp2) --- > void pr_del_bt(temp1,temp2) 244c253 < hcg_key result; --- > diff -bitw ./pr_dump.c ../../src/pr_dump.c 4a5,11 > /* */ > /* Revisions : */ > /* 11/30/00 kmiu NT port: included prototypes.h and stdlib.h */ > /* 11/30/00 kmiu Added forward declarations for find_view_idx(), */ > /* meets_view(), and hcg_update_version() */ > /* 11/30/00 kmiu Removed unreferenced variables */ > /* */ 7a15 > #include 8a17 > #include "prototypes.h" 10a20,22 > int find_view_idx(char *); > int meets_view(int , int , hcg_key ) ; > void hcg_update_version(hcg_key *, int , int ); 26d37 < char outkey[3][HCG_KEY_SIZE+1]; diff -bitw ./pr_free.c ../../src/pr_free.c 4a5,8 > /* */ > /* Revisions : */ > /* 11/30/00 kmiu NT port: included stdlib.h and malloc.h */ > /* */ 7a12,13 > #include > #include 31c37 < static char rcsid[] = "$Id: gen_pr_free.c,v 1.3.4.1 1999/05/04 16:59:55 jkarner Exp $"; --- > static char rcsid[] = "$Id: pr_free.c,v 1.1.2.1 1999/05/07 01:56:46 jkarner Exp $"; diff -bitw ./pr_load.c ../../src/pr_load.c 4a5,13 > /* */ > /* Revisions : */ > /* 11/30/00 kmiu NT port: included string.h and prototypes.h */ > /* 11/30/00 kmiu Added forward declaration for btree_initialized */ > /* 11/30/00 kmiu Removed unreferenced variables */ > /* 11/30/00 kmiu Fixed bug: calls to close() should be fclose() */ > /* 11/30/00 kmiu Replace call to bzero() with memset(). memset() is */ > /* defined for both unix and NT whereas bzero is not */ > /* */ 10a20,22 > #ifdef WIN32 > #include > #else 12a25 > #endif 13a27,29 > #include "prototypes.h" > > void btree_initialized(); 27c43 < static char rcsid[] = "$Id: gen_pr_utils.c,v 1.3.4.2 1999/05/07 01:25:16 jkarner Exp $"; --- > static char rcsid[] = "$Id: pr_load.c,v 1.1.2.1 1999/05/07 01:56:48 jkarner Exp $"; 398,399c414 < int abbr_size, < test, --- > int test, 535d549 < int idx; 634d647 < char *p_ch; 946,947c959 < int ret_stat, < idx; --- > int idx; 1228c1240 < char* rval; --- > 1516c1528 < unsigned int vri; --- > 1588c1600 < static char rcsid[] = "$Id: gen_pr_init.c,v 1.4.4.2 1999/05/07 01:25:13 jkarner Exp $"; --- > static char rcsid[] = "$Id: pr_load.c,v 1.1.2.1 1999/05/07 01:56:48 jkarner Exp $"; 1593d1604 < FILE filevar; 1666c1677 < close(hcg_ascii_fp); --- > fclose(hcg_ascii_fp); /* kmiu-replace "close" with "fclose" */ 1772c1783 < close(hcg_ascii_fp); --- > fclose(hcg_ascii_fp); /* kmiu-replaced "close" with "fclose" */ 1784c1795 < btree_initialized() --- > void btree_initialized() /* kmiu-added void return type */ 2068c2079 < bzero(ptr, size); /* or memset(ptr, 0, size); */ --- > /* bzero(ptr, size); or */ memset(ptr, 0, size); /* kmiu-replace bzero with memset */ 2130d2140 < char tempkey[HCG_KEY_SIZE+1]; 2409c2419 < static char rcsid[] = "$Id: gen_pr_load.c,v 1.4.4.2 1999/05/07 01:25:14 jkarner Exp $"; --- > static char rcsid[] = "$Id: pr_load.c,v 1.1.2.1 1999/05/07 01:56:48 jkarner Exp $"; 2427c2437 < close(hcg_ascii_fp); --- > fclose(hcg_ascii_fp); /* kmiu-replace close with fclose */ 2441d2450 < hcg_key result; diff -bitw ./pr_stats.c ../../src/pr_stats.c 4a5,8 > /* */ > /* Revisions : */ > /* 11/30/00 kmiu NT port: included prototypes.h and stdlib.h */ > /* */ 7a12 > #include 8a14 > #include "prototypes.h" 18c24 < static char rcsid[] = "$Id: gen_pr_stats.c,v 1.2.4.1 1999/05/04 17:00:01 jkarner Exp $"; --- > static char rcsid[] = "$Id: pr_stats.c,v 1.1.2.1 1999/05/07 01:56:50 jkarner Exp $"; -------------- End aareadme