[glibmm/gmmproc-refactor] Implement some simple macros.



commit 9e186736d8bbad96d97c51fef6ef4730d0d9f264
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Thu Jun 28 23:23:43 2012 +0200

    Implement some simple macros.
    
    _CUSTOM_DEFAULT_CTOR, _DEPRECATED_IFDEF_START and _DEPRECATE_IFDEF_END.
    Those were already implemented, so only calling some function was needed.

 tools/pm/Common/WrapParser.pm |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/tools/pm/Common/WrapParser.pm b/tools/pm/Common/WrapParser.pm
index 7533ad6..036c678 100644
--- a/tools/pm/Common/WrapParser.pm
+++ b/tools/pm/Common/WrapParser.pm
@@ -2889,6 +2889,29 @@ sub _on_construct
   $section_manager->append_string_to_section (join ("\n", @lines), $section);
 }
 
+sub _on_custom_default_ctor
+{
+  my ($self) = @_;
+  my $variable = Common::Output::Shared::get_variable ($self, Common::Variables::CUSTOM_DEFAULT_CTOR);
+  my $section_manager = $self->get_section_manager ();
+
+  $section_manager->set_variable ($variable, 1);
+}
+
+sub _deprecate_ifdef_start
+{
+  my ($self) = @_;
+
+  Common::Output::Shared::deprecate_start ($self);
+}
+
+sub _deprecate_ifdef_end
+{
+  my ($self) = @_;
+
+  Common::Output::Shared::deprecate_end ($self);
+}
+
 ###
 ### HANDLERS ABOVE
 ###
@@ -3053,6 +3076,9 @@ sub new ($$$$$$)
     '_UNICHAR_FUNC_BOOL' => sub { $self->_on_unichar_func_bool (@_); },
     '_CONFIGINCLUDE' => sub { $self->_on_config_include (@_); },
     '_CONSTRUCT' => sub { $self->_on_construct (@_); },
+    '_CUSTOM_DEFAULT_CTOR' => sub { $self->_on_custom_default_ctor (@_); },
+    '_DEPRECATE_IFDEF_START' => sub { $self->_on_deprecate_ifdef_start (@_); },
+    '_DEPRECATE_IFDEF_END' => sub { $self->_on_deprecate_ifdef_end (@_); },
   };
 
   return $self;



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