History log of /src/usr.bin/ctags/ctags.c |
Revision | | Date | Author | Comments |
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 | 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
|