1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00
Commit Graph

55 Commits

Author SHA1 Message Date
Stefan Metzmacher
b7d6ac5215 r24514: IS_* elemements sound be perl integers consistantly...
metze
2007-10-10 15:02:06 -05:00
Stefan Metzmacher
5f1f50cd27 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
2007-10-10 15:02:01 -05:00
Stefan Metzmacher
47fb2d42df r24488: enum's and bitmap's not have nested types
metze
2007-10-10 15:01:59 -05:00
Stefan Metzmacher
8aacab6f6a r24452: bail out instead of only giving a warning on
incorrect idl files

metze
2007-10-10 15:01:53 -05:00
Stefan Metzmacher
5abbb4673a 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
2007-10-10 14:51:52 -05:00
Jelmer Vernooij
74a3681d65 r21682: Remove accidently committed debug command. 2007-10-10 14:49:10 -05:00
Jelmer Vernooij
d65b520f08 r21681: Fix bug in the parsing code that parsed "struct foo;" the same as
"struct foo {};".

Reported by one of the OpenChange folks, thanks!
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
3ac68e858d 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.
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
6a4033464b r21574: Fix handling of DECLARE. 2007-10-10 14:48:58 -05:00
Jelmer Vernooij
bbbfbfa870 r21573: Remove more code that assumed all types are typedefs. 2007-10-10 14:48:58 -05:00
Jelmer Vernooij
4d28396f09 r21572: More work towards supporting tagged types. 2007-10-10 14:48:58 -05:00
Jelmer Vernooij
ec3c9ebfd0 r21484: Fix Needed* for nested datastructures. 2007-10-10 14:48:41 -05:00
Jelmer Vernooij
9b0416b5d0 r21457: Cope with anonymous nested types in the NDR layer. This doesn't handled
named nested types yet, as these have to be registered.
2007-10-10 14:48:38 -05:00
Jelmer Vernooij
a716aa70f0 r21430: Support tagged types without typedef. This means:
struct foo {
 ...
};

in IDL will now work. This is the first step towards nested types and
using typedefs for partial types (such as "typedef int *bar;"), a requirement
for complex uses of represent_as().
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
34517c69e6 r21428: Handle representation types in Needed(). 2007-10-10 14:48:32 -05:00
Jelmer Vernooij
37c0da541e r21222: Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
  transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
ded25eca70 r20631: Add some tests for the ndr parser. 2007-10-10 14:37:18 -05:00
Jelmer Vernooij
959adfd0a6 r20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl. 2007-10-10 14:36:04 -05:00
Jelmer Vernooij
006ab1d4a4 r19856: Use sptr as basis for full ptr implementation. Will add checks for duplicates later. 2007-10-10 14:28:26 -05:00
Stefan Metzmacher
f5aa620b1b r19854: readd support for 'sptr' pointers, to work against windows servers
until jelmer commits his 'ptr' support

