Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2666 from techee/ctags_sync5
Synchronize with upstream universal-ctags
- Loading branch information
Showing
196 changed files
with
31,645 additions
and
7,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
A patch to ctags containing our changes to ctags | ||
(changing anon tag names from anon<hash> to anon<number>). | ||
diff --git a/ctags/main/parse.c b/ctags/main/parse.c | ||
index 8fbb7148..c12f8662 100644 | ||
--- ctags/main/parse.c | ||
+++ ctags/main/parse.c | ||
@@ -4111,12 +4111,18 @@ extern void anonGenerate (vString *buffer, const char *prefix, int kind) | ||
parser -> anonymousIdentiferId ++; | ||
|
||
char szNum[32]; | ||
+#if 0 | ||
char buf [9]; | ||
|
||
vStringCopyS(buffer, prefix); | ||
|
||
anonHashString (getInputFileName(), buf); | ||
sprintf(szNum,"%s%02x%02x",buf,parser -> anonymousIdentiferId, kind); | ||
+#else | ||
+ /* we want to see numbers for anon functions in the tree view instead of the hash */ | ||
+ vStringCopyS(buffer, prefix); | ||
+ sprintf(szNum,"%u", parser -> anonymousIdentiferId); | ||
+#endif | ||
vStringCatS(buffer,szNum); | ||
} |
Oops, something went wrong.