summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-11-22 02:46:19 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-11-22 04:34:28 +0100
commit064836cfdb99776b23764e3e460af59756e6beef (patch)
tree712b6a9597402f25a3ad489b960c1225a8d85b17 /crawl-ref/source/libutil.h
parent4676d1638a5d5d928bebc4727b0031b1e90c109d (diff)
downloadcrawl-ref-064836cfdb99776b23764e3e460af59756e6beef.tar.gz
crawl-ref-064836cfdb99776b23764e3e460af59756e6beef.zip
Make isa[ctype]() return bool.
Not that there's a big difference...
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index d07de516a1..6987eedf51 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -39,28 +39,28 @@ static inline int unscale_round_up(int number, int scale)
}
// Chinese rod numerals are _not_ digits for our purposes.
-static inline int isadigit(int c)
+static inline bool isadigit(int c)
{
return (c >= '0' && c <= '9');
}
// 'รค' is a letter, but not a valid inv slot/etc.
-static inline int isalower(int c)
+static inline bool isalower(int c)
{
return (c >= 'a' && c <= 'z');
}
-static inline int isaupper(int c)
+static inline bool isaupper(int c)
{
return (c >= 'A' && c <= 'Z');
}
-static inline int isaalpha(int c)
+static inline bool isaalpha(int c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
}
-static inline int isaalnum(int c)
+static inline bool isaalnum(int c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9');
}