diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2011-06-12 15:50:20 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2011-06-12 15:50:20 -0400 |
commit | aaaaee65c394254a07349fd5ae0899dbaa80edcf (patch) | |
tree | 19ca36e91e38c18d645789e22f5434cfb72a36b4 | |
parent | 69d8fbe6ac19810ce7602f08b7170fe74aa4ffdc (diff) | |
download | glibmm-aaaaee65c394254a07349fd5ae0899dbaa80edcf.tar.gz |
gmmproc: Use '.' instead of '-' in parameter reordering.
* tools/pm/Function.pm (parse_param): Use a '.' instead of a '-' to
signify that the C++ parameter name should be used as the C parameter
name to map the current C++ parameter to.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | tools/pm/Function.pm | 16 |
2 files changed, 16 insertions, 8 deletions
@@ -1,3 +1,11 @@ +2011-06-12 José Alburquerque <jaalburqu@svn.gnome.org> + + gmmproc: Use '.' instead of '-' in parameter reordering. + + * tools/pm/Function.pm (parse_param): Use a '.' instead of a '-' to + signify that the C++ parameter name should be used as the C parameter + name to map the current C++ parameter to. + 2011-06-09 José Alburquerque <jaalburqu@svn.gnome.org> Gio::DBus::Connection::emit_signal(): Say why convert empty strings. diff --git a/tools/pm/Function.pm b/tools/pm/Function.pm index cfa64ad6..8032c047 100644 --- a/tools/pm/Function.pm +++ b/tools/pm/Function.pm @@ -254,13 +254,13 @@ sub parse_param($$) # Determine if the param is optional or if a C param name should be # mapped to the current C++ index (if name ends with {c_name?}). (A - # '-' for the name means use the C++ as the C name). - if ($name =~ /\{\s*(\w*|-)\s*(\??)\s*\}$/) + # '.' for the name means use the C++ as the C name). + if ($name =~ /\{\s*(\w*|\.)\s*(\??)\s*\}$/) { $is_optional = 1 if($2); $mapping = $1 if($1); - $name =~ s/\{\s*(\w|-)*\??\s*\}$//; - $mapping = $name if($mapping eq "-"); + $name =~ s/\{\s*(\w|\.)*\??\s*\}$//; + $mapping = $name if($mapping eq "."); } push(@$param_types, $type); @@ -326,13 +326,13 @@ sub parse_param($$) # Determine if the param is optional or if a C param name should be # mapped to the current C++ index (if name ends with {c_name?}). (A - # '-' for the name means use the C++ as the C name). - if ($name =~ /\{\s*(\w*|-)\s*(\??)\s*\}$/) + # '.' for the name means use the C++ as the C name). + if ($name =~ /\{\s*(\w*|\.)\s*(\??)\s*\}$/) { $is_optional = 1 if($2); $mapping = $1 if($1); - $name =~ s/\{\s*(\w*|-)\??\s*\}$//; - $mapping = $name if($mapping eq "-"); + $name =~ s/\{\s*(\w*|\.)\??\s*\}$//; + $mapping = $name if($mapping eq "."); } push(@$param_types, $type); |