[geany/geany] 263889: Rename isBraceFormat to cppIsBraceFormat()

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


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sun, 07 Aug 2016 16:31:30 UTC
Commit:      2638899379cafb09fbf4ef5cbfa3dd7e58834692
             https://github.com/geany/geany/commit/2638899379cafb09fbf4ef5cbfa3dd7e58834692

Log Message:
-----------
Rename isBraceFormat to cppIsBraceFormat()


Modified Paths:
--------------
    ctags/main/lcpp.c
    ctags/main/lcpp.h
    ctags/parsers/c.c

Modified: ctags/main/lcpp.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -102,7 +102,7 @@ static cppState Cpp = {
 *   FUNCTION DEFINITIONS
 */
 
-extern boolean isBraceFormat (void)
+extern boolean cppIsBraceFormat (void)
 {
 	return BraceFormat;
 }


Modified: ctags/main/lcpp.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -34,7 +34,7 @@
 /*
 *   FUNCTION PROTOTYPES
 */
-extern boolean isBraceFormat (void);
+extern boolean cppIsBraceFormat (void);
 extern unsigned int getDirectiveNestLevel (void);
 extern void cppInit (const boolean state, const boolean hasAtLiteralStrings,
                      const boolean hasCxxRawLiteralStrings,


Modified: ctags/parsers/c.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1652,7 +1652,7 @@ static void skipToFormattedBraceMatch (void)
 static void skipToMatch (const char *const pair)
 {
 	const boolean braceMatching = (boolean) (strcmp ("{}", pair) == 0);
-	const boolean braceFormatting = (boolean) (isBraceFormat () && braceMatching);
+	const boolean braceFormatting = (boolean) (cppIsBraceFormat () && braceMatching);
 	const unsigned int initialLevel = getDirectiveNestLevel ();
 	const int begin = pair [0], end = pair [1];
 	const unsigned long inputLineNumber = getInputLineNumber ();
@@ -2738,7 +2738,7 @@ static int skipInitializer (statementInfo *const st)
 			case '}':
 				if (insideEnumBody (st))
 					done = TRUE;
-				else if (! isBraceFormat ())
+				else if (! cppIsBraceFormat ())
 				{
 					verbose ("%s: unexpected closing brace at line %lu\n",
 							getInputFileName (), getInputLineNumber ());



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