[Bf-blender-cvs] [e852384] master: Cleanup: FileData->flags: Convert defines to anonymous enum.

Bastien Montagne noreply at git.blender.org
Mon Feb 1 14:04:34 CET 2016


Commit: e8523842b7dc5c46ba3ace53d181213669ca0303
Author: Bastien Montagne
Date:   Mon Feb 1 14:03:31 2016 +0100
Branches: master
https://developer.blender.org/rBe8523842b7dc5c46ba3ace53d181213669ca0303

Cleanup: FileData->flags: Convert defines to anonymous enum.

===================================================================

M	source/blender/blenloader/intern/readfile.h

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index 00e19b0..f5c19f5 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




More information about the Bf-blender-cvs mailing list