Blame ChangeLog

Packit f5282e
2017-10-15  Hans-Bernhard Broeker  <broeker@users.sourceforge.net>
Packit f5282e
Packit f5282e
	* src/Makefile.in: Regenerated.
Packit f5282e
Packit f5282e
	* src/Makefile.am (BUILT_SOURCES, AM_YFLAGS): Have bison generate
Packit f5282e
	an egrep.h file, and tell automake to handle it.
Packit f5282e
Packit f5282e
	* everywhere: Remove $Id$ tag lines and similar, in preparation to a move
Packit f5282e
	away from CVS to git.
Packit f5282e
Packit f5282e
2015-04-04  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* configure.in: Add check to enable C system extensions (like
Packit f5282e
	_GNU_SOURCE), if available.
Packit f5282e
Packit f5282e
	* config.h.in, configure: Regenerated.
Packit f5282e
Packit f5282e
	* contrib/cctree.txt: Format change: file had DOS line endings for
Packit f5282e
	some reason.
Packit f5282e
Packit f5282e
2015-03-31  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/version.h (FIXVERSION): Update version number.
Packit f5282e
Packit f5282e
	* configure.in: Version upped to 15.8b.
Packit f5282e
Packit f5282e
	* aclocal.m4: Regenerated.
Packit f5282e
Packit f5282e
	* configure: Regenerated.
Packit f5282e
Packit f5282e
2014-11-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/egrep.y (yylex): Collapse some cases of the switch.  Fix
Packit f5282e
	fall-through that got broken some time before 15.8; similar to
Packit f5282e
	patch #87.
Packit f5282e
	(read_next_chunk): Refactored repeated code sequence into separate
Packit f5282e
	function.
Packit f5282e
	(egrep): Use new function.  Replace some gotos by the code they
Packit f5282e
	jump to.
Packit f5282e
Packit f5282e
	* src/exec.c (join): Initialize local variable.
Packit f5282e
Packit f5282e
	* src/main.c (error_usage): Refactored code to output error.
Packit f5282e
	(main): Use new function instead of goto.
Packit f5282e
Packit f5282e
	* src/invlib.c (open_for_reading, open_file_with_flipped_name)
Packit f5282e
	(open_file_with_possibly_flipped_name): Refactored code dealing
Packit f5282e
	with naming of inverted index files (.in.out <--> .out.in) into
Packit f5282e
	individual functions.
Packit f5282e
	(invopen): Use refactored functions.  Reduce use of gotos.
Packit f5282e
Packit f5282e
	* *.c, *.h: Code Cleanups: Unsigned integer suffixes. Allocate
Packit f5282e
	based on size of pointed-to object, rather than having to spell
Packit f5282e
	out the data type.  Replace clumsy &array[index] by cleaner
Packit f5282e
	array+index.  Replace several unspecified uses of unspecified
Packit f5282e
	"unsigned" by unsigned int or size_t.
Packit f5282e
Packit f5282e
	* src/alloc.c (mymalloc, mycalloc, myrealloc): Drop pointless cast
Packit f5282e
	from size_t to unsigned.
Packit f5282e
Packit f5282e
	* configure.in: Autoupdated to autoconf-2.69.  Removed outdated
Packit f5282e
	AC_TYPE_SIGNAL check.
Packit f5282e
Packit f5282e
	* aclocal.m4, configure, config.h.in, Makefile.in,
Packit f5282e
	contrib/Makefile.in, doc/Makefile.in, src/Makefile.in:
Packit f5282e
	Regenerated by automake-1.14, autoconf-2.69.
Packit f5282e
Packit f5282e
	* ylwrap, mkinstalldirs, missing, install-sh, depcomp, config.sub,
Packit f5282e
	config.guess, compile: Replaced by current versions from auto
Packit f5282e
	tools.
Packit f5282e
Packit f5282e
	* contrib/xcscope/cscope-indexer: Automatically wrap pathnames in
Packit f5282e
	quotes if they contain blanks or tabs.
Packit f5282e
Packit f5282e
2014-11-16  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/fscanner.l (skipcomment_input, comment, insidestring_input)
Packit f5282e
	(string_terminator, YY_INPUT): Remove hand-coded comment skipping
Packit f5282e
	function, use flex-generated one instead.
Packit f5282e
Packit f5282e
2014-04-15  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/find.c (putpostingref): Ensure that initialization of
Packit f5282e
	function name (sf bz 200).
Packit f5282e
Packit f5282e
2013-09-25  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* doc/cscope.1: "Find assignments to" search was missing from the
Packit f5282e
	man page.  Thanks to Roberto E. Vargas Caballero for noticing
Packit f5282e
	this.
Packit f5282e
Packit f5282e
2013-06-26  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* configure.in: Check for possible need of large file support.
Packit f5282e
Packit f5282e
	* config.h.in, configure, aclocal.m4, Makefile.in,
Packit f5282e
	contrib/Makefil.in, doc/Makefile.in, src/Makefile.in: Regenerated
Packit f5282e
	using autoconf 2.69.
Packit f5282e
Packit f5282e
2013-04-09  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* contrib/xcscope/xcscope.el: Add find assignments search to
Packit f5282e
	xcscope.el
Packit f5282e
Packit f5282e
2012-12-29  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/constants.h: Accept patch #2912267 to fix assumption about
Packit f5282e
	terminfo on OSX.
Packit f5282e
Packit f5282e
2012-11-20  Neil Horman  <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	Add option to delete cscope db's on exit
Packit f5282e
Packit f5282e
	* src/main.c: Added -X option to cmdline parser
Packit f5282e
Packit f5282e
	* doc/cscope.1: Updated man page to add new option above
Packit f5282e
Packit f5282e
2012-08-04  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	Make an update release 15.8a
Packit f5282e
Packit f5282e
	* configure: Regenerated.
Packit f5282e
Packit f5282e
	* contrib/Makefile.in: Regenerated.
Packit f5282e
Packit f5282e
	* doc/Makefile.in: Regenerated.
Packit f5282e
Packit f5282e
	* Makefile.in: Regenerated.
