Miscellaneous code cleaning
authordeniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 11 Aug 2000 13:37:21 +0000 (13:37 +0000)
committerdeniel <deniel@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 11 Aug 2000 13:37:21 +0000 (13:37 +0000)
commit039a59eeca21c560b7964adf0a81d1fc42d21efb
tree06a0d0c6356d97dfea11180d4ce22f5b278eefd6
parentae95eec8f14f842fd84043dba8da12f369f9bb5e
Miscellaneous code cleaning

- add <stdarg.h> or <varargs.h> in snprintf.h
  and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes

- remove the check of multiple inclusions in source (.c)  code
  (there is a bit loss of _cpp_ performance, but I prefer the gain of
   code reading and maintenance; and nowadays, disk caches and VM are
   correctly optimized ;-).

- protect all (well almost) header files against multiple inclusions

- add header (i.e. GPL license) in some include files

- reorganize a bit the way header files are included:

  First:
  #include <system_include_files>
  #include <external_package_include_files (e.g. gtk, glib etc.)>
  Then
  #include "ethereal_include_files"

  with the correct HAVE_XXX or NEED_XXX protections.

- add some HAVE_XXX checks before including some system header files

- add the same HAVE_XXX in wiretap as in ethereal

Please forgive me, if I break something (I've only compiled and regression
tested on Linux).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2254 f5534014-38df-0310-8fa8-9805f1628bb7
159 files changed:
capture.c
column.c
dfilter.c
dfilter.h
file.c
file.h
globals.h
gtk/capture_dlg.c
gtk/color_dlg.c
gtk/colors.c
gtk/colors.h
gtk/column_prefs.c
gtk/display_opts.c
gtk/dlg_utils.h
gtk/file_dlg.c
gtk/filter_prefs.c
gtk/find_dlg.c
gtk/follow_dlg.c
gtk/follow_dlg.h
gtk/goto_dlg.c
gtk/gui_prefs.c
gtk/gui_prefs.h
gtk/help_dlg.c
gtk/help_dlg.h
gtk/main.c
gtk/main.h
gtk/packet_win.h
gtk/plugins_dlg.c
gtk/prefs_dlg.c
gtk/prefs_dlg.h
gtk/print_dlg.c
gtk/print_prefs.c
gtk/print_prefs.h
gtk/simple_dialog.c
gtk/stream_prefs.c
gtk/stream_prefs.h
gtk/summary_dlg.c
inet_aton.h
inet_ntop.c
inet_pton.c
inet_v6defs.h
ipproto.c
nlpid.h
oui.h
packet-ascend.h
packet-atalk.h
packet-atm.h
packet-bgp.c
packet-bpdu.h
packet-cdp.h
packet-cgmp.h
packet-clip.h
packet-ddtp.h
packet-diameter.h
packet-eth.h
packet-fddi.h
packet-http.h
packet-icmpv6.c
packet-icq.c
packet-ip.c
packet-ipp.h
packet-ipsec.h
packet-ipx.h
packet-isakmp.c
packet-isis-clv.c
packet-isl.h
packet-kerberos.h
packet-lapb.h
packet-lapd.h
packet-ldap.c
packet-ldap.h
packet-llc.h
packet-mip.c
packet-msproxy.c
packet-nbipx.h
packet-ncp-int.h
packet-netbios.h
packet-ntp.c
packet-null.h
packet-ospf.h
packet-pim.c
packet-portmap.h
packet-ppp.h
packet-q2931.h
packet-q931.h
packet-raw.h
packet-rip.h
packet-ripng.h
packet-rlogin.c
packet-rpc.h
packet-rsvp.c
packet-rtcp.h
packet-rtp.h
packet-sctp.c
packet-sdp.h
packet-smb-common.h
packet-smb.h
packet-sna.h
packet-snmp.h
packet-socks.c
packet-srvloc.c
packet-sscop.h
packet-stat.h
packet-tcp.c
packet-tcp.h
packet-tftp.h
packet-tr.h
packet-trmac.h
packet-udp.h
packet-v120.h
packet-vlan.h
packet-vtp.h
packet-x11-declarations.h
packet-x11-keysym.h
packet-x25.h
packet-ypbind.h
packet-ypserv.h
packet-ypxfr.h
packet.c
packet.h
plugins.c
plugins.h
plugins/plugin_api.h
prefs.c
print.h
proto.c
proto.h
ptvcursor.c
ptvcursor.h
snprintf-imp.h
snprintf.c
snprintf.h
strerror.h
tethereal.c
tvbuff.c
tvbuff.h
util.c
wiretap/ascend.c
wiretap/ascend.h
wiretap/buffer.c
wiretap/buffer.h
wiretap/config.h.win32
wiretap/configure.in
wiretap/csids.h
wiretap/file.c
wiretap/i4btrace.h
wiretap/iptrace.h
wiretap/lanalyzer.h
wiretap/libpcap.h
wiretap/netmon.h
wiretap/nettl.h
wiretap/netxray.h
wiretap/ngsniffer.h
wiretap/radcom.h
wiretap/snoop.h
wiretap/toshiba.h
wiretap/wtap-int.h
wiretap/wtap.h
xdlc.h