Campbell Barton
09da9d4393
cmake maintenance
...
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python).
also only build wm_apple.c on apple+carbon configuration.
2011-05-31 01:15:44 +00:00
Campbell Barton
fca91f550b
rename duplicate header defines & remove unused var.
2011-04-28 05:15:47 +00:00
Campbell Barton
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
Campbell Barton
210ee1ade4
whitespace only, no functional change mixed tabs/spaces --> tabs.
2011-04-21 13:11:51 +00:00
Campbell Barton
53139432dd
image.depth, 96/128 for float color images, was 24/32 for byte images.
...
also use <> for system includes
2011-03-09 01:25:59 +00:00
Campbell Barton
709c727c51
replace 0 with NULL when used as a pointer
2011-03-03 17:58:06 +00:00
Nathan Letwory
56a4b21695
doxygen: intern/guardedalloc tagged
2011-02-25 11:41:12 +00:00
Nathan Letwory
5e41760a15
doxygen: add bullet to extern libs, some small changes in page names, and fixes around license blocks
2011-02-22 16:12:12 +00:00
Campbell Barton
c14aca0e95
add includes to cmake files
2011-02-21 12:18:34 +00:00
Nathan Letwory
d9563f5e2b
doxygen: some code shuffle to prevent clashing file names, ensure MEM_guardedalloc.h also shows in docs
2011-02-21 11:38:55 +00:00
Nathan Letwory
212d67734c
doxygen: add guardedalloc and AVI
2011-02-21 09:23:34 +00:00
Campbell Barton
55f68c3657
fix for more warnings.
...
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array.
- use BLI_snprintf rather then sprintf where the size of the string is known.
- particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-12 16:54:24 +00:00
Campbell Barton
6e47ffcc0d
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.
2011-02-12 10:37:37 +00:00
Campbell Barton
89c617a116
remove nan-makefiles
2011-01-30 15:29:22 +00:00
Campbell Barton
d2076e38f1
correct own bad spelling
2011-01-23 12:42:07 +00:00
Campbell Barton
f66912a335
misc edits, no functional changes
...
- enabling/disabling no longer prints in the terminal unless in debug mode.
- remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used.
- Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.
2011-01-15 15:48:46 +00:00
Campbell Barton
5e382eb8e5
rename blenderlib to blender_add_lib
2010-12-22 23:09:30 +00:00
Campbell Barton
afacd18498
use lowercase for cmake builtin names and macros, remove contents in else() and endif() which is no longer needed.
2010-12-08 08:43:06 +00:00
Campbell Barton
cd97253502
- added GCC warning -Wstrict-prototypes
...
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
Campbell Barton
b45c3363fd
fix for some pedantic warnings.
2010-12-03 01:52:28 +00:00
Campbell Barton
e8397e6193
include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.
...
this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-29 04:35:56 +00:00
Campbell Barton
77e3d5dfb4
define UNUSED() locally for mmap_win
2010-11-24 20:56:25 +00:00
Campbell Barton
c5f7207948
fix for crash introduced r33257, also tag some vars as unused.
2010-11-24 20:13:37 +00:00
Campbell Barton
39b7bfe6bd
- check IF WIN32 AND NOT UNIX (for cygwin)
...
- patch from Mike S to enable OpenMP and xcode
2010-11-21 13:41:43 +00:00
Campbell Barton
f383e2e0e6
Remove msvc build files which are not needed anymore.
2010-10-23 15:14:54 +00:00
Campbell Barton
433f871f0f
bugfix [ #24302 ] Ctrl+Click Extrude gets old mouse events
...
double click didnt check mouse distance moved so you could click twice in different areas of the screen very fast and generate a double click event which had old mouse coords copied into it but was sent to an operator set to run on single click (because the double click wasnt handled).
Also added MEM_name_ptr function (included in debug mode only), prints the name of allocated memory.
used for debugging where events came from.
2010-10-18 00:25:32 +00:00
Nathan Letwory
c9d240626d
c++ -> C++
2010-10-08 20:40:42 +00:00
Nathan Letwory
663ce490e0
Enable CXX_GUARDEDALLOC support through SCons.
2010-10-08 20:39:56 +00:00
Campbell Barton
dea59cc5eb
warning fixes and minor cmake changes.
2010-09-18 03:55:56 +00:00
Campbell Barton
4b40d73bfb
rename most scons build targets to match cmake
2010-08-25 04:30:47 +00:00
Campbell Barton
6464718083
rename some cmake build targets
2010-08-24 04:29:23 +00:00
Campbell Barton
885bbe6999
from Luca's recent commit noticed there are more typo's: lenght -> length
2010-07-25 01:45:53 +00:00
Joseph Eagar
a7cbd5008e
merging revisions 28564-28569 from render branch into trunk
2010-05-04 12:31:24 +00:00
Campbell Barton
5e74542bb6
use size_t for MEM_allocN_len as well as some of its callers
2010-04-29 21:46:25 +00:00
Nathan Letwory
d2f5a60ca2
Amendment to r28508 (Make Blender malloc be 64 bit ready)
...
- one function missed in header causes compile problems (intern/guardedalloc/intern/mallocn.c:352: error: conflicting types for ‘MEM_mapallocN’)
2010-04-29 19:41:12 +00:00
Guillermo S. Romero
1fc7ea774f
Make Blender malloc wrapper be 64 bit ready.
2010-04-29 17:34:40 +00:00
Campbell Barton
c757c66f92
reverting 28469, there is no use in using a long, while the allocation functions only accepts an int.
...
- only wastes 4 bytes per alloc.
Also would be most correct to use size_t
2010-04-28 08:15:26 +00:00
Guillermo S. Romero
d6b71243c2
Make len portable (as best as can tested with a 32 bit machine).
2010-04-27 18:21:49 +00:00
Campbell Barton
c80d0f1f85
fix for allocations over 2gig crashing blender (even on 64 bit systems)
...
the memheader len would wrap to a negative number and when freeing it would write into the memheader.
2010-04-27 15:46:58 +00:00
Campbell Barton
8f1500da00
remove config.h references, was added for automake build system rev around 124-126 but isnt used by any build systems now.
2010-04-18 10:28:37 +00:00
Guillermo S. Romero
7d9067ca2c
Make memstat easier to read, add missing Intel ID and cleanups.
2010-04-14 21:12:05 +00:00
Campbell Barton
aefe9be5db
[ #18961 ] Use const char * where appropriate (2.5)
...
from Sean Bartell (wtachi)
added own changes bpy_props.c
2010-02-16 16:47:41 +00:00
Campbell Barton
39c3ebdc91
fix for memory leak: node animation data wasnt being free'd
...
also some corrections to memory debug stuff.
2010-02-13 13:38:10 +00:00
Campbell Barton
c1ee920db6
simple malloc counter for debugging. disabled so no functional change.
...
Use when memory isnt being freed to easily set a breakpoint the Nth allocation.
2010-02-13 13:09:06 +00:00
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
Brecht Van Lommel
cac3443d4e
Guardedalloc: added MEM_reallocN function to do simple alloc/memcpy/free,
...
not as optimized as a system realloc but I've had to do this often enough
manually to justify a utility function.
2010-02-08 14:59:59 +00:00
Joseph Eagar
27db00bf18
remove own experiemental code
2010-01-24 02:59:09 +00:00
Brecht Van Lommel
0c2d03e69f
Fix MEM_testN not unlocking mutex correctly, unlikely to lead to
...
problems in practice but might as well fix.
2010-01-22 10:56:50 +00:00
Joseph Eagar
7ad7820f7f
Added a new notifyer, NC_SPACE_CHANGED, to signal an editor that
...
replaces another so it can do updates (e.g. dopesheet editor can
sync channel selection).
Also coded a simple optimization for allocating small objects,
based on mempools. It's #ifdef'd out, you can enabled it by
defining OPTIMIZE_SMALL_BLOCKS (e.g. adding -DDOPTIMIZE_SMALL_BLOCKS to
your compiler flags).
We suffer from a great deal of performance loss from the system allocator
(vgroups, ghash, edgehash, the singly-linked list implementation in blenlib,
editmesh, and likely a great many areas I'm forgetting), and this is the
common solution for handling the many-small-objects problem. It's not
really production-ready yet (it's long-term memory consequencers need to
be profiled first, and the implementation tweaked as necassary), but for
people on systems with slow system allocators it's worth trying.
Note that since this creates a guardedalloc<->blenlib link, the build systems
need to be updated accordingly (I've already done this for scons, though I'm
not sure if the player builds).
2010-01-21 03:08:57 +00:00
Martin Poirier
f7d7149936
Debug tools: new function MEM_testN(void*)
...
returns 0 if pointer is not in memlist
2009-11-11 03:45:26 +00:00