1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-30 08:23:49 +03:00
Commit Graph

442 Commits

Author SHA1 Message Date
Michael Adam
85f707c6ab pidl: Remove superfluous semicolon in perl code.
Michael
2008-02-26 16:41:09 +01:00
Volker Lendecke
ba29219ea2 Respect the return value of asprintf
This removes tons of warnings

warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result

for me. Lots of that kind left though :-)
2008-02-23 10:26:52 +01:00
Jelmer Vernooij
d1aa25249d Add test for INCLUDE command. 2008-02-19 02:02:48 +01:00
Julien Kerihuel
8a8ed4fae8 Add INCLUDE command to pidl. 2008-02-19 01:55:01 +01:00
Stefan Metzmacher
a496abc404 pidl: $size can be 'foo / 2' so we need to add '(' and ')'
'foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.

metze
2008-02-13 13:09:17 +01:00
Julien Kerihuel
ec8bd3991f Support ETT_FIELD keyword. 2008-02-13 02:24:11 +01:00
Stefan Metzmacher
99d6f49340 pidl/Samba3::ServerNDR: use talloc_tos() instead of NULL
metze
2008-02-11 08:44:56 +01:00
Julien Kerihuel
c9c1156478 pidl: Allow fixed size arrays inside unions. 2008-02-09 16:26:16 +01:00
Stefan Metzmacher
6b3817c225 pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
d7970d7032 pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
aa8518521b pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
2008-02-07 08:33:18 +01:00
Stefan Metzmacher
145d6c8ea0 pidl: remove 'pointer_default_top()' support
metze
2008-02-04 18:37:09 +01:00
Stefan Metzmacher
ec0ee2aa5f pidl/Samba4::NDR::Parser: correctly get the name of an array element
When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array of pointers).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])" which would mean
the array would apply to a different level.

This patch prepares support for:

[out,ref,size_is(,num)] [string,charset(UTF16)] uint16 ***names;

It means a [ref] pointer to a [unique] pointer to an array
of [unique] pointers which point to an UTF16 string.

metze
2008-02-02 11:16:09 +01:00
Stefan Metzmacher
7c7acae817 pidl/Samba4::NDR::Parser: fix $var_name for arrays of scalar reference types
uint32 num;
nstring strings[num];

this should use 'r->strings' instead of
'*r->strings' as the pointer to the array.

metze
2008-02-02 11:16:01 +01:00
Stefan Metzmacher
26d7f5bf96 pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function
metze
2008-02-02 11:15:52 +01:00
Stefan Metzmacher
0bcc8e53d1 pidl: revert changes it didn't want to push...sorry!
8ebf16c074 Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
6fcf2456d0 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
0569139ca2 LOOKS OK... pidl: get the pointer types correct when an element has multiple pointe
rs
13afc89a87 CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
29c104944b CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
3369015f5d CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a f
unction

metze
2008-02-02 11:13:03 +01:00
Stefan Metzmacher
8ebf16c074 Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
2008-02-01 23:21:10 +01:00
Stefan Metzmacher
6fcf2456d0 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
2008-02-01 23:15:16 +01:00
Stefan Metzmacher
0569139ca2 LOOKS OK... pidl: get the pointer types correct when an element has multiple pointers
Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
2008-02-01 22:36:05 +01:00
Stefan Metzmacher
13afc89a87 CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])".

metze
2008-02-01 22:18:54 +01:00
Stefan Metzmacher
29c104944b CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
metze
2008-02-01 21:50:22 +01:00
Stefan Metzmacher
3369015f5d CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function
metze
2008-02-01 21:29:33 +01:00
Stefan Metzmacher
3c19198143 pidl: cosmetic fix to use the same value everywhere
metze
2008-02-01 18:20:32 +01:00
Stefan Metzmacher
fdf9bcb163 pidl/IDL: don't strip ',' from the properties content
metze
2008-02-01 07:09:38 +01:00
Stefan Metzmacher
74bf021aa7 pidl/Samba4::NDR::Parse: move the calculation of NDR_PULL_SET_MEM_CTX() flags into one function
metze
2008-02-01 07:01:06 +01:00
Stefan Metzmacher
c630bece38 pidl/Samba4::NDR::Parser: pass down the correct $var_name to AllocateArrayLevel()
metze
2008-01-31 15:56:57 +01:00
Stefan Metzmacher
3131847cb6 pidl/Samba4::Header: fix typedefs of unions and structs without elements
metze
2008-01-25 10:07:43 +01:00
Stefan Metzmacher
dd77fc45ee pidl: get rid of stupid ';' char to terminate bitmap defines
metze
2008-01-24 15:04:58 +01:00
Stefan Metzmacher
c1ac13ee12 pidl/Samba4::Header: we don't need to check if (defined($enum->{ELEMENTS})) twice
metze
2008-01-24 14:57:30 +01:00
Julien Kerihuel
ed1e58e8b3 pidl: Add --version argument. 2008-01-18 18:31:03 +01:00
Jelmer Vernooij
5b2ea43ed8 pidl: Add simple test for ServerNDR. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
6a9827454a pidl: Fix missing import for fatal(). 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
0e03694830 pidl: Fix imported function for ServerNDR and add test to make sure it doesn't regress again. 2008-01-16 15:08:00 +01:00
Jelmer Vernooij
cb2700094f python: Fix handling of pointer-less strings in function arguments. 2008-01-14 20:09:18 +01:00
Jelmer Vernooij
dee64344fb python: Compile security module, handle uint. 2008-01-14 19:53:08 +01:00
Jelmer Vernooij
b662c98a9a python: Fix some corner cases handling scalars. 2008-01-14 19:53:08 +01:00
Jelmer Vernooij
b4754f4683 python: Don't try to free const pointers. 2008-01-14 19:53:08 +01:00
Jelmer Vernooij
712274b9bd python: Move some convenience macros to a separate header rather than putting them in every generated py_* file. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
6cb78c7634 python: Build epmapper module. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
16fc69b843 python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
bd3e6c41c4 python: Fix python code for winreg, add test. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
e65618fff3 pidl/python: Fix processing UUID-less interfaces, external typedefs and certain bitmap elements. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
7516af7c72 pidl/python: Deal with arrays that are not pointers. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
9c72f652e0 pidl/python: Specify memory context explicitly when returning Python objects. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
4c87af9531 pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
ebb78ea423 python: Fix rpcecho tests. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
5ee99ff31c pidl/python: Fix compilation of py_echo. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
2d2cb6486e python/pidl: Fix assignment. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
2eb4526599 pidl/python: Fix more compile errors. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
b00c1a0724 pidl/python: Fix parsing arguments, fix more pointer issues. 2008-01-14 19:53:06 +01:00