Create a more modular type system for the FT_* types. Put them
authorGilbert Ramirez <gram@alumni.rice.edu>
Thu, 1 Feb 2001 20:21:25 +0000 (20:21 -0000)
committerGilbert Ramirez <gram@alumni.rice.edu>
Thu, 1 Feb 2001 20:21:25 +0000 (20:21 -0000)
commit8f1fff2e6a5c114c6beafd2983afb55acd3d66ae
treee33c08662c708dcfe71591897fe6ffab53bce135
parent07a925ef8b0568a2c5b8098d5734364a40eeb2f6
Create a more modular type system for the FT_* types. Put them
into epan/ftypes.

Re-write display filter routines using Lemon parser instead of yacc.
Besides using a different tool, the new grammar is much simpler, while
the display filter engine itself is more powerful and more easily extended.

Add dftest executable, to test display filter "bytecode" generation.
Add option to "configure" to build dftest or randpkt, both of which are not
built by default.

Implement Ed Warnicke's ideas about dranges in the new display filter and
ftype code.

Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered
as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree,
while FT_PROTOCOL is used for protocols. This was necessary for being
able to make byte slices (ranges) out of protocols, like "frame[0:3]"

Win32 Makefile.nmake's will be added tonight.

svn path=/trunk/; revision=2967
78 files changed:
.cvsignore
Makefile.am
configure.in
dftest.c [new file with mode: 0644]
epan/Makefile.am
epan/configure.in
epan/dfilter-grammar.y [deleted file]
epan/dfilter-int.h [deleted file]
epan/dfilter-scanner.l [deleted file]
epan/dfilter.c [deleted file]
epan/dfilter.h [deleted file]
epan/dfilter/.cvsignore [new file with mode: 0644]
epan/dfilter/Makefile.am [new file with mode: 0644]
epan/dfilter/cppmagic.h [new file with mode: 0644]
epan/dfilter/dfilter-int.h [new file with mode: 0644]
epan/dfilter/dfilter.c [new file with mode: 0644]
epan/dfilter/dfilter.h [new file with mode: 0644]
epan/dfilter/dfvm.c [new file with mode: 0644]
epan/dfilter/dfvm.h [new file with mode: 0644]
epan/dfilter/gencode.c [new file with mode: 0644]
epan/dfilter/gencode.h [new file with mode: 0644]
epan/dfilter/glib-util.c [new file with mode: 0644]
epan/dfilter/glib-util.h [new file with mode: 0644]
epan/dfilter/grammar.lemon [new file with mode: 0644]
epan/dfilter/scanner.l [new file with mode: 0644]
epan/dfilter/semcheck.c [new file with mode: 0644]
epan/dfilter/semcheck.h [new file with mode: 0644]
epan/dfilter/sttype-pointer.c [new file with mode: 0644]
epan/dfilter/sttype-range.c [new file with mode: 0644]
epan/dfilter/sttype-range.h [new file with mode: 0644]
epan/dfilter/sttype-string.c [new file with mode: 0644]
epan/dfilter/sttype-test.c [new file with mode: 0644]
epan/dfilter/sttype-test.h [new file with mode: 0644]
epan/dfilter/syntax-tree.c [new file with mode: 0644]
epan/dfilter/syntax-tree.h [new file with mode: 0644]
epan/epan.c
epan/epan.h
epan/exceptions.h
epan/ftypes/.cvsignore [new file with mode: 0644]
epan/ftypes/Makefile.am [new file with mode: 0644]
epan/ftypes/ftype-bytes.c [new file with mode: 0644]
epan/ftypes/ftype-double.c [new file with mode: 0644]
epan/ftypes/ftype-integer.c [new file with mode: 0644]
epan/ftypes/ftype-ipv4.c [new file with mode: 0644]
epan/ftypes/ftype-none.c [new file with mode: 0644]
epan/ftypes/ftype-string.c [new file with mode: 0644]
epan/ftypes/ftype-time.c [new file with mode: 0644]
epan/ftypes/ftype-tvbuff.c [new file with mode: 0644]
epan/ftypes/ftypes-int.h [new file with mode: 0644]
epan/ftypes/ftypes.c [new file with mode: 0644]
epan/ftypes/ftypes.h [new file with mode: 0644]
epan/gdebug.h [new file with mode: 0644]
epan/ipv4.h
epan/proto.c
epan/proto.h
file.c
file.h
gtk/color_dlg.c
gtk/colors.c
gtk/colors.h
gtk/dfilter_expr_dlg.c
gtk/file_dlg.c
gtk/find_dlg.c
gtk/help_dlg.c
gtk/main.c
gtk/packet_win.c
packet-x11.c
tethereal.c
tools/.cvsignore [new file with mode: 0644]
tools/Makefile.am [new file with mode: 0644]
tools/lemon/.cvsignore [new file with mode: 0644]
tools/lemon/Makefile.am [new file with mode: 0644]
tools/lemon/README [new file with mode: 0644]
tools/lemon/lemon.c [new file with mode: 0644]
tools/lemon/lemon.html [new file with mode: 0644]
tools/lemon/lemonflex-head.inc [new file with mode: 0644]
tools/lemon/lemonflex-tail.inc [new file with mode: 0644]
tools/lemon/lempar.c [new file with mode: 0644]