]> granicus.if.org Git - graphviz/commitdiff
use api.prefix to set gml parser's prefix
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Sep 2020 01:47:30 +0000 (18:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 22 Sep 2020 14:44:09 +0000 (07:44 -0700)
Related to #1806.

cmd/tools/gmlparse.y

index b3dd1b899d7a8f3b85767f8eb2edb7ad3edd8caa..c3e3bde86aa263fbc595663c48adcbfdfcfc1514 100644 (file)
 
 %require "3.0"
 
+  /* By default, Bison emits a parser using symbols prefixed with "yy". Graphviz
+   * contains multiple Bison-generated parsers, so we alter this prefix to avoid
+   * symbol clashes.
+   */
+%define api.prefix {gml}
+
 %{
 #include <stdlib.h>
 #include <stddef.h>