aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-dissector-reg.py
AgeCommit message (Collapse)AuthorFilesLines
2016-10-19Do not update register.c's timestamp if it is unchanged, otherwise it gets ↵Joerg Mayer1-1/+0
recompiled every time one of its dependencies is touched. Change-Id: I8c0c4caea8355748e5abf9b9fe3804834353075f Reviewed-on: https://code.wireshark.org/review/18304 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2016-10-17$Id$ is useless with git - treat it exaclty like thisJoerg Mayer1-1/+1
Change-Id: I607ce7ded40864c1b4dcc0a2d577a65923af4225 Reviewed-on: https://code.wireshark.org/review/18248 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2016-06-15Remove Nmake build systemPascal Quantin1-2/+1
Change-Id: I3bd474f3cda9667dec66426b5729449953df3e61 Reviewed-on: https://code.wireshark.org/review/15777 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Balint Reczey <balint@balintreczey.hu>
2016-06-13Indent register.c and other cosmetic changesJoão Valverde1-13/+31
Change-Id: I06e863e0b87118047f4c3b7618df02b9c7384a34 Reviewed-on: https://code.wireshark.org/review/15836 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-14Remove $Id$ and other Subversion leftovers from the tools.Jeff Morriss1-2/+0
There are a few things in here which could still use attention. Don't regenerate anything now. Change-Id: I283c224d3523212144707fca3d6265916cb11792 Reviewed-on: https://code.wireshark.org/review/205 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2013-12-27Generate prototype for plugin_reg_handoff()Jakub Zawadzki1-0/+2
This should fix warnings: plugin.c:XX:1: warning: no previous prototype for 'plugin_reg_handoff' [-Wmissing-prototypes] svn path=/trunk/; revision=54475
2013-12-27Fix [-Wmissing-prototypes]Anders Broman1-0/+1
svn path=/trunk/; revision=54473
2013-12-01Use indentation recommended by PEP 8.Gerald Combs1-126/+125
svn path=/trunk/; revision=53684
2013-12-01Fix compatibility with Python 2.5. Tested with 2.5, 2.6, 2.7, and 3.3.Gerald Combs1-3/+4
svn path=/trunk/; revision=53683
2013-11-29Graham BloiceJörg Mayer1-5/+14
I've now got tshark to build from a VS solution file, had to do some hacks to get there though, patch files attached for others to peruse, as I'm not sure if they are the optimal solutions: 3. As mentioned in my previous message, the VS solution chops out every 8192nd byte from the command line passed to make-dissector-reg.py. My patch (make-reg.patch) gets CMake to write out the required source file list to a file and modifies the python script to read in the file. The python changes *should* be backwards compatible. Me: Small fix to UseMakeDissectorReg.cmake (elseif() -> else()) svn path=/trunk/; revision=53654
2013-07-31Fix compatibility with older versions of Python. Tested with 2.5, 2.6,Gerald Combs1-1/+6
and 3.3. svn path=/trunk/; revision=51079
2013-07-31Add support for Python 3. Make sure we pass bytes to hashlib.sha1 asGerald Combs1-3/+3
suggested in bug 8995. Call print as a function instead of a builtin as suggested by 2to3. svn path=/trunk/; revision=51073
2013-07-03WS_DLL_PUBLIC is now always WS_DLL_PUBLIC_NOEXTERN with "extern" added;Guy Harris1-4/+4
just define WS_DLL_PUBLIC_NOEXTERN inside the ifdefs, and define WS_DLL_PUBLIC as WS_DLL_PUBLIC_NOEXTERN followed by "extern". Then rename WS_DLL_PUBLIC_NOEXTERN to WS_DLL_PUBLIC_DEF, to clarify that it's what should be used for definitions; at least on Windows, you *have* to use it when declaring arrays without a size, and, whilst you might be able to use WS_DLL_PUBLIC for definitions of functions and perhaps data definitions other than no-size arrays, it might be clearer to rename WS_DLL_PUBLIC to WS_DLL_PUBLIC_DECL and use it only for declarations. svn path=/trunk/; revision=50334
2013-04-11Make boilerplate consistent with other generated files and recognizableGerald Combs1-8/+9
by licensecheck. svn path=/trunk/; revision=48826
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-4/+8
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2012-09-25Touch the file in make-dissector-reg.py if it hasn't changed, so thatEvan Huus1-0/+14
we don't try and regenerate it every single subsequent build. Also, add modelines. svn path=/trunk/; revision=45117
2012-09-24Update make-dissector-reg.py to match r45083. Instead of writing the newGerald Combs1-59/+54
plugin.c or register.c content to a temporary file build a giant string in memory and only write it if the current and new hashes differ. This requires hashlib which was added in Python 2.5; hopefully that's not a problem. svn path=/trunk/; revision=45104
2012-09-24make-dissector-regJörg Mayer1-0/+1
Only update outfile if it differs from newly created outfile make-dissector-reg.py Add a comment that we should do the same here (probably a small task for python knowledeable people). svn path=/trunk/; revision=45083
2012-09-19We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=44997
2012-09-17Put back the part of the regexp's that avoids finding function prototypes.Jeff Morriss1-2/+2
svn path=/trunk/; revision=44955
2012-09-17Rather than reading the dissectors line by line and searching for theJeff Morriss1-35/+30
registration and handoff routines in each line, read the whole file into memory and then do one findall() search. Store the matches in sets to avoid duplication. (This also simplifies the number of regexps we're looking for.) This speeds up the generation of register.c (when there is no cache) significantly (on my system the time taken drops from ~32 seconds to ~5 seconds). svn path=/trunk/; revision=44954
2012-09-17Unique-ify the list of dissector registration and handoff functions while weJeff Morriss1-3/+4
sort them. Avoids the double registration problem discussed on -dev today. Note: the sorted() call requires Python 2.4+ but I think that's OK now. svn path=/trunk/; revision=44952
2012-01-26make-dissector-reg.py doesn't always open its cache file.Gerald Combs1-2/+2
svn path=/trunk/; revision=40736
2012-01-26Apply changes from the "2to3" conversion utility. Print cache information.Gerald Combs1-8/+14
svn path=/trunk/; revision=40734
2009-10-09Split register_count() into proto_reg_count() and handoff_reg_count()Kovarththanan Rajaratnam1-2/+24
svn path=/trunk/; revision=30447
2009-10-09Concatenate path in a more portable fashionKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30446
2009-08-25Add more information to the comments at the top of the files we generate.Gerald Combs1-2/+20
svn path=/trunk/; revision=29550
2009-03-02Fix our keyword anchor.Gerald Combs1-1/+1
svn path=/trunk/; revision=27578
2009-03-02Add a version to register-cache.pkl and use it to rebuild the cache fromGerald Combs1-1/+6
scratch when needed. svn path=/trunk/; revision=27577
2009-02-24From Vincent Helfre:Anders Broman1-5/+27
Build the register routines for wtap plugins. svn path=/trunk/; revision=27532
2009-02-02Revert previous checkin.Anders Broman1-48/+24
svn path=/trunk/; revision=27356
2009-02-02Use Python to build tshark-tap-register.cAnders Broman1-24/+48
svn path=/trunk/; revision=27355
2008-02-19Add 'executable' property to a few .pl and .py filesBill Meier1-0/+0
svn path=/trunk/; revision=24390
2007-05-07Updated splash screen for Wireshark that shows the initialisation progress. Graeme Lunt1-4/+23
The splash screen shows a progress bar and a percentage complete - like the progress dialog. As dissectors are initialised and handed off the name is shown. However, the names of plugin dissectors are not shown. The update to the make-dissector-reg shell script has been tested, though I think generally the python version is used. svn path=/trunk/; revision=21716
2007-04-17Use the older-style ST_MTIME instead of st_mtime. This should fix backward Gerald Combs1-1/+2
compatibility. svn path=/trunk/; revision=21459
2007-04-13Fixup whitespace.Gerald Combs1-4/+4
svn path=/trunk/; revision=21419
2007-04-06Add a registration symbol cache to make-dissector-reg.py. When youGerald Combs1-13/+52
update a dissector and recompile, make-dissector-reg.py can now pull its list of registration routines from a cache instead of having to scan through every dissector. The time to create register.c has gone from 20 to 30 seconds down to 2 on my desktop machine. The cache file is a Python pickle data stream. It should be portable across architectures, so we may be able to add it to the distribution at some point. svn path=/trunk/; revision=21348
2007-04-05Loosen up our restrictions so that plugins can compile.Gerald Combs1-13/+4
svn path=/trunk/; revision=21340
2007-04-05In epan/dissectors/Makefile.nmake, fix a typo.Gerald Combs1-1/+19
In make-dissector-reg.py, throw an error if we don't have enough files to process, or if we don't generate enough registrations. "Enough" is arbitrarily set to 100. This should de-purple the buildbot. (I'm sure there's a "smoke on the water" joke in there somewhere.) svn path=/trunk/; revision=21338
2006-05-31libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ ofGerald Combs1-1/+1
changes here. It compiles OK on OS X, but hasn't been tested anywhere else. svn path=/trunk/; revision=18260
2006-05-18Put a newline at the end of plugin.c files.Guy Harris1-1/+1
svn path=/trunk/; revision=18185
2006-04-20Rename "make-reg-dotc" to "make-dissector-reg", and do the same for theGuy Harris1-0/+170
Python versions, as it no longer makes only "register.c", it can also make a "plugin.c" file for a plugin. When making "plugin.c", there's no need to include "register.h", as it's not defining any functions declared there. svn path=/trunk/; revision=17919