Demonstration of groff .psbb request handling code, for EPS and PDF input files
Revision | 40cace6a64fdc88233f310b20690e182c49030b9 (tree) |
---|---|
Time | 2021-10-20 04:42:54 |
Author | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Avoid use of yacc-incompatible bison directives.
* psbb.y (%name-prefix): Directive is bison-specific; delete, and...
* GNUmakefile (YFLAGS): ...append corresponding '-p' assignment.
@@ -47,6 +47,12 @@ CPPFLAGS += -I ${srcdir} -I ${srcdir}/libgroff | ||
47 | 47 | %.tab.c %.tab.h: %.y |
48 | 48 | $(YACC) $(YFLAGS) -b $* -d $< |
49 | 49 | |
50 | +# When running this $(YACC) rule, we may need supplementary $(YFLAGS) | |
51 | +# to assign a symbol prefix, so that we do not depend on non-portable | |
52 | +# directives, supported by bison, but not by yacc. | |
53 | +# | |
54 | +psbb.tab.c psbb.tab.h: YFLAGS += -p psbb_ | |
55 | + | |
50 | 56 | # This is a minimal subset of libgroff.a, (just sufficient to satisfy |
51 | 57 | # our immediate requirements for our .psbb handler test program). |
52 | 58 | # |
@@ -27,8 +27,6 @@ | ||
27 | 27 | #define psbb_assign psbb_assign_registers |
28 | 28 | %} |
29 | 29 | |
30 | -%name-prefix = "psbb_" | |
31 | - | |
32 | 30 | %token PDFSTART PDFROOT |
33 | 31 | %token VALUE PDFLOOKUP PDFOBJECT PDFOBJREF PDFENDOBJ |
34 | 32 |