SF.net SVN: geany:[4829] trunk/tagmanager/php.c

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Apr 17 16:12:22 UTC 2010


Revision: 4829
          http://geany.svn.sourceforge.net/geany/?rev=4829&view=rev
Author:   eht16
Date:     2010-04-17 16:12:22 +0000 (Sat, 17 Apr 2010)

Log Message:
-----------
Small cleanup.

Modified Paths:
--------------
    trunk/tagmanager/php.c

Modified: trunk/tagmanager/php.c
===================================================================
--- trunk/tagmanager/php.c	2010-04-17 16:12:13 UTC (rev 4828)
+++ trunk/tagmanager/php.c	2010-04-17 16:12:22 UTC (rev 4829)
@@ -100,15 +100,16 @@
 static void function_cb(const char *line, const regexMatch *matches, unsigned int count)
 {
 	char *name, *arglist;
+	char kind = 'f';
 	static char *kindName = "function";
 	tagEntryInfo e;
 	const regexMatch *match_funcname = NULL;
 	const regexMatch *match_arglist = NULL;
 
-	if (count > 2 && count < 6)
+	if (count > 2)
 	{
 		match_funcname = &matches[count - 2];
-		match_arglist = &matches[count -1];
+		match_arglist = &matches[count - 1];
 	}
 
 	if (match_funcname != NULL)
@@ -121,7 +122,7 @@
 		*(arglist+match_arglist->length) = '\x0';
 
 		initTagEntry (&e, name);
-		e.kind = 'f';
+		e.kind = kind;
 		e.kindName = kindName;
 		e.extensionFields.arglist = arglist;
 		makeTagEntry (&e);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list