aboutsummaryrefslogtreecommitdiffstats
path: root/ui/text_import_scanner.h
AgeCommit message (Collapse)AuthorFilesLines
2019-03-20Put back EOF rule, but without exporting write_current_packet().Guy Harris1-1/+2
Instead, add a new T_EOF token type, call parse_token() with it when we get an EOF, and, in parse_token(), write the current packet if we get a T_EOF token. That's a bit simpler, and would let us treat EOFs in different places differently, if, for example, we want to report warnings for half-finished packets. Change-Id: Ie41a8a1dedf91c34300468e073f18bf806e01892 Reviewed-on: https://code.wireshark.org/review/32489 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-03-20Write out the last packet in text_import().Guy Harris1-1/+0
Write out the last packet after text_import_scan() returns, if it returned successfully, the same way that it's done in text2pcap. This means we can get rid of the EOF rule in the lexer - the lexer just finishes and returns 0 to text_import_scan(), which then returns a success indication to text_import() - and make write_current_packet() static. Change-Id: Ibafdbe01da6bb33a213a32847f1981bc943290a1 Reviewed-on: https://code.wireshark.org/review/32486 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-16Squelch redundant declaration warnings.Guy Harris1-1/+1
Have the text-to-pcap scanners define a routine that the main code calls, which both allocates and destroys the scanner. Don't declare the Lex-generated routines in a header file we create, declare that routine, instead. Change-Id: Icad6a83db1a0dea8ac390315af72383fc99f8513 Reviewed-on: https://code.wireshark.org/review/25822 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-08replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.Dario Lombardo1-1/+1
The first is deprecated, as per https://spdx.org/licenses/. Change-Id: I8e21e1d32d09b8b94b93a2dc9fbdde5ffeba6bed Reviewed-on: https://code.wireshark.org/review/25661 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-02ui: use SPDX identifiers.Dario Lombardo1-14/+1
Change-Id: I6b05399395bcc35e59b73b4030ba4a05711a7b1a Reviewed-on: https://code.wireshark.org/review/25565 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2012-10-24Add Modelines info for new common ui source file(s)Alexis La Goutte1-0/+13
svn path=/trunk/; revision=45767
2012-09-17Add a text import dialog. Use libui.Gerald Combs1-3/+11
svn path=/trunk/; revision=44956
2012-09-14Create a common libui using CMake similar to what we do with Autotools.Gerald Combs1-0/+50
Move the GTK+ text import code to the common UI directory. Create wtap_encap_requires_phdr() from code in file_import_dlg.c. svn path=/trunk/; revision=44904