ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] RFD: Creating subdirectories in epan/dissectors/

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Wed, 29 Aug 2012 18:29:00 -0400
Evan Huus wrote:
I'm not 100% convinced either way, but I have to admit I do like having all
the dissectors in the same directory.  "make -j 40" (on my 32-vCPU SPARC)
works better that way ;-).

I'm pretty sure an autotools-generated Makefile will already recurse
to fill the given job-count as long as there aren't any weird
dependencies in place, so it shouldn't make any difference. Can't
speak for cmake or windows builds.

Only if all the files are in one Makefile (e.g., epan/dissectors/Makefile). If each subdir has its own Makefile then each directory is processed one at a time (in my experience).

More seriously, I imagine I'd find it easier to
do:

vi epan/dissectors/packet-xmpp<tab><tab>

instead of:

vi
epan/dissectors/packet-xmpp<tab><tab>[1]^H^H^H^H^H^H^H^H^H^H^Hxmpp<tab>/<tab><tab>

[1] insert grumpy remark here

Fair enough. So another tweak to the suggested naming:
packet-xmpp/xmpp-whatever.c

In fact taking your suggestion of removing "packet-" from all the file names would also achieve the same thing.