diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-10-04 21:25:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:24 -0500 |
commit | 3d6279402caa862db4a7bc4697c667fbd1faa83d (patch) | |
tree | 1c90f7a429576915c8c3c79ccbc60ff786942805 /source4/pidl/lib/Parse/Pidl/Samba3/Header.pm | |
parent | 9879bc6aa6c7997220079b3501b9a4fb3682c813 (diff) | |
download | samba-3d6279402caa862db4a7bc4697c667fbd1faa83d.tar.gz samba-3d6279402caa862db4a7bc4697c667fbd1faa83d.tar.bz2 samba-3d6279402caa862db4a7bc4697c667fbd1faa83d.zip |
r10718: Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
- add allocation of arrays in marshalling phase
- handling primitive and deferred data in embedded structures / unions.
Example output is again available from http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 9fe724f6fb026d95306587f696c065f348aaf219)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba3/Header.pm')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba3/Header.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/Header.pm b/source4/pidl/lib/Parse/Pidl/Samba3/Header.pm index 1e0e2c7270..21a56e4c2d 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba3/Header.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba3/Header.pm @@ -31,6 +31,13 @@ sub ParseElement($) pidl "\tuint32 level_$e->{NAME};"; } elsif ($l->{TYPE} eq "DATA") { pidl "\t" . DeclShort($e) . ";"; + } elsif ($l->{TYPE} eq "ARRAY") { + if ($l->{IS_CONFORMANT}) { + pidl "\tuint32 size_$e->{NAME};"; + } + if ($l->{IS_VARYING}) { + pidl "\tuint32 length_$e->{NAME};"; + } } } } |