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

9 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
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
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