aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat_load.l
AgeCommit message (Collapse)AuthorFilesLines
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+1
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-04-24Fix CID 813: Code after ERROR is dead code (never reached)Jörg Mayer1-4/+0
svn path=/trunk/; revision=36840
2011-02-28Close UAT file after loading.Stig Bjørlykke1-0/+1
Open files may prevent deleting a used profile with UAT files. svn path=/trunk/; revision=36096
2010-08-30Always call post_update_cb() in uat_load_str().Stig Bjørlykke1-7/+6
svn path=/trunk/; revision=34010
2010-06-25Run uat->post_update_cb() in uat_load().Stig Bjørlykke1-6/+6
svn path=/trunk/; revision=33319
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+7
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2009-02-16Add an additional "title" attribute for UAT fields; that's what'sGuy Harris1-1/+1
displayed to the user. svn path=/trunk/; revision=27462
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-3/+3
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-04-25 Bug 2493: Fix (Part 3 of 3): Bill Meier1-0/+6
To prevent Windows compiler errors when using flex 2.5.35. Ignore 'signed /unsigned mismatch' warnings svn path=/trunk/; revision=25174
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
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,Jeff Morriss1-0/+2
free it when we're done with the file name. svn path=/trunk/; revision=24477
2008-02-15Extend the UAT and preferences code so that you can use the "-o" flagGerald Combs1-0/+66
to override UAT entries from the command line, e.g. -o "uat:user_dlts:\"User 0 (DLT=147)\",\"http\",\"0\",\"\",\"0\",\"\"" Fix up white space. svn path=/trunk/; revision=24338
2007-10-16Change more fopen() to eth_fopen() to finish fixing bug 1827:Jeff Morriss1-27/+28
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1827 Update README.developer to tell developers not to use fopen() and friends directly. svn path=/trunk/; revision=23206
2007-08-28Commit canges to uat_load.l, and initialize uat_t->loaded (not every system ↵Luis Ontanon1-1/+1
zeroes-out on malloc). svn path=/trunk/; revision=22705
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-3/+19
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-07-17increase line numbers on comments tooLuis Ontanon1-2/+2
svn path=/trunk/; revision=22342
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-3/+3
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-04-01Fix management of lstrings in uat code so that arbitrary chars (even '\0's) ↵Luis Ontanon1-138/+2
can be used inside. Fixes bug 1502 svn path=/trunk/; revision=21294
2007-03-25remove remaining warnings in epan dir and set the "treat warning as error" ↵Ulf Lamping1-1/+1
barrier (epan/dissectors still waiting for a cleanup) svn path=/trunk/; revision=21181
2007-02-07Add ENUM and HEXBYTES modesLuis Ontanon1-20/+47
svn path=/trunk/; revision=20733
2007-02-04Move (Up/Down) & Save buttonsLuis Ontanon1-0/+2
svn path=/trunk/; revision=20708
2007-02-04the quoted_string regexp in uat_load() fails badly on "...\\", workarround ↵Luis Ontanon1-1/+6
in uat_save() using \x5c and \x22 (hex for \ and ") svn path=/trunk/; revision=20706
2007-02-03second iteration:Luis Ontanon1-20/+23
* fields of an uat table now are passed using an array of uat_filed_t * field callbacks take two more userdata arguments * add some macros to define uat field callbacks. * uats can be registered as preferences for a specific protocol - the preference widget is a button that opens the uat's window * dfilter-macro => reflect changes to API svn path=/trunk/; revision=20695
2007-01-30do not use yy_flex_realloc()Luis Ontanon1-3/+1
svn path=/trunk/; revision=20616
2007-01-29uat_load.l improve error reportingLuis Ontanon1-14/+17
Makefile.am add uat_load.l to distribution svn path=/trunk/; revision=20600
2007-01-29now it is operational.Luis Ontanon1-14/+93
svn path=/trunk/; revision=20595
2007-01-28Although yet untested (but it compiles and is still unused) add UAT to the repo.Luis Ontanon1-0/+284
UAT is an API to handle User Accessible Tables, an UAT is basically an array of arbitrary structs that has a file representation as a mean for mantaining things like: - the snmp_users_table - dfilter macros - ipsec/ssl key bindings - k12 configuration, - and many other table-like user modifiable preferences comming soon gtk's uat_window() and prefs_add_uat() uat.h is fairly doc[uo]m[m]?ented, a README with a simple example of how is to be used will be available as I write them svn path=/trunk/; revision=20586