# HG changeset patch # User truelight # Date 1176388524 0 # Node ID b0716d4c01281e1835dae36c3616f26caceb60ed # Parent 656646f23da73671fd959424bbcb9ccf548416f3 (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) diff -r 656646f23da7 -r b0716d4c0128 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")