Ethereal-dev: [Ethereal-dev] patch to ethereal_gen.py (giop plugin generator)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Bernd Becker <bb@xxxxxxxxxxxxxxx>
Date: Fri, 16 Jan 2004 10:56:29 +0100
Hi,

this is a small patch that puts some changes done to giop/packet-cosnaming.c and
giop/packet-coseventcomm.c into the program that generates the plugins.
These are
- removed some MSVC warnings (level 3) by ulfl
- Make --enable-static work again by jmayer

Bernd
Index: ethereal_gen.py
===================================================================
RCS file: /cvsroot/ethereal/ethereal_gen.py,v
retrieving revision 1.28
diff -u -r1.28 ethereal_gen.py
--- ethereal_gen.py	2 Aug 2002 23:35:46 -0000	1.28
+++ ethereal_gen.py	16 Jan 2004 10:00:41 -0000
@@ -1702,7 +1702,7 @@
 
     template_plugin_init = """
 
-#ifndef __ETHEREAL_STATIC__
+#ifndef ENABLE_STATIC
 
 G_MODULE_EXPORT void
 plugin_reg_handoff(void){
@@ -2191,7 +2191,7 @@
 
 #include "plugins/plugin_api_defs.h"
 
-#ifndef __ETHEREAL_STATIC__
+#ifndef ENABLE_STATIC
 G_MODULE_EXPORT const gchar version[] = "0.0.1";
 #endif
 
@@ -2347,7 +2347,7 @@
  
 static gboolean decode_user_exception(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, int *offset _U_, MessageHeader *header _U_, gchar *operation _U_ ) {
     
-    gboolean be _U_;                        /* big endianess */
+    /*gboolean be _U_;*/                        /* big endianess */
 
     
 """