Home | History | Annotate | only in /src/usr.bin/ctags
History log of /src/usr.bin/ctags
RevisionDateAuthorComments
 1.19 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.18 11-Apr-2009  lukem fix -Wsign-compare issue
 1.17 27-Mar-2009  christos remove debugging code.
 1.16 27-Mar-2009  christos fix off-by-one bug that did not add a tag for "foo" in
"typedef struct foo { int x; } foo_t";
as intended.
 1.15 22-Apr-2006  christos branches: 1.15.6; 1.15.16; 1.15.28; 1.15.30; 1.15.32; 1.15.34;
Coverity CID 2913: Check for EOF before using char as index to array.
 1.14 05-Apr-2006  dsl Avoid iswhite(EOF) - fixes coverty CIDs 365 and 1196
I'm not at all sure EOF handling is correct anyway - but it probably only
affects the last line of a file (and maybe last lines without \n).
In particular I suspect that 'ungetc(EOF, file)' doesn't do the expected
thing, and that fseek() needs to be preceeded by clearerr(). But life it short.
 1.13 20-Jul-2005  ross Fix a couple of stack-smashing buffer overflows.
 1.12 17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.11 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.10 07-Aug-2003  agc branches: 1.10.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.9 31-Jan-2002  tv Make this compilable as a host tool.
 1.8 03-May-2001  ross teach ctags(1) about // comments.
 1.7 05-Jun-1999  ross Don't recognize `int (*f)();' as a function. The false match caused the
next real function to be eaten and skipped during the forward scan for `{'.

Restores about 35 lost functions to the kernel tags file.
 1.6 26-May-1999  ross Now understands white space between # and define.
 1.5 24-Jul-1998  ross Deal with the gnu __attribute__ keyword, which is in an odd place and
breaks the ctags function-recognition algorithm.
 1.4 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10.2.1 22-Jun-2004  tron Pull up revision 1.11 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.15.34.1 21-Apr-2010  matt sync to netbsd-5
 1.15.32.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.15.30.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.15.28.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.15.16.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.15.6.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.14 20-Jul-2023  lukem ctags: fix pointer-sign issues

Refactor init() to avoid -Wpointer-sign for host builds.
Uses same cast pattern used in ctags.h.
 1.13 10-Aug-2012  joerg Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
 1.12 20-Jun-2011  mrg branches: 1.12.2;
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.11 14-Apr-2009  lukem branches: 1.11.4;
Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.10 29-Aug-2008  gmcgarry branches: 1.10.6;
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.9 12-May-2006  mrg branches: 1.9.22;
don't do the -Wno-pointer-sign dance for host programs.
 1.8 11-May-2006  mrg sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
 1.7 17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.6 18-May-2003  lukem Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
 1.5 31-Jan-2002  tv Make this compilable as a host tool.
 1.4 24-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.3 26-Mar-1995  glass branches: 1.3.4;
Merge with 4.4Lite
 1.2 31-Jul-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.4.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.9.22.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.6.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11.4.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.12.2.1 30-Oct-2012  yamt sync with head
 1.18 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.17 13-Apr-2014  snj Change some standard exit status text to ".Ex -std"
From Eitan Adler in PR bin/47790.
 1.16 14-May-2010  joerg branches: 1.16.6; 1.16.12; 1.16.22;
Reorder to canonical order.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.14 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.13 12-Oct-2002  wiz `;' as macro arguments also need quoting.
 1.12 30-Sep-2002  grant New sentence, new line. Some mdoc cleanup.
 1.11 08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.10 01-Dec-2001  wiz Sort sections.
 1.9 01-Dec-2001  wiz Whitespace cleanup.
 1.8 04-Sep-2000  kleink For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
 1.7 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.6 27-Feb-1999  hubertf Fix typo reported by Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
in PR 7056.
 1.5 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.4 26-Mar-1995  glass Merge with 4.4Lite
 1.3 11-Jan-1994  jtc Fix spelling errors.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.22.1 10-Aug-2014  tls Rebase.
 1.16.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18 31-Oct-2024  kre PR bin/58786 Partly fix ctags -u processing

