(svn r10616) [NoAI] -Fix: only see a method as constructors if they do not have an other function name noai
authortruelight
Wed, 18 Jul 2007 15:30:34 +0000
branchnoai
changeset 9677 96e8d3f0412d
parent 9676 b450aa5f774d
child 9678 c78400096127
(svn r10616) [NoAI] -Fix: only see a method as constructors if they do not have an other function name
src/ai/api/squirrel_export.awk
--- a/src/ai/api/squirrel_export.awk	Wed Jul 18 15:24:10 2007 +0000
+++ b/src/ai/api/squirrel_export.awk	Wed Jul 18 15:30:34 2007 +0000
@@ -254,7 +254,7 @@
 	sub("\\).*", "", param_s)
 
 	funcname = $2
-	if ($1 == cls) {
+	if ($1 == cls && funcname == "") {
 		cls_param[0] = param_s
 		if (param_s == "") next
 	} else if (funcname == "") next
@@ -278,7 +278,7 @@
 		}
 	}
 
-	if ($1 == cls) {
+	if ($1 == cls && funcname == "") {
 		cls_param[1] = len;
 		cls_param[2] = types;
 	} else if (is_static) {