1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

305 Commits

Author SHA1 Message Date
Stefan Metzmacher
1aa024dfbb r24509: pass down the full ndr elements instead of the old pidl elements
from ->{ORIGINAL}

metze
(This used to be commit e8ebee2698d7d91d8cf25b3017f3414578607ff5)
2007-10-10 15:02:06 -05:00
Stefan Metzmacher
de512e88a9 r24508: add HeaderTypeNew() which will go if everything is converted
metze
(This used to be commit 0eba05b6a67eb5b119e9054af3fe9db855cb9fbe)
2007-10-10 15:02:05 -05:00
Stefan Metzmacher
3d753b59a9 r24507: pass $d down to HeaderTypedef
metze
(This used to be commit 0edec25af84744074aeeb5f8f7b61a6c78ef35b7)
2007-10-10 15:02:05 -05:00
Stefan Metzmacher
9785c25519 r24506: pass $fn down one more layer
metze
(This used to be commit 8cc3fd09ffce6f389d979ec0a49d2ecefda70dd1)
2007-10-10 15:02:04 -05:00
Stefan Metzmacher
f9bca9e9ac r24505: pass down $fn one level
metze
(This used to be commit 0bad3f06199341aeacef228e482ab755e2e48306)
2007-10-10 15:02:04 -05:00
Stefan Metzmacher
575c870926 r24493: - it turns out that
foreach my $e (@{$union->{ELEMENTS}}) {
  changes $union->{ELEMENTS} from undef into an empty array.
  this removes the difference between
  struct foo { }; and struct foo;
  So we need to explicit return before.
- we should return the same element for layout for
  structs and unions with no elements.
- fix the testsuite to match

metze
(This used to be commit 5f1f50cd27e3702b79a19dbe1079498cbfc4842b)
2007-10-10 15:02:01 -05:00
Stefan Metzmacher
2cbbb00a6c r24490: For ParseBitmap() we use Parse::Pidl::Typelist::bitmap_type_fn()
so for ParseEnum() we should also use Parse::Pidl::Typelist::enum_type_fn().

Also the base_type() property isn't standard IDL and we should not support it.

This changes TDR enum to also to default to uint16 (as with NDR enums).

metze
(This used to be commit 13144bdea914f92b5e15fa807fa7ef7c4d6510a2)
2007-10-10 15:02:00 -05:00
Stefan Metzmacher
e3162d376c r24489: only typedef enum { ... } foo; enum's should look
for has_properties() of $enum->{PARENT}

metze
(This used to be commit 65f3bb8c19971c605fb81fa66317e2ee99132edc)
2007-10-10 15:01:59 -05:00
Stefan Metzmacher
53cd0b017a r24488: enum's and bitmap's not have nested types
metze
(This used to be commit 47fb2d42dfa917f5aca4daaacf53134afc22d288)
2007-10-10 15:01:59 -05:00
Stefan Metzmacher
e87adacc43 r24484: pass down $ndr tree instead of the $pidl tree to Samba4/Header.pm
metze
(This used to be commit 212e8ec8d51b75fdfed5ae1ea228133811186a72)
2007-10-10 15:01:57 -05:00
Stefan Metzmacher
42ded6d10b r24482: white space cleanup only...
metze
(This used to be commit 8a23db61e425d10a6f9710a277497d60b114a753)
2007-10-10 15:01:57 -05:00
Stefan Metzmacher
ff71b118b8 r24463: we have a function to correctly create an $env object
so don't try it manually and introduce bugs:-)

metze
(This used to be commit a79129a4ae412f29a0d730f49327269a92ec8402)
2007-10-10 15:01:54 -05:00
Stefan Metzmacher
449c9f1f1c r24454: when level 0 is a pointer we need to look for an array in level 1...
metze
(This used to be commit ca50b1ad3afbf02fef7c6d1fcbe11d23c515d340)
2007-10-10 15:01:53 -05:00
Stefan Metzmacher
eab315fe1e r24452: bail out instead of only giving a warning on
incorrect idl files

metze
(This used to be commit 8aacab6f6a04d0f56bed945e07cd894ac1344ace)
2007-10-10 15:01:53 -05:00
Stefan Metzmacher
645e87281c r24446: We only need one genric GenerateFunctionInEnv
function

metze
(This used to be commit 0c5be644ba13c68b7378a6ae9dcd314018ece25d)
2007-10-10 15:01:51 -05:00
Stefan Metzmacher
2b3161d8de r24407: $element->{ARRAY_LEN} doesn't exist...
and a few lines above we use $element->{ORIGINAL}->{ARRAY_LEN}
I assume it was just forgotten in the update.

metze
(This used to be commit 89ea0339b5f95b27ad0eaed430d1f264722a7e84)
2007-10-10 15:01:51 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Ronnie Sahlberg
7bf94150da r23721: For unions, The TAG and the ARM are aligned independently.
Move emitting ALIGN_TO_x_BYTES to after the tag has been dissected so the
alignment only affects the ARM.
(This used to be commit 22945854d91c87cc17df681db5fd3c6871cdaadc)
2007-10-10 14:59:08 -05:00
Jelmer Vernooij
b157580538 r22742: Fix tests.
(This used to be commit 7240c2d7e30968b751d944f8a9a50573fcbe6671)
2007-10-10 14:52:08 -05:00
Jelmer Vernooij
ac0e2b606f r22741: Add MSVC-specific pragma's for Wireshark. Patch from Ronnie.
(This used to be commit 40d6235b2491462bae480415e2ae075c041b3b7e)
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
c83c6740ab r22667: revert revision 22640 as it breaks nested structs in idl
metze
(This used to be commit b5c84460fc8599fbd894bcf8c4f7b440e2424af1)
2007-10-10 14:51:59 -05:00
Stefan Metzmacher
0bc6c5a7b1 r22640: - generate nicer output
- fix compiler warning about unused ';'

metze
(This used to be commit 715060187f482486f00e2d6b2cd62d2a0e215a2f)
2007-10-10 14:51:57 -05:00
Stefan Metzmacher
bab99337f8 r22618: handle the properties related to the type
and not to 'declare' to avoid a pidl warning with:

declare [switch_type(uint16)] union netr_Validation;

void foo([in] uint16 level, [in,switch_is(level)] netrValidation info);

metze
(This used to be commit 3b3344f1df000974ad89bf370e99fd6b6dc42000)
2007-10-10 14:51:53 -05:00
Stefan Metzmacher
118313f9a3 r22617: assume we have defered elements if the type is just provides via
'declare' this should fix the problem with the winbind IRPC calls

metze
(This used to be commit 5abbb4673a49a9dee4002cc6f2ee8180b85cb5e5)
2007-10-10 14:51:52 -05:00
Jelmer Vernooij
771b57b3fc r22520: Fix the TYPE command.
(This used to be commit b81b0d3308bf51c2e22d54024b3d6f1a59c6b283)
2007-10-10 14:51:37 -05:00
Jelmer Vernooij
cc5ad07d84 r22462: Fix test suite for ndr parser without using 'our'
(This used to be commit d491e60c70de8d78c333b317a143919c1a68c6d9)
2007-10-10 14:51:23 -05:00
Jelmer Vernooij
b0d2090879 r22457: Fix tests for Samba3 client generator.
(This used to be commit cf5162ad100c1a8201d3309549c8ff0d3bd5a732)
2007-10-10 14:51:23 -05:00
Jelmer Vernooij
68d92f0a12 r22456: Merge wireshark and ejs test improvements.
(This used to be commit 0375978403dde8ef5052dcca544f118e5387e887)
2007-10-10 14:51:22 -05:00
Jelmer Vernooij
3b39a0df0a r22453: Fix TDR testsuite without using our.
(This used to be commit 2c82aea0d3cb43b6d653fa7d64d490eddef26903)
2007-10-10 14:51:22 -05:00
Jelmer Vernooij
a0bfcfa55d r22357: Don't use 'our'
(This used to be commit 7989ee2aa015264dc9334b5e15d4fe6cb55f4e09)
2007-10-10 14:51:06 -05:00
James Peach
2882b2ba63 r22029: Make sure we respect $srcdir correctly for the srcdir != builddir case.
(This used to be commit 0db4256a472975c5097135fa87315038a1350a72)
2007-10-10 14:49:42 -05:00
Jelmer Vernooij
cbd42dc5a1 r22004: Check for dereferencing null pointers.
Patch by Ronnie Sahlberg.
(This used to be commit fa5722111dede37d0d6f9a9d227b7ec3ae28f1d4)
2007-10-10 14:49:40 -05:00
Jelmer Vernooij
256054f4e1 r21996: Fix a bug for invalid casts of pointers.
Patch by Ronnie Sahlberg.
(This used to be commit 52a13ddf0242318785b05a8888640b2172435c45)
2007-10-10 14:49:40 -05:00
Jelmer Vernooij
452f8e76cb r21995: Patch from Ronnie Sahlberg.
Change the signatures for all functions it generates to specify
_U_ so that GCC "parameter not used" warnings are suppressed.
(This used to be commit ec6c503e9d077103c3fecff08400beb2a28e462d)
2007-10-10 14:49:40 -05:00
Jelmer Vernooij
f29b5e90b1 r21682: Remove accidently committed debug command.
(This used to be commit 74a3681d65f570acf2756b40e0ad82799b86e9ec)
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
035adfb943 r21681: Fix bug in the parsing code that parsed "struct foo;" the same as
"struct foo {};".

Reported by one of the OpenChange folks, thanks!
(This used to be commit d65b520f08ea4ee82c35ff334a58aa6ffc403d67)
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
1afda7bdde r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier.
(This used to be commit 4d755fb5d7adedd1dd8bad917b921324411bfd59)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
f653871d77 r21654: Add simple test for print functions.
(This used to be commit 3c9df011a85aa8178a26d66faaaed5c88757800e)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
5ba8169109 r21584: Support for tagged types has landed!
It's now possible to use "struct foo" without a typedef in IDL files.

echo_info4 is the first type that's been converted.
(This used to be commit 3ac68e858df9b53cf5e0a84741916214a53b3121)
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
3bc13d6eed r21579: Use utility function to determine function names in ejs code.
(This used to be commit 1736de4c73a82be8357808dc8ec93d3917213449)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
4c99e87f9b r21578: Use utility function for naming pull/push/print functions.
(This used to be commit e0f626b79c43eb59ad3c6e3fb6c267504764bfef)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
240b470f44 r21575: Fix handling of is_scalar() for declares.
(This used to be commit f0bc29df7297f8f91175091e5f4b14f4ae4b0591)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
a635df47da r21574: Fix handling of DECLARE.
(This used to be commit 6a4033464bf269176f928a5b3b7e63aad1bb1e7a)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
c1aef15fe7 r21573: Remove more code that assumed all types are typedefs.
(This used to be commit bbbfbfa870c44a6148c3d4d47ff409098e85fcc3)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
d7a7b7fb0c r21572: More work towards supporting tagged types.
(This used to be commit 4d28396f0928444406334888f4bc345e74a380df)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
f5f0e502b3 r21568: More tests.
(This used to be commit c7bde9c1f537cbcf8e71177e6c3969699c046ecb)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
6f3c968e64 r21567: Add some more wireshark tests.
(This used to be commit 40e2956058fe4aaebf3f7269bce90339d7faf24f)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
2916cc628a r21555: Some tests for TYPE in wireshark conformance files.
(This used to be commit 2a44c8c9c296462350fcae1960265a6ef0f317d8)
2007-10-10 14:48:56 -05:00
Jelmer Vernooij
b8c219a270 r21534: Add some more tests for wireshark.
(This used to be commit b10432096181cf8e7d729e58a5ab54fac5eaa5fe)
2007-10-10 14:48:54 -05:00
Jelmer Vernooij
cb8fceab28 r21532: Add tests for StripPrefixes utility function.
(This used to be commit 365052555e0e9224bdfda0c2a10f78cbeee5b06c)
2007-10-10 14:48:53 -05:00