System V Pic command on 90x
Rick Kamicar
rk at pyramid.UUCP
Fri Jun 13 09:26:31 AEST 1986
I encountered this problem last friday and found the following:
The problem is caused as follows:
troffgen is called from picy.c (generated by yacc) as:
-> yyval.o = troffgen(yypvt[-0].i);
where yypvt is declared as YYSTYPE. The code for troffgen is:
-> obj *troffgen(s) /* save away a string of troff commands */
-> YYSTYPE s;
-> {
-> savetext(CENTER, s.p); /* use the existing text mechanism */
But, picy.y sends the int element of YYSTYPE --NOT the actual structure!
The simple changes below (there are 2) solve the problem...
-> obj *troffgen(s) /* save away a string of troff commands */
*-> char *s;
-> {
*-> savetext(CENTER, s); /* use the existing text mechanism */
------------------------
Richard Kamicar {allegra,cmcl2,decwrl,hplabs,topaz,ut-sally}!pyramid!rk
Pyramid Technology Corp
Mountain View, CA
+1 415 965 7200
More information about the Mod.computers.pyramid
mailing list