diff options
author | frosch <frosch@openttd.org> | 2012-05-26 14:16:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-05-26 14:16:27 +0000 |
commit | 9ad9d72c4ae6fb28e7381bbd50ddeb2502b7d925 (patch) | |
tree | a5f292b1865bfede24c7ad428bf2e0daa29bced3 /src/script/api | |
parent | ec91dc5ffcf0eaac777e1f87edec61d0899193e5 (diff) | |
download | openttd-9ad9d72c4ae6fb28e7381bbd50ddeb2502b7d925.tar.xz |
(svn r24288) -Fix: squirrel_export should match stuff like 'virtual', 'static' and 'const' only as whole words.
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/squirrel_export.awk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/api/squirrel_export.awk b/src/script/api/squirrel_export.awk index 7fcb5336a..c397d1da6 100644 --- a/src/script/api/squirrel_export.awk +++ b/src/script/api/squirrel_export.awk @@ -492,9 +492,9 @@ BEGIN { if (match($0, "virtual")) { virtual_class = "true" } - gsub("virtual", "", $0) - gsub("static", "", $0) - gsub("const", "", $0) + gsub("\\yvirtual\\y", "", $0) + gsub("\\ystatic\\y", "", $0) + gsub("\\yconst\\y", "", $0) gsub("{.*", "", $0) param_s = $0 gsub("\\*", "", $0) |