18 years agoAdded "return offset;" to end of generated function.
Tim Potter [Mon, 10 Dec 2001 20:43:59 +0000 (20:43 +0000)]
Added "return offset;" to end of generated function.

We're getting really close now!  Ethereal can properly decode OpenPolicy
requests and responses using pidl generated code.  QueryInfoPolicy
is nearly working.
(This used to be commit 23a9812987bad6fcf7bf131eafd2bf39d558eeb5)

18 years agoFix for pointers to structures in function args.
Tim Potter [Mon, 10 Dec 2001 06:23:52 +0000 (06:23 +0000)]
Fix for pointers to structures in function args.
(This used to be commit e35c62267fb605c4813f7c6178c6061806c74482)

18 years agoMisc fixes:
Tim Potter [Sun, 9 Dec 2001 08:07:20 +0000 (08:07 +0000)]
Misc fixes:

 - pass correct args when doing arrays of scalar vs buffer types
 - add NULL data argument to all calls
 - get rid of unecessary curly brackets
 - typos
(This used to be commit 42a688ea1c012626e247820dec927456e3de9b79)

18 years agowchar_t is a scalar.
Tim Potter [Sun, 9 Dec 2001 06:12:51 +0000 (06:12 +0000)]
wchar_t is a scalar.
(This used to be commit 79e56e719cec28373c117efa33e8924470ffcdcf)

18 years agoConvert a bunch of "prs_foo()" to "offset = prs_foo()"
Tim Potter [Sat, 8 Dec 2001 22:40:36 +0000 (22:40 +0000)]
Convert a bunch of "prs_foo()" to "offset = prs_foo()"

Return offset from function request and response code.
(This used to be commit 83ada5447b05667800dec536ac71d4b7437c77e4)

18 years agoRemoved old commented-out code.
Tim Potter [Sat, 8 Dec 2001 22:04:16 +0000 (22:04 +0000)]
Removed old commented-out code.

Generate code for parsing arrays.

We're nearly ready to start generating real code!
(This used to be commit f6f5b8a7189b579eaf1fbf8db91c9ba11b96ac57)

18 years agoReinvented has_properties() function lost after HD crash. )-:
Tim Potter [Sat, 8 Dec 2001 21:43:22 +0000 (21:43 +0000)]
Reinvented has_properties() function lost after HD crash. )-:

Fixed up handling of pointer to scalar type.
(This used to be commit eb3dbe113f9f4e755436caa974394e73a285cb03)

18 years agoMade hyper a simple type.
Tim Potter [Sat, 8 Dec 2001 21:13:44 +0000 (21:13 +0000)]
Made hyper a simple type.

Changed dissect_ to prs_ to avoid name conflicts.
(This used to be commit 2670f1f8e111f2944c35db9ad28e049db123f9a8)

18 years agoMoved processing of function arguments and structure elements
Tim Potter [Thu, 6 Dec 2001 07:16:08 +0000 (07:16 +0000)]
Moved processing of function arguments and structure elements
back in to ParseElement()

is_simple_type() -> is_scalar_type()

Added more types to scalar type list.

Pass scalars/buffers flag down to ParseElement()
(This used to be commit 802c219babc94178099dbc898da1a788a2e8a593)

18 years agoDon't pass down drep (data representation) arg from top level fn.
Tim Potter [Thu, 6 Dec 2001 03:59:51 +0000 (03:59 +0000)]
Don't pass down drep (data representation) arg from top level fn.

Decided to use tridge's PARSE_SCALARS and PARSE_BUFFERS pattern for
generating code for structures and function calls.  For functions, dissect
sub-structures with PARSE_SCALARS|PARSE_BUFFERS.  For arrays and structures
in structures (?) use PARSE_SCALARS on each element of the structure then

Determine whether a type is a "simple" type or a struct/union.
(This used to be commit bb5bab58177fafd670dba8fe755b6c4753713efd)

18 years agoDon't pass decorative name to policy handle or ntstatus dissectors.
Tim Potter [Wed, 28 Nov 2001 06:29:24 +0000 (06:29 +0000)]
Don't pass decorative name to policy handle or ntstatus dissectors.

Pass drep (data representation?) field down from dcerpc dissector.  This is
whether the packet is big or little endian.
(This used to be commit e5ca478614e50f7f45172a7f0e9fd37603502dfc)

