[geany/geany] bf2b64: Rename fileGetNthPrevC() to getNthPrevCFromInputFile()

Jiří Techet git-noreply at xxxxx
Sat Sep 10 07:26:04 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sat, 30 Jul 2016 10:51:24 UTC
Commit:      bf2b64239a7958168ae1ffc9e9623c320e14d2ab
             https://github.com/geany/geany/commit/bf2b64239a7958168ae1ffc9e9623c320e14d2ab

Log Message:
-----------
Rename fileGetNthPrevC() to getNthPrevCFromInputFile()


Modified Paths:
--------------
    ctags/main/get.c
    ctags/main/read.c
    ctags/main/read.h

Modified: ctags/main/get.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -802,9 +802,9 @@ extern int cppGetc (void)
 					 * 	"xxx(raw)xxx";
 					 *
 					 * which is perfectly valid (yet probably very unlikely). */
-					int prev = fileGetNthPrevC (1, '\0');
-					int prev2 = fileGetNthPrevC (2, '\0');
-					int prev3 = fileGetNthPrevC (3, '\0');
+					int prev = getNthPrevCFromInputFile (1, '\0');
+					int prev2 = getNthPrevCFromInputFile (2, '\0');
+					int prev3 = getNthPrevCFromInputFile (3, '\0');
 
 					if (! isident (prev) ||
 					    (! isident (prev2) && (prev == 'L' || prev == 'u' || prev == 'U')) ||


Modified: ctags/main/read.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -493,7 +493,7 @@ extern int getcFromInputFile (void)
 
 /* returns the nth previous character (0 meaning current), or def if nth cannot
  * be accessed.  Note that this can't access previous line data. */
-extern int fileGetNthPrevC (unsigned int nth, int def)
+extern int getNthPrevCFromInputFile (unsigned int nth, int def)
 {
 	const unsigned char *base = (unsigned char *) vStringValue (File.line);
 	const unsigned int offset = File.ungetchIdx + 1 + nth;


Modified: ctags/main/read.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -107,7 +107,7 @@ extern boolean fileOpen (const char *const fileName, const langType language);
 extern boolean fileEOF (void);
 extern void fileClose (void);
 extern int getcFromInputFile (void);
-extern int fileGetNthPrevC (unsigned int nth, int def);
+extern int getNthPrevCFromInputFile (unsigned int nth, int def);
 extern int skipToCharacterInInputFile (int c);
 extern void ungetcToInputFile (int c);
 extern const unsigned char *fileReadLine (void);



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