Script started on Fri Apr 19 22:24:16 1996
[remus1](52)> pwd
/nfs/jupiter/proj3/case/gen/ver_10/src
----------------------
Message 21/516  From Robert Costello                Apr 18, 96 10:07:42 pm -0400
Subject: chgen.rebuilt.with.fixes
To: bgegrp, lechner (Bob Lechner)
Date: Thu, 18 Apr 1996 22:07:42 -0400 (EDT)
Cc: rcostell@cs.uml.edu, rcostell@shore.net, rconnell@cs.uml.edu,
        rconnell@mitre.org


I revised and rebuilt chgen10 per our discussion last evening.  Three
modules were changed --

lut_h_file.h -- eliminated semi-colon from define for bool.  this resulted
in a warning message during compilation of pr_load.c

gen_pr_delete.c -- added casts to void * to correct warning messages
for incompatable pointer types during compilation of pr_delete.c

gen_pr_utils.c -- replaced code that generated ..btidx declares for bde
table types with a loop that generates the required ..btidx declares
based on the tt_type structures build internally by chgen from the
input schema

I was able to build chgen for alpha and tested the program with the 
schooldb schema.

The path for the CHGEN source is --
$CASE/96s523/bdesym/rcostell/chgen10/chgen10/src/
The path for the CHGEN executable for alpha is
$CASE/96s523/bdesym/rcostell/chgen10/chgen10/executables

The path for the SCHOOLDB schema test cases is --
$CASE/96s523/bdesym/rcostell/test_macros.

-----------------------------------------------

[remus1](54)> diff .  $CASE/96s523/bdesym/rcostell/chgen10/chgen10/src 
diff -bitw ./Makefile /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src/Makefile
5c5
< CC = gcc -ansi
---
> CC = gcc -traditional
Only in /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src: Makefile.ansi
Only in .: aareadme
Only in .: chgen
diff -bitw ./gen_defines.c /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src/gen_defines.c
36,37d35
< /* Fixed the declaration of encode() in the .sch file output                  */
< /* (fatal error discovered by RConnell of 96s523/bdesym team). - RJL 96/4/4.  */
38a37,38
> 
> 
Only in .: gen_defines.c.bak
diff -bitw ./gen_pr_delete.c /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src/gen_pr_delete.c
20c20
< /*                                                                            */
---
> /*               96s523:  Added void * to generated unlink_child_bp_m         *//*               macro to avoid type conflicts                                *//*                                                                            */
346c346
<     fprintf(prdel_fp, "  ca%stemp->p%s_bpp = ca%stemp->p%s_fpp = ca%stemp->p%s_pp = NULL; \\\n",sep,sep,sep,sep,sep,sep);
---
>     fprintf(prdel_fp, "  ca%stemp->p%s_bpp = (void *)ca%stemp->p%s_fpp = (void *)ca%stemp->p%s_pp = NULL; \\\n",sep,sep,sep,sep,sep,sep);
diff -bitw ./gen_pr_utils.c /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src/gen_pr_utils.c
20c20
< /*                                                                            */
---
> /*             : 96s523:  replaced generation of fixed ..btidx declares with  *//*                        code to loop through tt_type structures             *//*                                                                            */
53,66c53,60
< 
<         /* These wrere previously declared were previously gen_defines.c */
<         /* and were moved here do fix a 'multiply defined' problem on OSF. */
<         /* maldred 22-Nov-95 */
<         fprintf (prload_fp, "int FObtidx;\n"); 
<         fprintf (prload_fp, "int GDbtidx;\n"); 
<         fprintf (prload_fp, "int HGbtidx;\n"); 
<         fprintf (prload_fp, "int HNbtidx;\n"); 
<         fprintf (prload_fp, "int HAbtidx;\n"); 
<         fprintf (prload_fp, "int HLbtidx;\n"); 
<         fprintf (prload_fp, "int HPbtidx;\n"); 
<         fprintf (prload_fp, "int HIbtidx;\n"); 
<         fprintf (prload_fp, "int CGbtidx;\n"); 
<         fprintf (prload_fp, "int GXbtidx;\n"); 
---
>         /************************************************ bdesym ***/
>         tt_curr=tt;
>         while(tt_curr != NULL)
>         {
>          fprintf(prload_fp,"int %sbtidx;\n",tt_curr->TTabbr);
>          tt_curr=tt_curr->next_ptr;
>         }
>         /************************************************ bdesym ***/
diff -bitw ./lut_h_file.h /usr/proj3/case/96s523/bdesym/rcostell/chgen10/chgen10/src/lut_h_file.h
11c11
<  * (removed ':' after #define bool...   - RJL 96/4/16)                  \n\
---
>  *                                                                      \n\
Only in .: typescript

script done on Fri Apr 19 22:25:29 1996

