Commit Graph

30 Commits

Author SHA1 Message Date
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Jörg Mayer 6d421d36dd Frederic Peters: handle ulong and ushort
svn path=/trunk/; revision=10132
2004-02-20 13:51:30 +00:00
Jörg Mayer 173fe5aef4 Replace the types from sys/types.h and netinet/in.h by their glib.h
equivalents for the toplevel directory. The removal of winsock2.h will
hopefully not cause any problems under MSVC++, as those files using
struct timeval still include wtap.h, which still includes winsock2.h.

svn path=/trunk/; revision=5932
2002-08-02 23:36:07 +00:00
Guy Harris 77fa06b899 From Joerg Mayer:
dftest.c:
	     Remove #if-0-ed includes

	packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c,
        packet-wtp.c, ethereal_gen.py:
	     Remove redundant include varargs (already in snprintf.h,
	     and required only for snprintf.h)

	Remove unused include of snprintf.h from files not using
	"snprintf()".

svn path=/trunk/; revision=5889
2002-07-17 00:43:03 +00:00
Guy Harris 937c162036 Get rid of "template_main_dissector_switch_msgtype_end", and get rid of
the unused "offset_saved" variable, as per comments by Frank Singleton.

svn path=/trunk/; revision=5408
2002-05-06 21:50:28 +00:00
Guy Harris 1d97fc6d8c From Frank Singleton: fix for the handling of enum types.
svn path=/trunk/; revision=5407
2002-05-06 21:41:07 +00:00
Guy Harris a10cd9f934 In the generated code, mark possibly-unused arguments as such.
svn path=/trunk/; revision=5389
2002-05-04 10:29:25 +00:00
Guy Harris b06e01ece1 Bug fix from Frank Singleton.
svn path=/trunk/; revision=5205
2002-04-19 22:23:37 +00:00
Guy Harris 910c2ee830 From Frank Singleton:
- Cleanup of unused code after implementing recursion
	- Fix some spelling errors.

svn path=/trunk/; revision=4603
2002-01-23 23:15:32 +00:00
Guy Harris c2945fe39f From Frank Singleton:
- Code generation handles recursive Structs
	- Code generation handle recursive Unions
	- Improve readability of code generation. Structs and Unions
	  now have their own helper functions generated.

svn path=/trunk/; revision=4589
2002-01-21 21:59:10 +00:00
Guy Harris 95106816d3 Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level
include directory).

