]> granicus.if.org Git - graphviz/commitdiff
use api.prefix to set HTML parser's prefix
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Sep 2020 03:12:17 +0000 (20:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 15 Sep 2020 04:25:14 +0000 (21:25 -0700)
Related to #1806.

lib/common/htmlparse.y

index 0e07cf6a1cc9dd47c79e064de90c348e1e3e5f2e..715aa91f66971814ef1332b44056b1d581a01261 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 {html}
+
 %{
 
 #include <common/render.h>