]> git.saurik.com Git - bison.git/commitdiff
skeletons: fix output directives
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 19 Dec 2012 10:17:29 +0000 (11:17 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 19 Dec 2012 10:29:51 +0000 (11:29 +0100)
* data/lalr1.cc, data/location.cc, data/glr.cc: Use b4_output_begin.
Broken during a merge.

data/glr.cc
data/lalr1.cc
data/location.cc

index 741ea71bae28b20a7cf95a38f2d7c66dd2f6fdde..85aca842d8ef3d3d8e30cf433f8d5489638fb459 100644 (file)
@@ -314,9 +314,7 @@ b4_percent_define_flag_if([[global_tokens_and_yystype]],
 ])
 
 b4_defines_if(
-[m4_changecom()dnl
-m4_divert_push(0)dnl
-@output(b4_spec_defines_file@)@
+[b4_output_begin([b4_spec_defines_file])
 b4_copyright([Skeleton interface for Bison GLR parsers in C++],
              [2002-2012])[
 
index 37522aa3a1827f9d9ec86bd2ca6a89990b9289e4..7b2aef2d85f82b6150f77dd490bd42047c4e9e36 100644 (file)
@@ -332,11 +332,8 @@ b4_public_types_define])[
 ]b4_percent_code_get([[provides]])[
 ]])
 
-# We do want M4 expansion after # for CPP macros.
-m4_changecom()
 b4_defines_if(
-[m4_divert_push(0)dnl
-@output(b4_spec_defines_file@)@
+[b4_output_begin([b4_spec_defines_file])
 b4_copyright([Skeleton interface for Bison LALR(1) parsers in C++])
 [
 /**
index 631247a7961bb2d94028203352a9074be719b8a5..b65bf49062fed54075a8aee54a872f81b5013859 100644 (file)
@@ -268,8 +268,6 @@ m4_define([b4_location_define],
 ]])
 
 
-# We do want M4 expansion after # for CPP macros.
-m4_changecom()
 b4_defines_if([
 b4_output_begin([b4_dir_prefix[]position.hh])
 b4_copyright([Positions for Bison parsers in C++])[