diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-11 20:19:47 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-11 20:37:21 +0100 |
commit | 47fff7a1b91c3ae89b8c1c1713366d74ac3497bb (patch) | |
tree | 98475b2428dd0ec239dd55b541bf9bc81e201f44 /source4/pidl/lib/Parse/Pidl/Samba4/NDR | |
parent | 378dff1365801b2dd23677a38f2fb20828cbbf39 (diff) | |
download | samba-47fff7a1b91c3ae89b8c1c1713366d74ac3497bb.tar.gz samba-47fff7a1b91c3ae89b8c1c1713366d74ac3497bb.tar.bz2 samba-47fff7a1b91c3ae89b8c1c1713366d74ac3497bb.zip |
pidl: Remove multiple copies of get_pointer_of and get_value_of.
(This used to be commit 79344c9c5e0e38155facb0c7b16e84a0dca3d2eb)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4/NDR')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index c9b48b017c..a261910c17 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -14,6 +14,7 @@ require Exporter; use strict; use Parse::Pidl::Typelist qw(hasType getType mapTypeName); use Parse::Pidl::Util qw(has_property ParseExpr ParseExprExt print_uuid); +use Parse::Pidl::CUtil qw(get_pointer_to get_value_of); use Parse::Pidl::NDR qw(GetPrevLevel GetNextLevel ContainsDeferred); use Parse::Pidl::Samba4 qw(is_intree choose_header); use Parse::Pidl qw(warning); @@ -89,29 +90,6 @@ sub is_charset_array($$) return has_property($e, "charset"); } -sub get_pointer_to($) -{ - my $var_name = shift; - - if ($var_name =~ /^\*(.*)$/) { - return $1; - } elsif ($var_name =~ /^\&(.*)$/) { - return "&($var_name)"; - } else { - return "&$var_name"; - } -} - -sub get_value_of($) -{ - my $var_name = shift; - - if ($var_name =~ /^\&(.*)$/) { - return $1; - } else { - return "*$var_name"; - } -} #################################### # pidl() is our basic output routine |