[glibmm] m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.
- Date: Mon, 13 Jun 2011 20:30:22 +0000 (UTC)
commit a3d290094b7dddd911ea860606c742b4b5b3a27d
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Mon Jun 13 16:25:37 2011 -0400
m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.
* tools/m4/convert_base.m4 (_INITIALIZE): Changed the macro so that $1
substitutes the C++ type without the final ampersand (&) for
convenience.
ChangeLog | 8 ++++++++
tools/m4/convert_base.m4 | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 782f12a..92759d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-13 José Alburquerque <jaalburqu svn gnome org>
+
+ m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.
+
+ * tools/m4/convert_base.m4 (_INITIALIZE): Changed the macro so that $1
+ substitutes the C++ type without the final ampersand (&) for
+ convenience.
+
2011-06-12 José Alburquerque <jaalburqu svn gnome org>
gmmproc: Use '.' instead of '-' in parameter reordering.
diff --git a/tools/m4/convert_base.m4 b/tools/m4/convert_base.m4
index 81d8785..06963c1 100644
--- a/tools/m4/convert_base.m4
+++ b/tools/m4/convert_base.m4
@@ -41,7 +41,7 @@ m4_ifelse(`$3',,,`define(CF`'__HASH2(`$1',`$2'),`$3')')
define(`_INITIALIZE',`dnl
m4_ifelse(`$1',void,`$4',`dnl
pushdef(`__INI',`IN`'__HASH2(`$1',`$2')')dnl
-m4_ifdef(__INI,`m4_indir(__INI,`$1',`$2',`$3', `$4')',`
+m4_ifdef(__INI,`m4_indir(__INI,m4_substr(`$1',`0',m4_decr(m4_len(`$1'))),`$2',`$3', `$4')',`
m4_errprint(`No initialization for type $1 from type $2 defined (line: $5, output param: $3, c return: $4)
')
m4_m4exit(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]