metze
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
3f0da2388d r19845: Add warning for pointer_default_top() 2007-10-10 14:28:24 -05:00
Jelmer Vernooij
a1b6308b21 r19842: Complain about unknown pointer types.
Fallback to "unique" when "ptr" is specified instead of failing.
2007-10-10 14:28:23 -05:00
Jelmer Vernooij
21efd2bdb8 r19834: Prevent some inaccurate warnings. 2007-10-10 14:28:22 -05:00
Jelmer Vernooij
78153200ac r19830: Warn about non-ref top-level pointers. 2007-10-10 14:28:21 -05:00
Jelmer Vernooij
324395afc7 r19752: Remove support for the `depends' attribute (use "import") instead. 2007-10-10 14:28:19 -05:00
Jelmer Vernooij
1ccab71cb8 r19585: Add support for some more standard IDL instructions:
- `include' (replaces helper())
 - `import' (replaces depends())

Add support for parsing importlib() - importlib() is now ignored (with a
warning), but no longer causes syntax errors.

helper() and depends() are now marked deprecated and will cause warnings.
2007-10-10 14:24:57 -05:00
Jelmer Vernooij
4f1f541837 r19544: Fix case of 'warning'. 2007-10-10 14:24:47 -05:00
Jelmer Vernooij
d1364ef0cd r18639: Get rid of the keepref support 2007-10-10 14:18:59 -05:00
Jelmer Vernooij
86b4624226 r18559: [string] always applies to the last pointer 2007-10-10 14:18:46 -05:00
Jelmer Vernooij
caac6cf817 r18554: Fix warnings about [out] arguments. 2007-10-10 14:18:45 -05:00
Jelmer Vernooij
f67b4d58ac r18523: Allow [out] on arrays as well as pointers, use in unixinfo. 2007-10-10 14:18:42 -05:00
Jelmer Vernooij
bdc6dd3750 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
3e89ef0875 r15652: Fix aliases mechanism (fixes #3710) 2007-10-10 14:08:03 -05:00
Jelmer Vernooij
c4ab021ee8 r15593: Warn about [out] arguments that are not pointers. These can all be
fixed by adding [ref] pointers.

This will cause a lot of warnings to be outputted by pidl for now. I will
fix these gradually over the next few days.

We need to avoid [out] arguments that are not pointers because they are
not understood by other IDL compilers and don't work with some of
our output modules (Samba3, Samba3NDR and ethereal)
2007-10-10 14:06:02 -05:00
Jelmer Vernooij
f10b38b824 r15327: Support 'nosize'. Also write prototypes for print and size functions that are manually written. 2007-10-10 14:05:17 -05:00
Jelmer Vernooij
122d1d0249 r14692: Get rid of the obfuscation() attribute 2007-10-10 13:59:09 -05:00
Jelmer Vernooij
f4428db2f9 r14691: Fix printing elements with represent_as set 2007-10-10 13:59:09 -05:00
Jelmer Vernooij
744402160d r14687: Start working on support for represent_as() and transmit_as() as
an alternative to subcontext()
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
a7279f13f0 r14686: Fix pidl testsuite to run whenever there is a shared libary built
Samba present. Ignore tests that are known to fail for now.
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
7213b7498e r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
2007-10-10 13:57:14 -05:00
Andrew Tridgell
d2a2057ea5 r13738: added support for a "pointer" type in pidl. This will be used in the
opendb work that will be committed shortly.

The pointer type assumes that pointers fit in 64 bits, which is
probably OK on all our supported architectures.
2007-10-10 13:52:07 -05:00
Jelmer Vernooij
f75f757b62 r12572: No longer parse coclasses as interfaces 2007-10-10 13:48:52 -05:00
Jelmer Vernooij
e7ac6c708d r12484: Initial work on supporting non-typedeffed types 2007-10-10 13:47:44 -05:00
Jelmer Vernooij
3a57d29a62 r12470: Add helper module for pidl tests
Convert other pidl tests to use Test::More and run them from 'make test'
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
975d8816db r12464: Add simple IDL parsing tests for pidl using the standard perl
testing framework (Test::Simple, distributed with perl itself).
Run these tests from 'make test'
2007-10-10 13:47:42 -05:00
Stefan Metzmacher
c10195f313 r11997: for multidimentional array like this:
uint32 [num_level2][num_level1][num_level0]

fix the order they're pushed and pulled, it should be like this

for (l2=0; l2 < num_level2; l2++) {
	for (l1=0; l1 < num_level1; l1++) {
		for (l0=0; l0 < num_level0; l0++) {
			ndr_pull_uint32(...);
		}
	}
}

metze
2007-10-10 13:46:57 -05:00
Jelmer Vernooij
16ea96c81e r11539: Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.
2007-10-10 13:45:51 -05:00
Volker Lendecke
b8f324e4f0 r11473: Based on work by Jelmer, implement the [async] flag for rpc requests. If it's
not there (it's not yet on *any* call... :-)), the rpc client strictly
sequences calls to an rpc pipe. Might need some more work on the exact
sequencing semantics when a pipe with both sync and async calls is actually
deployed, but I want it in for winbind simplification.

Volker
2007-10-10 13:45:41 -05:00
Jelmer Vernooij
7596c708ba r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
problem?
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
1d5db487bb r11067: Support for [string] in the Ethereal parser generator 2007-10-10 13:44:44 -05:00