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

45 Commits

Author SHA1 Message Date
Jelmer Vernooij
2b4270a2e9 r10737: Fix some alignment issues 2007-10-10 13:39:25 -05:00
Jelmer Vernooij
12bfa5d01b r10734: Generate ptr, size, offset, and length elements in unions just once. 2007-10-10 13:39:25 -05:00
Jelmer Vernooij
bd8fcb0500 r10732: Generate _ctr structures for unions 2007-10-10 13:39:25 -05:00
Jelmer Vernooij
e2d7e382bb r10721: Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).

Not supported:
 - subcontexts()
 - relative pointers
 - unions of pointers
 - DATA_BLOB
 - several other things

Also still need to do:
 - Remove some spurious spaces in the output
 - Do range() checking

Example output is still available at http://samba.org/~jelmer/pidl_samba3/
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
9fe724f6fb 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/
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
2b315b1942 r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
c2527217b4 r10716: Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
b229c033eb r10715: More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.

I've updated the example output at http://samba.org/~jelmer/
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
8a60e79175 r10713: Couple more updates to the Samba3 parser generators.
Unions and enums have been improved, init functions are now generated
properly, some other small improvements.
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
9fac8dfeb3 r10698: Fix support of enums in switch_type() in the ethereal parser generator 2007-10-10 13:39:20 -05:00
Jelmer Vernooij
8af8eaeeef r10694: Add some work I did this afternoon on getting pidl to output Samba3
RPC parsers. Currently the following files can be generated:

- include/rpc_BASENAME.h
- rpc_server/srv_BASENAME.c
- rpc_server/srv_BASENAME_nt.c (template only, user has to fill in functions)
- rpc_client/cli_BASENAME.c
- rpc_parse/parse_BASENAME.c

So far, I have been working on getting DFS working. Currently still to do
(all in rpc_parse/parse_BASENAME.c):
 - Proper handling of declarations
 - Proper handling of scalar/buffer parts of structs and unions
 - Subcontexts
 - Proper handling of arrays
 - Support for custom (non-scalar) types

I hope to have a somewhat more working version later this week.

Some files as currently generated are available from:
http://samba.org/~jelmer/pidl_samba3/
2007-10-10 13:39:20 -05:00
Stefan Metzmacher
b98efc2905 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
786329576b r10388: Add version numbers (required for CPAN) 2007-10-10 13:38:38 -05:00
Jelmer Vernooij
0949db8119 r10296: Fix function pointer handling for older perl versions 2007-10-10 13:38:14 -05:00
Jelmer Vernooij
26f2903dab r10295: Remove dependency on Data::Dumper 2007-10-10 13:38:14 -05:00
Tim Potter
515f456fac r10197: Assume that external dissectors are structs which I think is always the
case.
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
e6842fcc98 r10123: Add more warnings. Support quotes in conformance command arguments 2007-10-10 13:38:01 -05:00
Jelmer Vernooij
0628dfa5c3 r10116: Print out a couple more warnings. 2007-10-10 13:38:01 -05:00
Jelmer Vernooij
1caeb3238d r10110: Add some more warnings, implement FIELD_DESCRIPTION 2007-10-10 13:38:00 -05:00
Jelmer Vernooij
a69e88e7b1 r10094: Support quoted arguments in conformance files
Update pidl manpage
2007-10-10 13:37:52 -05:00
Jelmer Vernooij
0c0a4b55cf r10093: Fix the HF_FIELD conformance file command 2007-10-10 13:37:52 -05:00
Jelmer Vernooij
9c9ebd2214 r10074: Pass CPP to pidl via environment variables rather then config.pm. This fixes the
standalone pidl build (as used for ethereal)
2007-10-10 13:37:50 -05:00
James Peach
82fab8b747 r10071: Configure checks for IRIX build environment. Test whether we can
use the MIPSPro 7.4 -c99 option to get C99 support. Try to find
a common perl that is more modern than /usr/bin/perl.
2007-10-10 13:36:34 -05:00
Tim Potter
42568d3f28 r10047: Translate an idl NTTIME to an ethereal FT_ABSOLUTE_TIME instead of
a FT_UINT64.  Not sure about a NTTIME_hyper though.
2007-10-10 13:36:33 -05:00
Jelmer Vernooij
0e358de93a r10030: Add hierarchical memory allocation to TDR's pull functions 2007-10-10 13:36:31 -05:00
Jelmer Vernooij
0ad46ef804 r10015: Change the NT4 registry backend to use the IDL-generate parse functions. 2007-10-10 13:36:29 -05:00
Jelmer Vernooij
c0bae9b0b5 r10010: Support base_type() attribute 2007-10-10 13:36:28 -05:00
Jelmer Vernooij
dfa45ec1b3 r10006: Insert correct header file. 2007-10-10 13:36:28 -05:00
Tim Potter
73dffade2c r9984: Honour the NOEMIT conformance directive for entire IDL files. 2007-10-10 13:36:26 -05:00
Tim Potter
55a98b3dfd r9983: Make the NOEMIT conformance directive with no argument mean do not
emit any dissectors for this IDL.
2007-10-10 13:36:26 -05:00
Tim Potter
ec80c5ceec r9982: Strip prefixes off the check for noemit in the conformance info so you
can use the typedef names in the IDL rather than the autogenerated
function names.  This means you can say "NOEMIT security_descriptor"
instead of "NOEMIT dissect_security_descriptor_type" or whatever.
2007-10-10 13:36:26 -05:00
Tim Potter
c2ad9f49a2 r9734: The ethereal parser generator was generating duplicate functions for
fields in structures with the same name as a structure (i.e
security_ace.object and security_ace_object).  I've twiddled the naming
scheme a bit and things are a bit more unique but there is still may be
some naming conflicts in other IDL files.

