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
AgeCommit message (Collapse)Author
2015-06-18Assert when relative paths are passed to IO opsCampbell Barton
This is typically an error (& hangs a few seconds on win32), best catch early.
2015-06-12BLI_linklist, avoid full list search for appendCampbell Barton
For areas that require append, store the last node, Previous behavior would too easily hide poorly performing code. Also avoid (prepend, reverse) where possible.
2015-06-05Check ftell return valuesCampbell Barton
2015-04-04Cleanup: move filelist out of storageCampbell Barton
Depends on imbuf, problematic for tests
2015-02-17Ensure BLI_stat() return value is checked.Campbell Barton
also add function attrs on BLI_fileops to ensure they're used correctly.
2015-02-17Fix T43706: Creating a directory in the file browser (by typing it in the ↵Sergey Sharybin
file path) crashes Blender Issue was caused by 2e9105c, free() does nothing if pointer is NULL, but guarded allocator expects you to not free NULL.
2015-02-17assert when BLI_exists is called with NULL pathCampbell Barton
2015-02-15Cleanup: BLI_listdir (direntry): get rid of usage of raw malloc/free here.Bastien Montagne
No reason at all not to use MEM_xxx as everywhere else, especially confusing when members of direntry **are** MEM_-allocated (relname, etc.)!
2015-01-26Cleanup: current/parent paths: add helpers in BLI_path_utils.Bastien Montagne
Also, avoid calling ugly strcmp with '.' or '..', making direct char checks is much cheaper here!
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-06cleanup: warningsCampbell Barton
2015-01-03Cleanup: rename 'filelist' BLI funcs to consistent naming.Bastien Montagne
Also, add an optional callback to `BLI_filelist_free()` to allow freein void poin if needed (consistency with `BLI_filelist_duplicate()`...).
2015-01-03Add some BLI helpers needed by asset branch.Bastien Montagne
`BLI_strncpy_ensure_pad()` is also useful with current master code. The two others (`BLI_strcmp_ignore_pad()` and `BLI_filelist_duplicate()`) are only used in asset branch currently, but think they could be useful in other places too, and simplifies handling of asset branch & future patch review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D965
2014-11-04Cleanup: spelling (D831)Campbell Barton
2014-08-07Cleanup: Remove special code for Visual Studio 2008.Thomas Dinges
Goodbye VC2008, it has been a pleasure (more or less) :D SCons / CMake cleaenup will follow. Differential Revision: https://developer.blender.org/D715
2014-06-23D605: Fixes for proper handling of wchar_t paths in MinGW.Tamito Kajiyama
* Fixed different not-in-sync #ifdef blocks for struct stat variants under Windows. Comments have been left to indicate the portions of BLI_fileops.h and BLI_fileops_types.h that need to stay in sync. * Added BLI_wstat() to de-duplicate #ifdef blocks for stat() variants on Windows. * Fix for opendir() and associate functions in MinGW not working properly with non-ASCII, MBCS-compatible paths. MinGW (FREE_WINDOWS) has opendir() and _wopendir(), and only the latter accepts a path name of wchar_t type. Rather than messing up with extra #ifdef's here and there, Blender's own implementations of opendir() and related functions are used to properly support paths with non-ASCII, MBCS-compatible characters. Tested with MSVC 2013 Express, MinGW32 (gcc 4.6.2) and MinGW-w64 (gcc 4.7.1). Differential Revision: https://developer.blender.org/D605 Reviewed By: campbellbarton
2014-05-28Fix T40157: Loading movies larger than 4GB in size failsSergey Sharybin
Issue was caused by _wstat returning EOVERFLOW error because of file size didn't fit into stat structure which was using long datatype. The idea of this patch is to use _wstat64 and _stat64 structure which is capable storing 64bit file sizes. Made it a typedef for stat structure used by BLI_stat function in order to make code easier to follow and avoid ifdefs all over the place. Additionally solved issue with BLI_exists which was wrongly returning False in cases destination file is larger then 4GB.
2014-04-21Basic support for UNC paths on WindowsAndrea Weikert
Differential Revision: https://developer.blender.org/D298 Allows users on Windows to enter UNC paths in the filebrowser and to link to .blend files on a UNC path. Functionality is limited still, we can't browse the network yet and have no support to check user rights so far. What works: - enter an UNC path in the file browser manually or via copy/paste - navigation within the UNC share subfolders - link to a file on a UNC share What does not (yet) work: - browse the network for computers and shares - browse to a folder that requires entering user credentials Contributors: Rob McKay - original patch Campbell Barton - style fixes Reviewers: Campbell Barton, Brecht van Lommel
2014-04-13Code cleanup: quiet warnings & styleCampbell Barton
2014-01-16Code Cleanup: style and redundant castsCampbell Barton
2014-01-07Code cleanup: defines for statfs were getting out of hand for BSD's.Campbell Barton
add __DragonFly__ and internal defines to avoid copy-pasting checks. also remove __CYGWIN32__ check, since cygwin is no longer supported.
2013-12-22Style Cleanup: remove preprocessor indentation (updated wiki style guide too)Campbell Barton
2013-08-20Get rid of PATH_MAX in Ghost System X11Sergey Sharybin
The reason of this is because PATH_MAX is not guaranteed to be defined on all platforms and Hurd doesn't define it. So either we need to support arbitrary long file path or we need to define own maximum path length. The rule here would be: - If it's not big trouble to support arbitrary long paths (i.e. in ghost by using std::string instead of char*) then arbitrary long path shall be implemented. - For other cases to use PATH_MAX please include BLI_fileops.h which takes care of making sure PATH_MAX is defined. Additional change: get rid of own changes made yesterday which were supposed to make storage.c work fine in cases PATH_MAX is not define, but on the second though it lead to unneeded complication of the code. Thanks Campbell for review!
2013-08-19Mistake in revious PATH_MAX commit, sorry!Sergey Sharybin
2013-08-19Fix compilation error on platforms where PATH_MAX is not definedSergey Sharybin
2013-07-23use binary prefix for file sizes (old todo).Campbell Barton
2013-07-19code cleanup: use __linux__ define over linuxCampbell Barton
2013-04-25style cleanupCampbell Barton
2013-04-25minor fixesCampbell Barton
- build with netbsd works again. - select uv more/less was crashing when called outside image space. - node RNA property update was crashing when not called in node space.
2013-04-17Fix thumbnails not appearing on MinGW64, was actually a mistake onAntony Riakiotakis
MinGW-w64 headers (where _stat is actually _stati64), but since we recommend a specific compiler build it's OK for now. Also tweaked other places where _wstat is used.
2013-04-13code cleanup: remove unused string formatting in bli_adddirstrings(), also ↵Campbell Barton
remove unused initializations and comment unused vars.
2013-04-12code cleanup: warnings and style.Campbell Barton
2013-04-11Fix #34929: windows would show a "No disk in drive" error popup when one of ↵Brecht Van Lommel
the recently opened files was on a DVD that's no longer there in the DVD drive.
2013-03-14BLI_linklist_free() was incorrectly taking MEM_freeN() as an argument, ↵Campbell Barton
evidentially this works on x86 - but could cause issues later on. add BLI_linklist_freeN() which MEM_freeN's each item.
2013-03-09remove unneeded string formatting for bli_adddirstrings(), noted by Lawrence ↵Campbell Barton
D'Oliveiro.
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-03-05code cleanup: also change BKE_blender.h BLENDER_VERSION_CHAR to 'a' so as ↵Campbell Barton
not to confuse things.
2013-03-05fix for building with msvcCampbell Barton
2013-03-05code cleanup: remove unused argument from bli_builddirCampbell Barton
2013-03-05fix for building with mingw in since recent changes.Campbell Barton
2013-03-05code cleanup: remove unused member of direntry struct, also add include for ↵Campbell Barton
building on osx.
2013-03-05patch [#34103] path_util_split_dirstring.patch, ↵Campbell Barton
path_util_split_dirstring_2.patch, path_util_split_dirstring_3.patch from Lawrence D'Oliveiro (ldo) Get rid of BLI_splitdirstring, replace with calls to BLI_split_dirfile, BLI_split_dir_part and BLI_split_file_part as appropriate.
2013-03-05patch [#34103] storage_bli_dir_contents.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) BLI_dir_contents no longer changes current working directory.
2013-03-05patch [#34103] storage_bli_file_size.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) more efficient implementation of BLI_file_size that doesn't open the file.
2013-03-05patch [#34103] dir_contents.patchCampbell Barton
from Lawrence D'Oliveiro (ldo) - storage.c: Simplify BLI_dir_contents and make it and its internal subsidiary routines reentrant - Moved common code for disposal of a struct direntry to new routine BLI_free_filelist in storage.c, and put calls to it in interface_icons.c and filelist.c - Took out inclusion of BLI_fileops_types.h from BLI_fileops.h and put it explicitly into .c files that need it (which turned out to be only 7 of the 35 files that were including the former)
2013-03-05patch [#34103]Campbell Barton
from Lawrence D'Oliveiro (ldo) More use of bool type, necessitating adding inclusion of BLI_utildefines.h, or moving it up in the inclusion order if it was already included, in various places - storage.c: make some variables only used in bli_builddir local to that - storage.c: BLI_file_descriptor_size should allow 0 as a valid file descriptor - path_util.c: make pointers to non-reentrant storage returned from folder routines const, necessitating making variables holding these returned pointers const elsewhere as well - path_util.c: BLI_string_to_utf8 closes iconv context in case of conversion error - blf_lang.c: fill_locales routine now has its own "languages" local variable to construct paths (was stealing internal storage belonging to BLI_get_folder before)
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-10-21style cleanup: commentsCampbell Barton
2012-09-16style cleanupCampbell Barton
2012-09-04code cleanup: move file string defines into BLI_path_utils.h, ↵Campbell Barton
BKE_utildefines is now unused but keep incase we want to add defines there later.