[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Use b4_c_modern.
From: |
Akim Demaille |
Subject: |
[PATCH] Use b4_c_modern. |
Date: |
Wed, 18 Feb 2009 17:54:39 +0100 |
* data/c.m4 (b4_c_function_decl): Here.
---
ChangeLog | 5 +++++
data/c.m4 | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9e76978..ef97e9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-02-19 Akim Demaille <address@hidden>
+ Use b4_c_modern.
+ * data/c.m4 (b4_c_function_decl): Here.
+
+2009-02-19 Akim Demaille <address@hidden>
+
Comment changes.
* data/lalr1.cc: here.
diff --git a/data/c.m4 b/data/c.m4
index 030f6e4..ffa4a84 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -1,8 +1,8 @@
-*- Autoconf -*-
# C M4 Macros for Bison.
-# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008 Free Software
-# Foundation, Inc.
+# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008, 2009
+# Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -342,7 +342,7 @@ m4_define([b4_c_knr_formal_decl],
# -----------------------------------------------------------
# Declare the function NAME.
m4_define([b4_c_function_decl],
-[#if defined __STDC__ || defined __cplusplus
+[#if b4_c_modern
b4_c_ansi_function_decl($@)
#else
$2 $1 ();
--
1.6.2.rc0.35.g1b53
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Use b4_c_modern.,
Akim Demaille <=