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:
authorAndrea Weikert <elubie@gmx.net>2008-12-20 15:43:53 +0300
committerAndrea Weikert <elubie@gmx.net>2008-12-20 15:43:53 +0300
commitcc80111b2bb9ccf62064979ae527cb2da10e4c31 (patch)
tree84865deb481042ec52c8220a91888162c0f9b063 /source/blender/blenlib
parent851f437361c5036a565939155cfe45094e49711c (diff)
2.5
* fix lost declaration and missing includes after blenlib cleanup. * bump warning level to W3 for Debug in a few libraries for MSVC9 projectfiles. Others will follow.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_util.h3
-rw-r--r--source/blender/blenlib/intern/string.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_util.h b/source/blender/blenlib/BLI_util.h
index ca6dde8b3bd..e78a58b2282 100644
--- a/source/blender/blenlib/BLI_util.h
+++ b/source/blender/blenlib/BLI_util.h
@@ -55,6 +55,9 @@ int BLI_stringdec(char *string, char *kop, char *start, unsigned short *numlen);
void BLI_stringenc(char *string, char *kop, char *start, unsigned short numlen, int pic);
void BLI_splitdirstring(char *di,char *fi);
+/* make sure path separators conform to system one */
+void BLI_clean(char *path);
+
/**
* dir can be any input, like from buttons, and this function
* converts it to a regular full path.
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index 2fefe1d9b45..715a9316657 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -36,9 +36,12 @@
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <ctype.h>
#include "MEM_guardedalloc.h"
+#include "BLI_string.h"
+
char *BLI_strdupn(const char *str, int len) {
char *n= MEM_mallocN(len+1, "strdup");
memcpy(n, str, len);