[Bf-blender-cvs] [c88e65d] master: Code cleanup: comment typos
Campbell Barton
noreply at git.blender.org
Sun May 11 08:22:57 CEST 2014
Commit: c88e65da61ff8a0aeaa2df0330e69654b08f7b7e
Author: Campbell Barton
Date: Sun May 11 16:22:05 2014 +1000
https://developer.blender.org/rBc88e65da61ff8a0aeaa2df0330e69654b08f7b7e
Code cleanup: comment typos
===================================================================
M intern/cycles/util/util_types.h
M source/blender/blenkernel/BKE_global.h
M source/blender/blenlib/BLI_utildefines.h
M source/blender/python/intern/bpy_app_handlers.c
===================================================================
diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h
index 38eb85a..bfaab3d 100644
--- a/intern/cycles/util/util_types.h
+++ b/intern/cycles/util/util_types.h
@@ -459,7 +459,7 @@ enum InterpolationType {
/* macros */
-/* hints for branch pradiction, only use in code that runs a _lot_ */
+/* hints for branch prediction, only use in code that runs a _lot_ */
#if defined(__GNUC__) && defined(__KERNEL_CPU__)
# define LIKELY(x) __builtin_expect(!!(x), 1)
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h
index 61f70d7..a7aa4c6 100644
--- a/source/blender/blenkernel/BKE_global.h
+++ b/source/blender/blenkernel/BKE_global.h
@@ -195,8 +195,6 @@ enum {
#define G_TRANSFORM_SEQ 4
#define G_TRANSFORM_FCURVES 8
-/* G.special1 */
-
/* Memory is allocated where? blender.c */
extern Global G;
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index 8c67c76..f70befd 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -460,7 +460,7 @@
# define BLI_STATIC_ASSERT(a, msg)
#endif
-/* hints for branch pradiction, only use in code that runs a _lot_ where */
+/* hints for branch prediction, only use in code that runs a _lot_ where */
#ifdef __GNUC__
# define LIKELY(x) __builtin_expect(!!(x), 1)
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
diff --git a/source/blender/python/intern/bpy_app_handlers.c b/source/blender/python/intern/bpy_app_handlers.c
index f8725d6..b3be5a8 100644
--- a/source/blender/python/intern/bpy_app_handlers.c
+++ b/source/blender/python/intern/bpy_app_handlers.c
@@ -174,7 +174,7 @@ static PyObject *py_cb_array[BLI_CB_EVT_TOT] = {NULL};
static PyObject *make_app_cb_info(void)
{
PyObject *app_cb_info;
- int pos = 0;
+ int pos;
app_cb_info = PyStructSequence_New(&BlenderAppCbType);
if (app_cb_info == NULL) {
More information about the Bf-blender-cvs
mailing list