resetting manifest requested domain to floor
[platform/upstream/cscope.git] / ChangeLog
1 2012-08-04  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
2
3         * configure.in: Update version to 15.8a
4
5         * src/version.h (FIXVERSION): Update to 8a.
6
7 2012-08-02  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
8
9         * src/version.h (FIXVERSION): Update missed.
10
11         * src/fscanner.l: # with nothing after it would throw off the line
12         count. (Bug #3553579)
13
14 2012-07-10 Neil Horman <nhorman@tuxdriver.com>
15
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
19
20 2012-06-15  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
21
22         * src/gscope.c: Added placeholder file, needed for distcheck.
23
24         * configure.in: Added AM_PROC_CC_C_O, needed for upgrade of
25         automake.
26
27         * compile, config.guess, config.sub, install-sh, missing, depcomp,
28         ylwrap, INSTALL.gnu, mkinstalldirs: Updated to automake 1.11.3,
29         autoconf 2.68.
30
31         * Makefile.in, aclocal.m4, src/Makefile.in, contrib/Makefile.in,
32         doc/Makefile.in: Regenerated by automake 1.11.1.
33
34         * configure, config.h.in: Regenerated by autoconf 2.68.
35
36 2012-06-15  Neil Horman  <nhorman@tuxdriver.com>
37         * configure.in: Update version in configure.in in prep for new release
38
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
42
43 2012-05-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
44
45         * src/command.c (command): Allow usage of function keys ctrl-f and
46         ctrl-b even from result pane.
47
48         * src/display.c (display): More informative display of position in
49         a multi-screenful result set.
50
51 2012-04-07  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
52
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.
56
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.
61
62         * src/command.c (countrefs): There was still one scanf not taking
63         into account limited buffer lengths.
64
65         * src/find.c (check_for_assignment): Search for assignment failed
66         to recognize >>= and <<=, incorrectly recognized ~=, and was
67         implemented somewhat clumsily.
68
69 2012-03-12  Neil Horman <nhorman@tuxdriver.com>
70
71         * src/invlib.c: Modified posting construction code to properly limit
72         the fileindex value to avoid overflow.
73
74 2012-03-05  Neil Horman <nhorman@tuxdriver.com>
75
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.
79
80 2011-07-04  Neil Horman <nhorman@tuxdriver.com>
81
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.
87
88 2011-07-04  Neil Horman <nhorman@tuxdriver.com>
89
90         * src/main.c: Remove unneeded if statement that checked for proper
91         use of s, f, i and p options (sf bug 2912347).
92
93 2011-06-29  Neil Horman <nhorman@tuxdriver.com>
94
95         * src/fscanner.l, src/scanner.l: Add NULL check to strpbrk call to
96         avoid cscope crashes when reading garbage files.
97
98 2011-06-12  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
99
100         * Makefile.in, aclocal.m4, config.h.in, configure,
101         contrib/Makefile.in, doc/Makefile.in, src/Makefile.in: Regenerated
102         by newer autoconf.
103
104         * src/build.c (build): Remove pointless write.
105         (copydata, copyinverted): Avoid potential NULL pointer problem.
106
107         * src/find.c (findcalling): Remove pointless write.
108
109         * src/main.c (main): Remove pointless write.
110         (main): Documented default include directory $INCDIR wasn't
111         actually considered.
112
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.
116
117         * src/main.c (main): Handle Ctrl-Z manually, as curses raw mode
118         doesn't do that by itself.
119
120         * src/command.c (changestring): Likewise.
121
122 2011-05-26 Neil Horman <nhorman@tuxdriver.com>
123
124         * contrib/cctree.vim: Added vi plugin to read cscope db's
125         * contrib/cctree.txt: Added docs for cctree.vim
126
127 2010-09-30  Neil Horman <nhorman@tuxdriver.com>
128
129         * src/main.c: Ignore SIGPIPE in linemode as well to allow
130         for proper file cleanup
131
132 2010-03-04  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
133
134         * src/dir.c (includedir, incfile): Cast size_t value to integer
135         for use as a *printf() precision argument.
136
137         * src/fscanner.l, src/scanner.l: Tolerate C++ :: scope operator
138         inside argument lists, too.
139
140 2009-12-21  Neil Horman <nhorman@tuxdriver.com>
141
142         * src/main.c: Added some more missing short options to parse_options
143
144 2009-12-14  Neil Horman <nhorman@tuxdriver.com>
145
146         * src/main.c: Added missing line mode operation options to
147         parse_arguments
148
149 2009-12-14  Neil Horman <nhorman@tuxdriver.com>
150
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)
154
155 2009-12-09  Neil Horman <nhorman@tuxdriver.com>
156
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)
161
162         * AUTHORS: Fixed my email address
163
164 2009-08-28  Neil Horman <nhorman@tuxdriver.com>
165
166         * src/scanner.h: Added a LEXERR token to be returned if a lexer error
167         occurs
168
169         * src/crossref.c: Check for LEXERR token, and abort processing file if
170         lexer error occurs
171
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.
176
177 2009-05-06  Neil Horman <nhorman@tuxdriver.com>
178
179         * src/main.c: Fixed string length checks to avoid overflow
180
181 2009-04-30  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
182
183         * src/version.h (FILEVERSION, FIXVERSION): Version number changed
184         to 15.7a.
185
186         * configure.in: Version number changed to 15.7a.
187
188         * configure (all): Regenerated.
189
190 2009-04-10  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
191
192         * src/snprintf.c: Replacement implementation for missing snprintf
193         and vsprintf, from www.jhweiss.de.
194         
195         * acinclude: New macros to optionally activate a replacement for
196         missing snprintf and vsprintf, from www.jhweiss.de.
197
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().
201
202         * src/Makefile.am (cscope_LDADD): Added LIBOBJS to automatically
203         include snprintf.o in the build if and only if needed.
204
205         * configure, config.h.in, aclocal.m4, Makefile.in,
206         contrib/Makefile.in, doc/Makefile.in, src/Makefile.in:
207         Regenerated.
208
209         * src/global.h: Add prototypes for replacement snprintf and
210         vsnprintf.
211         
212         * src/*.c: Replace all calls of sprintf by snprintf to avoid
213         possible buffer overflows.
214
215 2008-06-30  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
216
217         * aclocal.m4, configure, config.h.in, Makefile.in,
218         src/Makefile.in, doc/Makefile.in, contrib/Makefile.in: Regenerated
219         by recent autotools.
220
221         * compile, config.guess, config.sub, depcomp, install-sh, missing,
222         mkinstalldirs, ylwrap: Updated to version provided by recent
223         autotools.
224
225         * INSTALL.gnu: GNU installation instructions.
226
227         * src/global.h (tempstring): Fix mismatch of declaration with
228         definition.
229
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
233         the terminal driver
234
235 2008-03-12  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
236
237         * src/build.c (samelist): Previous fix broke handling of blanks in
238         directory names.
239         (build): Apply the same fix to other occurence of the same code.
240
241 2008-03-10  Neil Horman            <nhorman@tuxdriver.com>
242
243         * src/build.c: Fix Samelist to properly absorb newlines so that
244         inverted indicies aren't always rebuilt
245
246 2008-02-14  Neil Horman            <nhorman@tuxdriver.com>
247
248         * src/dir.c: Fix up issrcfile to identify hpp/hxx files as
249         standard c++ source files
250
251         * src/main.c: Add myexit as a handler for SIGTERM, to clean up
252         temp files on TERM
253
254 2007-12-03  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
255
256         * doc/cscope.1: Grammar corrections [SF patch #1843711] and troff
257         syntax fixes [from ESR].
258
259 2007-03-10  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
260
261         * src/scanner.l (comment_input): Translate EOF to LEXEOF in this
262         case, too.
263         (input, noncommentinput): Spell out LEXEOF instead of a magic
264         number 0.
265
266 2007-02-09  Neil Horman            <nhorman@tuxdriver.com>
267
268         * doc/xcscope.1: Added man page for xcscope utility in contrib
269
270 2007-01-07  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
271
272         * src/fscanner.l: Avoid a -Wunused warning by disabling the
273         yy_topstate() function.
274
275         * README: Add a warning about the intended user audience not
276         including superusers or anonymous ones.
277
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.
283         
284 2006-10-23  Neil Horman            <nhorman@tuxdriver.com>
285
286         * src/main.c: Update sigwinch_handler to only register if linemode
287         is not specified (SF bug 1574354)
288
289 2006-10-15  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
290
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
295         SF bug #1173768.
296         
297 2006-10-10  Neil Horman            <nhorman@tuxdriver.com>
298
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)
301
302 2006-09-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
303
304         * src/fscanner.l (wsnl): Expand set of allowed characters to make
305         scanner more tolerant of non-Unix linebreaks (should fix SF Bug
306         #1563459)
307
308         * src/Makefile.am (CLEANFILES, dist-hook): Commented out, to
309         reduce number of user reports from people without lex.
310
311         * configure.in: Change from AC_PROG_LEX to AM_PROG_LEX.
312
313         * src/Makefile.am (cscope_SOURCES): Added alloc.h.  Reindented.
314
315         * src/invlib.c (invnewterm): Correct loop test to account for
316         maxback being unsigned (should fix SF bug #1559495).
317
318         * src/Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES, to quench
319         an automake warning.
320
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.
324
325         * configure, aclocal.m4, Makefile.in, contrib/Makefile.in,
326         doc/Makefile.in, src/Makefile.in: Regenerated.
327
328 2006-08-20  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
329
330         * src/find.c (findsymbol): Missed one place where s_len had to be
331         initialized.
332                                   
333         * src/main.c (tempstring): Parametrize length by new macro
334         TEMPSTRING_LEN.
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().
338
339         * src/input.c (shellpath): Limit size of strings copied from
340         environment.
341
342         * src/edit.c (editref, editall): Put explicit %s field widths into
343         fscanf() calls.
344
345         * src/display.c (display): Put explicit %s field widths into
346         fscanf() call.
347
348         * src/dir.c (makefilelist): Put explicit %s field width into
349         sscanf() call.
350
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.
357
358         * src/command.c (changestring): Put explicit %s field widths into
359         fscanf() call.
360
361         * src/build.c (samelist, build): fgets() replaces fscanf().
362         (build): Put explicit %s field widths into fscanf() call.
363
364 2006-07-23  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
365
366         * src/global.h: Rename putstring() to fetch_string_from_dbase(),
367         add a parameter.
368
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
372         the output buffer.
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
377         argument.
378
379         * src/constants.h (MSGLEN): Add safety parentheses.
380
381         * src/library.h: Remove prototypes of alloc.c functions.
382
383         * src/alloc.h: New file.  Moved prototypes of alloc.c functions in
384         here, out of library.h.
385
386         * src/alloc.c: Include new header file from here.
387         (my_strdup): Changed name from misleading stralloc().  Remove
388         incorrect cast.
389
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
395         argument.
396         (copydata, coypinverted): Rename calls of putinclude().  Add new
397         argument.
398
399         * src/vpinit.c: Add #include "alloc.h"
400         (vpinit): Rename calls of stralloc().
401
402         * src/main.c: Add #include "alloc.h".
403         (main): Rename calls of stralloc().
404
405         * src/history.c: Add #include "alloc.h".
406         (addcmd): Rename call of stralloc().
407
408         * src/fscanner.l: Add #include "alloc.h".
409
410         * src/display.c: Add #include "alloc.h".
411
412         * src/dir.c: Add #include "alloc.h".  Move project includes above
413         system headers.
414         (sourcedir, addsrcdir, includedir, addincdir, addsrcfile): Rename
415         calls to stralloc().
416
417         * src/crossref.c: Add #include "alloc.h"
418
419         * src/command.c: Add #include "alloc.h".
420
421 2006-05-06  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
422
423         * src/fscanner.l: Accept numeric literals inside fcn definitions
424         and calls.
425
426 2006-04-21  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
427
428         Make source clean under -Wsign-compare.
429         
430         * src/main.c (fileargc): Make counter unsigned.
431         (main): Make local counter unsigned.
432         (main): Fixed two sprintf() excess arguments.
433
434         * src/lookup.c (initsymtab): Make local counters unsigned.
435
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.
441
442         * src/input.c (mygetline): Make local counters unsigned.
443
444         * src/find.c (findregexp, findfile): Make local counters unsigned.
445
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
450         counters unsigned.
451         (cgotofn, member): Cast char to unsigned char, not unsigned int,
452         for use as an index.
453
454         * src/display.c (disprefs, mdisprefs, nextline, topline,
455         totallines): Make unsigned.
456         (search): Removed unused locals.
457         (seekline): Make argument unsigned.
458
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.
463
464         * src/crossref.c (symbols, msymbols): Make unsigned long.
465         (struct symbol): Make elements first, last, length and fcn_level
466         unsigned.
467         (crossref, putcrossref): Make local counters unsigned.
468
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.
473
474         * src/build.c (build): Change several local ints to unsigned
475         longs.
476
477         * src/global.h: Updated lots of declarations to match the above.
478
479         * src/alloc.c (mymalloc, mycalloc, myrealloc): Make size arguments
480         size_t. Remove pointless casts in several of their callers.
481
482         * src/library.h (mymalloc, mycalloc, myrealloc): Updated
483         prototoypes.
484
485 2006-04-20  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
486
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.
490
491         * configure.in: Add test for <io.h>.
492
493         * configure, config.h.in: Regenerated.
494         
495         * src/mypopen.c [HAVE_IO_H]: #include <io.h> it, for the setmode()
496         declaration.
497
498 2006-04-19  Hans-Bernhard Broeker  <broeker@physik.rwth-achen.de>
499
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.
503
504         * src/global.h (select_large): Removed declaration.
505
506         * src/main.c (select_large, main): Removed long unused global.
507
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.
512
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).
516
517 2006-02-21  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
518
519         * src/vpinit.c (vpinit): Fix handling of slightly malformed VPATH
520         environment variable contents.
521
522 2005-11-22  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
523
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.
528
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.
533
534 2005-08-16  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
535
536         * src/main.c: Uncluttered by removing nitpicky (void) casts.
537         (longusage): Reworked for source legibility even on 80-column
538         displays.
539         (main): If in verbose linemode, print number of references found,
540         first off.  Patch from Elad Lahav, for Kscope
541
542 2005-07-08  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
543
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.
548
549         * packages/MSDOS/djmake.bat: Adapt to modern position of ylwrap
550         script.
551
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.
556
557         * src/main.c (sigwinch_handler): Likewise.
558         (main): Likewise.
559
560 2005-04-29  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
561
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.
565
566         * src/help.c (help): Document additonal hotkey ^A.  Mention
567         possible unavailability of some Ctrl keys because of terminal
568         settings.
569
570 2005-03-14  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
571
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.
575         
576         * src/global.h (getline): Removed prototype.
577
578         * src/command.c (command): Changed all calls of getline() to
579         mygetline() with an empty string as the first argument.
580
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).
584
585 2005-02-16  Neil Horman  <nhorman@gmail.com>
586
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
590
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
595
596 2005-02-04  Neil Horman  <nhorman@gmail.com>
597
598         * src/command.c (command): Added KEY_RESIZE event case to 
599         command switch to handle window re-drawing when a resize 
600         event was received.
601
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.
605
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.
610
611 2005-02-01  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
612
613         * src/build.c (build): Keep interactive mode on, even if on a
614         terminal, if verbose mode (-v) was turned on.
615
616 2005-01-31  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
617
618         * src/scanner.h: Declare yytext signed on AIX (without stating a
619         version number, for now).
620
621 2005-01-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
622
623         * src/mypopen.c (mypopen): Make closing argument to execlp() a
624         manifest null pointer, not just a zero.
625
626 2004-12-08  Neil Horman  <nhorman@gmail.com>
627         
628         * src/dir.c: Fix to dissallow unreadable files from 
629         srcfiles list (sourceforge bug number 1040690)
630
631 2004-12-06  Neil Horman  <nhorman@gmail.com>
632         
633         * src/main.c: Fix for temp file security bug (sourceforge 
634         bug number 1062807 / CAN-2004-0970)
635
636 2004-11-22  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
637
638         * doc/cscope.1: Make ESR happy: change man page summary section to
639         avoid [0-9] syntax.
640
641 2004-10-27  Hans-Bernhard Broeker  <broeker@accip02.physik.rwth-aachen.de>
642
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
646         spotting this.
647
648         * src/global.h (countrefs): Prototype added.
649
650         * src/command.c (countrefs): Made globally available.
651
652 2004-06-23  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
653
654         * src/dir.c (makefilelist): Fix broken movement of point_in_line
655         when parsing quoted names.  Simplify structure by moving default
656         handling upward.
657
658 2004-06-21  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
659
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.
663
664 2004-04-30  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
665
666         * src/vpinit.c (vpinit): Renamed argument currentdir to
667         current_dir to avoid name clash with same-named global.
668
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,
672         too.
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.
676
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.
680
681         * src/display.c: Fix fall-back definition of sigjmp_buf.
682
683         * src/constants.h: Activate TERMINFO for FreeBSD.
684
685         * src/input.c (mygetline): New function.  Poor-man's readline
686         imitation.  From SF Patch #937310.
687
688         * src/global.h (mygetline): Prototype added.
689
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.
693
694         * packages/cscope.spec: Updated by SF patch #920586 to be more
695         compatible with current expectations.
696
697 2004-02-24  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
698
699         * configure.in (AC_CHECK_HEADERS): Added check for NSK-Tandem
700         special magic header file <floss.h>.
701
702         * src/global.h [HAVE_FLOSS_H]: Added #include <floss.h> if it
703         exists.
704
705 2004-02-14  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
706
707         * src/command.c (countrefs): Fix off-by-one length specification
708         of %s format.  Thanks to <anil@recoil.org> for spotting it.
709
710 2004-02-12  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
711
712         Fix SF bug #892731: Ctrl-C interruption of search works only once
713         per session.
714         
715         * configure.in (sigsetjmp): Added test for presence of this
716         function.
717
718         * src/display.c (sigsetjmp) [!HAVE_SIGSETJMP]: Provide fallback
719         definitions for functions sigsetjmp, siglongjmp and type
720         sigjmp_buf.
721         (search): Move call to signal() above that to setjmp().  Call
722         sigsetjmp() instead of setjmp().
723
724         * configure, config.h.in: Regenerated.
725
726         * Makefile.in, src/Makefile.in, contrib/Makefile.in,
727         doc/Makefile.in, aclocal.m4: Rebuilt by automake-1.7.9.
728         
729         
730 2004-02-11  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
731
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.
735
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.
741
742         * src/input.c (mygetch): Type of local variable savesig written
743         using sighandler_t.
744
745         * src/display.c (search): Type of local variable savesig written
746         using sighandler_t.
747
748         * src/exec.c (oldsigtstp): Renamed, from oldsigstp.
749         (oldsigtstp,oldsighup,oldsigquit): Changed from function pointer
750         type to new typedef name sighandler_t.
751
752 2004-02-05  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
753
754         * src/global.h (tolower) [BSD]: Fix stupid typo in overrides for
755         toupper and tolower.
756
757 2004-01-08  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
758
759         * src/display.c (clearmsg): New function.  Does essentially the
760         same thing previously achieved by a rather more cryptic
761         postmsg("").
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
766         #419510.
767         (dispinit): Use postfatal:().
768         (postmsg): Use clearmsg().
769         (postmsg2): Call curses refresh() after change.
770
771         * src/global.h: Add prototypes for new functions clearmsg() and
772         postfatal().
773
774         * src/find.c (putsource): Use postfatal().
775
776         * src/main.c (main, skiplist): Use postfatal() and clearmsg().
777
778         * src/command.c (command): Use clearmsg().
779
780         * src/build.c (build, seek_to_trailer, movefile): Use postfatal().
781
782         * src/alloc.c (alloctest): Use postfatal().
783
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.
787
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.
793
794 Wed Oct 15 16:05:46 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
795
796         * src/dir.c (scan_dir): Don't reduce path to basename before
797         calling issrcfile.
798         (issrcfile): Use either basename or full path, as necessary for
799         the individual tests.  Reorganized to reduce nesting.
800
801 Mon Sep 15 12:34:46 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
802
803         * src/egrep.y (yylex, member, egrep, cgotofn): Reindented.  Fixed
804         implicit int declarations and casts.
805
806         * src/global.h (tolower, tolower) [BSD]: Fix override definitions
807         for these so they don't mung non-alphabetic input.
808
809 Fri Sep 12 09:33:19 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
810
811         * src/vp.h: Add #include of <sys/types.h> to fix problem on
812         Solaris.
813
814 Fri Sep 12 09:33:19 2003  Hans-Bernhard Broeker  <broeker@physik.rwth-aachen.de>
815
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.
819         
820         * ChangeLog.old: New file.  Renamed copy of old-format ChangeLog
821         file.
822
823         * ChangeLog: Started from scratch.
824
825