18 years agoDecorate some of the parse functions with element names. This is starting
Tim Potter [Wed, 28 Nov 2001 06:05:26 +0000 (06:05 +0000)]
Decorate some of the parse functions with element names.  This is starting
to get closer to be compilable code!
(This used to be commit fbfe0795a9421a5c70dcbcaa74292b3fb4ae6974)

18 years agoStart generating some ethereal code that may actually compile with
Tim Potter [Tue, 27 Nov 2001 00:35:50 +0000 (00:35 +0000)]
Start generating some ethereal code that may actually compile with
fewer tweaks.
(This used to be commit b045bbec59bf4faac094c5bca7f048c813054209)

18 years agoStart generating code for unions.
Tim Potter [Mon, 26 Nov 2001 05:27:32 +0000 (05:27 +0000)]
Start generating code for unions.
(This used to be commit ac71046754b3a4bee53dab64ed73c176074482a0)

18 years agoIgnore *.pidl
Tim Potter [Mon, 26 Nov 2001 05:25:24 +0000 (05:25 +0000)]
Ignore *.pidl
(This used to be commit c2fa746c477c3fd57e34d52643ea483f958d1f1a)

18 years agoRenamed functions from Dump* to Parse*
Tim Potter [Sat, 24 Nov 2001 23:39:12 +0000 (23:39 +0000)]
Renamed functions from Dump* to Parse*
(This used to be commit 952b47dc23ee648daf065d08d35fab839e4afd04)

18 years agoInitial version of ethereal parser generator. Works with test.idl
Tim Potter [Sat, 24 Nov 2001 23:37:57 +0000 (23:37 +0000)]
Initial version of ethereal parser generator.  Works with test.idl
but not much else!
(This used to be commit 84fe4a000cb31ca5cdd24d9b8e57a63b8c0e8838)

18 years agoAdded --eparser to call ethereal parser generator.
Tim Potter [Sat, 24 Nov 2001 23:35:58 +0000 (23:35 +0000)]
Added --eparser to call ethereal parser generator.
(This used to be commit e1f191a9dc563648f9d151c56020e3324854f52f)

18 years agoforgot a file
Andrew Tridgell [Sat, 24 Nov 2001 11:29:42 +0000 (11:29 +0000)]
forgot a file
(This used to be commit 39e8894fb22da6c60cb8306d5ec4b1e868f0dd77)

19 years agochanged auto-generated comment for headers
Andrew Tridgell [Thu, 14 Dec 2000 23:53:33 +0000 (23:53 +0000)]
changed auto-generated comment for headers
(This used to be commit 24ec2f1f81a2f21573818695e7cb72979dcdef8b)

19 years agobeginnings of the C parser generator
Andrew Tridgell [Thu, 14 Dec 2000 23:53:19 +0000 (23:53 +0000)]
beginnings of the C parser generator
(This used to be commit a9b1e03b334a2ad106b3f42a513565b530baba93)

19 years agoadded header generation
Andrew Tridgell [Thu, 14 Dec 2000 04:41:56 +0000 (04:41 +0000)]
added header generation
(This used to be commit 406458b2fc2ff8b84da820a0465229075c27fb70)

19 years agofixed help
Andrew Tridgell [Thu, 14 Dec 2000 04:41:45 +0000 (04:41 +0000)]
fixed help
(This used to be commit 649e8ca0bb2af328db62942c146c5f8fc5e71e49)

19 years agoadded a comment
Andrew Tridgell [Thu, 14 Dec 2000 04:41:31 +0000 (04:41 +0000)]
added a comment
(This used to be commit 6831c000a37da76a3f8dc3361c86f97807bb25b7)

19 years ago- fixed FlattenHash bug
Andrew Tridgell [Thu, 14 Dec 2000 04:16:57 +0000 (04:16 +0000)]
- fixed FlattenHash bug
- better handling of .. in filenames
(This used to be commit 4a9953f55bf48e04515510f9dc5e9015fd37bffd)

19 years agoThis commit was generated by cvs2svn to compensate for changes in r2,
Andrew Tridgell [Thu, 14 Dec 2000 04:09:29 +0000 (04:09 +0000)]
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
(This used to be commit feb1239576eab3ef84bae66d64d1f6ae23a04af5)

19 years agofirst version
Andrew Tridgell [Thu, 14 Dec 2000 04:09:29 +0000 (04:09 +0000)]
first version

(This used to be commit 14135ed6bbff54d7b493f9be7748c2ad7440a97b)