summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-05-26 14:16:27 +0000
committerfrosch <frosch@openttd.org>2012-05-26 14:16:27 +0000
commit9ad9d72c4ae6fb28e7381bbd50ddeb2502b7d925 (patch)
treea5f292b1865bfede24c7ad428bf2e0daa29bced3 /src
parentec91dc5ffcf0eaac777e1f87edec61d0899193e5 (diff)
downloadopenttd-9ad9d72c4ae6fb28e7381bbd50ddeb2502b7d925.tar.xz
(svn r24288) -Fix: squirrel_export should match stuff like 'virtual', 'static' and 'const' only as whole words.
Diffstat (limited to 'src')
-rw-r--r--src/script/api/squirrel_export.awk6
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)