diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:56:42 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:56:42 +0000 |
commit | cbe43abe5db481568ccf988dbe994f43a985efbd (patch) | |
tree | 2123ab980658ad6b7bdfea708c36b5f6db7a6835 /src/script/api/doxygen_filter.awk | |
parent | f239a6140616340854b2330b75f44abad01ae0a2 (diff) | |
download | openttd-cbe43abe5db481568ccf988dbe994f43a985efbd.tar.xz |
(svn r23610) -Add: Doxygen files for NoGo API (Yexo)
Diffstat (limited to 'src/script/api/doxygen_filter.awk')
-rw-r--r-- | src/script/api/doxygen_filter.awk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/script/api/doxygen_filter.awk b/src/script/api/doxygen_filter.awk index 442ae7dab..f699756da 100644 --- a/src/script/api/doxygen_filter.awk +++ b/src/script/api/doxygen_filter.awk @@ -21,6 +21,8 @@ BEGIN { skip_function_body = "false" skip_function_par = 0 RS = "\r|\n" + apis = tolower(api) + if (apis == "gs") apis = "game" } { @@ -43,7 +45,7 @@ BEGIN { } /@file/ { - gsub(/script/, tolower(api)) + gsub(/script/, apis) } /^([ ]*)\* @api/ { @@ -62,9 +64,9 @@ BEGIN { api_selected = "false" } else if ($0 == "-all") { api_selected = "false" - } else if (match($0, "-" tolower(api))) { + } else if (match($0, "-" apis)) { api_selected = "false" - } else if (match($0, tolower(api))) { + } else if (match($0, apis)) { api_selected = "true" } |