Commit Graph

23 Commits

Author SHA1 Message Date
rdb c6ed4e1836 general: don't cast to regular pointer when returning a PointerTo
This is inefficient because it induces an unnecessary ref()/unref() pair when we just need to move the pointer out of the function.  Thanks to 23128e4695, we can now move between related pointer types, making the .p() hack unnecessary.
2018-07-08 21:40:58 +02:00
Sam Edwards b2bfb31114 general: Remove `using std::*` from headers
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.

Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards 3c6ebb56bd general: pvector<unsigned char> -> vector_uchar 2018-06-10 02:25:10 -06:00
Sam Edwards e2b4353800 general: Replace NULL (and 0 as pointer) with C++11 nullptr
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb a65b477734 Commit patches by cfsworks:
cxx: Fix missing includes masked by composite builds.
misc: Fix typos in comments.
config: Fix missing config forward-declarations.
direct: Adjust Python imports to panda3d.* instead of pandac.*.
display: Split graphicsWindow out into an extension.
framework: Use if/elif/elif/endif instead of ifdef/elif/elif/endif.
ode: Remove erroneous INLINE declarations.
interval: Fix missing import.
2014-10-19 22:41:47 +00:00
David Rose dba661253a Fix handling of large (>2GB) files on Windows. Egad, off_t is 32 bits on Windows, even in 64-bit Windows. Ridiculous. 2013-08-01 00:10:20 +00:00
David Rose 5496c4a9ec more writable vfs stuff 2011-09-27 16:10:19 +00:00
David Rose 191ce517da migrate a few use cases to writable vfs 2011-09-17 00:05:23 +00:00
David Rose 84fdd2ea9e more robust vfs write operations 2011-09-16 23:10:46 +00:00
David Rose e986614cfc writable vfs 2011-09-16 20:13:08 +00:00
David Rose 285d70c29e support caching movie files in the model-cache-dir and in a txo file 2011-06-29 20:33:34 +00:00
David Rose 5b2c80e5f3 fix fmod threading issues 2011-06-21 17:10:51 +00:00
David Rose 834ff90f7c fix VirtualFile::read_file() for text files 2010-08-05 22:04:14 +00:00
David Rose 9d3724a40b optimizations to vfs.readFile(), particular for mounted multifiles 2010-06-16 21:58:39 +00:00
David Rose 1462bee771 better Filename usage 2008-11-11 23:28:14 +00:00
David Rose db1bc689e5 various fixes to threads, downloader, and support for VirtualFileMountHTTP 2008-11-04 01:09:57 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
David Rose 55225290b8 add MemoryBase to fix malloc issues, especially on OSX 2006-11-17 02:13:10 +00:00
David Rose 5294efe679 USE_MEMORY_NOWRAPPERS 2006-03-20 01:26:13 +00:00
David Rose 86b7edace2 add vfs->close_read_file() to work around compiler bug 2004-11-17 22:34:18 +00:00
David Rose 843c0331ae update license, change remaining local #includes to use quotation marks 2004-02-13 19:27:33 +00:00
David Rose 5037c9c9b4 move vfs to express 2002-08-06 13:39:32 +00:00