summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2011-06-05 09:33:42 -0400
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2011-06-05 09:33:42 -0400
commit018b7fb5cecdd109985d63534b83d62faf2dc626 (patch)
treef53e82ebe07ab871cda5aaebc1f9e2b24c5af9bd
parentf5ea40615be4c757dd57f93700f466d4c3223560 (diff)
downloadglibmm-018b7fb5cecdd109985d63534b83d62faf2dc626.tar.gz
gmmproc: Do not use NULL for optional parameters or properties.
* tools/pm/Output.pm (convert_args_cpp_to_c): (get_ctor_properties): Substitute 0 instead of NULL for optional parameters or properties.
-rw-r--r--ChangeLog8
-rw-r--r--tools/pm/Output.pm8
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 49379293..9a2d62fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-05 José Alburquerque <jaalburqu@svn.gnome.org>
+
+ gmmproc: Do not use NULL for optional parameters or properties.
+
+ * tools/pm/Output.pm (convert_args_cpp_to_c):
+ (get_ctor_properties): Substitute 0 instead of NULL for optional
+ parameters or properties.
+
2011-06-04 Murray Cumming <murrayc@murrayc.com>
Fix the build with --enable-warnings=fatal.
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm
index 2fe68058..977d95a9 100644
--- a/tools/pm/Output.pm
+++ b/tools/pm/Output.pm
@@ -835,7 +835,7 @@ sub convert_args_cpp_to_c($$$$$)
# possibly added GError parameter).
if ($$cpp_param_optional[$i])
{
- push(@result, "NULL");
+ push(@result, "0");
next;
}
}
@@ -843,7 +843,7 @@ sub convert_args_cpp_to_c($$$$$)
{
# If this argument is not in the desired argument list (The argument
# indices are stored in ascending order) then pass NULL to C func.
- push(@result, "NULL");
+ push(@result, "0");
next;
}
else
@@ -992,7 +992,7 @@ sub get_ctor_properties($$$$$)
# possibly added GError parameter).
if ($$cpp_param_optional[$i])
{
- push(@result, "NULL");
+ push(@result, "0");
next;
}
}
@@ -1000,7 +1000,7 @@ sub get_ctor_properties($$$$$)
{
# If this argument is not in the desired argument list (The argument
# indices are stored in ascending order) then pass NULL to C func.
- push(@result, "NULL");
+ push(@result, "0");
next;
}
else