• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Demonstration of groff .psbb request handling code, for EPS and PDF input files


Commit MetaInfo

Révision40cace6a64fdc88233f310b20690e182c49030b9 (tree)
l'heure2021-10-20 04:42:54
AuteurKeith Marshall <keith@user...>
CommiterKeith Marshall

Message de Log

Avoid use of yacc-incompatible bison directives.

* psbb.y (%name-prefix): Directive is bison-specific; delete, and...
* GNUmakefile (YFLAGS): ...append corresponding '-p' assignment.

Change Summary

Modification

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -47,6 +47,12 @@ CPPFLAGS += -I ${srcdir} -I ${srcdir}/libgroff
4747 %.tab.c %.tab.h: %.y
4848 $(YACC) $(YFLAGS) -b $* -d $<
4949
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+
5056 # This is a minimal subset of libgroff.a, (just sufficient to satisfy
5157 # our immediate requirements for our .psbb handler test program).
5258 #
--- a/psbb.y
+++ b/psbb.y
@@ -27,8 +27,6 @@
2727 #define psbb_assign psbb_assign_registers
2828 %}
2929
30-%name-prefix = "psbb_"
31-
3230 %token PDFSTART PDFROOT
3331 %token VALUE PDFLOOKUP PDFOBJECT PDFOBJREF PDFENDOBJ
3432