[geany/geany] 3847b6: Rename nestingLevelsGetNth() to nestingLevelsGetNthFromRoot()

Jiří Techet git-noreply at xxxxx
Sun Feb 7 21:31:41 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:15 UTC
Commit:      3847b6c2a9e090a3362d35dac51c3859f628cacd
             https://github.com/geany/geany/commit/3847b6c2a9e090a3362d35dac51c3859f628cacd

Log Message:
-----------
Rename nestingLevelsGetNth() to nestingLevelsGetNthFromRoot()

See 0f753a22a23ec861f2d80f011e8050d1bdedc6ca upstream.


Modified Paths:
--------------
    ctags/parsers/python.c
    ctags/parsers/ruby.c

Modified: ctags/parsers/python.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -436,7 +436,7 @@ static bool constructParentString(NestingLevels *nls, int indent,
 	vStringClear (result);
 	for (i = 0; i < nls->n; i++)
 	{
-		NestingLevel *nl = nestingLevelsGetNth (nls, i);
+		NestingLevel *nl = nestingLevelsGetNthFromRoot (nls, i);
 		tagEntryInfo *e;
 
 		if (indent <= PY_NL_INDENTATION(nl))
@@ -474,7 +474,7 @@ static void checkIndent(NestingLevels *nls, int indent)
 
 	for (i = 0; i < nls->n; i++)
 	{
-		n = nestingLevelsGetNth (nls, i);
+		n = nestingLevelsGetNthFromRoot (nls, i);
 		if (n && indent <= PY_NL_INDENTATION(n))
 		{
 			/* truncate levels */
@@ -491,7 +491,7 @@ static void addNestingLevel(NestingLevels *nls, int indentation, struct corkInfo
 
 	for (i = 0; i < nls->n; i++)
 	{
-		nl = nestingLevelsGetNth(nls, i);
+		nl = nestingLevelsGetNthFromRoot(nls, i);
 		if (indentation <= PY_NL_INDENTATION(nl)) break;
 	}
 	if (i == nls->n)


Modified: ctags/parsers/ruby.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -72,7 +72,7 @@ static vString* nestingLevelsToScope (const NestingLevels* nls)
 	vString* result = vStringNew ();
 	for (i = 0; i < nls->n; ++i)
 	{
-	    NestingLevel *nl = nestingLevelsGetNth (nls, i);
+	    NestingLevel *nl = nestingLevelsGetNthFromRoot (nls, i);
 	    tagEntryInfo *e = getEntryOfNestingLevel (nl);
 	    if (e && strlen (e->name) > 0 && (!e->placeholder))
 	    {



--------------
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