diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
commit | 555734fcd3aef4c83605d70d0456dda28b7b5ace (patch) | |
tree | 9c34fe5bc58d5f3d4c0a7622045adc7aa1d17a98 /crawl-ref/source/pattern.cc | |
parent | acf5187334f2cfb983a1a8de07d1e77f73e4283a (diff) | |
download | crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.tar.gz crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.zip |
Massive spacing fixes: "( spaces after parentheses )".
I did review it manually to find places where they made sense (like some
tables), but for a massive sed job like this there might be places that
I missed.
Diffstat (limited to 'crawl-ref/source/pattern.cc')
-rw-r--r-- | crawl-ref/source/pattern.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/pattern.cc b/crawl-ref/source/pattern.cc index 96662986d0..46c92dec7d 100644 --- a/crawl-ref/source/pattern.cc +++ b/crawl-ref/source/pattern.cc @@ -12,7 +12,7 @@ inline int pm_lower(int ch, bool icase) // Determines whether the pattern specified by 'pattern' matches the given // text. A pattern is a simple glob, with the traditional * and ? wildcards. -static bool glob_match( const char *pattern, const char *text, bool icase ) +static bool glob_match(const char *pattern, const char *text, bool icase) { char p, t; bool special; @@ -71,12 +71,12 @@ void *compile_glob_pattern(const char *pattern, bool icase) void free_compiled_glob_pattern(void *compiled_pattern) { - delete static_cast<glob_info *>( compiled_pattern ); + delete static_cast<glob_info *>(compiled_pattern); } bool glob_pattern_match(void *compiled_pattern, const char *text, int length) { - glob_info *gi = static_cast<glob_info *>( compiled_pattern ); + glob_info *gi = static_cast<glob_info *>(compiled_pattern); return glob_match(gi->s.c_str(), text, gi->ignore_case); } //////////////////////////////////////////////////////////////////// @@ -141,7 +141,7 @@ void free_compiled_pattern(void *cp) { if (cp) { - regex_t *re = static_cast<regex_t *>( cp ); + regex_t *re = static_cast<regex_t *>(cp); regfree(re); delete re; } @@ -149,7 +149,7 @@ void free_compiled_pattern(void *cp) bool pattern_match(void *compiled_pattern, const char *text, int length) { - regex_t *re = static_cast<regex_t *>( compiled_pattern ); + regex_t *re = static_cast<regex_t *>(compiled_pattern); return !regexec(re, text, 0, NULL, 0); } |