7cb28a242c
win_internal: removed contents of crtdbg and malloc.h (no longer needed, since precompiled.h now correctly includes the mem trackers and all memory-related system headers)
...
precompiled: restructured, documented everything, memory system headers
are now included before mmgr.h to prevent conflicts (before, had
#defined include guard of crtdbg.h and malloc.h and manually declared
their contents - a hack)
This was SVN commit r1885.
2005-01-30 23:09:51 +00:00
bc4351b1c8
_control87 is now ia32_control87 and overrides _control87 via macro. after adding float.h to precompiled.h, compiler was thinking _control87 was dllexport and creating an .exp file (confusing)
...
This was SVN commit r1884.
2005-01-30 23:07:55 +00:00
6d807d1c9f
add win_alloc, used by wpthread to allocate memory for critical sections (safe allocator that may be called at any time, even before _cinit and during static dtors)
...
This was SVN commit r1882.
2005-01-30 17:40:24 +00:00
d34780fb79
win_internal: add _getcwd prototype, made all extern
...
file: correct getcwd return value
This was SVN commit r1878.
2005-01-30 16:13:15 +00:00
a17998b91a
debug_resolve_symbol now tries to return information even if one step fails; output params are zeroed.
...
wposix: getcwd is now a function that calls _getcwd, to cooperate with
mmgr's #define hook
This was SVN commit r1877.
2005-01-30 16:08:14 +00:00
4ed4a7e16d
Fix for the crash when a client connects, as well as some minor additions to client/server code
...
This was SVN commit r1861.
2005-01-29 16:51:13 +00:00
41e2f48daf
add reference to required .lib files to fix linker errors reported by stu
...
This was SVN commit r1860.
2005-01-29 16:43:46 +00:00
60ee5acd2b
Made invalid-attempt-to-get-player errors less subtle. Word-wrapping in assert2 dialog box.
...
This was SVN commit r1857.
2005-01-29 00:11:50 +00:00
4c6713b582
again hooked up 0ad exception handler (pending cleanup of the exception code)
...
This was SVN commit r1852.
2005-01-28 19:11:30 +00:00
f25f6a2d70
wdbg: fix crash when exiting abnormally (alt+f4) - was erasing elements from container while iterating through it
...
win internal files: slight changes while looking through
This was SVN commit r1850.
2005-01-28 18:16:51 +00:00
38d6f81d71
add/update win-specific code+header file comment
...
This was SVN commit r1841.
2005-01-27 16:18:22 +00:00
f55107c114
sysdep: inline vsprintf2 definition (no need for printf.h)
...
win.cpp: remove hWnd (not needed for clipboard code) and TSC reference
(a temporary hack)
This was SVN commit r1840.
2005-01-27 15:50:11 +00:00
09985eaa7e
split thread/mutex/sem defs out of wposix to wpthread (reduce default dependencies)
...
waio: add include guard; include from waio.cpp
This was SVN commit r1839.
2005-01-27 15:46:02 +00:00
f3a61e4f69
wsdl: add prototypes for VC endian swap routines (avoid warning)
...
endian.*: split out of lib.* to reduce default dependencies
tex,zip: now include endian.h
This was SVN commit r1838.
2005-01-27 15:40:23 +00:00
f6c95b259d
include exception handler code only if EXCEPTION_HACK_0AD is required. (since some PS-specific code leaked into wdbg.cpp, have to disable that until i get around to cleaning it up)
...
This was SVN commit r1836.
2005-01-27 15:22:47 +00:00
969ed22f97
- provide for 1-byte ints (debug info is weird; dunno why it's stored as such, but they exist)
...
- if tag != SymTagDataType, don't dump the symbol (to be safe). this is
unexpected, but Philip reports it triggered.
- assert dialog is resizeable (grr, have to do that manually)
This was SVN commit r1828.
2005-01-26 16:25:56 +00:00
bc1c05b7db
wrap operator new call site in nommgr.h / mmgr.h
...
This was SVN commit r1827.
2005-01-26 16:22:08 +00:00
c756aff9c5
wposix: AllocConsole wrapper is now a standard function call (before, a direct jump saved a few bytes but was unsafe - not smart)
...
This was SVN commit r1825.
2005-01-26 01:06:48 +00:00
3e82535375
wdll: fixed operator_new (discussed at meeting) issue - turns out that was a bad idea. unless mmgr.h is included, operator_new isn't defined, so it's taken to be a function => it was never getting called in wdll
...
defining operator_new in a global file is a bad idea- if we forget
that, hard-to-track errors result
so, no more operator new; instead, #include "nommgr.h" before local
operator new definitions and #include "mmgr.h" again afterwards
This was SVN commit r1824.
2005-01-26 01:05:22 +00:00
2d1ba66dc8
mmgr.cpp: uses assert2 when something fails (so you get a pretty stack trace
...
mmgr.h: remove everything if !defined(USE_MMGR); move dox to end of file
debug.h: fix stupid n00b bug in assert2 (expr wasn't in "()" )
This was SVN commit r1822.
2005-01-26 00:33:45 +00:00
e7dcbfd19e
further cleanup; stack trace + dialog part done for now; will clean up exception part later (discussed with philip)
...
This was SVN commit r1820.
2005-01-25 23:55:49 +00:00
711bff0d3a
lib.h: moved assert2 to sysdep/debug.h
...
mmgr: remove wdbg calls (was prototype); use sysdep/debug interface
wdbg: no longer call it dbghelp63.h; should be installed normally in
compiler dir
win_internal.h: fix inevitable MS screwups in new dbghelp.h (*sigh*)
This was SVN commit r1816.
2005-01-25 18:54:48 +00:00
0d80a05aec
wdbg: much improved dbghelp stack dump, thanks to availability of new dox. should succeed with user-defined types - voodoo programming no more. benefits are reaped when using assert2 in code (recommended!) or an exception is raised.
...
also made "program error" dialog a bit nicer - it's now attached to
desktop and resizeable.
This was SVN commit r1814.
2005-01-25 18:42:42 +00:00
cb74250a51
- moved assert2 to sysdep/debug.h
...
- sysdep/debug.h includes platform-specific version, so they can define
debug_break
- no longer a debug_break wrapper that calls to specific versions (so
that the debugger breaks in the target function directly)
- unix-specific stuff is only debug ATM; call it udbg instead of unix.*
This was SVN commit r1813.
2005-01-25 18:27:00 +00:00
c73a3fe2c4
platform-specific debug header (included from sysdep/debug) is responsible for defining debug_break, or mapping it to the implementation function (result: if can be defined as a macro (e.g. on win32 or ia32), debugger breaks directly at the target location, instead of one function lower)
...
This was SVN commit r1812.
2005-01-25 17:58:15 +00:00
36c5db05cd
Added includes for non-pch build
...
This was SVN commit r1807.
2005-01-24 23:08:30 +00:00
13bcff918e
Let Testing/Release builds be built
...
This was SVN commit r1797.
2005-01-23 22:42:37 +00:00
6ca71568f5
vfs, ps/game.cpp: lint
...
dbghelp_funcs: no longer needed, since we load dbghelp statically
This was SVN commit r1788.
2005-01-23 19:49:45 +00:00
4d25441c2a
split out of wposix (less dependencies)
...
SDL_*: $id string
This was SVN commit r1785.
2005-01-23 18:21:20 +00:00
e4bcd210d3
win_internal: move VC debug heaps here to avoid conflicts with mmgr
...
vfs: lint fixes
mem: remove h_add_ref from mem_get_ptr (was a hack, breaks some code)
This was SVN commit r1783.
2005-01-23 18:17:46 +00:00
4facc59833
new init seg
...
This was SVN commit r1782.
2005-01-23 18:09:55 +00:00
9cadcd875d
lint fixes; no longer dynamically load dbghelp (can always distribute required version)
...
work in progress: cleaning up debug info, add functions for mmgr to
query caller
This was SVN commit r1781.
2005-01-23 18:07:34 +00:00
4e454b31f0
lint fixes; more armor-plating for SDL_SetVideoMode
...
This was SVN commit r1780.
2005-01-23 18:05:33 +00:00
9e3ae3bdf2
further lint fixes
...
new init seg, group "C" called before libc init
better critsec impl, doesn't break if called after shutdown
This was SVN commit r1779.
2005-01-23 18:04:34 +00:00
468fb35ab5
waio.h: moved some signal handler defs here from wposix
...
This was SVN commit r1778.
2005-01-23 18:04:02 +00:00
9b7af0ce08
safer mutex impl; split some parts out into waio (signal defs, only used in aiocb) and wposix_types
...
This was SVN commit r1777.
2005-01-23 17:57:52 +00:00
bc52269989
lint fixes; changed wtime init order
...
This was SVN commit r1776.
2005-01-23 17:56:00 +00:00
e332d876f8
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
This was SVN commit r1773.
2005-01-23 17:48:32 +00:00
a43205148b
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
This was SVN commit r1772.
2005-01-23 17:45:25 +00:00
2077698156
New JavaScript interface for the network client, plus some linux/gcc/misc fixes
...
This was SVN commit r1730.
2005-01-17 04:52:02 +00:00
38b30e5eb4
Corrected ICC errors and some warnings. Removed some unnecessarily verbose logging. Did minor things.
...
This was SVN commit r1718.
2005-01-13 00:17:31 +00:00
3ae57e7b0d
Inverted my accidental inversion of logic
...
This was SVN commit r1697.
2005-01-10 21:07:24 +00:00
56949e6fc4
lib: add big endian readers; add VC intrinsic bswap routines
...
tex: improve flip / bgr convert (now generalized "transforms"); add
support for transforming image before encoding
wsdl: add SDL_ShowCursor, minimize when tasking out
main: WriteScreenshot improved, fixes flipped screenshots
This was SVN commit r1689.
2005-01-09 14:23:59 +00:00
c5de965814
wsdl:
...
- add SDL_WaitEvent
- fixed evil bug due to incorrect interpretation of
PIXELFORMATDESCRIPTOR.cColorBits (destabilized ATI drivers)
- remove ps/ dependency in "screenshot" key hook
- fix bug in gamma functions
- remove asm trampolines, replace with plain inline calls (efficiency <
safety)
- SDL thread calls implemented in terms of POSIX functions
This was SVN commit r1659.
2005-01-07 01:25:10 +00:00
f503a1f4e7
handle.h: include guard
...
vfs: path_append and exact-case handling bugfixes
wtime: added FILETIME->time_t conversion; small improvements
This was SVN commit r1658.
2005-01-07 01:16:43 +00:00
e6a12f76e2
aio: check for NULL aiocb* params; made aio_h get/set static; various small improvements
...
mem: explicit mem_shutdown call - try to avoid exit order problems
unifont: remove logger calls (dependency on ps/)
This was SVN commit r1657.
2005-01-07 01:13:48 +00:00
577c23d936
cursor: remove dependency on CVFSFile (all lib/res files must not depend on ps/, so that they can be reused in other projects)
...
wposix:
- FILETIME->time_t conversion for *stat
- improve opendir/readdir etc.; add readdir_stat_np
- add pthread_join and pthread_cancel
- add portable sem_* semaphore functions (alternative to SDL semaphores)
file: use readdir_stat_np instead of reading non-portable struct dirent
fields
This was SVN commit r1656.
2005-01-07 01:10:00 +00:00
090ea2301a
wdbg: temporarily removed LOCALIZED_TEXT so this works in another project. must find long-term solution: lib/ must not be dependent on ps/!
...
sysdep.h: add pick_dir
sysdep/win/win.cpp: .. and its win32 implementation
This was SVN commit r1655.
2005-01-07 00:59:52 +00:00
f791239396
Fix for strange machine with no audio
...
This was SVN commit r1611.
2005-01-02 00:05:33 +00:00
ed55ad4d82
Put crashlog into ScEd.
...
This was SVN commit r1590.
2004-12-28 20:53:54 +00:00