1 2012-08-04 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
3 * configure.in: Update version to 15.8a
5 * src/version.h (FIXVERSION): Update to 8a.
7 2012-08-02 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
9 * src/version.h (FIXVERSION): Update missed.
11 * src/fscanner.l: # with nothing after it would throw off the line
14 2012-07-10 Neil Horman <nhorman@tuxdriver.com>
16 * src/invlib.c: Corrected some sizing of amtused in invlib.c.
17 sizeof(long) is dead reckoned to be 4 bytes, which is wrong on
18 x86_64. Reported by Paul Bolle
20 2012-06-15 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
22 * src/gscope.c: Added placeholder file, needed for distcheck.
24 * configure.in: Added AM_PROC_CC_C_O, needed for upgrade of
27 * compile, config.guess, config.sub, install-sh, missing, depcomp,
28 ylwrap, INSTALL.gnu, mkinstalldirs: Updated to automake 1.11.3,
31 * Makefile.in, aclocal.m4, src/Makefile.in, contrib/Makefile.in,
32 doc/Makefile.in: Regenerated by automake 1.11.1.
34 * configure, config.h.in: Regenerated by autoconf 2.68.
36 2012-06-15 Neil Horman <nhorman@tuxdriver.com>
37 * configure.in: Update version in configure.in in prep for new release
39 2012-06-15 Neil Horman <nhorman@tuxdriver.com>
40 * src/find.c: Add check to make sure that second '=' on assignment
41 search isn't part of a digraph
43 2012-05-20 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
45 * src/command.c (command): Allow usage of function keys ctrl-f and
46 ctrl-b even from result pane.
48 * src/display.c (display): More informative display of position in
49 a multi-screenful result set.
51 2012-04-07 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
53 * src/display.c (fields): Move "samuel" special function back to
54 end of list, where it won't show on display. Fix incorrect
55 on-screen description of findassign function.
57 * src/constants.h (NUMLEN): Increase from 5 to 10 to be able to
58 handle source files with freaky large numbers of lines.
59 (FIELDS): Reduce by one to avoid showing "samuel" special mode,
60 which is quite unusable to the general public.
62 * src/command.c (countrefs): There was still one scanf not taking
63 into account limited buffer lengths.
65 * src/find.c (check_for_assignment): Search for assignment failed
66 to recognize >>= and <<=, incorrectly recognized ~=, and was
67 implemented somewhat clumsily.
69 2012-03-12 Neil Horman <nhorman@tuxdriver.com>
71 * src/invlib.c: Modified posting construction code to properly limit
72 the fileindex value to avoid overflow.
74 2012-03-05 Neil Horman <nhorman@tuxdriver.com>
76 * global.h, constants.h, find.c, display.c: Add search for symbol
77 assignment feature. Its been soaking in Fedora for years now, and I
78 think it gets enough use that its time we put it upstream.
80 2011-07-04 Neil Horman <nhorman@tuxdriver.com>
82 * configure.in, config.h.in, configure, src/main.c: Modified autoconf
83 files to support checking for getopt_long function and changed
84 _GNU_SOURCE macro test to HAVE_GETOPT_LONG test. This should support
85 using getopt_long on all platforms automatically rather than have the
86 admin define it at build time.
88 2011-07-04 Neil Horman <nhorman@tuxdriver.com>
90 * src/main.c: Remove unneeded if statement that checked for proper
91 use of s, f, i and p options (sf bug 2912347).
93 2011-06-29 Neil Horman <nhorman@tuxdriver.com>
95 * src/fscanner.l, src/scanner.l: Add NULL check to strpbrk call to
96 avoid cscope crashes when reading garbage files.
98 2011-06-12 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
100 * Makefile.in, aclocal.m4, config.h.in, configure,
101 contrib/Makefile.in, doc/Makefile.in, src/Makefile.in: Regenerated
104 * src/build.c (build): Remove pointless write.
105 (copydata, copyinverted): Avoid potential NULL pointer problem.
107 * src/find.c (findcalling): Remove pointless write.
109 * src/main.c (main): Remove pointless write.
110 (main): Documented default include directory $INCDIR wasn't
113 * src/invlib.c (invmake): Remove pointless code.
114 (invnewterm): Restrict variable to the only block it's used in.
115 (boolfile): Remove unused local.
117 * src/main.c (main): Handle Ctrl-Z manually, as curses raw mode
118 doesn't do that by itself.
120 * src/command.c (changestring): Likewise.
122 2011-05-26 Neil Horman <nhorman@tuxdriver.com>
124 * contrib/cctree.vim: Added vi plugin to read cscope db's
125 * contrib/cctree.txt: Added docs for cctree.vim
127 2010-09-30 Neil Horman <nhorman@tuxdriver.com>
129 * src/main.c: Ignore SIGPIPE in linemode as well to allow
130 for proper file cleanup
132 2010-03-04 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
134 * src/dir.c (includedir, incfile): Cast size_t value to integer
135 for use as a *printf() precision argument.
137 * src/fscanner.l, src/scanner.l: Tolerate C++ :: scope operator
138 inside argument lists, too.
140 2009-12-21 Neil Horman <nhorman@tuxdriver.com>
142 * src/main.c: Added some more missing short options to parse_options
144 2009-12-14 Neil Horman <nhorman@tuxdriver.com>
146 * src/main.c: Added missing line mode operation options to
149 2009-12-14 Neil Horman <nhorman@tuxdriver.com>
151 * src/main.c: Fixed adjustments to argc/argv in parse_option to account
152 for the possibility that someone might specify multiple options in
153 one argument (-ab vs. -a -b)
155 2009-12-09 Neil Horman <nhorman@tuxdriver.com>
157 * src/main.c: Added a new parse_options implementation to make option
158 parsing more sane and safe for systems which support getopt_long. Also
159 added a check to make sure that single character options didn't specify
160 trailing data (sf bug 2911623)
162 * AUTHORS: Fixed my email address
164 2009-08-28 Neil Horman <nhorman@tuxdriver.com>
166 * src/scanner.h: Added a LEXERR token to be returned if a lexer error
169 * src/crossref.c: Check for LEXERR token, and abort processing file if
172 * src/fcanner.l: check the statue of my_yytext on = and : symbols. If
173 its NULL consider that a lexer error. This can occur if input files are
174 provided that contain only a '=' or ':' symbol. Without the ability to
175 detect and return a lexer error, we get a segfault.
177 2009-05-06 Neil Horman <nhorman@tuxdriver.com>
179 * src/main.c: Fixed string length checks to avoid overflow
181 2009-04-30 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
183 * src/version.h (FILEVERSION, FIXVERSION): Version number changed
186 * configure.in: Version number changed to 15.7a.
188 * configure (all): Regenerated.
190 2009-04-10 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
192 * src/snprintf.c: Replacement implementation for missing snprintf
193 and vsprintf, from www.jhweiss.de.
195 * acinclude: New macros to optionally activate a replacement for
196 missing snprintf and vsprintf, from www.jhweiss.de.
198 * configure.in: Call new macros for snprintf and vsprintf. Drop
199 AC_FUNC_LSTAT in turn, since it would have required a replacement
200 implementation for lstat().
202 * src/Makefile.am (cscope_LDADD): Added LIBOBJS to automatically
203 include snprintf.o in the build if and only if needed.
205 * configure, config.h.in, aclocal.m4, Makefile.in,
206 contrib/Makefile.in, doc/Makefile.in, src/Makefile.in:
209 * src/global.h: Add prototypes for replacement snprintf and
212 * src/*.c: Replace all calls of sprintf by snprintf to avoid
213 possible buffer overflows.
215 2008-06-30 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
217 * aclocal.m4, configure, config.h.in, Makefile.in,
218 src/Makefile.in, doc/Makefile.in, contrib/Makefile.in: Regenerated
221 * compile, config.guess, config.sub, depcomp, install-sh, missing,
222 mkinstalldirs, ylwrap: Updated to version provided by recent
225 * INSTALL.gnu: GNU installation instructions.
227 * src/global.h (tempstring): Fix mismatch of declaration with
230 2008-04-11 Neil Horman <nhorman@tuxdriver.com>
231 * src/main.c, src/exec.c : configure ncurses to operate in raw
232 mode so that ctrl-c (toggle case sensitivity) isn't swallowed by
235 2008-03-12 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
237 * src/build.c (samelist): Previous fix broke handling of blanks in
239 (build): Apply the same fix to other occurence of the same code.
241 2008-03-10 Neil Horman <nhorman@tuxdriver.com>
243 * src/build.c: Fix Samelist to properly absorb newlines so that
244 inverted indicies aren't always rebuilt
246 2008-02-14 Neil Horman <nhorman@tuxdriver.com>
248 * src/dir.c: Fix up issrcfile to identify hpp/hxx files as
249 standard c++ source files
251 * src/main.c: Add myexit as a handler for SIGTERM, to clean up
254 2007-12-03 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
256 * doc/cscope.1: Grammar corrections [SF patch #1843711] and troff
257 syntax fixes [from ESR].
259 2007-03-10 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
261 * src/scanner.l (comment_input): Translate EOF to LEXEOF in this
263 (input, noncommentinput): Spell out LEXEOF instead of a magic
266 2007-02-09 Neil Horman <nhorman@tuxdriver.com>
268 * doc/xcscope.1: Added man page for xcscope utility in contrib
270 2007-01-07 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
272 * src/fscanner.l: Avoid a -Wunused warning by disabling the
273 yy_topstate() function.
275 * README: Add a warning about the intended user audience not
276 including superusers or anonymous ones.
278 * contrib/webcscope/cscope: Find perl in /usr/bin, which should be
279 more likely as its installation position these days. Put a big
280 red reminder to the top of the generated HTML page warning about
281 the security issues involved with webcscope. Thanks to V-Li and
282 the Gentoo folks for the patch.
284 2006-10-23 Neil Horman <nhorman@tuxdriver.com>
286 * src/main.c: Update sigwinch_handler to only register if linemode
287 is not specified (SF bug 1574354)
289 2006-10-15 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
291 * src/dir.c (accessible_file): New function to test for file
292 readability more strictly than just access().
293 (inviewpath): Use it to avoid unreadable files (directories, in
294 particular) getting into the srcfilelist, and thus hopefully fix
297 2006-10-10 Neil Horman <nhorman@tuxdriver.com>
299 * src/main.c: Updated sigwinch_handler to not run in the event
300 that curses is not running to avoid crash (SF bug 1574354)
302 2006-09-30 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
304 * src/fscanner.l (wsnl): Expand set of allowed characters to make
305 scanner more tolerant of non-Unix linebreaks (should fix SF Bug
308 * src/Makefile.am (CLEANFILES, dist-hook): Commented out, to
309 reduce number of user reports from people without lex.
311 * configure.in: Change from AC_PROG_LEX to AM_PROG_LEX.
313 * src/Makefile.am (cscope_SOURCES): Added alloc.h. Reindented.
315 * src/invlib.c (invnewterm): Correct loop test to account for
316 maxback being unsigned (should fix SF bug #1559495).
318 * src/Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES, to quench
321 * configure.in: Modernized via autoupdate. Fixed several
322 'underquoted' warnings from aclocal. Use a more telling source
323 file name in AC_CONFIG_SRCDIR.
325 * configure, aclocal.m4, Makefile.in, contrib/Makefile.in,
326 doc/Makefile.in, src/Makefile.in: Regenerated.
328 2006-08-20 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
330 * src/find.c (findsymbol): Missed one place where s_len had to be
333 * src/main.c (tempstring): Parametrize length by new macro
335 (main): Check against too long -f file name.
336 (main): Put explicit %s field widths into fscanf() call.
337 (main): Replace some fscanf() calls by fgets().
339 * src/input.c (shellpath): Limit size of strings copied from
342 * src/edit.c (editref, editall): Put explicit %s field widths into
345 * src/display.c (display): Put explicit %s field widths into
348 * src/dir.c (makefilelist): Put explicit %s field width into
351 * src/constants.h (TEMPSTRING_LEN): New macro, needed to
352 parametrize a fscanf() call.
353 (STRINGIZE): New macro used to build the following.
354 (PATLEN_STR, PATHLEN_STR, NUMLEN_STR, TEMPSTRING_LEN_STR): Buffer
355 lengths (minus 1) expressed as a string literal, to be used in as
356 field widths in {f,s}scanf() calls.
358 * src/command.c (changestring): Put explicit %s field widths into
361 * src/build.c (samelist, build): fgets() replaces fscanf().
362 (build): Put explicit %s field widths into fscanf() call.
364 2006-07-23 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
366 * src/global.h: Rename putstring() to fetch_string_from_dbase(),
369 * src/find.c: Add #include <assert.h>
370 (fetch_string_from_dbase): Renamed from misleading name
371 putstring(). Add new parameter, and use it to avoid overflowing
373 (findsymbol): New local: s_len. Rename calls to putstring(). Add
374 new argument, some of them from s_len.
375 (finddef, findallfcns, findcalling, findinclude, match,
376 findcalledby, putpostingref): Rename calls to putstring(). Add new
379 * src/constants.h (MSGLEN): Add safety parentheses.
381 * src/library.h: Remove prototypes of alloc.c functions.
383 * src/alloc.h: New file. Moved prototypes of alloc.c functions in
384 here, out of library.h.
386 * src/alloc.c: Include new header file from here.
387 (my_strdup): Changed name from misleading stralloc(). Remove
390 * src/build.c: Add #include "alloc.h".
391 (fetch_include_from_dbase): Renamed from misleading name
392 putinclude(). Add length of target string as an argument.
393 (setup_build_filenames): Rename calls of stralloc().
394 (getoldfile, copyinverted): Rename calls of putstring(). Add new
396 (copydata, coypinverted): Rename calls of putinclude(). Add new
399 * src/vpinit.c: Add #include "alloc.h"
400 (vpinit): Rename calls of stralloc().
402 * src/main.c: Add #include "alloc.h".
403 (main): Rename calls of stralloc().
405 * src/history.c: Add #include "alloc.h".
406 (addcmd): Rename call of stralloc().
408 * src/fscanner.l: Add #include "alloc.h".
410 * src/display.c: Add #include "alloc.h".
412 * src/dir.c: Add #include "alloc.h". Move project includes above
414 (sourcedir, addsrcdir, includedir, addincdir, addsrcfile): Rename
417 * src/crossref.c: Add #include "alloc.h"
419 * src/command.c: Add #include "alloc.h".
421 2006-05-06 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
423 * src/fscanner.l: Accept numeric literals inside fcn definitions
426 2006-04-21 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
428 Make source clean under -Wsign-compare.
430 * src/main.c (fileargc): Make counter unsigned.
431 (main): Make local counter unsigned.
432 (main): Fixed two sprintf() excess arguments.
434 * src/lookup.c (initsymtab): Make local counters unsigned.
436 * src/invlib.c (LINEMAX): Removed.
437 (invmake): Change length of local variable "line" to TERMMAX.
438 (numpost, numlogblk, amtused, nextpost, lastinblk, numinvitems):
439 Make counters unsigned.
440 (invnewterm): Make local counters unsigned.
442 * src/input.c (mygetline): Make local counters unsigned.
444 * src/find.c (findregexp, findfile): Make local counters unsigned.
446 * src/egrep.y (line, left, right, parent): Make unsigned.
447 (enter, cclenter): Return unsigned.
448 (follow): Make argument unsigned.
449 (cclenter, cfoll, cgotofn, member, add, follow): Make local
451 (cgotofn, member): Cast char to unsigned char, not unsigned int,
454 * src/display.c (disprefs, mdisprefs, nextline, topline,
455 totallines): Make unsigned.
456 (search): Removed unused locals.
457 (seekline): Make argument unsigned.
459 * src/dir.c (nincdirs, nsrcdirs, nsrcfiles, msrcfiles, mincdirs,
460 msrcdirs, nvpsrcdirs): Make unsigned long.
461 (sourcedir, includedir, makefilelist, incfile, inviewpath): Make
462 local counters unsigned.
464 * src/crossref.c (symbols, msymbols): Make unsigned long.
465 (struct symbol): Make elements first, last, length and fcn_level
467 (crossref, putcrossref): Make local counters unsigned.
469 * src/command.c (curdispline): Make unsigned.
470 (mark): Make argument and local counter unsigned.
471 (command): Make KEY_LL conditional on KEY_LL, not KEY_HOME.
472 (changestring): Made local counter unsigned.
474 * src/build.c (build): Change several local ints to unsigned
477 * src/global.h: Updated lots of declarations to match the above.
479 * src/alloc.c (mymalloc, mycalloc, myrealloc): Make size arguments
480 size_t. Remove pointless casts in several of their callers.
482 * src/library.h (mymalloc, mycalloc, myrealloc): Updated
485 2006-04-20 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
487 * src/input.c (askforreturn): If curses is handling the display,
488 redraw the screen before returning, to keep error messages from
489 permanently scrambling the display.
491 * configure.in: Add test for <io.h>.
493 * configure, config.h.in: Regenerated.
495 * src/mypopen.c [HAVE_IO_H]: #include <io.h> it, for the setmode()
498 2006-04-19 Hans-Bernhard Broeker <broeker@physik.rwth-achen.de>
500 General change: indentation width of touched areas changed to 4
501 spaces, open braces not on lines of their own, single-line "else
502 if", get rid of (void) casts of unused function return values.
504 * src/global.h (select_large): Removed declaration.
506 * src/main.c (select_large, main): Removed long unused global.
508 * src/dir.c (scan_dir): Get rid of d_ino check --- this field is
509 not reliably present in struct dirent, and doesn't achieve enough
510 to be worth autoconf-ing around. Works around problems compiling on
511 Cygwin release 1.5.19.
513 * Makefile.in, aclocal.m4, configure, contrib/Makefile.in,
514 doc/Makefile.in, src/Makefile.in: Regenerated with current auto
515 tools (autoconf-2.59, automake 1.9.6).
517 2006-02-21 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
519 * src/vpinit.c (vpinit): Fix handling of slightly malformed VPATH
520 environment variable contents.
522 2005-11-22 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
524 * src/dir.c (issrcfile): Finally added auto-searching for
525 three-letter C++ file extensions *.tcc, *.cpp, *.cxx. Test all
526 matches to be regular files, not just those with two- and
527 three-character extensions.
529 * src/invlib.c: Some cleanup. Replace 0 third argument to fseek
530 by proper SEEK_SET. Got rid of (void) result casts and some
531 function argument casts.
532 (invmake): Fix one sizeof(long)==4 assumption.
534 2005-08-16 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
536 * src/main.c: Uncluttered by removing nitpicky (void) casts.
537 (longusage): Reworked for source legibility even on 80-column
539 (main): If in verbose linemode, print number of references found,
540 first off. Patch from Elad Lahav, for Kscope
542 2005-07-08 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
544 * src/build.c (invname_buf, invpost_buf, reffile_buf): Make
545 modifiable copies of the default file names.
546 (invname, invpost, reffile): Initialize pointers to modifiable
547 copies, rather than to string literals.
549 * packages/MSDOS/djmake.bat: Adapt to modern position of ylwrap
552 * src/command.c (command) [KEY_RESIZE]: Protect by
553 !defined(__DJGPP__). That platform doesn't have sigaction() and
554 associated machinery, nor does it really support terminal size
555 changes to begin with.
557 * src/main.c (sigwinch_handler): Likewise.
560 2005-04-29 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
562 * src/command.c (command): Additional hotkey mapping of Ctrl-A to
563 same function as Ctrl-Y, like AT&T cscope, to evade Ctrl-Y
564 occupied as the DSUSP signal key on BSD'ish platforms.
566 * src/help.c (help): Document additonal hotkey ^A. Mention
567 possible unavailability of some Ctrl keys because of terminal
570 2005-03-14 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
572 * src/input.c (getline): Removed. Was just a minimally simplified
573 copy of mygetline() anyway, and it threatened to collide with a
574 like-named routine in libc.
576 * src/global.h (getline): Removed prototype.
578 * src/command.c (command): Changed all calls of getline() to
579 mygetline() with an empty string as the first argument.
581 * src/egrep.y (memset): Changed #if condition around fallback
582 implementation to match that of the prototype in global.h. Should
583 fix SF bug #1163104 (build failure on FreeBSD).
585 2005-02-16 Neil Horman <nhorman@gmail.com>
587 * src/command.c (command): Added ifdef KEY_RESIZE around
588 KEY_RESIZE case in switch statement to allow curses
589 libraries which don't support resize events to build
591 * src/main.c (main): Added ifdef KEY_RESIZE around
592 SIGWINCH handler and signal registration logic to
593 remove resize code from cscope when building with
594 curses libraries that don't support resize events
596 2005-02-04 Neil Horman <nhorman@gmail.com>
598 * src/command.c (command): Added KEY_RESIZE event case to
599 command switch to handle window re-drawing when a resize
602 * src/input.c (mygetch): Added error checking of return code
603 to restart call to getch in the event it returned early due
604 to a signal being delivered.
606 * src/main.c (main): Registered a signal handler for the
607 SIGWINCH handler which is delivered when a terminal is
608 resized. Handler pushes a KEY_RESIZE event onto the head
609 of the command input queue.
611 2005-02-01 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
613 * src/build.c (build): Keep interactive mode on, even if on a
614 terminal, if verbose mode (-v) was turned on.
616 2005-01-31 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
618 * src/scanner.h: Declare yytext signed on AIX (without stating a
619 version number, for now).
621 2005-01-30 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
623 * src/mypopen.c (mypopen): Make closing argument to execlp() a
624 manifest null pointer, not just a zero.
626 2004-12-08 Neil Horman <nhorman@gmail.com>
628 * src/dir.c: Fix to dissallow unreadable files from
629 srcfiles list (sourceforge bug number 1040690)
631 2004-12-06 Neil Horman <nhorman@gmail.com>
633 * src/main.c: Fix for temp file security bug (sourceforge
634 bug number 1062807 / CAN-2004-0970)
636 2004-11-22 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
638 * doc/cscope.1: Make ESR happy: change man page summary section to
641 2004-10-27 Hans-Bernhard Broeker <broeker@accip02.physik.rwth-aachen.de>
643 * src/display.c (search): Replace duplicated code by a call to
644 countrefs(). Duplicate lacked adjustment of column widths in case
645 of very long function/file names. Thanks to Darlene Wong for
648 * src/global.h (countrefs): Prototype added.
650 * src/command.c (countrefs): Made globally available.
652 2004-06-23 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
654 * src/dir.c (makefilelist): Fix broken movement of point_in_line
655 when parsing quoted names. Simplify structure by moving default
658 2004-06-21 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
660 * contrib/ocs (SYSDIR): Only set to /usr/local/lib/cs if not
661 already set in outside environment. Check that $(SYSDIR) exists
662 before proceeding. From SF patch #976788 by Neil Horman.
664 2004-04-30 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
666 * src/vpinit.c (vpinit): Renamed argument currentdir to
667 current_dir to avoid name clash with same-named global.
669 * src/command.c (Pattern): Renamed from "pattern", to avoid
670 multitute of compiler warnings about shadowing by locally defined
671 variables of the same name. Changed all usages of this variable,
673 (command): Test for individual KEY_* macros instead of TERMINFO
674 whenever one of the KEY_* macros is referenced. This should
675 reduce the TERMINFO mess a little.
677 * src/find.c (read_block): Renamed from "readblock", to avoid name
678 clash with QNX system function of that name. Calls changed
679 accordingly, all over the place.
681 * src/display.c: Fix fall-back definition of sigjmp_buf.
683 * src/constants.h: Activate TERMINFO for FreeBSD.
685 * src/input.c (mygetline): New function. Poor-man's readline
686 imitation. From SF Patch #937310.
688 * src/global.h (mygetline): Prototype added.
690 * src/command.c (command): Use mygetline() instead of letting
691 ncsurses doing it all. Make Ctrl-B/F special hotkeys that are
692 handled here instead of in mygetline(), to preserve their meaning.
694 * packages/cscope.spec: Updated by SF patch #920586 to be more
695 compatible with current expectations.
697 2004-02-24 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
699 * configure.in (AC_CHECK_HEADERS): Added check for NSK-Tandem
700 special magic header file <floss.h>.
702 * src/global.h [HAVE_FLOSS_H]: Added #include <floss.h> if it
705 2004-02-14 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
707 * src/command.c (countrefs): Fix off-by-one length specification
708 of %s format. Thanks to <anil@recoil.org> for spotting it.
710 2004-02-12 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
712 Fix SF bug #892731: Ctrl-C interruption of search works only once
715 * configure.in (sigsetjmp): Added test for presence of this
718 * src/display.c (sigsetjmp) [!HAVE_SIGSETJMP]: Provide fallback
719 definitions for functions sigsetjmp, siglongjmp and type
721 (search): Move call to signal() above that to setjmp(). Call
722 sigsetjmp() instead of setjmp().
724 * configure, config.h.in: Regenerated.
726 * Makefile.in, src/Makefile.in, contrib/Makefile.in,
727 doc/Makefile.in, aclocal.m4: Rebuilt by automake-1.7.9.
730 2004-02-11 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
732 * configure.in (signal.h) Check added.
733 (sighandler_t): Check for this type. Should be defined on POSIX
734 platforms, but is treated as a GNU extension sometimes.
736 * src/global.h (sighandler_t) [!HAVE_SIGHANDLER_T]: Provide
737 fallback definition of function pointer typedef for signal
738 handlers if <signal.h> doesn't provide it. Simplifies cscope's
739 work when working on its own source code --- function pointers
740 confuse it quite badly, so it's best to minimize their visibility.
742 * src/input.c (mygetch): Type of local variable savesig written
745 * src/display.c (search): Type of local variable savesig written
748 * src/exec.c (oldsigtstp): Renamed, from oldsigstp.
749 (oldsigtstp,oldsighup,oldsigquit): Changed from function pointer
750 type to new typedef name sighandler_t.
752 2004-02-05 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
754 * src/global.h (tolower) [BSD]: Fix stupid typo in overrides for
757 2004-01-08 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
759 * src/display.c (clearmsg): New function. Does essentially the
760 same thing previously achieved by a rather more cryptic
762 (postfatal): New function to printout a fatal error message and
763 terminate the program. Works like posterr(), but exits curses
764 first, so the message should end up visible after the program
765 exits. Using this instead of posterr()+myexit() fixes SF bug
767 (dispinit): Use postfatal:().
768 (postmsg): Use clearmsg().
769 (postmsg2): Call curses refresh() after change.
771 * src/global.h: Add prototypes for new functions clearmsg() and
774 * src/find.c (putsource): Use postfatal().
776 * src/main.c (main, skiplist): Use postfatal() and clearmsg().
778 * src/command.c (command): Use clearmsg().
780 * src/build.c (build, seek_to_trailer, movefile): Use postfatal().
782 * src/alloc.c (alloctest): Use postfatal().
784 * src/display.c (jumpback): Re-instate signal handler, in an
785 attempt to fix problems reported with the general behaviour of
786 signal handlers in cscope.
788 * src/scanner.l (ws, wsnl): Two new predefined patterns to catch
789 not only blanks and tabs, but all generally allowed white-space
790 characters in source files: form feeds, vertical tabs, carriage
791 returns. Replaced most occurence of [ \t] and [ \t\n] by these.
792 This is a back-port from fscanner.l. Should fix SF bug #508060.
794 Wed Oct 15 16:05:46 2003 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
796 * src/dir.c (scan_dir): Don't reduce path to basename before
798 (issrcfile): Use either basename or full path, as necessary for
799 the individual tests. Reorganized to reduce nesting.
801 Mon Sep 15 12:34:46 2003 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
803 * src/egrep.y (yylex, member, egrep, cgotofn): Reindented. Fixed
804 implicit int declarations and casts.
806 * src/global.h (tolower, tolower) [BSD]: Fix override definitions
807 for these so they don't mung non-alphabetic input.
809 Fri Sep 12 09:33:19 2003 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
811 * src/vp.h: Add #include of <sys/types.h> to fix problem on
814 Fri Sep 12 09:33:19 2003 Hans-Bernhard Broeker <broeker@physik.rwth-aachen.de>
816 I'm finally starting a new, GNU-format ChangeLog file. The format
817 of the previous was too terse to be really useful. This begins
818 with the first changes after release 15.5.
820 * ChangeLog.old: New file. Renamed copy of old-format ChangeLog
823 * ChangeLog: Started from scratch.