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:
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/BLI_dynstr.c2
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c7
-rw-r--r--source/blender/blenlib/intern/BLI_heap.c1
-rw-r--r--source/blender/blenlib/intern/BLI_kdopbvh.c4
-rw-r--r--source/blender/blenlib/intern/BLI_kdtree.c3
-rw-r--r--source/blender/blenlib/intern/BLI_linklist.c1
-rw-r--r--source/blender/blenlib/intern/BLI_memarena.c2
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c2
-rw-r--r--source/blender/blenlib/intern/DLRB_tree.c6
-rw-r--r--source/blender/blenlib/intern/bpath.c9
-rw-r--r--source/blender/blenlib/intern/dynamiclist.c1
-rw-r--r--source/blender/blenlib/intern/dynlib.c4
-rw-r--r--source/blender/blenlib/intern/fileops.c4
-rw-r--r--source/blender/blenlib/intern/freetypefont.c10
-rw-r--r--source/blender/blenlib/intern/jitter.c3
-rw-r--r--source/blender/blenlib/intern/math_base.c4
-rw-r--r--source/blender/blenlib/intern/math_base_inline.c1
-rw-r--r--source/blender/blenlib/intern/math_color.c4
-rw-r--r--source/blender/blenlib/intern/math_geom.c4
-rw-r--r--source/blender/blenlib/intern/math_matrix.c4
-rw-r--r--source/blender/blenlib/intern/math_rotation.c4
-rw-r--r--source/blender/blenlib/intern/math_vector.c4
-rw-r--r--source/blender/blenlib/intern/noise.c1
-rw-r--r--source/blender/blenlib/intern/path_util.c23
-rw-r--r--source/blender/blenlib/intern/pbvh.c6
-rw-r--r--source/blender/blenlib/intern/rct.c1
-rw-r--r--source/blender/blenlib/intern/scanfill.c8
-rw-r--r--source/blender/blenlib/intern/storage.c2
-rw-r--r--source/blender/blenlib/intern/string.c1
-rw-r--r--source/blender/blenlib/intern/threads.c5
-rw-r--r--source/blender/blenlib/intern/time.c3
-rw-r--r--source/blender/blenlib/intern/voxel.c1
32 files changed, 12 insertions, 123 deletions
diff --git a/source/blender/blenlib/intern/BLI_dynstr.c b/source/blender/blenlib/intern/BLI_dynstr.c
index 4b7b61e64d9..5b61a86305b 100644
--- a/source/blender/blenlib/intern/BLI_dynstr.c
+++ b/source/blender/blenlib/intern/BLI_dynstr.c
@@ -29,8 +29,6 @@
*/
#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index 23200680d5d..b95f276a702 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -28,17 +28,10 @@
* A general (pointer -> pointer) hash table ADT
*/
-#include <stdlib.h>
-#include <string.h>
-#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
-#include "BLI_mempool.h"
-
#include "BLO_sys_types.h" // for intptr_t support
-#include "BKE_utildefines.h"
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c
index 196c9ed284c..6c4e568c380 100644
--- a/source/blender/blenlib/intern/BLI_heap.c
+++ b/source/blender/blenlib/intern/BLI_heap.c
@@ -28,7 +28,6 @@
* A heap / priority queue ADT.
*/
-#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c
index 7118b804cad..bba9b1793c7 100644
--- a/source/blender/blenlib/intern/BLI_kdopbvh.c
+++ b/source/blender/blenlib/intern/BLI_kdopbvh.c
@@ -26,10 +26,6 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include "math.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <assert.h>
#include "MEM_guardedalloc.h"
diff --git a/source/blender/blenlib/intern/BLI_kdtree.c b/source/blender/blenlib/intern/BLI_kdtree.c
index 38b4d7a54d2..cf94a0c9ffe 100644
--- a/source/blender/blenlib/intern/BLI_kdtree.c
+++ b/source/blender/blenlib/intern/BLI_kdtree.c
@@ -28,9 +28,6 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
#include "MEM_guardedalloc.h"
diff --git a/source/blender/blenlib/intern/BLI_linklist.c b/source/blender/blenlib/intern/BLI_linklist.c
index 4631d9e6bf2..f9c5fc58a63 100644
--- a/source/blender/blenlib/intern/BLI_linklist.c
+++ b/source/blender/blenlib/intern/BLI_linklist.c
@@ -29,7 +29,6 @@
*/
#include "MEM_guardedalloc.h"
-#include "BLI_blenlib.h"
#include "BLI_linklist.h"
#include "BLI_memarena.h"
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c
index 6c87f0914f9..07e22b30fcc 100644
--- a/source/blender/blenlib/intern/BLI_memarena.c
+++ b/source/blender/blenlib/intern/BLI_memarena.c
@@ -28,11 +28,9 @@
* Efficient memory allocation for lots of similar small chunks.
*/
-#include <stdlib.h>
#include "MEM_guardedalloc.h"
-#include "BLI_blenlib.h"
#include "BLI_memarena.h"
#include "BLI_linklist.h"
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index 7972000c4d6..26d6f5af147 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -32,8 +32,6 @@
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
-#include "DNA_listBase.h"
-#include "BLI_linklist.h"
#include <string.h>
typedef struct BLI_freenode{
diff --git a/source/blender/blenlib/intern/DLRB_tree.c b/source/blender/blenlib/intern/DLRB_tree.c
index 9b38289f15b..69c9cc7e522 100644
--- a/source/blender/blenlib/intern/DLRB_tree.c
+++ b/source/blender/blenlib/intern/DLRB_tree.c
@@ -25,17 +25,11 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_dlrbTree.h"
-#include "DNA_listBase.h"
-
/* *********************************************** */
/* Tree API */
diff --git a/source/blender/blenlib/intern/bpath.c b/source/blender/blenlib/intern/bpath.c
index 8e294395c86..f7c16a0a8b2 100644
--- a/source/blender/blenlib/intern/bpath.c
+++ b/source/blender/blenlib/intern/bpath.c
@@ -27,12 +27,7 @@
*/
#include <sys/stat.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
#include <string.h>
/* path/file handeling stuff */
@@ -46,13 +41,9 @@
#include "MEM_guardedalloc.h"
-#include "DNA_ID.h" /* Library */
-#include "DNA_customdata_types.h"
-#include "DNA_image_types.h"
#include "DNA_mesh_types.h"
#include "DNA_scene_types.h" /* to get the current frame */
#include "DNA_sequence_types.h"
-#include "DNA_sound_types.h"
#include "DNA_vfont_types.h"
#include "DNA_windowmanager_types.h"
diff --git a/source/blender/blenlib/intern/dynamiclist.c b/source/blender/blenlib/intern/dynamiclist.c
index 4bcccab4b18..48ba8247ea9 100644
--- a/source/blender/blenlib/intern/dynamiclist.c
+++ b/source/blender/blenlib/intern/dynamiclist.c
@@ -34,7 +34,6 @@
#include "MEM_guardedalloc.h"
-#include "DNA_listBase.h"
#include "BLI_listbase.h"
#include "BLI_dynamiclist.h"
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c
index eb41916c619..cc681a4c7c7 100644
--- a/source/blender/blenlib/intern/dynlib.c
+++ b/source/blender/blenlib/intern/dynlib.c
@@ -28,8 +28,6 @@
*/
#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
#include "../PIL_dynlib.h"
@@ -47,6 +45,8 @@
*/
#ifdef WIN32
+#include <string.h>
+#include <stdio.h>
#include <windows.h>
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 3503164ea56..73434c548a0 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -29,7 +29,6 @@
#include <string.h>
#include <stdio.h>
-#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -49,9 +48,6 @@
#include "BLI_blenlib.h"
-#include "BLI_storage.h"
-#include "BLI_fileops.h"
-#include "BLI_callbacks.h"
#include "BKE_utildefines.h"
diff --git a/source/blender/blenlib/intern/freetypefont.c b/source/blender/blenlib/intern/freetypefont.c
index d06ca7b44d6..9227803b681 100644
--- a/source/blender/blenlib/intern/freetypefont.c
+++ b/source/blender/blenlib/intern/freetypefont.c
@@ -36,10 +36,11 @@
#include <ft2build.h>
#include FT_FREETYPE_H
-#include FT_GLYPH_H
-#include FT_BBOX_H
-#include FT_SIZES_H
-#include <freetype/ttnameid.h>
+/* not needed yet */
+// #include FT_GLYPH_H
+// #include FT_BBOX_H
+// #include FT_SIZES_H
+// #include <freetype/ttnameid.h>
#include "MEM_guardedalloc.h"
@@ -49,7 +50,6 @@
//XXX #include "BIF_toolbox.h"
-#include "BKE_global.h"
#include "BKE_font.h"
#include "BKE_utildefines.h"
diff --git a/source/blender/blenlib/intern/jitter.c b/source/blender/blenlib/intern/jitter.c
index 12b7482897a..dfc554394d6 100644
--- a/source/blender/blenlib/intern/jitter.c
+++ b/source/blender/blenlib/intern/jitter.c
@@ -30,13 +30,10 @@
*/
#include <math.h>
-#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
-#include "BLI_math.h"
#include "BLI_rand.h"
-#include "BLI_jitter.h"
void BLI_jitterate1(float *jit1, float *jit2, int num, float rad1)
diff --git a/source/blender/blenlib/intern/math_base.c b/source/blender/blenlib/intern/math_base.c
index a0d878f3a03..8301f790614 100644
--- a/source/blender/blenlib/intern/math_base.c
+++ b/source/blender/blenlib/intern/math_base.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
* */
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c
index fa0ca097ef1..b364ff73e4f 100644
--- a/source/blender/blenlib/intern/math_base_inline.c
+++ b/source/blender/blenlib/intern/math_base_inline.c
@@ -26,7 +26,6 @@
* */
#include <float.h>
-#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c
index fc6e722afeb..633585a3336 100644
--- a/source/blender/blenlib/intern/math_color.c
+++ b/source/blender/blenlib/intern/math_color.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
* */
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index d12aa1051dc..f2454f05977 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
* */
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
#include "BLI_memarena.h"
diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c
index c970f2132c3..b3dd5a09f71 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index a92f80e35c7..b6dc0ca06cd 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
* */
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c
index 2452de0dc4c..97f5ea73ea9 100644
--- a/source/blender/blenlib/intern/math_vector.c
+++ b/source/blender/blenlib/intern/math_vector.c
@@ -25,10 +25,6 @@
* ***** END GPL LICENSE BLOCK *****
* */
-#include <float.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "BLI_math.h"
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index 343589d9a41..d0ce193e0e0 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -35,7 +35,6 @@
#endif
#include <math.h>
-#include "BLI_blenlib.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 3fe9a387a54..00cb6764b60 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -29,20 +29,14 @@
* various string, file, list operations.
*/
-#include <stdio.h>
-#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <stdarg.h>
-#include <math.h> /* for log10 */
#include "MEM_guardedalloc.h"
-#include "DNA_listBase.h"
#include "DNA_userdef_types.h"
-#include "BLI_dynamiclist.h"
#include "BLI_fileops.h"
#include "BLI_path_util.h"
#include "BLI_string.h"
@@ -58,13 +52,9 @@
#include <config.h>
#endif
-#ifndef WIN32
-#include <unistd.h>
-#else
-#include <io.h>
-#endif
#ifdef WIN32
+#include <io.h>
#ifdef _WIN32_IE
#undef _WIN32_IE
@@ -75,12 +65,7 @@
#include "BLI_winstuff.h"
-#endif
-
-
-#ifndef WIN32
-#include <sys/time.h>
-#endif
+#else /* non windows */
#ifdef __APPLE__
#include <sys/param.h>
@@ -91,6 +76,8 @@
#include "binreloc.h"
#endif
+#endif /* WIN32 */
+
/* local */
static int add_win32_extension(char *name);
@@ -1512,8 +1499,6 @@ char* BLI_getbundle(void) {
#endif
#ifdef WITH_ICONV
-#include "iconv.h"
-#include "localcharset.h"
void BLI_string_to_utf8(char *original, char *utf_8, const char *code)
{
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c
index 1cc4f4edfcd..c21f086156e 100644
--- a/source/blender/blenlib/intern/pbvh.c
+++ b/source/blender/blenlib/intern/pbvh.c
@@ -20,11 +20,7 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include <float.h>
-#include <stdlib.h>
-#include <string.h>
-#include "MEM_guardedalloc.h"
#include "DNA_meshdata_types.h"
@@ -33,8 +29,6 @@
#include "BLI_pbvh.h"
#include "BKE_DerivedMesh.h"
-#include "BKE_mesh.h"
-#include "BKE_utildefines.h"
#include "gpu_buffers.h"
diff --git a/source/blender/blenlib/intern/rct.c b/source/blender/blenlib/intern/rct.c
index 959d8be466f..4506115cd8c 100644
--- a/source/blender/blenlib/intern/rct.c
+++ b/source/blender/blenlib/intern/rct.c
@@ -36,7 +36,6 @@
*/
#include "DNA_vec_types.h"
-#include "BLI_blenlib.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c
index efcc767fd18..9870951d4d3 100644
--- a/source/blender/blenlib/intern/scanfill.c
+++ b/source/blender/blenlib/intern/scanfill.c
@@ -28,20 +28,12 @@
* (uit traces) maart 95
*/
-#include <stdio.h>
-#include <math.h>
-#include <stdlib.h>
-
#include "MEM_guardedalloc.h"
-#include "DNA_listBase.h"
-#include "DNA_mesh_types.h"
#include "BLI_editVert.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
-#include "BLI_scanfill.h"
-#include "BLI_callbacks.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 139bb551926..086f20b7e21 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -90,8 +90,6 @@
#include "BLI_listbase.h"
#include "BLI_linklist.h"
-#include "BLI_path_util.h"
-#include "BLI_storage.h"
#include "BLI_storage_types.h"
#include "BLI_string.h"
#include "BKE_utildefines.h"
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index dd1d0a3bd4f..fd0b7e13a66 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -32,7 +32,6 @@
*
*/
-#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c
index be016456fc4..351e0be1102 100644
--- a/source/blender/blenlib/intern/threads.c
+++ b/source/blender/blenlib/intern/threads.c
@@ -28,15 +28,10 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include <math.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pthread.h>
#include <errno.h>
#include "MEM_guardedalloc.h"
-#include "DNA_listBase.h"
#include "BLI_blenlib.h"
#include "BLI_gsqueue.h"
diff --git a/source/blender/blenlib/intern/time.c b/source/blender/blenlib/intern/time.c
index b0a284c4074..304884ba8ca 100644
--- a/source/blender/blenlib/intern/time.c
+++ b/source/blender/blenlib/intern/time.c
@@ -26,14 +26,13 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
-#include "PIL_time.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
-
+#include "PIL_time.h"
#include <windows.h>
double PIL_check_seconds_timer(void)
diff --git a/source/blender/blenlib/intern/voxel.c b/source/blender/blenlib/intern/voxel.c
index 78267528e21..302d721264d 100644
--- a/source/blender/blenlib/intern/voxel.c
+++ b/source/blender/blenlib/intern/voxel.c
@@ -25,7 +25,6 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
-#include <math.h>
#include "BLI_voxel.h"