-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.PATCHES
69 lines (52 loc) · 2.21 KB
/
README.PATCHES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
___________________________________
| | | | | _ | | |
| |___| | | | | _| | | | GNU GLOBAL source code tag system
| | | | | | | | | |
| ~~ | ~~| | ~ | | | ~~| for all hackers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (c) 2014 Tama Communications Corporation
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
----------------------------------
This package includes some patches to change behavior of related tools.
Please use them under self-responsibility.
ctags-5.8.patch
Add makeSimpleReferenceTag() function which generates a reference tag.
With this patch, you can write a parser for both ctags and gtags.
(For Exuberant Ctags version 5.8)
You can write a ctags parser which works like follows:
$ ctags --gtags -x ...
D main 320 global/global.c main(int argc, char **argv)
R NULL 325 global/global.c const char *av = NULL;
=
^-- Type string (D: definition, R: reference)
Exuberant Ctags plug-in parser (plugin-factory/exuberant-ctags.c)
understand the type string.
How to apply the patch.
$ tar xzvf ctags-5.8.tar.gz
$ cd ctags-5.8
$ patch -p1 < /usr/local/share/gtags/ctags-5.8.patch
elvis-2.2_0.patch
Disable sort of global(1)'s output.
(For Elvis version 2.2)
Elvis sorts the output of global(1) by the symbol name.
It is inconvenient when global is invoked with the -f <file> option.
How to apply the patch.
$ tar xzvf elvis-2.2_0.tar.gz
$ cd elvis-2.2_0
$ patch -p1 < /usr/local/share/gtags/elvis-2.2_0.patch
vim74-gtags-cscope.patch
With this patch, users of gtags-cscope.vim can treat files
whose name include spaces correctly.
(For Vim version 7.4)
How to apply the patch.
$ tar jxvf vim-7.4.tar.bz2
$ cd vim74
$ patch -p1 < /usr/local/share/gtags/vim74-gtags-cscope.patch
$ ./configure --enable-cscope
$ make
$ sudo make install