diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-01 04:34:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-01 08:22:28 +0400 |
commit | 617557b08ea94e2b65a1697ddf0b79651204d92b (patch) | |
tree | 50b24bab075b42fa20456140c9a9681cfb01325b /source/blender/imbuf/intern/util.c | |
parent | 2c00ecc738c04dc5dc22d4a6b81a1e937526ba6d (diff) |
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
Diffstat (limited to 'source/blender/imbuf/intern/util.c')
-rw-r--r-- | source/blender/imbuf/intern/util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index 9259c4f743d..a91990774fc 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -183,7 +183,7 @@ const char *imb_ext_audio[] = { NULL }; -int IMB_ispic(const char *name) +bool IMB_ispic(const char *name) { /* increased from 32 to 64 because of the bitmaps header size */ #define HEADER_SIZE 64 @@ -196,17 +196,17 @@ int IMB_ispic(const char *name) if (UTIL_DEBUG) printf("IMB_ispic_name: loading %s\n", name); if (BLI_stat(name, &st) == -1) - return FALSE; + return false; if (((st.st_mode) & S_IFMT) != S_IFREG) - return FALSE; + return false; if ((fp = BLI_open(name, O_BINARY | O_RDONLY, 0)) < 0) - return FALSE; + return false; memset(buf, 0, sizeof(buf)); if (read(fp, buf, HEADER_SIZE) <= 0) { close(fp); - return FALSE; + return false; } close(fp); @@ -228,7 +228,7 @@ int IMB_ispic(const char *name) } } - return FALSE; + return false; #undef HEADER_SIZE } @@ -240,7 +240,7 @@ static int isavi(const char *name) return AVI_is_avi(name); #else (void)name; - return FALSE; + return false; #endif } |