(svn r9612) [NoAI] -Fix: ignore forward class defines in squirrel_export noai
authortruelight
Thu, 12 Apr 2007 14:35:24 +0000
branchnoai
changeset 9587 b0716d4c0128
parent 9586 656646f23da7
child 9588 01b2435c977b
(svn r9612) [NoAI] -Fix: ignore forward class defines in squirrel_export
[NoAI] -Fix: only publish the lines to SQ that have a () in the line (so functions, not variables)
src/ai/api/squirrel_export.awk
--- a/src/ai/api/squirrel_export.awk	Thu Apr 12 14:29:15 2007 +0000
+++ b/src/ai/api/squirrel_export.awk	Thu Apr 12 14:35:24 2007 +0000
@@ -35,6 +35,8 @@
 
 { print $0; }
 
+# Ignore forward declarations of classes
+/^(	*)class(.*);/ { next; }
 # We only want to have public functions exported for now
 /^(	*)class/     {
 	if (cls_level == 0) {
@@ -211,7 +213,7 @@
 }
 
 # Add a method to the list
-/^.*$/ {
+/^.*\(.*\).*$/ {
 	if (cls_level != 1) next
 
 	is_static = match($0, "static")