aboutsummaryrefslogtreecommitdiffstats
path: root/capture
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-12-30 10:36:03 +0000
committerJoão Valverde <j@v6e.pt>2023-01-01 18:18:06 +0000
commitf2218ae5f0ef259199f624abcd3f57d12894fa5a (patch)
treedc775c128ded37114124804f38c0433e7a9d835a /capture
parent67a788b29c2916234e034e6b2a80b1bbe7feac45 (diff)
Lemon: Update code and remove cruft
Remove some unused historical files. Aggressively disable warnings to keep the lemon source pristine and avoid the maintenance burden for lemon itself. Lemon has its own lax policy for warnings that doesn't match our own and they won't accept external patches to remove the warnings, so just ignore them. Lemon is just executed to generate code for the Wireshark build and the minor code issues it has have no influence at runtime. For lemon generated code we selectively disable some linting warnings. Remove patches for lemon and lempar, they are no longer required with these changes to silence warnings.
Diffstat (limited to 'capture')
-rw-r--r--capture/capture-wpcap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/capture/capture-wpcap.c b/capture/capture-wpcap.c
index 5c24c1f82e..f4631fb95b 100644
--- a/capture/capture-wpcap.c
+++ b/capture/capture-wpcap.c
@@ -39,9 +39,6 @@ gboolean has_wpcap = FALSE;
#include <wsutil/file_util.h>
#include <wsutil/ws_assert.h>
-/* XXX - yes, I know, I should move cppmagic.h to a generic location. */
-#include "tools/lemon/cppmagic.h"
-
#define MAX_WIN_IF_NAME_LEN 511
static void (*p_pcap_close) (pcap_t *);
@@ -120,7 +117,7 @@ typedef struct {
gboolean optional;
} symbol_table_t;
-#define SYM(x, y) { G_STRINGIFY(x) , (gpointer) &CONCAT(p_,x), y }
+#define SYM(x, y) { G_STRINGIFY(x) , (gpointer) &G_PASTE(p_,x), y }
void
load_wpcap(void)