[glibmm] tools/pm: Remove whitespace on empty lines in recently edited perl files.



commit 488ab2ed4090beccdcbec4edd80e997edaac6943
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Tue Nov 6 16:32:20 2012 -0500

    tools/pm: Remove whitespace on empty lines in recently edited perl files.

 tools/pm/DocsParser.pm |   10 +++++-----
 tools/pm/Enum.pm       |    4 ++--
 tools/pm/Function.pm   |    2 +-
 tools/pm/Output.pm     |   16 ++++++++--------
 tools/pm/WrapParser.pm |    6 +++---
 5 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm
index 0a56e55..6379981 100644
--- a/tools/pm/DocsParser.pm
+++ b/tools/pm/DocsParser.pm
@@ -272,23 +272,23 @@ sub lookup_enum_description($)
 sub lookup_enum_value_documentation($$)
 {
   my ($enum_name, $c_val_name) = @_;
-  
+
   # Assume that there is no description.
   my $desc = "";
 
   my $obj_function = $DocsParser::hasharrayFunctions{$enum_name};
-  
+
   if($obj_function)
   {
     my $param_descriptions = \$$obj_function{param_descriptions};
     $desc = $$param_descriptions->{$c_val_name};
   }
- 
+
   if(!$desc or length($desc) eq 0)
   {
     return "";
   }
-  
+
   DocsParser::convert_docs_to_cpp($obj_function, \$desc);
   DocsParser::add_m4_quotes(\$desc);
 
@@ -338,7 +338,7 @@ sub lookup_documentation($$)
 
   # Escape the space after "i.e." or "e.g." in the brief description.
   $text =~ s/^([^.]*\b(?:i\.e\.|e\.g\.))\s/$1\\ /;
-  
+
   remove_example_code($functionName, \$text);
 
   # Convert to Doxygen-style comment.
diff --git a/tools/pm/Enum.pm b/tools/pm/Enum.pm
index fa372cc..20b1b6d 100644
--- a/tools/pm/Enum.pm
+++ b/tools/pm/Enum.pm
@@ -218,7 +218,7 @@ sub parse_values($$)
   {
     # cut off the module prefix, e.g. GTK_
     s/^$common_prefix// foreach (@$elem_names);
-    
+
     # Save the common prefix.
     $$self{c_prefix}  = $common_prefix;
   }
@@ -322,7 +322,7 @@ sub build_element_list($$$$)
       $name  =~ s/${subst_in[$ii]}/${subst_out[$ii]}/;
       $value =~ s/${subst_in[$ii]}/${subst_out[$ii]}/;
     }
-   
+
     my $docs  =
       DocsParser::lookup_enum_value_documentation("$$self{c_type}",
         "$$self{c_prefix}$name");
diff --git a/tools/pm/Function.pm b/tools/pm/Function.pm
index 598178b..4da2bf3 100644
--- a/tools/pm/Function.pm
+++ b/tools/pm/Function.pm
@@ -331,7 +331,7 @@ sub parse_param($$)
   }
 
   $type = string_trim($type);
-  
+
   # Determine if the param is optional, an output param 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).
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm
index 3dd34da..071ae97 100644
--- a/tools/pm/Output.pm
+++ b/tools/pm/Output.pm
@@ -154,7 +154,7 @@ sub output_wrap_vfunc_cc($$$$$$$$)
       $custom_vfunc, $custom_vfunc_callback, $ifdef) = @_;
 
   my $cname = $$objCFunc{name};
-  
+
   my $errthrow = "";
   if($$objCFunc{throw_any_errors})
   {
@@ -601,16 +601,16 @@ sub output_wrap_enum($$$$$$$)
 
   my $value_suffix = "Enum";
   $value_suffix = "Flags" if($$objEnum{flags});
-  
+
   # Get the existing enum description from the parsed docs.
   my $description = DocsParser::lookup_enum_description("$c_type");
 
   # Prepend the Doxygen marker ' * ' to all but the first line.
   $description =~ s/\n/\n * /g;
- 
+
   # Make sure indentation of passed in comment is correct.
   $comment =~ s/\n\s*\*/\n */g;
- 
+
   # Merge the passed in comment to the existing enum documentation.
   $comment = $comment . "\n * " . $description;
 
@@ -718,7 +718,7 @@ sub output_wrap_property($$$$$$$$)
     {
       $self->append("\n_DEPRECATE_IFDEF_START\n");
     }
-    
+
     my $str = sprintf("_PROPERTY_PROXY(%s,%s,%s,%s,%s,`%s')dnl\n",
       $name,
       $name_underscored,
@@ -744,7 +744,7 @@ sub output_wrap_property($$$$$$$$)
       );
       $self->append($str);
     }
-    
+
     if($deprecated ne "")
     {
       $self->append("\n_DEPRECATE_IFDEF_END");
@@ -986,7 +986,7 @@ sub convert_args_cpp_to_c($$$$$)
       # Remove a possible final '*' from the output parameter type because it
       # will be passed by C reference (&name).
       $cOutputParamType =~ s/\*$//;
- 
+
       # Only initialize pointers to zero.  Otherwise, use the default
       # constructor of the type.
       my $initialization = "";
@@ -1046,7 +1046,7 @@ sub convert_args_c_to_cpp($$$)
   my @result;
 
   my $num_c_args = scalar(@{$c_param_types});
-  
+
   # If the the function has been marked as a function that throws errors (Glib::Error)
   # don't count the last GError** argument.
   $num_c_args-- if($$objCDefsFunc{throw_any_errors});
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm
index e55479b..ca100e8 100644
--- a/tools/pm/WrapParser.pm
+++ b/tools/pm/WrapParser.pm
@@ -1319,14 +1319,14 @@ sub on_wrap_property($)
 
   my $filename = $$self{filename};
   my $line_num = $$self{line_num};
-  
+
   #TODO: Reduce duplication with on_wrap_method():
   my $argDeprecated = "";
   my $deprecation_docs = "";
   while($#args >= 2) # If the optional arguments are there.
   {
     my $argRef = string_trim(pop @args);
-    
+
     if($argRef =~ /^deprecated(.*)/) #If deprecated is at the start.
     {
       $argDeprecated = "deprecated";
@@ -1337,7 +1337,7 @@ sub on_wrap_property($)
       }
     }
   }
-    
+
 
   $objOutputter->output_wrap_property($filename, $line_num, $argPropertyName, $argCppType, $$self{c_class}, $argDeprecated, $deprecation_docs);
 }



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