Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-02-01 16:03:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-02-01 16:03:31 +0300
commite8523842b7dc5c46ba3ace53d181213669ca0303 (patch)
tree93e498730687f635b41689cde26b66199208f0af /source/blender/blenloader
parente4d47518b3e21290a48d808bfdf69f614049e6fb (diff)
Cleanup: FileData->flags: Convert defines to anonymous enum.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index 00e19b0597a..f5c19f5ee22 100644
--- a/source/blender/blenloader/intern/readfile.h
+++ b/source/blender/blenloader/intern/readfile.h
@@ -110,13 +110,15 @@ typedef struct BHeadN {
struct BHead bhead;
} BHeadN;
-
-#define FD_FLAGS_SWITCH_ENDIAN (1 << 0)
-#define FD_FLAGS_FILE_POINTSIZE_IS_4 (1 << 1)
-#define FD_FLAGS_POINTSIZE_DIFFERS (1 << 2)
-#define FD_FLAGS_FILE_OK (1 << 3)
-#define FD_FLAGS_NOT_MY_BUFFER (1 << 4)
-#define FD_FLAGS_NOT_MY_LIBMAP (1 << 5)
+/* FileData->flags */
+enum {
+ FD_FLAGS_SWITCH_ENDIAN = 1 << 0,
+ FD_FLAGS_FILE_POINTSIZE_IS_4 = 1 << 1,
+ FD_FLAGS_POINTSIZE_DIFFERS = 1 << 2,
+ FD_FLAGS_FILE_OK = 1 << 3,
+ FD_FLAGS_NOT_MY_BUFFER = 1 << 4,
+ FD_FLAGS_NOT_MY_LIBMAP = 1 << 5, /* XXX Unused in practice (checked once but never set). */
+};
#define SIZEOFBLENDERHEADER 12