[geany/geany] a7570e: ctags: Avoid unnecessary and hard-to-read use of the comma operator

Erik de Castro Lopo git-noreply at xxxxx
Fri Jun 24 01:02:03 UTC 2016


Branch:      refs/heads/master
Author:      Erik de Castro Lopo <erikd at mega-nerd.com>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 24 Jun 2016 01:02:03 UTC
Commit:      a7570e84f02a1e4517677db033f399a66f49cfd4
             https://github.com/geany/geany/commit/a7570e84f02a1e4517677db033f399a66f49cfd4

Log Message:
-----------
ctags: Avoid unnecessary and hard-to-read use of the comma operator

Closes #1074.

X-Universal-CTags-Commit-ID: 91c6773373864da345a7a9e0f5bd01a25588471c


Modified Paths:
--------------
    tagmanager/ctags/get.c

Modified: tagmanager/ctags/get.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -203,7 +203,8 @@ static void readIdentifier (int c, vString *const name)
 	do
 	{
 		vStringPut (name, c);
-	} while (c = fileGetc (), (c != EOF  &&  isident (c)));
+		c = fileGetc ();
+	} while (c != EOF && isident (c));
 	fileUngetc (c);
 	vStringTerminate (name);
 }



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