Don't add "-I" flags to search "epan", as that's no longer necessary
(and we want includes of "epan" headers to fail if the "epan/" is left
out, so that we don't re-introduce includes lacking "epan/").

svn path=/trunk/; revision=4587
2002-01-21 07:52:35 +00:00
Guy Harris 887799e01a From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors are
fixed to put something interesting there, fix the GIOP dissector to
restore the Protocol column if no heuristic dissector succeeded, and fix
up the plugin GIOP subdissectors to use "col_set_str()" to set the
Protocol column.

svn path=/trunk/; revision=4424
2001-12-19 08:59:08 +00:00
Guy Harris ee04f7826f Now that the GIOP dissector sets "pinfo->current_proto" before calling
subdissectors, the subdissectors don't have to set it themselves.

svn path=/trunk/; revision=4417
2001-12-17 22:51:42 +00:00
Guy Harris b2533029da From Frank Singleton: change ethereal_gen.py to match the current
calling sequence for "check_col()" and "col_add_str()".

While we're at it, change it to use "col_set_str()" rather than
"col_add_str()", and to clear the Info column as well.

svn path=/trunk/; revision=4415
2001-12-17 22:31:42 +00:00
Guy Harris a9b1809b0f From Frank Singleton:
- accept struct and union lists passed in via ethereal_be.py
	- these lists are unused until I add the templates for struct
	  and union helper functions. So code generation is unchanged
	  for the moment.

svn path=/trunk/; revision=4227
2001-11-19 23:00:12 +00:00
Guy Harris 97a05828cd Sigh. Well, if you make the function declarations external, that means
that they're external when the plugin is compiled, and there's no
definition to satisfy the extern, so plugins fail to compile.

Add a "plugins/plugin_api_defs.h" header file that defines them, and
include that in one (and only one) source file for a particular plugin.

svn path=/trunk/; revision=4117
2001-10-31 10:40:58 +00:00
Guy Harris 3820d7e2a5 Update from Frank Singleton:
- Handle "short" as a union discriminant type
 - Handle case where union discriminant may be a typedef
 - Change integer template to long template
 - Initial code for \n and \t as  union case labels.

svn path=/trunk/; revision=4076
2001-10-25 19:57:06 +00:00
Guy Harris 40e944337d From Frank Singleton: catch attempts to use recursive unions or
structures.

svn path=/trunk/; revision=4040
2001-10-18 21:49:58 +00:00
Guy Harris 0ce416f177 From Frank Singleton:
Added some functionality to idl2eth to allow C code generation
	and display of CORBA IDL Enum's as symbolic values, along side
	the numerical value currently being displayed.

svn path=/trunk/; revision=4020
2001-10-12 17:14:41 +00:00
Guy Harris a588428c1b Update from Frank Singleton to
- Add support for CORBA IDL "unions"
	- Update TODO
	- Improve "Operation Return Value" in genOperationReply()

svn path=/trunk/; revision=3833
2001-08-11 04:37:31 +00:00
Guy Harris 4940c97f11 Update from Frank Singleton:
Improve Template and Description for Attribute delegation code

	_get_xxx_at() should only be called for Reply with NO_EXCEPTION
	_set_xxx_at() should only be called for Request

svn path=/trunk/; revision=3813
2001-08-03 20:44:58 +00:00
Guy Harris 7c3f0a260f Updates from Frank Singleton:
- Add support for CORBA attributes
	- Add support for included files, not just main file
	- Fix sequence variable name generation.
	- Add support functions for code warnings etc.
	   i.e.: TODO and WARNING functions, to highlight
	   if we don't [yet] support a particular CORBA type.

svn path=/trunk/; revision=3795
2001-07-27 18:35:22 +00:00
Guy Harris 8caa99f9cc Update from Frank Singleton to put the right file name in the
introductory comment.

svn path=/trunk/; revision=3755
2001-07-20 20:36:31 +00:00
Guy Harris c2c99c8d52 Do not put zero-length arrays into the generated dissector; GCC may let
you get away with them, but other compilers, e.g. Microsoft Visual C++,
don't.

svn path=/trunk/; revision=3752
2001-07-20 09:50:08 +00:00
Olivier Abad 4df3560dfe Changes to generate plugins instead of standard dissectors.
svn path=/trunk/; revision=3732
2001-07-16 20:44:28 +00:00
Olivier Abad c5881bc7b9 Patch to allow the creation of "User Exception decoding" code from
Frank Singleton.

svn path=/trunk/; revision=3700
2001-07-12 19:51:42 +00:00
Guy Harris 93fd74d75e From Frank Singleton: when GIOP sub-dissectors register themselves, have
them supply a protocol ID, and have the code that calls the
subdissectors check if the protocol is enabled and, if it isn't, not
call the sub-dissector.

svn path=/trunk/; revision=3623
2001-06-29 20:49:29 +00:00
Guy Harris 68f6c4d9b9 Improved support for CORBA IDL "fixed" types, and other updates, from
Frank Singleton.

svn path=/trunk/; revision=3616
2001-06-27 20:41:16 +00:00
Guy Harris 37445739b2 From Frank Singleton: add code generation support for IDL array types.
svn path=/trunk/; revision=3570
2001-06-18 19:31:50 +00:00
Guy Harris 995f8522b3 Support for protocols running atop GIOP, from Frank Singleton.
svn path=/trunk/; revision=3563
2001-06-18 05:27:18 +00:00