Packit f5282e
Packit f5282e
	* doc/Makefile.am (EXTRA_DIST): xcscope.1 was missing from the
Packit f5282e
	distribution.
Packit f5282e
Packit f5282e
	* Makefile.am (EXTRA_DIST): Include INSTALL.gnu
Packit f5282e
	(dist-hook): Directories without Makefile.am in them cause
Packit f5282e
	unwanted CVS files to be included.  Remove them from the tarball.
Packit f5282e
Packit f5282e
	* contrib/Makefile.am (EXTRA_DIST): cctree was missing from the
Packit f5282e
	distribution.
Packit f5282e
Packit f5282e
	* configure.in: Update version to 15.8a
Packit f5282e
Packit f5282e
	* src/version.h (FIXVERSION): Update to 8a.
Packit f5282e
Packit f5282e
2012-08-02  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/version.h (FIXVERSION): Update missed.
Packit f5282e
Packit f5282e
	* src/fscanner.l: # with nothing after it would throw off the line
Packit f5282e
	count. (Bug #3553579)
Packit f5282e
Packit f5282e
2012-07-10 Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/invlib.c: Corrected some sizing of amtused in invlib.c.
Packit f5282e
	sizeof(long) is dead reckoned to be 4 bytes, which is wrong on
Packit f5282e
	x86_64.  Reported by Paul Bolle
Packit f5282e
Packit f5282e
2012-06-15  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/gscope.c: Added placeholder file, needed for distcheck.
Packit f5282e
Packit f5282e
	* configure.in: Added AM_PROC_CC_C_O, needed for upgrade of
Packit f5282e
	automake.
Packit f5282e
Packit f5282e
	* compile, config.guess, config.sub, install-sh, missing, depcomp,
Packit f5282e
	ylwrap, INSTALL.gnu, mkinstalldirs: Updated to automake 1.11.3,
Packit f5282e
	autoconf 2.68.
Packit f5282e
Packit f5282e
	* Makefile.in, aclocal.m4, src/Makefile.in, contrib/Makefile.in,
Packit f5282e
	doc/Makefile.in: Regenerated by automake 1.11.1.
Packit f5282e
Packit f5282e
	* configure, config.h.in: Regenerated by autoconf 2.68.
Packit f5282e
Packit f5282e
2012-06-15  Neil Horman  <nhorman@tuxdriver.com>
Packit f5282e
	* configure.in: Update version in configure.in in prep for new release
Packit f5282e
Packit f5282e
2012-06-15  Neil Horman  <nhorman@tuxdriver.com>
Packit f5282e
	* src/find.c: Add check to make sure that second '=' on assignment
Packit f5282e
	search isn't part of a digraph
Packit f5282e
Packit f5282e
2012-05-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/command.c (command): Allow usage of function keys ctrl-f and
Packit f5282e
	ctrl-b even from result pane.
Packit f5282e
Packit f5282e
	* src/display.c (display): More informative display of position in
Packit f5282e
	a multi-screenful result set.
Packit f5282e
Packit f5282e
2012-04-07  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/display.c (fields): Move "samuel" special function back to
Packit f5282e
	end of list, where it won't show on display.  Fix incorrect
Packit f5282e
	on-screen description of findassign function.
Packit f5282e
Packit f5282e
	* src/constants.h (NUMLEN): Increase from 5 to 10 to be able to
Packit f5282e
	handle source files with freaky large numbers of lines.
Packit f5282e
	(FIELDS): Reduce by one to avoid showing "samuel" special mode,
Packit f5282e
	which is quite unusable to the general public.
Packit f5282e
Packit f5282e
	* src/command.c (countrefs): There was still one scanf not taking
Packit f5282e
	into account limited buffer lengths.
Packit f5282e
Packit f5282e
	* src/find.c (check_for_assignment): Search for assignment failed
Packit f5282e
	to recognize >>= and <<=, incorrectly recognized ~=, and was
Packit f5282e
	implemented somewhat clumsily.
Packit f5282e
Packit f5282e
2012-03-12  Neil Horman	<nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/invlib.c: Modified posting construction code to properly limit
Packit f5282e
	the fileindex value to avoid overflow.
Packit f5282e
Packit f5282e
2012-03-05  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* global.h, constants.h, find.c, display.c: Add search for symbol
Packit f5282e
	assignment feature.  Its been soaking in Fedora for years now, and I
Packit f5282e
	think it gets enough use that its time we put it upstream.
Packit f5282e
Packit f5282e
2011-07-04  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* configure.in, config.h.in, configure, src/main.c: Modified autoconf
Packit f5282e
	files to support checking for getopt_long function and changed
Packit f5282e
	_GNU_SOURCE macro test to HAVE_GETOPT_LONG test.  This should support
Packit f5282e
	using getopt_long on all platforms automatically rather than have the
Packit f5282e
	admin define it at build time.
Packit f5282e
Packit f5282e
2011-07-04  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Remove unneeded if statement that checked for proper
Packit f5282e
	use of s, f, i and p options (sf bug 2912347).
Packit f5282e
Packit f5282e
2011-06-29  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/fscanner.l, src/scanner.l: Add NULL check to strpbrk call to
Packit f5282e
	avoid cscope crashes when reading garbage files.
Packit f5282e
Packit f5282e
2011-06-12  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* Makefile.in, aclocal.m4, config.h.in, configure,
Packit f5282e
	contrib/Makefile.in, doc/Makefile.in, src/Makefile.in: Regenerated
Packit f5282e
	by newer autoconf.
Packit f5282e
Packit f5282e
	* src/build.c (build): Remove pointless write.
Packit f5282e
	(copydata, copyinverted): Avoid potential NULL pointer problem.
Packit f5282e
Packit f5282e
	* src/find.c (findcalling): Remove pointless write.
Packit f5282e
Packit f5282e
	* src/main.c (main): Remove pointless write.
Packit f5282e
	(main): Documented default include directory $INCDIR wasn't
Packit f5282e
	actually considered.
Packit f5282e
Packit f5282e
	* src/invlib.c (invmake): Remove pointless code.
Packit f5282e
	(invnewterm): Restrict variable to the only block it's used in.
Packit f5282e
	(boolfile): Remove unused local.
Packit f5282e
Packit f5282e
	* src/main.c (main): Handle Ctrl-Z manually, as curses raw mode
Packit f5282e
	doesn't do that by itself.
Packit f5282e
Packit f5282e
	* src/command.c (changestring): Likewise.
Packit f5282e
Packit f5282e
2011-05-26 Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* contrib/cctree.vim: Added vi plugin to read cscope db's
Packit f5282e
	* contrib/cctree.txt: Added docs for cctree.vim
Packit f5282e
Packit f5282e
2010-09-30  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Ignore SIGPIPE in linemode as well to allow
Packit f5282e
	for proper file cleanup
Packit f5282e
Packit f5282e
2010-03-04  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/dir.c (includedir, incfile): Cast size_t value to integer
Packit f5282e
	for use as a *printf() precision argument.
Packit f5282e
Packit f5282e
	* src/fscanner.l, src/scanner.l: Tolerate C++ :: scope operator
Packit f5282e
	inside argument lists, too.
Packit f5282e
Packit f5282e
2009-12-21  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Added some more missing short options to parse_options
Packit f5282e
Packit f5282e
2009-12-14  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Added missing line mode operation options to
Packit f5282e
	parse_arguments
Packit f5282e
Packit f5282e
2009-12-14  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Fixed adjustments to argc/argv in parse_option to account
Packit f5282e
	for the possibility that someone might specify multiple options in
Packit f5282e
	one argument (-ab vs. -a -b)
Packit f5282e
Packit f5282e
2009-12-09  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Added a new parse_options implementation to make option
Packit f5282e
	parsing more sane and safe for systems which support getopt_long.  Also
Packit f5282e
	added a check to make sure that single character options didn't specify 
Packit f5282e
	trailing data (sf bug 2911623)
Packit f5282e
Packit f5282e
	* AUTHORS: Fixed my email address
Packit f5282e
Packit f5282e
2009-08-28  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/scanner.h: Added a LEXERR token to be returned if a lexer error
Packit f5282e
	occurs
Packit f5282e
Packit f5282e
	* src/crossref.c: Check for LEXERR token, and abort processing file if
Packit f5282e
	lexer error occurs
Packit f5282e
Packit f5282e
	* src/fcanner.l: check the statue of my_yytext on = and : symbols.  If
Packit f5282e
	its NULL consider that a lexer error.  This can occur if input files are
Packit f5282e
	provided that contain only a '=' or ':' symbol.  Without the ability to
Packit f5282e
	detect and return a lexer error, we get a segfault.
Packit f5282e
Packit f5282e
2009-05-06  Neil Horman <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Fixed string length checks to avoid overflow
Packit f5282e
Packit f5282e
2009-04-30  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/version.h (FILEVERSION, FIXVERSION): Version number changed
Packit f5282e
	to 15.7a.
Packit f5282e
Packit f5282e
	* configure.in: Version number changed to 15.7a.
Packit f5282e
Packit f5282e
	* configure (all): Regenerated.
Packit f5282e
Packit f5282e
2009-04-10  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/snprintf.c: Replacement implementation for missing snprintf
Packit f5282e
	and vsprintf, from www.jhweiss.de.
Packit f5282e
	
Packit f5282e
	* acinclude: New macros to optionally activate a replacement for
Packit f5282e
	missing snprintf and vsprintf, from www.jhweiss.de.
Packit f5282e
Packit f5282e
	* configure.in: Call new macros for snprintf and vsprintf.  Drop
Packit f5282e
	AC_FUNC_LSTAT in turn, since it would have required a replacement
Packit f5282e
	implementation for lstat().
Packit f5282e
Packit f5282e
	* src/Makefile.am (cscope_LDADD): Added LIBOBJS to automatically
Packit f5282e
	include snprintf.o in the build if and only if needed.
Packit f5282e
Packit f5282e
	* configure, config.h.in, aclocal.m4, Makefile.in,
Packit f5282e
	contrib/Makefile.in, doc/Makefile.in, src/Makefile.in:
Packit f5282e
	Regenerated.
Packit f5282e
Packit f5282e
	* src/global.h: Add prototypes for replacement snprintf and
Packit f5282e
	vsnprintf.
Packit f5282e
	
Packit f5282e
	* src/*.c: Replace all calls of sprintf by snprintf to avoid
Packit f5282e
	possible buffer overflows.
Packit f5282e
Packit f5282e
2008-06-30  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* aclocal.m4, configure, config.h.in, Makefile.in,
Packit f5282e
	src/Makefile.in, doc/Makefile.in, contrib/Makefile.in: Regenerated
Packit f5282e
	by recent autotools.
Packit f5282e
Packit f5282e
	* compile, config.guess, config.sub, depcomp, install-sh, missing,
Packit f5282e
	mkinstalldirs, ylwrap: Updated to version provided by recent
Packit f5282e
	autotools.
Packit f5282e
Packit f5282e
	* INSTALL.gnu: GNU installation instructions.
Packit f5282e
Packit f5282e
	* src/global.h (tempstring): Fix mismatch of declaration with
Packit f5282e
	definition.
Packit f5282e
Packit f5282e
2008-04-11  Neil Horman            <nhorman@tuxdriver.com>
Packit f5282e
	* src/main.c, src/exec.c : configure ncurses to operate in raw
Packit f5282e
	mode so that ctrl-c (toggle case sensitivity) isn't swallowed by
Packit f5282e
	the terminal driver
Packit f5282e
Packit f5282e
2008-03-12  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/build.c (samelist): Previous fix broke handling of blanks in
Packit f5282e
	directory names.
Packit f5282e
	(build): Apply the same fix to other occurence of the same code.
Packit f5282e
Packit f5282e
2008-03-10  Neil Horman		   <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/build.c: Fix Samelist to properly absorb newlines so that
Packit f5282e
	inverted indicies aren't always rebuilt
Packit f5282e
Packit f5282e
2008-02-14  Neil Horman		   <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/dir.c: Fix up issrcfile to identify hpp/hxx files as
Packit f5282e
	standard c++ source files
Packit f5282e
Packit f5282e
	* src/main.c: Add myexit as a handler for SIGTERM, to clean up
Packit f5282e
	temp files on TERM
Packit f5282e
Packit f5282e
2007-12-03  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* doc/cscope.1: Grammar corrections [SF patch #1843711] and troff
Packit f5282e
	syntax fixes [from ESR].
Packit f5282e
Packit f5282e
2007-03-10  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/scanner.l (comment_input): Translate EOF to LEXEOF in this
Packit f5282e
	case, too.
Packit f5282e
	(input, noncommentinput): Spell out LEXEOF instead of a magic
Packit f5282e
	number 0.
Packit f5282e
Packit f5282e
2007-02-09  Neil Horman		   <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* doc/xcscope.1: Added man page for xcscope utility in contrib
Packit f5282e
Packit f5282e
2007-01-07  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/fscanner.l: Avoid a -Wunused warning by disabling the
Packit f5282e
	yy_topstate() function.
Packit f5282e
Packit f5282e
	* README: Add a warning about the intended user audience not
Packit f5282e
	including superusers or anonymous ones.
Packit f5282e
Packit f5282e
	* contrib/webcscope/cscope: Find perl in /usr/bin, which should be
Packit f5282e
	more likely as its installation position these days.  Put a big
Packit f5282e
	red reminder to the top of the generated HTML page warning about
Packit f5282e
	the security issues involved with webcscope.  Thanks to V-Li and
Packit f5282e
	the Gentoo folks for the patch.
Packit f5282e
	
Packit f5282e
2006-10-23  Neil Horman		   <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Update sigwinch_handler to only register if linemode
Packit f5282e
	is not specified (SF bug 1574354)
Packit f5282e
Packit f5282e
2006-10-15  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/dir.c (accessible_file): New function to test for file
Packit f5282e
	readability more strictly than just access().
Packit f5282e
	(inviewpath): Use it to avoid unreadable files (directories, in
Packit f5282e
	particular) getting into the srcfilelist, and thus hopefully fix
Packit f5282e
	SF bug #1173768.
Packit f5282e
	
Packit f5282e
2006-10-10  Neil Horman            <nhorman@tuxdriver.com>
Packit f5282e
Packit f5282e
	* src/main.c: Updated sigwinch_handler to not run in the event
Packit f5282e
	that curses is not running to avoid crash (SF bug 1574354)
Packit f5282e
Packit f5282e
2006-09-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/fscanner.l (wsnl): Expand set of allowed characters to make
Packit f5282e
	scanner more tolerant of non-Unix linebreaks (should fix SF Bug
Packit f5282e
	#1563459)
Packit f5282e
Packit f5282e
	* src/Makefile.am (CLEANFILES, dist-hook): Commented out, to
Packit f5282e
	reduce number of user reports from people without lex.
Packit f5282e
Packit f5282e
	* configure.in: Change from AC_PROG_LEX to AM_PROG_LEX.
Packit f5282e
Packit f5282e
	* src/Makefile.am (cscope_SOURCES): Added alloc.h.  Reindented.
Packit f5282e
Packit f5282e
	* src/invlib.c (invnewterm): Correct loop test to account for
Packit f5282e
	maxback being unsigned (should fix SF bug #1559495).
Packit f5282e
Packit f5282e
	* src/Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES, to quench
Packit f5282e
	an automake warning.
Packit f5282e
Packit f5282e
	* configure.in: Modernized via autoupdate.  Fixed several
Packit f5282e
	'underquoted' warnings from aclocal.  Use a more telling source
Packit f5282e
	file name in AC_CONFIG_SRCDIR.
Packit f5282e
Packit f5282e
	* configure, aclocal.m4, Makefile.in, contrib/Makefile.in,
Packit f5282e
	doc/Makefile.in, src/Makefile.in: Regenerated.
Packit f5282e
Packit f5282e
2006-08-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/find.c (findsymbol): Missed one place where s_len had to be
Packit f5282e
	initialized.
Packit f5282e
				  
Packit f5282e
	* src/main.c (tempstring): Parametrize length by new macro
Packit f5282e
	TEMPSTRING_LEN.
Packit f5282e
	(main): Check against too long -f file name.
Packit f5282e
	(main): Put explicit %s field widths into fscanf() call.
Packit f5282e
	(main): Replace some fscanf() calls by fgets().
Packit f5282e
Packit f5282e
	* src/input.c (shellpath): Limit size of strings copied from
Packit f5282e
	environment.
Packit f5282e
Packit f5282e
	* src/edit.c (editref, editall): Put explicit %s field widths into
Packit f5282e
	fscanf() calls.
Packit f5282e
Packit f5282e
	* src/display.c (display): Put explicit %s field widths into
Packit f5282e
	fscanf() call.
Packit f5282e
Packit f5282e
	* src/dir.c (makefilelist): Put explicit %s field width into
Packit f5282e
	sscanf() call.
Packit f5282e
Packit f5282e
	* src/constants.h (TEMPSTRING_LEN): New macro, needed to
Packit f5282e
	parametrize a fscanf() call.
Packit f5282e
	(STRINGIZE): New macro used to build the following.
Packit f5282e
	(PATLEN_STR, PATHLEN_STR, NUMLEN_STR, TEMPSTRING_LEN_STR): Buffer
Packit f5282e
	lengths (minus 1) expressed as a string literal, to be used in as
Packit f5282e
	field widths in {f,s}scanf() calls.
Packit f5282e
Packit f5282e
	* src/command.c (changestring): Put explicit %s field widths into
Packit f5282e
	fscanf() call.
Packit f5282e
Packit f5282e
	* src/build.c (samelist, build): fgets() replaces fscanf().
Packit f5282e
	(build): Put explicit %s field widths into fscanf() call.
Packit f5282e
Packit f5282e
2006-07-23  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/global.h: Rename putstring() to fetch_string_from_dbase(),
Packit f5282e
	add a parameter.
Packit f5282e
Packit f5282e
	* src/find.c: Add #include <assert.h>
Packit f5282e
	(fetch_string_from_dbase): Renamed from misleading name
Packit f5282e
	putstring().  Add new parameter, and use it to avoid overflowing
Packit f5282e
	the output buffer.
Packit f5282e
	(findsymbol): New local: s_len.  Rename calls to putstring(). Add
Packit f5282e
	new argument, some of them from s_len.
Packit f5282e
	(finddef, findallfcns, findcalling, findinclude, match,
Packit f5282e
	findcalledby, putpostingref): Rename calls to putstring(). Add new
Packit f5282e
	argument.
Packit f5282e
Packit f5282e
	* src/constants.h (MSGLEN): Add safety parentheses.
Packit f5282e
Packit f5282e
	* src/library.h: Remove prototypes of alloc.c functions.
Packit f5282e
Packit f5282e
	* src/alloc.h: New file.  Moved prototypes of alloc.c functions in
Packit f5282e
	here, out of library.h.
Packit f5282e
Packit f5282e
	* src/alloc.c: Include new header file from here.
Packit f5282e
	(my_strdup): Changed name from misleading stralloc().  Remove
Packit f5282e
	incorrect cast.
Packit f5282e
Packit f5282e
	* src/build.c: Add #include "alloc.h".
Packit f5282e
	(fetch_include_from_dbase): Renamed from misleading name
Packit f5282e
	putinclude().  Add length of target string as an argument.
Packit f5282e
	(setup_build_filenames): Rename calls of stralloc().
Packit f5282e
	(getoldfile, copyinverted): Rename calls of putstring(). Add new
Packit f5282e
	argument.
Packit f5282e
	(copydata, coypinverted): Rename calls of putinclude().  Add new
Packit f5282e
	argument.
Packit f5282e
Packit f5282e
	* src/vpinit.c: Add #include "alloc.h"
Packit f5282e
	(vpinit): Rename calls of stralloc().
Packit f5282e
Packit f5282e
	* src/main.c: Add #include "alloc.h".
Packit f5282e
	(main): Rename calls of stralloc().
Packit f5282e
Packit f5282e
	* src/history.c: Add #include "alloc.h".
Packit f5282e
	(addcmd): Rename call of stralloc().
Packit f5282e
Packit f5282e
	* src/fscanner.l: Add #include "alloc.h".
Packit f5282e
Packit f5282e
	* src/display.c: Add #include "alloc.h".
Packit f5282e
Packit f5282e
	* src/dir.c: Add #include "alloc.h".  Move project includes above
Packit f5282e
	system headers.
Packit f5282e
	(sourcedir, addsrcdir, includedir, addincdir, addsrcfile): Rename
Packit f5282e
	calls to stralloc().
Packit f5282e
Packit f5282e
	* src/crossref.c: Add #include "alloc.h"
Packit f5282e
Packit f5282e
	* src/command.c: Add #include "alloc.h".
Packit f5282e
Packit f5282e
2006-05-06  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/fscanner.l: Accept numeric literals inside fcn definitions
Packit f5282e
	and calls.
Packit f5282e
Packit f5282e
2006-04-21  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	Make source clean under -Wsign-compare.
Packit f5282e
	
Packit f5282e
	* src/main.c (fileargc): Make counter unsigned.
Packit f5282e
	(main): Make local counter unsigned.
Packit f5282e
	(main): Fixed two sprintf() excess arguments.
Packit f5282e
Packit f5282e
	* src/lookup.c (initsymtab): Make local counters unsigned.
Packit f5282e
Packit f5282e
	* src/invlib.c (LINEMAX): Removed.
Packit f5282e
	(invmake): Change length of local variable "line" to TERMMAX.
Packit f5282e
	(numpost, numlogblk, amtused, nextpost, lastinblk, numinvitems):
Packit f5282e
	Make counters unsigned.
Packit f5282e
	(invnewterm): Make local counters unsigned.
Packit f5282e
Packit f5282e
	* src/input.c (mygetline): Make local counters unsigned.
Packit f5282e
Packit f5282e
	* src/find.c (findregexp, findfile): Make local counters unsigned.
Packit f5282e
Packit f5282e
	* src/egrep.y (line, left, right, parent): Make unsigned.
Packit f5282e
	(enter, cclenter): Return unsigned.
Packit f5282e
	(follow): Make argument unsigned.
Packit f5282e
	(cclenter, cfoll, cgotofn, member, add, follow): Make local
Packit f5282e
	counters unsigned.
Packit f5282e
	(cgotofn, member): Cast char to unsigned char, not unsigned int,
Packit f5282e
	for use as an index.
Packit f5282e
Packit f5282e
	* src/display.c (disprefs, mdisprefs, nextline, topline,
Packit f5282e
	totallines): Make unsigned.
Packit f5282e
	(search): Removed unused locals.
Packit f5282e
	(seekline): Make argument unsigned.
Packit f5282e
Packit f5282e
	* src/dir.c (nincdirs, nsrcdirs, nsrcfiles, msrcfiles, mincdirs,
Packit f5282e
	msrcdirs, nvpsrcdirs): Make unsigned long.
Packit f5282e
	(sourcedir, includedir, makefilelist, incfile, inviewpath): Make
Packit f5282e
	local counters unsigned.
Packit f5282e
Packit f5282e
	* src/crossref.c (symbols, msymbols): Make unsigned long.
Packit f5282e
	(struct symbol): Make elements first, last, length and fcn_level
Packit f5282e
	unsigned.
Packit f5282e
	(crossref, putcrossref): Make local counters unsigned.
Packit f5282e
Packit f5282e
	* src/command.c (curdispline): Make unsigned.
Packit f5282e
	(mark): Make argument and local counter unsigned.
Packit f5282e
	(command): Make KEY_LL conditional on KEY_LL, not KEY_HOME.
Packit f5282e
	(changestring): Made local counter unsigned.
Packit f5282e
Packit f5282e
	* src/build.c (build): Change several local ints to unsigned
Packit f5282e
	longs.
Packit f5282e
Packit f5282e
	* src/global.h: Updated lots of declarations to match the above.
Packit f5282e
Packit f5282e
	* src/alloc.c (mymalloc, mycalloc, myrealloc): Make size arguments
Packit f5282e
	size_t. Remove pointless casts in several of their callers.
Packit f5282e
Packit f5282e
	* src/library.h (mymalloc, mycalloc, myrealloc): Updated
Packit f5282e
	prototoypes.
Packit f5282e
Packit f5282e
2006-04-20  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	* src/input.c (askforreturn): If curses is handling the display,
Packit f5282e
	redraw the screen before returning, to keep error messages from
Packit f5282e
	permanently scrambling the display.
Packit f5282e
Packit f5282e
	* configure.in: Add test for <io.h>.
Packit f5282e
Packit f5282e
	* configure, config.h.in: Regenerated.
Packit f5282e
	
Packit f5282e
	* src/mypopen.c [HAVE_IO_H]: #include <io.h> it, for the setmode()
Packit f5282e
	declaration.
Packit f5282e
Packit f5282e
2006-04-19  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
Packit f5282e
Packit f5282e
	General change: indentation width of touched areas changed to 4
Packit f5282e
	spaces, open braces not on lines of their own, single-line "else
Packit f5282e
	if", get rid of (void) casts of unused function return values.
Packit f5282e
Packit f5282e
	* src/global.h (select_large): Removed declaration.
Packit f5282e
Packit f5282e
	* src/main.c (select_large, main): Removed long unused global.
Packit f5282e
Packit f5282e
	* src/dir.c (scan_dir): Get rid of d_ino check --- this field is
Packit f5282e
	not reliably present in struct dirent, and doesn't achieve enough
Packit f5282e
	to be worth autoconf-ing around.  Works around problems compiling on
Packit f5282e
	Cygwin release 1.5.19.
Packit f5282e
Packit f5282e
	* Makefile.in, aclocal.m4, configure, contrib/Makefile.in,
Packit f5282e
	doc/Makefile.in, src/Makefile.in: Regenerated with current auto
Packit f5282e
	tools (autoconf-2.59, automake 1.9.6).
Packit f5282e
Packit f5282e
2006-02-21  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/vpinit.c (vpinit): Fix handling of slightly malformed VPATH
Packit f5282e
	environment variable contents.
Packit f5282e
Packit f5282e
2005-11-22  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/dir.c (issrcfile): Finally added auto-searching for
Packit f5282e
	three-letter C++ file extensions *.tcc, *.cpp, *.cxx.  Test all
Packit f5282e
	matches to be regular files, not just those with two- and
Packit f5282e
	three-character extensions.
Packit f5282e
Packit f5282e
	* src/invlib.c: Some cleanup.  Replace 0 third argument to fseek
Packit f5282e
	by proper SEEK_SET.  Got rid of (void) result casts and some
Packit f5282e
	function argument casts.
Packit f5282e
	(invmake): Fix one sizeof(long)==4 assumption.
Packit f5282e
Packit f5282e
2005-08-16  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/main.c: Uncluttered by removing nitpicky (void) casts.
Packit f5282e
	(longusage): Reworked for source legibility even on 80-column
Packit f5282e
	displays.
Packit f5282e
	(main): If in verbose linemode, print number of references found,
Packit f5282e
	first off.  Patch from Elad Lahav, for Kscope
Packit f5282e
Packit f5282e
2005-07-08  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/build.c (invname_buf, invpost_buf, reffile_buf): Make
Packit f5282e
	modifiable copies of the default file names.
Packit f5282e
	(invname, invpost, reffile): Initialize pointers to modifiable
Packit f5282e
	copies, rather than to string literals.
Packit f5282e
Packit f5282e
	* packages/MSDOS/djmake.bat: Adapt to modern position of ylwrap
Packit f5282e
	script.
Packit f5282e
Packit f5282e
	* src/command.c (command) [KEY_RESIZE]: Protect by
Packit f5282e
	!defined(__DJGPP__).  That platform doesn't have sigaction() and
Packit f5282e
	associated machinery, nor does it really support terminal size
Packit f5282e
	changes to begin with.
Packit f5282e
Packit f5282e
	* src/main.c (sigwinch_handler): Likewise.
Packit f5282e
	(main): Likewise.
Packit f5282e
Packit f5282e
2005-04-29  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/command.c (command): Additional hotkey mapping of Ctrl-A to
Packit f5282e
	same function as Ctrl-Y, like AT&T cscope, to evade Ctrl-Y
Packit f5282e
	occupied as the DSUSP signal key on BSD'ish platforms.
Packit f5282e
Packit f5282e
	* src/help.c (help): Document additonal hotkey ^A.  Mention
Packit f5282e
	possible unavailability of some Ctrl keys because of terminal
Packit f5282e
	settings.
Packit f5282e
Packit f5282e
2005-03-14  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/input.c (getline): Removed.  Was just a minimally simplified
Packit f5282e
	copy of mygetline() anyway, and it threatened to collide with a
Packit f5282e
	like-named routine in libc.
Packit f5282e
	
Packit f5282e
	* src/global.h (getline): Removed prototype.
Packit f5282e
Packit f5282e
 	* src/command.c (command): Changed all calls of getline() to
Packit f5282e
	mygetline() with an empty string as the first argument.
Packit f5282e
Packit f5282e
	* src/egrep.y (memset): Changed #if condition around fallback
Packit f5282e
	implementation to match that of the prototype in global.h.  Should
Packit f5282e
	fix SF bug #1163104 (build failure on FreeBSD).
Packit f5282e
Packit f5282e
2005-02-16  Neil Horman  <nhorman@gmail.com>
Packit f5282e
Packit f5282e
	* src/command.c (command): Added ifdef KEY_RESIZE around
Packit f5282e
	KEY_RESIZE case in switch statement to allow curses
Packit f5282e
	libraries which don't support resize events to build
Packit f5282e
Packit f5282e
	* src/main.c (main): Added ifdef KEY_RESIZE around 
Packit f5282e
	SIGWINCH handler and signal registration logic to
Packit f5282e
	remove resize code from cscope when building with
Packit f5282e
	curses libraries that don't support resize events
Packit f5282e
Packit f5282e
2005-02-04  Neil Horman  <nhorman@gmail.com>
Packit f5282e
Packit f5282e
	* src/command.c (command): Added KEY_RESIZE event case to 
Packit f5282e
	command switch to handle window re-drawing when a resize 
Packit f5282e
	event was received.
Packit f5282e
Packit f5282e
	* src/input.c (mygetch): Added error checking of return code
Packit f5282e
	to restart call to getch in the event it returned early due
Packit f5282e
	to a signal being delivered.
Packit f5282e
Packit f5282e
	* src/main.c (main): Registered a signal handler for the 
Packit f5282e
	SIGWINCH handler which is delivered when a terminal is 
Packit f5282e
	resized.  Handler pushes a KEY_RESIZE event onto the head 
Packit f5282e
	of the command input queue.
Packit f5282e
Packit f5282e
2005-02-01  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/build.c (build): Keep interactive mode on, even if on a
Packit f5282e
	terminal, if verbose mode (-v) was turned on.
Packit f5282e
Packit f5282e
2005-01-31  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/scanner.h: Declare yytext signed on AIX (without stating a
Packit f5282e
	version number, for now).
Packit f5282e
Packit f5282e
2005-01-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/mypopen.c (mypopen): Make closing argument to execlp() a
Packit f5282e
	manifest null pointer, not just a zero.
Packit f5282e
Packit f5282e
2004-12-08  Neil Horman  <nhorman@gmail.com>
Packit f5282e
	
Packit f5282e
	* src/dir.c: Fix to dissallow unreadable files from 
Packit f5282e
	srcfiles list (sourceforge bug number 1040690)
Packit f5282e
Packit f5282e
2004-12-06  Neil Horman  <nhorman@gmail.com>
Packit f5282e
	
Packit f5282e
	* src/main.c: Fix for temp file security bug (sourceforge 
Packit f5282e
	bug number 1062807 / CAN-2004-0970)
Packit f5282e
Packit f5282e
2004-11-22  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* doc/cscope.1: Make ESR happy: change man page summary section to
Packit f5282e
	avoid [0-9] syntax.
Packit f5282e
Packit f5282e
2004-10-27  Hans-Bernhard Broeker  <broeker@accip02.physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/display.c (search): Replace duplicated code by a call to
Packit f5282e
	countrefs().  Duplicate lacked adjustment of column widths in case
Packit f5282e
	of very long function/file names.  Thanks to Darlene Wong for
Packit f5282e
	spotting this.
Packit f5282e
Packit f5282e
	* src/global.h (countrefs): Prototype added.
Packit f5282e
Packit f5282e
	* src/command.c (countrefs): Made globally available.
Packit f5282e
Packit f5282e
2004-06-23  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/dir.c (makefilelist): Fix broken movement of point_in_line
Packit f5282e
	when parsing quoted names.  Simplify structure by moving default
Packit f5282e
	handling upward.
Packit f5282e
Packit f5282e
2004-06-21  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* contrib/ocs (SYSDIR): Only set to /usr/local/lib/cs if not
Packit f5282e
	already set in outside environment.  Check that $(SYSDIR) exists
Packit f5282e
	before proceeding.  From SF patch #976788 by Neil Horman.
Packit f5282e
Packit f5282e
2004-04-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/vpinit.c (vpinit): Renamed argument currentdir to
Packit f5282e
	current_dir to avoid name clash with same-named global.
Packit f5282e
Packit f5282e
	* src/command.c (Pattern): Renamed from "pattern", to avoid
Packit f5282e
	multitute of compiler warnings about shadowing by locally defined
Packit f5282e
	variables of the same name.  Changed all usages of this variable,
Packit f5282e
	too.
Packit f5282e
	(command): Test for individual KEY_* macros instead of TERMINFO
Packit f5282e
	whenever one of the KEY_* macros is referenced.  This should
Packit f5282e
	reduce the TERMINFO mess a little.
Packit f5282e
Packit f5282e
	* src/find.c (read_block): Renamed from "readblock", to avoid name
Packit f5282e
	clash with QNX system function of that name.  Calls changed
Packit f5282e
	accordingly, all over the place.
Packit f5282e
Packit f5282e
	* src/display.c: Fix fall-back definition of sigjmp_buf.
Packit f5282e
Packit f5282e
	* src/constants.h: Activate TERMINFO for FreeBSD.
Packit f5282e
Packit f5282e
	* src/input.c (mygetline): New function.  Poor-man's readline
Packit f5282e
	imitation.  From SF Patch #937310.
Packit f5282e
Packit f5282e
	* src/global.h (mygetline): Prototype added.
Packit f5282e
Packit f5282e
	* src/command.c (command): Use mygetline() instead of letting
Packit f5282e
	ncsurses doing it all.  Make Ctrl-B/F special hotkeys that are
Packit f5282e
	handled here instead of in mygetline(), to preserve their meaning.
Packit f5282e
Packit f5282e
	* packages/cscope.spec: Updated by SF patch #920586 to be more
Packit f5282e
	compatible with current expectations.
Packit f5282e
Packit f5282e
2004-02-24  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* configure.in (AC_CHECK_HEADERS): Added check for NSK-Tandem
Packit f5282e
	special magic header file <floss.h>.
Packit f5282e
Packit f5282e
	* src/global.h [HAVE_FLOSS_H]: Added #include <floss.h> if it
Packit f5282e
	exists.
Packit f5282e
Packit f5282e
2004-02-14  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/command.c (countrefs): Fix off-by-one length specification
Packit f5282e
	of %s format.  Thanks to <anil@recoil.org> for spotting it.
Packit f5282e
Packit f5282e
2004-02-12  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	Fix SF bug #892731: Ctrl-C interruption of search works only once
Packit f5282e
	per session.
Packit f5282e
	
Packit f5282e
	* configure.in (sigsetjmp): Added test for presence of this
Packit f5282e
	function.
Packit f5282e
Packit f5282e
	* src/display.c (sigsetjmp) [!HAVE_SIGSETJMP]: Provide fallback
Packit f5282e
	definitions for functions sigsetjmp, siglongjmp and type
Packit f5282e
	sigjmp_buf.
Packit f5282e
	(search): Move call to signal() above that to setjmp().  Call
Packit f5282e
	sigsetjmp() instead of setjmp().
Packit f5282e
Packit f5282e
	* configure, config.h.in: Regenerated.
Packit f5282e
Packit f5282e
	* Makefile.in, src/Makefile.in, contrib/Makefile.in,
Packit f5282e
	doc/Makefile.in, aclocal.m4: Rebuilt by automake-1.7.9.
Packit f5282e
	
Packit f5282e
	
Packit f5282e
2004-02-11  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* configure.in (signal.h) Check added.
Packit f5282e
	(sighandler_t): Check for this type.  Should be defined on POSIX
Packit f5282e
	platforms, but is treated as a GNU extension sometimes.
Packit f5282e
Packit f5282e
	* src/global.h (sighandler_t) [!HAVE_SIGHANDLER_T]: Provide
Packit f5282e
	fallback definition of function pointer typedef for signal
Packit f5282e
	handlers if <signal.h> doesn't provide it. Simplifies cscope's
Packit f5282e
	work when working on its own source code --- function pointers
Packit f5282e
	confuse it quite badly, so it's best to minimize their visibility.
Packit f5282e
Packit f5282e
	* src/input.c (mygetch): Type of local variable savesig written
Packit f5282e
	using sighandler_t.
Packit f5282e
Packit f5282e
	* src/display.c (search): Type of local variable savesig written
Packit f5282e
	using sighandler_t.
Packit f5282e
Packit f5282e
	* src/exec.c (oldsigtstp): Renamed, from oldsigstp.
Packit f5282e
	(oldsigtstp,oldsighup,oldsigquit): Changed from function pointer
Packit f5282e
	type to new typedef name sighandler_t.
Packit f5282e
Packit f5282e
2004-02-05  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/global.h (tolower) [BSD]: Fix stupid typo in overrides for
Packit f5282e
	toupper and tolower.
Packit f5282e
Packit f5282e
2004-01-08  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/display.c (clearmsg): New function.  Does essentially the
Packit f5282e
	same thing previously achieved by a rather more cryptic
Packit f5282e
	postmsg("").
Packit f5282e
	(postfatal): New function to printout a fatal error message and
Packit f5282e
	terminate the program. Works like posterr(), but exits curses
Packit f5282e
	first, so the message should end up visible after the program
Packit f5282e
	exits.  Using this instead of posterr()+myexit() fixes SF bug
Packit f5282e
	#419510.
Packit f5282e
	(dispinit): Use postfatal:().
Packit f5282e
	(postmsg): Use clearmsg().
Packit f5282e
	(postmsg2): Call curses refresh() after change.
Packit f5282e
Packit f5282e
	* src/global.h: Add prototypes for new functions clearmsg() and
Packit f5282e
	postfatal().
Packit f5282e
Packit f5282e
	* src/find.c (putsource): Use postfatal().
Packit f5282e
Packit f5282e
	* src/main.c (main, skiplist): Use postfatal() and clearmsg().
Packit f5282e
Packit f5282e
	* src/command.c (command): Use clearmsg().
Packit f5282e
Packit f5282e
	* src/build.c (build, seek_to_trailer, movefile): Use postfatal().
Packit f5282e
Packit f5282e
	* src/alloc.c (alloctest): Use postfatal().
Packit f5282e
Packit f5282e
	* src/display.c (jumpback): Re-instate signal handler, in an
Packit f5282e
	attempt to fix problems reported with the general behaviour of
Packit f5282e
	signal handlers in cscope.
Packit f5282e
Packit f5282e
	* src/scanner.l (ws, wsnl): Two new predefined patterns to catch
Packit f5282e
	not only blanks and tabs, but all generally allowed white-space
Packit f5282e
	characters in source files: form feeds, vertical tabs, carriage
Packit f5282e
	returns.  Replaced most occurence of [ \t] and [ \t\n] by these.
Packit f5282e
	This is a back-port from fscanner.l.  Should fix SF bug #508060.
Packit f5282e
Packit f5282e
Wed Oct 15 16:05:46 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/dir.c (scan_dir): Don't reduce path to basename before
Packit f5282e
 	calling issrcfile.
Packit f5282e
	(issrcfile): Use either basename or full path, as necessary for
Packit f5282e
 	the individual tests.  Reorganized to reduce nesting.
Packit f5282e
Packit f5282e
Mon Sep 15 12:34:46 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/egrep.y (yylex, member, egrep, cgotofn): Reindented.  Fixed
Packit f5282e
 	implicit int declarations and casts.
Packit f5282e
Packit f5282e
	* src/global.h (tolower, tolower) [BSD]: Fix override definitions
Packit f5282e
 	for these so they don't mung non-alphabetic input.
Packit f5282e
Packit f5282e
Fri Sep 12 09:33:19 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	* src/vp.h: Add #include of <sys/types.h> to fix problem on
Packit f5282e
 	Solaris.
Packit f5282e
Packit f5282e
Fri Sep 12 09:33:19 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
Packit f5282e
Packit f5282e
	I'm finally starting a new, GNU-format ChangeLog file.  The format
Packit f5282e
 	of the previous was too terse to be really useful.  This begins
Packit f5282e
 	with the first changes after release 15.5.
Packit f5282e
	
Packit f5282e
	* ChangeLog.old: New file.  Renamed copy of old-format ChangeLog
Packit f5282e
 	file.
Packit f5282e
Packit f5282e
	* ChangeLog: Started from scratch.
Packit f5282e
Packit f5282e