X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c53b6848897960bc783afdbc230e1a247977d63d..c2ecada32b06915f83037ddc420d72efdfdca384:/data/bison.m4?ds=sidebyside diff --git a/data/bison.m4 b/data/bison.m4 index fc33d564..ca27159c 100644 --- a/data/bison.m4 +++ b/data/bison.m4 @@ -853,7 +853,7 @@ b4_percent_define_if_define_([$1], [$2], $[1], $[2])]) # --------------------------------------------------------------------- m4_define([b4_percent_define_check_kind], [b4_percent_define_ifdef_([$1], - [m4_if(b4_percent_define_get_kind([[$1]]), [$2], [], + [m4_if(b4_percent_define_get_kind([$1]), [$2], [], [b4_error([m4_default([$3], [complain])], b4_percent_define_get_loc([$1]), [m4_case([$2], @@ -1026,7 +1026,14 @@ m4_define_default([b4_location_initial_line], [1]) ## Sanity checks. ## ## --------------- ## +# api.location.prefix={...} (Java and C++). +b4_percent_define_check_kind([api.location.type], [code], [deprecated]) + +# api.position.prefix={...} (Java). +b4_percent_define_check_kind([api.position.type], [code], [deprecated]) + # api.prefix >< %name-prefix. +b4_percent_define_check_kind([api.prefix], [code], [deprecated]) b4_percent_define_ifdef([api.prefix], [m4_ifdef([b4_prefix], [b4_complain_at(b4_percent_define_get_loc([api.prefix]),