Package: exuberant-ctags / 1:5.9~svn20110310-19

Metadata

Package Version Patches format
exuberant-ctags 1:5.9~svn20110310-19 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
memmove.patch | (download)

routines.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 use memmove on overlapping strings

strcpy is not guaranteed to work on overlapping strings, and this can lead
to broken paths appearing in tag files.  Use memmove instead.

python disable imports.patch | (download)

python.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 python: disable import parsing by default

Parsing imports mixes up imports with actual class definitions.  If you need
to re-enable this, use the --python-kinds=+i option.

Bug: http://sourceforge.net/tracker/?func=detail&aid=2829739&group_id=6556&atid=106556
Bug-Ubuntu: https://bugs.launchpad.net/bugs/618979
vim command loop.patch | (download)

vim.c | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 fix infinite loop parsing vim commands

This happens if a non-alphanumeric character other than whitespace or '-' is
found before the first alphanumeric character after 'command'.

Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=3214129&group_id=6556&atid=106556
Bug-Ubuntu: https://bugs.launchpad.net/bugs/736367
go.patch | (download)

go.c | 670 670 + 0 - 0 !
parsers.h | 1 1 + 0 - 0 !
source.mak | 2 2 + 0 - 0 !
3 files changed, 673 insertions(+)

 add go support

Bug-Debian: http://bugs.debian.org/634166
jscript set tag scope.patch | (download)

jscript.c | 54 51 + 3 - 0 !
1 file changed, 51 insertions(+), 3 deletions(-)

 changed the javascript parser to set the tag's scope rather than
 including it in the tag name.

Patch from Colomban.

reproducible.patch | (download)

options.c | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 don't build the compilation date and time into the binary

This made the build unreproducible.

gcc no common.patch | (download)

objc.c | 6 3 + 3 - 0 !
ocaml.c | 16 8 + 8 - 0 !
2 files changed, 11 insertions(+), 11 deletions(-)

 fix build with gcc -fno-common

Bug-Debian: https://bugs.debian.org/957185
use conventional unused marker.patch | (download)

c.c | 4 2 + 2 - 0 !
eiffel.c | 2 1 + 1 - 0 !
general.h | 6 4 + 2 - 0 !
lregex.c | 30 15 + 15 - 0 !
lua.c | 2 1 + 1 - 0 !
main.c | 2 1 + 1 - 0 !
options.c | 24 12 + 12 - 0 !
parse.c | 2 1 + 1 - 0 !
python.c | 2 1 + 1 - 0 !
routines.c | 2 1 + 1 - 0 !
10 files changed, 39 insertions(+), 37 deletions(-)

 build fix: use conventional compiler attribute shorthand

The `__unused` macro has been used on Linux systems for this exact
purpose for ages. On the other hand, using the non-standard __unused__
breaks the build when compiling against glibc 2.34, as they use this
identifier internally.

quote output file name.patch | (download)

sort.c | 53 42 + 11 - 0 !
1 file changed, 42 insertions(+), 11 deletions(-)

 main: quote output file name before passing it to system(3) function

Following command line doesn't work:

      $ ctags -o 'a b' ...

because a shell lauched from system(3) deals a whitespace between 'a'
and 'b' as a separator. The output file name is passed to system(3)
to run external sort command.

This commit adds code to put double and single quoets around the output
file name before passing it to system(3).

The issue is reported by Lorenz Hipp <lhipp@idealbonn.de> in a private mail.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>