RVP pointed out that the command in the previous version to
remove old entries from the tags file would fail, if some were
not there (-u being used to add a new file's tags) as grep
exits 1 when the pattern is not found. (The original version
would almost never fail, even when it should have, as its status
was just from the final "rm" command).

So make the command more complex to deal with that.

While there, do away with the OTAGS nonsense, and use mktemp(1) instead.

Also do away with the absurdly short 100 byte command buffer, and
use asprintf() instead.

And also properly quote strings being passed to system(3) (why the
code needs to use system(3) at all is an entirely different question).

There are still oh so many weirdnesses in this program, but when
used in the typical way, it should be no worse than it ever was.

XXX no pullups intended
 1.17 30-Oct-2024  kre PR bin/58786 More ctags error handling

Inspired by RVP's patch in PR bin/58786 add handling of write
errors, and failures to build or execute commands used in
implementing the -u option but implemented a little differently
(and avoiding adding yet more 80 column violations to this mess).

The processing of -u needs to be completely redone sometime, I mean,
no-one would really ever want to keep a file named OTAGS in "." would they?
Really???

XXX - pullups? Probably not, no-one has ever cared about this before.
 1.16 29-Oct-2024  kre PR bin/58786 - fix exit status when tags file open fails

From RVP ... always exit(1) when opening new tags file fails.
 1.15 10-Feb-2024  andvar branches: 1.15.2;
s/psuedo/pseudo/ in comments.
 1.14 20-Jul-2023  lukem ctags: fix pointer-sign issues

Refactor init() to avoid -Wpointer-sign for host builds.
Uses same cast pattern used in ctags.h.
 1.13 03-Feb-2019  mrg - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.12 21-Jul-2008  lukem branches: 1.12.60;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.11 17-Feb-2005  xtraeme branches: 1.11.28;
Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.10 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.9 07-Aug-2003  agc branches: 1.9.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.8 14-Jul-2003  itojun use bounded string op
 1.7 31-Jan-2002  tv Make this compilable as a host tool.
 1.6 25-Aug-1998  ross Add { and } to shut up egcs. Reformat the more questionable code.
 1.5 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.4 02-Sep-1995  jtc Sync with 4.4lite2
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3 02-Sep-1995  jtc imported from 44lite2
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.1 22-Jun-2004  tron Pull up revision 1.10 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.11.28.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.12.60.1 10-Jun-2019  christos Sync with HEAD
 1.15.2.1 02-Aug-2025  perseant Sync with HEAD
 1.9 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.8 17-Feb-2005  xtraeme branches: 1.8.12; 1.8.22; 1.8.34; 1.8.38; 1.8.40;
Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.7 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.5 31-Jan-2002  tv Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
 1.4 03-May-2001  ross teach ctags(1) about // comments.
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.40.1 21-Apr-2010  matt sync to netbsd-5
 1.8.38.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.8.34.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.8.22.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.8.12.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.12 03-Feb-2019  mrg - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
 1.11 13-Jul-2009  roy branches: 1.11.46;
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10 17-Feb-2005  xtraeme branches: 1.10.12; 1.10.22; 1.10.34; 1.10.38; 1.10.40;
Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.9 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.8 07-Aug-2003  agc branches: 1.8.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.7 14-Jul-2003  itojun use bounded string op
 1.6 31-Jan-2002  tv Make this compilable as a host tool.
 1.5 06-Nov-1998  christos char -> unsigned char
 1.4 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.2.1 22-Jun-2004  tron Pull up revision 1.9 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.10.40.1 21-Apr-2010  matt sync to netbsd-5
 1.10.38.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10.34.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10.22.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.10.12.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.11.46.1 10-Jun-2019  christos Sync with HEAD
 1.11 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10 17-Feb-2005  xtraeme branches: 1.10.12; 1.10.22; 1.10.34; 1.10.38; 1.10.40;
Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.9 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.8 07-Aug-2003  agc branches: 1.8.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.7 14-Jul-2003  itojun use bounded string op
 1.6 31-Jan-2002  tv Make this compilable as a host tool.
 1.5 06-Nov-1998  christos char -> unsigned char
 1.4 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.2.1 22-Jun-2004  tron Pull up revision 1.9 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.10.40.1 21-Apr-2010  matt sync to netbsd-5
 1.10.38.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10.34.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.10.22.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.10.12.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.11 02-Aug-2025  kre Output format fix for -x mode.

Ensure there is always a space between the symbol name and the line
number, rather than only when either the symbol is 15 chars or shorter,
or the line number is 3 digits or shorter. That is, previously a
symbol appearing 1000 or more lines into a file, with a name of 16
chars or longer, would produce (something like):

A_very_long_symbol_name2345 filename ...

No more.

Now it will be:

A_very_long_symbol_name 2345 filename ...
 1.10 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.9 17-Feb-2005  xtraeme branches: 1.9.12; 1.9.22; 1.9.34; 1.9.38; 1.9.40;
Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.8 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.7 07-Aug-2003  agc branches: 1.7.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.6 31-Jan-2002  tv Make this compilable as a host tool.
 1.5 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.4 27-Sep-1995  jtc Update lseek() constants:
L_SET -> SEEK_SET
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 22-Jun-2004  tron Pull up revision 1.8 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.9.40.1 21-Apr-2010  matt sync to netbsd-5
 1.9.38.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.9.34.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.9.22.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.9.12.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.12 05-Apr-2006  dsl Don't follow node->left after free(node).
Optimise out recursion unless both node->left and node->right non-NULL.
Fixes coverty CIDs 26 and 27.
 1.11 17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.10 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.9 07-Aug-2003  agc branches: 1.9.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.8 14-Jul-2003  itojun use bounded string op
 1.7 31-Jan-2002  tv Make this compilable as a host tool.
 1.6 06-Nov-1998  christos disambiguate if/else block
 1.5 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.4 26-Mar-1995  glass Merge with 4.4Lite
 1.3 23-May-1994  cgd cfree -> free
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.2.1 22-Jun-2004  tron Pull up revision 1.10 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.12 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.11 05-Apr-2006  dsl branches: 1.11.6; 1.11.16; 1.11.28; 1.11.32; 1.11.34;
Avoid iswhite(EOF) - fixes coverty CIDs 365 and 1196
I'm not at all sure EOF handling is correct anyway - but it probably only
affects the last line of a file (and maybe last lines without \n).
In particular I suspect that 'ungetc(EOF, file)' doesn't do the expected
thing, and that fseek() needs to be preceeded by clearerr(). But life it short.
 1.10 17-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.9 20-Jun-2004  jmc Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
 1.8 07-Aug-2003  agc branches: 1.8.2;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.7 31-Jan-2002  tv Make this compilable as a host tool.
 1.6 12-Jun-2001  wiz receive, not recieve
 1.5 03-May-2001  ross teach ctags(1) about // comments.
 1.4 18-Oct-1997  lukem WARNSify, fix .Nm usage, getopt returns -1 not EOF
 1.3 26-Mar-1995  glass Merge with 4.4Lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.2.1 22-Jun-2004  tron Pull up revision 1.9 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
 1.11.34.1 21-Apr-2010  matt sync to netbsd-5
 1.11.32.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.11.28.1 14-Aug-2009  snj Pull up following revision(s) (requested by roy in ticket #885):
bin/pax/options.c: revision 1.105
dist/nawk/maketab.c: revision 1.12
dist/nawk/proctab.c: revision 1.11
dist/nawk/proto.h: revision 1.9
dist/nawk/run.c: revision 1.29
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.11.16.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does not
conflict with the soon to be added getline(3) libc function.
 1.11.6.1 25-Aug-2009  snj Pull up following revision(s) (requested by plunky in ticket #1354):
bin/pax/options.c: revision 1.105 via patch
usr.bin/ctags/C.c: revision 1.19
usr.bin/ctags/ctags.h: revision 1.9
usr.bin/ctags/fortran.c: revision 1.11
usr.bin/ctags/lisp.c: revision 1.11
usr.bin/ctags/print.c: revision 1.10
usr.bin/ctags/yacc.c: revision 1.12
usr.bin/gencat/gencat.c: revision 1.30 via patch
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.2 26-Mar-1995  glass Merge with 4.4Lite
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 26-Mar-1995  glass Import from 4.4Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed