1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00
Commit Graph

62 Commits

Author SHA1 Message Date
Jelmer Vernooij
ad55958140 pidl: Add function for determining whether a type has a body.
(This used to be commit 893f4102c9)
2008-01-12 23:10:28 +01:00
Jelmer Vernooij
1b90619009 pidl: Remove declare tests, add more tests for typedef.
(This used to be commit 254bf85c2e)
2008-01-12 21:21:14 +01:00
Jelmer Vernooij
87fc0a4391 pidl: Remove support for the declare keyword in other parts of the pidl code.
(This used to be commit 2fe013f715)
2008-01-12 01:22:23 +01:00
Jelmer Vernooij
2e3768843a r25185: Check that can_contain_deferred returns true if one of the members of a type can contain deferred data.
(This used to be commit 9e804e0c21)
2007-10-10 15:06:47 -05:00
Jelmer Vernooij
d222c5e7ae r25166: Simplify can_contain_deferred and add tests for it.
(This used to be commit 1afc7dd4d3)
2007-10-10 15:06:45 -05:00
Stefan Metzmacher
e8712bebae r25114: handle structs and unions without typedefs better
in can_contain_deffered()

jelmer: we need to handle this more genericly, I assume
        we have a lot of other related bugs

metze
(This used to be commit 3e0f22c857)
2007-10-10 15:06:42 -05:00
Jelmer Vernooij
7acc0e77a6 r24815: Support cpp_quote().
(This used to be commit 30c1de30bb)
2007-10-10 15:03:14 -05:00
Stefan Metzmacher
53cdb93fb7 r24514: IS_* elemements sound be perl integers consistantly...
metze
(This used to be commit b7d6ac5215)
2007-10-10 15:02:06 -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 5f1f50cd27)
2007-10-10 15:02:01 -05:00
Stefan Metzmacher
53cd0b017a r24488: enum's and bitmap's not have nested types
metze
(This used to be commit 47fb2d42df)
2007-10-10 15:01:59 -05:00
Stefan Metzmacher
eab315fe1e r24452: bail out instead of only giving a warning on
incorrect idl files

metze
(This used to be commit 8aacab6f6a)
2007-10-10 15:01: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 5abbb4673a)
2007-10-10 14:51:52 -05:00
Jelmer Vernooij
f29b5e90b1 r21682: Remove accidently committed debug command.
(This used to be commit 74a3681d65)
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 d65b520f08)
2007-10-10 14:49:10 -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 3ac68e858d)
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
a635df47da r21574: Fix handling of DECLARE.
(This used to be commit 6a4033464b)
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 bbbfbfa870)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
d7a7b7fb0c r21572: More work towards supporting tagged types.
(This used to be commit 4d28396f09)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
90789cb08b r21484: Fix Needed* for nested datastructures.
(This used to be commit ec3c9ebfd0)
2007-10-10 14:48:41 -05:00
Jelmer Vernooij
4e757aa64c r21457: Cope with anonymous nested types in the NDR layer. This doesn't handled
named nested types yet, as these have to be registered.
(This used to be commit 9b0416b5d0)
2007-10-10 14:48:38 -05:00
Jelmer Vernooij
8cf122c2d2 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().
(This used to be commit a716aa70f0)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
2b43de2ed8 r21428: Handle representation types in Needed().
(This used to be commit 34517c69e6)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ecf2c1effb 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.
(This used to be commit 37c0da541e)
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
bf39b5e592 r20631: Add some tests for the ndr parser.
(This used to be commit ded25eca70)
2007-10-10 14:37:18 -05:00
Jelmer Vernooij
f97f11eab2 r20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl.
(This used to be commit 959adfd0a6)
2007-10-10 14:36:04 -05:00
Jelmer Vernooij
128fe5324b r19856: Use sptr as basis for full ptr implementation. Will add checks for duplicates later.
(This used to be commit 006ab1d4a4)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
203550d032 r19854: readd support for 'sptr' pointers, to work against windows servers
until jelmer commits his 'ptr' support

metze
(This used to be commit f5aa620b1b)
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
55eaaa2238 r19845: Add warning for pointer_default_top()
(This used to be commit 3f0da2388d)
2007-10-10 14:28:24 -05:00
Jelmer Vernooij
108152dd6a r19842: Complain about unknown pointer types.
Fallback to "unique" when "ptr" is specified instead of failing.
(This used to be commit a1b6308b21)
2007-10-10 14:28:23 -05:00
Jelmer Vernooij
9d7d39d180 r19834: Prevent some inaccurate warnings.
(This used to be commit 21efd2bdb8)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
ce0c2236b9 r19830: Warn about non-ref top-level pointers.
(This used to be commit 78153200ac)
2007-10-10 14:28:21 -05:00
Jelmer Vernooij
5b05f5f5f1 r19752: Remove support for the `depends' attribute (use "import") instead.
(This used to be commit 324395afc7)
2007-10-10 14:28:19 -05:00
Jelmer Vernooij
d8ecabe452 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.
(This used to be commit 1ccab71cb8)
2007-10-10 14:24:57 -05:00
Jelmer Vernooij
4be0aa0d31 r19544: Fix case of 'warning'.
(This used to be commit 4f1f541837)
2007-10-10 14:24:47 -05:00
Jelmer Vernooij
cd9057a0bb r18639: Get rid of the keepref support
(This used to be commit d1364ef0cd)
2007-10-10 14:18:59 -05:00
Jelmer Vernooij
291c5ed53c r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226)
2007-10-10 14:18:46 -05:00
Jelmer Vernooij
3e7cff6c00 r18554: Fix warnings about [out] arguments.
(This used to be commit caac6cf817)
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
df08af8418 r18523: Allow [out] on arrays as well as pointers, use in unixinfo.
(This used to be commit f67b4d58ac)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
9727b061f3 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.
(This used to be commit bdc6dd3750)
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
fda645af50 r15652: Fix aliases mechanism (fixes #3710)
(This used to be commit 3e89ef0875)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
2a9407fad3 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)
(This used to be commit c4ab021ee8)
2007-10-10 14:06:02 -05:00
Jelmer Vernooij
1a4effad3d r15327: Support 'nosize'. Also write prototypes for print and size functions that are manually written.
(This used to be commit f10b38b824)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
76ab420615 r14692: Get rid of the obfuscation() attribute
(This used to be commit 122d1d0249)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
8973ac8a39 r14691: Fix printing elements with represent_as set
(This used to be commit f4428db2f9)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
b6cae24de8 r14687: Start working on support for represent_as() and transmit_as() as
an alternative to subcontext()
(This used to be commit 744402160d)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
311d6f47c8 r14686: Fix pidl testsuite to run whenever there is a shared libary built
Samba present. Ignore tests that are known to fail for now.
(This used to be commit a7279f13f0)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
9865048bf4 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)
(This used to be commit 7213b7498e)
2007-10-10 13:57:14 -05:00
Andrew Tridgell
e3e048630b 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.
(This used to be commit d2a2057ea5)
2007-10-10 13:52:07 -05:00
Jelmer Vernooij
1cfda1af18 r12572: No longer parse coclasses as interfaces
(This used to be commit f75f757b62)
2007-10-10 13:48:52 -05:00
Jelmer Vernooij
94793b80d7 r12484: Initial work on supporting non-typedeffed types
(This used to be commit e7ac6c708d)
2007-10-10 13:47:44 -05:00