[geany/geany] ae9a45: Add patch to modify anonymous tag name

Jiří Techet git-noreply at xxxxx
Sun Feb 7 21:31:37 UTC 2021


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Wed, 18 Nov 2020 23:13:04 UTC
Commit:      ae9a456a5d70ec6c457931ff7e2ba6ea515865ee
             https://github.com/geany/geany/commit/ae9a456a5d70ec6c457931ff7e2ba6ea515865ee

Log Message:
-----------
Add patch to modify anonymous tag name

This patch has to be applied every time we update to the latest ctags.


Modified Paths:
--------------
    ctags/ctags_changes.patch

Modified: ctags/ctags_changes.patch
24 lines changed, 24 insertions(+), 0 deletions(-)
===================================================================
@@ -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);
+ }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list