]> git.saurik.com Git - bison.git/blobdiff - data/bison.m4
List accepted values for a %define enum variable with an invalid value.
[bison.git] / data / bison.m4
index 3c68c4c1c34b99ff819e772c7ae4f09ffaf05a19..9f88b6a6ba7d6261677023d1aee8298a420b8c83 100644 (file)
@@ -724,7 +724,11 @@ m4_define([_b4_percent_define_check_values],
          [b4_complain_at(b4_percent_define_get_loc([$1]),
                          [[invalid value for %%define variable `%s': `%s']],
                          [$1],
-                         m4_dquote(m4_indir([b4_percent_define(]$1[)])))])dnl
+                         m4_dquote(m4_indir([b4_percent_define(]$1[)])))
+          m4_foreach([b4_value], m4_dquote(m4_shift($@)),
+                     [b4_complain_at(b4_percent_define_get_loc([$1]),
+                                     [[accepted value: `%s']],
+                                     m4_dquote(b4_value))])])dnl
    m4_popdef([b4_good_value])],
   [b4_fatal([[undefined %%define variable `%s' passed to b4_percent_define_check_values]], [$1])])])