aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/k12text.l
AgeCommit message (Collapse)AuthorFilesLines
2009-01-14Update comment re the use of the flex statement '%option noline'Bill Meier1-3/+3
svn path=/trunk/; revision=27231
2009-01-08get rid of few signed/unsigned mishmash warnings to have it with MSVC6 ↵Tomas Kukosa1-1/+1
compilable svn path=/trunk/; revision=27195
2009-01-06Addt'l fix for bug #1937: Fill in frame pseudo_header as req'd.Bill Meier1-18/+47
Also: comment out support for MTP_L2 and SSCOP (encapsulation types WTAP_ENCAP_MTP2 & WTAP_ENCAP_ATM_PDUS) since I don't know how to fill in the pseudo_headers required by packet-mtp2 and packet-atm. svn path=/trunk/; revision=27172
2009-01-05Use encap=WTAP_ENCAP_UNKNOWN if encap can't be determined from the file frame.Bill Meier1-1/+1
(The original code before SVN 27158 was correct). svn path=/trunk/; revision=27159
2009-01-05Rework code somewhat; Fixes bug 1937 & various other issues.Bill Meier1-33/+82
Fixed: Crash when reading a K12text file with one frame; Crash after selecting the last frame and then a previous frame after file open. Select of frame n (>1) immediately after file open incorrectly displayed the packet details & data from frame n+1. File ! Merge (for K12text files) did not work correctly. Fixes: Essentially: clear all lexer state (look-ahead buffer, etc) for every file read. Also: Don't use global for keeping track of the current file position. Also: Handle *nix-style line endings as well as DOS-style. svn path=/trunk/; revision=27158
2008-09-07From Neil Piercy: Anders Broman1-0/+4
VC6 Build problem: wiretap/k12text.c includes unistd. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2851 svn path=/trunk/; revision=26161
2008-05-30wtap_read() and wtap_seek_read(), and thus the functions that it calls,Guy Harris1-2/+2
are expected to return a g_mallocated error string; that's why they fill in a gchar **, not a const gchar **. g_strdup() the argument to KERROR(), so it's g_mallocated. svn path=/trunk/; revision=25398
2008-05-29Fix the types of k12text_read() and k12text_seek_read() to match whatGuy Harris1-4/+4
the types of read and seek_read routines in Wiretap are supposed to be, and get rid of the casts of pointers to those functions (type problems should be fixed, not papered over with casts, whenver possible). svn path=/trunk/; revision=25393
2008-05-13From: Luis OntanonAnders Broman1-10/+19
Fix errors from checkapi. svn path=/trunk/; revision=25287
2008-04-25 Bug 2493: Fix (Part 2): Bill Meier1-5/+11
To prevent Windows compiler errors when using flex 2.5.35. Fixes "missing unistd.h" and yywrap "mismatched parameter" warnings [Upcoming Part 3: ignore 'signed /unsigned mismatch' errors] svn path=/trunk/; revision=25173
2007-11-26Get rid of C++/C99 style comments--not all compilers support themJeff Morriss1-27/+27
svn path=/trunk/; revision=23608
2007-08-04Add a script as a front-end for Flex, to work around various problems,Guy Harris1-0/+1
such as the fact that Flex strips all but the last component of the "-o" argument, and that it doesn't generate a header file to declare routines the generated lexical analyzer defines. Use that script when building lexical analyzers, and, for each lexical analyzer, include the generated header file in the generated analyzer. svn path=/trunk/; revision=22446
2007-07-30Add comments to various %option items to explain what they're doing. Guy Harris1-2/+20
Move the %options to the beginning if they weren't already there, and put them in the same order in all files. Add "prefix=" options to .l files that don't already have them, so we don't have to pass a "-P" option. Add "never-interactive" and "noyywrap" options to our lexical analyzers, to remove extra isatty() checks and to eliminate the need for yywrap() from the Flex library. Get rid of %option nostdinit - that's the default. Add .l.c: rules to Makefile.am files, replacing the rules for specific .l files. Have those rules all check that $(LEX) is set. Update the address for the FSF. svn path=/trunk/; revision=22424
2007-05-24Get rid of CR's, and add a newline at the end.Guy Harris1-310/+310
Set svn:keywords and svn:eol-style appropriately. svn path=/trunk/; revision=21923
2007-05-04Add a plugin interface to wiretap.Luis Ontanon1-1/+0
So far I've done only regression testing (the new functionality and what's in wtap-plugins.c has not yet being tested). it is a first step in the way to have lua opening files. svn path=/trunk/; revision=21686
2007-05-03will this finally get rid of the warnigs?Luis Ontanon1-6/+6
svn path=/trunk/; revision=21666
2007-05-02fix warningsLuis Ontanon1-6/+7
svn path=/trunk/; revision=21653
2007-05-02add support for the text export format of textronix k1[25]Luis Ontanon1-0/+310
svn path=/trunk/; revision=21651