# "ChangeLog"
#	$Id: ChangeLog,v 1.1.2.7 2005/12/10 09:41:21 fang Exp $

2005-12-10	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-06:
	  Header inclusion fixes all over.
	  One large round of fixing implicit declarations, missing prototypes, 
		incorrect prototypes, missing return types, missing return val.
		These are by large the most annoying problems remaining. 
	  Created type-forward-declaration headers where needed.  
	  Tons of replacing Void with void manually, with inspection.  
	  Verified parenthesization warnings, and suppressed.  
	  In several cases, defining strict function pointer types,
		to reveal where incompatible pointer types may have problems.  


2005-12-03	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-05:
	  Another round of clean-up, same stuff, mostly in grouter, irouter, 
		mzrouter, lisp, netmenu, plot, plow, and util modules.  
	  NOTE: I've found suspicious code in several places, just by cleaning
		out warnings.  Such locations are marked with 'Fang' in text, 
		so they can be found with grep.  


2005-11-29	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-04:
	  More rounds of trivial clean-up fixes: parentheses, braces, 
		prototypes, return types, flagged some suspicious code.  


2005-11-27	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-03:
	  Tidying up the filthiest (warnings) code I've ever seen...
		How can anyone tell what's a *real* warning from a stupid one?
		Just fix the stupid ones (6000+)!
		Some warnings may turn into errors in the future.  
	  Added proper prototypes for many functions.  
	  Added missing return types in tons of places, 
		fixed bogus Void return type in tons of places.  
	  Added type forward declarations (in own files).  
	  Added extra parens around assignment exprs.  
	  Proper braces around struct initializers.  
	  Fixed "if (1) { } else" macros.  
	  ... and all this is only with 1/3 of the code, more to come.
	  configuration checked on FreeBSD and linux (gcc-3.4)
		and Darwin (gcc-4.0).


2005-11-25	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-02:
	  database/DBio.c plot/plotPixels.c plot/plotVers.c:
		FreeBSD suggests mkstemp over mktemp as a safer call.  
		Need to check for this library function in configure, ideally.
	  Makefile consistency edits (insignificant).
	  (validated on i386-FreeBSD, gcc-3.4.0)
	  for newer gcc (clean-up):
	  Globally fixed leftover tokens after #endif and #else.
		These were so *&%!@#^!@# annoying to filter out among
		real warning/error messages.  
	  Added bunch of missing prototypes to files, 
		tons of missing includes to eliminate implicit declarations.  
		Covered most of cif/calma/database so far.  
	  Tons (not complete) of prototype fixes.  (Sorry, KNR.)
	  Tons of 'Void' fixes (not complete), replaced in
		void in most places because most affected functions
		did not return anything, see TODO.  
	  Bunch of function-pointer prototype and assignment fixes.  
	  Validated against darwin-gcc-4.0.1.


2005-11-25	David Fang		<fangism@users.sourceforge.net>

	* magic-7p1-20051125-fang-01:
	  Branch tagged to mark intent to fix code, planning for a 
		retirement (end-of-life) release of 7.1, making sure this 
		compiles and runs on recent and common platforms/compilers.
	  Added this ChangeLog -- How did you guys get away 
		  without a ChangeLog for so long?
	  Makefile: added 'cvsdiffs' target for convenience.  
		added recursive 'uninstall' target, undoes 'install'
		Added uninstall targets to subdirs' Makefiles
			for *non-obsolete* modules, ones actually used.  
	  rules.mak: updated bin-module rule to use $(PROGRAM_SUFFIX)
		PROGRAM_SUFFIX is now defined in defs.mak (generated
		by scripts/config).  
		All program subdirs' Makefiles: appended 
		$(PROGRAM_SUFFIX) to installed binaries.  
	  All touched *.c *.h files:
		Added missing standard include to shut up warnings
			about missing implicit built-in declarations.  
		Removed bogus prototypes with empty parameters.  
		Globally replaced <varargs.h> with <stdarg.h>.
			Fixed uses of variadic calls everywhere.  
			Sorry, abandoned KNR declarations.  
	  magic/proto.magic: made cpp-clean fixing old misuse
		of # at the beginning of a line, sheesh.  
	  misc/magic.h: tentatively hard-coded __APPLE__ => IS_BIG_ENDIAN
		which MUST change once Apple ships Intel Macs.  
	  netlist/netlist.c, utils/malloc.c, utils/runstats.c:
		Darwin-specific fix of get_etext(), get_end()
		from <mach-o/getsect.h>.  
	  resis/ResRex.c: definition of MAXFLOAT based on FLT_MAX.
	  textio/txInput.c: accounted for readline-4.2 difference. 
	  Tested configuration: powerpc-apple-darwin with fink-readline.
		will test others shortly.  