We are now getting confused over fields with the same name in unions
(e.g security_ace_object_ctr.object) plus some other union weirdness.
2007-10-10 13:34:55 -05:00
Tim Potter
b33774b693 r9683: OK that last fix was too good to be true. (-: 2007-10-10 13:34:40 -05:00
Tim Potter
e9bb695e74 r9682: Jelmer, I think this fixes another case where the parser generator was
producing duplicate function definitions.  Can you check this out?
2007-10-10 13:34:40 -05:00
Tim Potter
1b0e65359c r9677: Don't generate duplicate function names when processing structure elements
that are bitmaps or enums.
2007-10-10 13:34:39 -05:00
Tim Potter
178d040dbb r9612: Don't generate handoff code for idl files that don't implement a pipe
(e.g security.idl)
2007-10-10 13:34:34 -05:00
Tim Potter
eb5e3b031c r9611: Reset global variables (hf and ett lists) for each parser run. This
avoids building up buckets of unecessary definitions from other parsers.

Get rid of warning and FIXME for unknown data types.  This is handled
by the interface depends list and including the appropriate header files.
2007-10-10 13:34:34 -05:00
Jelmer Vernooij
a37e2134e6 r9576: Couple of small fixes. Generate notice indicating
that the parsers were autogenerated.
2007-10-10 13:34:30 -05:00
Tim Potter
545d3deaa4 r9558: Add more whitespace to generated output.
Change conformance file warning to something more understandable.

Don't generate duplicate duplicate element dissectors for function
call arguments.  Hey this makes the winreg dissector compile, but not
link.
2007-10-10 13:34:29 -05:00
Tim Potter
da3ca9e3c1 r9554: Do a quick once-over to make the ethereal auto-generated parser code a
bit more readable.
2007-10-10 13:34:28 -05:00
Tim Potter
ab00976699 r9553: Some cosmetic things to make the atsvc dissector output look prettier
and be more usable:

  - nicer formatting for summary of set fields in bitmap.

  - say "Pointer to Foo" in proto_tree instead of just "Foo" when
    dissecting pointers.

  - append string value to proto_tree when dissecting pointers to strings.

  - strip librpc/gen_ndr prefix from includes so generated files can
    live in the ethereal epan/dissectors directory.

Now to work on getting the winreg dissector compiling...
2007-10-10 13:34:28 -05:00
Jelmer Vernooij
886780c298 r9519: Use the value() value of an element when that element is used in
limited expressions (size_is,length_is,subcontext_size,etc)
2007-10-10 13:34:26 -05:00
Jelmer Vernooij
de66450c24 r9463: Fix DumpFunction() (was ignoring elements)
Fix use of pidl for people that don't have it installed...
Generate documentation for pidl debian package
2007-10-10 13:34:18 -05:00
Jelmer Vernooij
714f96b9bf r9462: Fix locations for generating the yapp files 2007-10-10 13:34:18 -05:00
Jelmer Vernooij
b56084ce25 r9460: - Move pidl to lib/. This fixes standalone installation of pidl.
- Update the README
- Allow building the docs stand-alone
2007-10-10 13:34:17 -05:00