> In the fixgram script, it essentially executes "ex" to create 
> y.tab.h and
> edit y.tab.c.  The script starts off by doing a find on "yyval," which
> places it at the top of this bit of code:
>       int yyval 0;
>       int *yypv;
>       int yylval 0;
>       yyactr(__np__){
> 
> The script then deletes the first three lines, leaving only the
> "yyactr(__np__){" line.  A little further on, the script 
> tries to append
> these lines:
>         register int yyYpv;
>         register int *p, *q;
>         yyYpv = sp;
> 
> My question is, where are these lines supposed to go?  
> They're winding up
> being inserted at line 2, and not after the line with 
> "yyactr(__np__){" in
> it.

I'm sorry for having put this of for such a long time. There are 
areas that are more 'Tales From The Crypt' than 'In Remembrance
Of Things Past'. But it's Halloween season so I'm grabbing spikes 
and crucifix ...

Have a look at
ftp://ftp.sap.com/pub/sapdb/bin/tmp/fixgram.tgz.
This contains a changed fixgram, which saves all the intermediate results 
of the editing session. It also contains these intermediate results as written on my 
machine. Maybe this hints at the problem.

cd sys/src/base/ptoc/pcomp
rm y.tab.c
cp <whereever>/fixgram .
make -f pgenc y.tab.c

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org/
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to