summaryrefslogtreecommitdiff
path: root/source4/build/pidl/util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/util.pm')
-rw-r--r--source4/build/pidl/util.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index 916ae79d5f..16cb012d0c 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -329,7 +329,7 @@ sub c_pull_prefix($)
if ($e->{TYPE} =~ "unistr.*") {
return "&";
}
- if ($e->{TYPE} =~ "relstr.*") {
+ if ($e->{TYPE} =~ "nstring.*") {
return "&";
}
@@ -367,6 +367,17 @@ sub is_fixed_array($)
return 0;
}
+# return 1 if this is a inline array
+sub is_inline_array($)
+{
+ my $e = shift;
+ my $len = $e->{"ARRAY_LEN"};
+ if (defined $len && $len ne "*") {
+ return 1;
+ }
+ return 0;
+}
+
sub dump($)
{
print Dumper shift;