[glibmm] gmmproc: Use an environment variable for the return mismatches.



commit bcf1fbc13596efeaa3900bd56e35b89b9b261858
Author: José Alburquerque <jaalburquerque gmail com>
Date:   Sun Jun 9 12:35:40 2013 -0400

    gmmproc: Use an environment variable for the return mismatches.
    
        * tools/gmmproc.in: Check for the GMMPROC_RETURN_MISMATCHES
        environment variable and use its value as the default for the internal
        boolean '$main::return_mismatches' variable which when true makes
        gmmproc report if the return type in a _WRAP_METHOD() does not match
        the C function return type.

 ChangeLog        |   10 ++++++++++
 tools/gmmproc.in |   14 +++++++-------
 2 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 67e5620..d5647da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-06-09  José Alburquerque  <jaalburquerque gmail com>
+
+       gmmproc: Use an environment variable for the return mismatches.
+
+       * tools/gmmproc.in: Check for the GMMPROC_RETURN_MISMATCHES
+       environment variable and use its value as the default for the internal
+       boolean '$main::return_mismatches' variable which when true makes
+       gmmproc report if the return type in a _WRAP_METHOD() does not match
+       the C function return type.
+
 2013-06-07  Kjell Ahlstedt  <kjell ahlstedt bredband net>
 
        gmmproc: Write glibmm version in generated files.
diff --git a/tools/gmmproc.in b/tools/gmmproc.in
index eb9b35f..8b57653 100644
--- a/tools/gmmproc.in
+++ b/tools/gmmproc.in
@@ -60,13 +60,13 @@ use Output;
 use WrapParser;
 
 # initialize globals 
- main::macrodirs = ();
-$main::srcdir    = '.';
-$main::defsdir   = '.';
-$main::source    = '';
-$main::unwrapped = 1;
-$main::return_mismatches = 0;
-$main::debug     = (exists $ENV{'GMMPROC_DEBUG'}) ? $ENV{'GMMPROC_DEBUG'} : '';
+ main::macrodirs         = ();
+$main::srcdir            = '.';
+$main::defsdir           = '.';
+$main::source            = '';
+$main::unwrapped         = 1;
+$main::return_mismatches = (exists $ENV{'GMMPROC_RETURN_MISMATCHES'}) ? $ENV{'GMMPROC_RETURN_MISMATCHES'} : 
0;
+$main::debug             = (exists $ENV{'GMMPROC_DEBUG'}) ? $ENV{'GMMPROC_DEBUG'} : '';
 
 # prototypes
 sub parse_command_line_args();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]