diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2012-03-26 15:10:07 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2012-03-26 15:10:07 +0200 |
commit | 722b9d793b3873d7ecc0c716843953ed2844a84c (patch) | |
tree | 74cd5f66d8f064de0a41066ca59eb1372f42328b /tools/pm | |
parent | dd87cf35aba1b8dd611f49fcce5cc8f7104f3e44 (diff) | |
download | glibmm-722b9d793b3873d7ecc0c716843953ed2844a84c.tar.gz |
gmmproc: _WRAP_PROPERTY(): Fix mixed-up deprecation and documentation.
* tools/pm/Output.pm: Add $deprecated in the first call to _PROPERTY_PROXY().
* tools/m4/property.m4: Correct comments in .cc files by swapping #endif's
in _PROPERTY_PROXY().
Diffstat (limited to 'tools/pm')
-rw-r--r-- | tools/pm/Output.pm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm index 8fa21d78..889b7168 100644 --- a/tools/pm/Output.pm +++ b/tools/pm/Output.pm @@ -84,20 +84,20 @@ sub error sub ifdef($$) { - my ($self, $ifdef) = @_; - if ($ifdef) - { - $self->append("\n#ifdef $ifdef\n"); - } + my ($self, $ifdef) = @_; + if ($ifdef) + { + $self->append("\n#ifdef $ifdef\n"); + } } sub endif($$) { - my ($self, $ifdef) = @_; - if ($ifdef) - { - $self->append("\n#endif // $ifdef\n"); - } + my ($self, $ifdef) = @_; + if ($ifdef) + { + $self->append("\n#endif // $ifdef\n"); + } } ### Convert _WRAP to a virtual @@ -669,11 +669,12 @@ sub output_wrap_property($$$$$$$$) $self->append("\n_DEPRECATE_IFDEF_START\n"); } - my $str = sprintf("_PROPERTY_PROXY(%s,%s,%s,%s,`%s')dnl\n", + my $str = sprintf("_PROPERTY_PROXY(%s,%s,%s,%s,%s,`%s')dnl\n", $name, $name_underscored, $cpp_type, $proxy_suffix, + $deprecated, $documentation ); $self->append($str); @@ -688,7 +689,7 @@ sub output_wrap_property($$$$$$$$) $name_underscored, $cpp_type, "_ReadOnly", - $deprecated, + $deprecated, $documentation ); $self->append($str); @@ -1109,8 +1110,8 @@ sub output_implements_interface($$) my ($self, $interface, $ifdef) = @_; my $str = sprintf("_IMPLEMENTS_INTERFACE_CC(%s, %s)dnl\n", - $interface, - $ifdef); + $interface, + $ifdef); $self->append($str); } |