[Bf-blender-cvs] [c7f40caa2c] master: Add shortcuts for unsigned int, short, long and char

Sergey Sharybin noreply at git.blender.org
Mon Feb 6 15:04:56 CET 2017


Commit: c7f40caa2c36f8bb9bb92c03df5046c45eff72e4
Author: Sergey Sharybin
Date:   Mon Feb 6 15:04:13 2017 +0100
Branches: master
https://developer.blender.org/rBc7f40caa2c36f8bb9bb92c03df5046c45eff72e4

Add shortcuts for unsigned int, short, long and char

Feel free to use those in the new code.

And stay away from simple "unsigned".

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

M	source/blender/blenlib/BLI_sys_types.h

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

diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h
index 7929e1d655..9d8222c575 100644
--- a/source/blender/blenlib/BLI_sys_types.h
+++ b/source/blender/blenlib/BLI_sys_types.h
@@ -80,6 +80,11 @@ typedef uint64_t u_int64_t;
 #include <stddef.h>  /* size_t define */
 #include <stdbool.h>
 
+typedef unsigned int uint;
+typedef unsigned short ushort;
+typedef unsigned long ulong;
+typedef unsigned char uchar;
+
 #ifdef __cplusplus 
 }
 #endif




More information about the Bf-blender-cvs mailing list