diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenloader/BLO_blend_defs.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/blenloader/BLO_blend_defs.h')
-rw-r--r-- | source/blender/blenloader/BLO_blend_defs.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/source/blender/blenloader/BLO_blend_defs.h b/source/blender/blenloader/BLO_blend_defs.h index aefe3a7de08..0787d054141 100644 --- a/source/blender/blenloader/BLO_blend_defs.h +++ b/source/blender/blenloader/BLO_blend_defs.h @@ -24,10 +24,10 @@ /* INTEGER CODES */ #ifdef __BIG_ENDIAN__ /* Big Endian */ -# define BLEND_MAKE_ID(a, b, c, d) ( (int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d) ) +# define BLEND_MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d)) #else /* Little Endian */ -# define BLEND_MAKE_ID(a, b, c, d) ( (int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a) ) +# define BLEND_MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a)) #endif /** @@ -36,41 +36,41 @@ * These coexist with ID codes such as #ID_OB, #ID_SCE ... etc. */ enum { - /** - * Arbitrary allocated memory - * (typically owned by #ID's, will be freed when there are no users). - */ - DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A'), - /** - * Used for #Global struct. - */ - GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B'), - /** - * Used for storing the encoded SDNA string - * (decoded into an #SDNA on load). - */ - DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1'), - /** - * Used to store thumbnail previews, written between #REND and #GLOB blocks, - * (ignored for regular file reading). - */ - TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T'), - /** - * Used for #RenderInfo, basic Scene and frame range info, - * can be easily read by other applications without writing a full blend file parser. - */ - REND = BLEND_MAKE_ID('R', 'E', 'N', 'D'), - /** - * Used for #UserDef, (user-preferences data). - * (written to #BLENDER_STARTUP_FILE & #BLENDER_USERPREF_FILE). - */ - USER = BLEND_MAKE_ID('U', 'S', 'E', 'R'), - /** - * Terminate reading (no data). - */ - ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B'), + /** + * Arbitrary allocated memory + * (typically owned by #ID's, will be freed when there are no users). + */ + DATA = BLEND_MAKE_ID('D', 'A', 'T', 'A'), + /** + * Used for #Global struct. + */ + GLOB = BLEND_MAKE_ID('G', 'L', 'O', 'B'), + /** + * Used for storing the encoded SDNA string + * (decoded into an #SDNA on load). + */ + DNA1 = BLEND_MAKE_ID('D', 'N', 'A', '1'), + /** + * Used to store thumbnail previews, written between #REND and #GLOB blocks, + * (ignored for regular file reading). + */ + TEST = BLEND_MAKE_ID('T', 'E', 'S', 'T'), + /** + * Used for #RenderInfo, basic Scene and frame range info, + * can be easily read by other applications without writing a full blend file parser. + */ + REND = BLEND_MAKE_ID('R', 'E', 'N', 'D'), + /** + * Used for #UserDef, (user-preferences data). + * (written to #BLENDER_STARTUP_FILE & #BLENDER_USERPREF_FILE). + */ + USER = BLEND_MAKE_ID('U', 'S', 'E', 'R'), + /** + * Terminate reading (no data). + */ + ENDB = BLEND_MAKE_ID('E', 'N', 'D', 'B'), }; #define BLEN_THUMB_MEMSIZE_FILE(_x, _y) (sizeof(int) * (2 + (size_t)(_x) * (size_t)(_y))) -#endif /* __BLO_BLEND_DEFS_H__ */ +#endif /* __BLO_BLEND_DEFS_H__ */ |