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:
authorCampbell Barton <ideasman42@gmail.com>2011-11-26 08:07:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-26 08:07:38 +0400
commit6736576f6d576f9a06db14a76193c0c237e5cba1 (patch)
tree51bc0a37f1504dea826260340e80c085392d87aa /source/blender/blenloader/intern
parentaf7288c407fbb4bb462f509d5782b660a29c4883 (diff)
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
-rw-r--r--source/blender/blenloader/intern/readfile.h2
-rw-r--r--source/blender/blenloader/intern/writefile.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 61f0989a6f2..e69823886e5 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -500,7 +500,7 @@ static Main *blo_find_main(FileData *fd, ListBase *mainlist, const char *filepat
{
Main *m;
Library *lib;
- char name1[FILE_MAXDIR+FILE_MAXFILE];
+ char name1[FILE_MAX];
BLI_strncpy(name1, filepath, sizeof(name1));
cleanup_path(relabase, name1);
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index 358a7659d51..c7a53555415 100644
--- a/source/blender/blenloader/intern/readfile.h
+++ b/source/blender/blenloader/intern/readfile.h
@@ -59,7 +59,7 @@ typedef struct FileData {
gzFile gzfiledes;
// now only in use for library appending
- char relabase[FILE_MAXDIR+FILE_MAXFILE];
+ char relabase[FILE_MAX];
// variables needed for reading from stream
char headerdone;
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index c5e59959ddd..ad5eda03872 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2697,7 +2697,7 @@ static int write_file_handle(Main *mainvar, int handle, MemFile *compare, MemFil
/* return: success(0), failure(1) */
static int do_history(const char *name, ReportList *reports)
{
- char tempname1[FILE_MAXDIR+FILE_MAXFILE], tempname2[FILE_MAXDIR+FILE_MAXFILE];
+ char tempname1[FILE_MAX], tempname2[FILE_MAX];
int hisnr= U.versions;
if(U.versions==0) return 0;
@@ -2731,8 +2731,8 @@ static int do_history(const char *name, ReportList *reports)
/* return: success (1) */
int BLO_write_file(Main *mainvar, const char *filepath, int write_flags, ReportList *reports, int *thumb)
{
- char userfilename[FILE_MAXDIR+FILE_MAXFILE];
- char tempname[FILE_MAXDIR+FILE_MAXFILE+1];
+ char userfilename[FILE_MAX];
+ char tempname[FILE_MAX+1];
int file, err, write_user_block;
/* open temporary file, so we preserve the original in case we crash */
@@ -2746,8 +2746,8 @@ int BLO_write_file(Main *mainvar, const char *filepath, int write_flags, ReportL
/* remapping of relative paths to new file location */
if(write_flags & G_FILE_RELATIVE_REMAP) {
- char dir1[FILE_MAXDIR+FILE_MAXFILE];
- char dir2[FILE_MAXDIR+FILE_MAXFILE];
+ char dir1[FILE_MAX];
+ char dir2[FILE_MAX];
BLI_split_dir_part(filepath, dir1, sizeof(dir1));
BLI_split_dir_part(mainvar->name, dir2, sizeof(dir2));
@@ -2798,7 +2798,7 @@ int BLO_write_file(Main *mainvar, const char *filepath, int write_flags, ReportL
if(write_flags & G_FILE_COMPRESS) {
/* compressed files have the same ending as regular files... only from 2.4!!! */
- char gzname[FILE_MAXDIR+FILE_MAXFILE+4];
+ char gzname[FILE_MAX+4];
int ret;
/* first write compressed to separate @.gz */