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
2019-08-01Fix error de-duplicating BLI_file_read functionsCampbell Barton
Own error in recent code de-duplication: a345f56ce3331 causing issues on Windows. Flipped argument for reading the exact size.
2019-07-30Cleanup: de-duplicate file reading codeCampbell Barton
Also remove goto's.
2019-07-15Fix reading directory as file content on LinuxCampbell Barton
Reading a directory as a file on Linux was attempting to allocate LONG_MAX, this happens in template file lists (fix for that coming next).
2019-07-07Cleanup: spellingCampbell Barton
2019-04-26Fix T63853: BLI_current_working_dir did not return utf8 encoding on windows.Ray Molenkamp
When running blender in paths with special characters this caused issues.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-27Cleanup: style, use braces for blenlibCampbell Barton
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2018-09-05Fix T54152: --env-system-scripts fails on win32Ray Molenkamp
2018-02-26Cleanup: typosCampbell Barton
D3081 by @rjg, with others.
2017-11-30Haiku OS SupportCampbell Barton
D2860 by @miqlas Even though Haiku is a niche OS, only minor changes are needed.
2017-11-18Cleanup: outdated commentCampbell Barton
2017-09-29Drop platform support for Solaris & AIXCampbell Barton
These platforms didn't see maintenance in years. This commit just removes ifdef's & cmake check.
2017-06-12Cleanup: indentation, long linesCampbell Barton
2017-05-27Remove MinGW supportAaron Carlisle
The Issue ======= For a long time now MinGW has been unsupported and unmaintained and at this point, it looks like something that we should just leave behind and move on. Why Remove ========== One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based. However, now that this is no longer true we have basically stopped updating the need CMake files. Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see: https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch If we wanted to keep MinGW then we would need to make more custom patches to the external libs and this is not something our platform maintainers are willing to do. For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3 Fixes T51301 Differential Revision: https://developer.blender.org/D2648
2016-06-18Cleanup: style, whitespace, doxy filepathsCampbell Barton
2016-02-10Cleanup: double promotionCampbell Barton
Also remove null checks from args with non-null attribute.
2015-12-28Correct recent error passing NULL to fcloseCampbell Barton
2015-12-23Remove feof check for file readingCampbell Barton
This wasnt correct since we're not reading past the stream, though it worked on Linux and some Windows systems.
2015-12-21BLI_storage: Split text/binary version of mem-from-file funcsCampbell Barton
Fix T47022, caused by own commit de0119d08
2015-12-14BLI_storage: util function BLI_file_read_as_memCampbell Barton
Use for text loading and pasting from file.
2015-10-08Off by one error in own recent commitCampbell Barton
2015-10-08BLI_path api, minor changes to CWD handlingCampbell Barton
- BLI_current_working_dir's return value must be checked, since it may fail. - BLI_current_working_dir now behaves like getcwd, where a too-small target will return failure. - avoid buffer overrun with BLI_path_cwd, by taking a maxlen arg.
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