• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

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


Commit MetaInfo

修訂40cace6a64fdc88233f310b20690e182c49030b9 (tree)
時間2021-10-20 04:42:54
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

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

差異

--- 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