34 Commits

Author SHA1 Message Date
Anders Jenbo a0476b45a0 Reorder dthread.cpp 2020-11-02 05:31:23 +01:00
Anders Jenbo 5a8f8eadb1 Clean up appfat.cpp 2020-11-02 01:29:14 +01:00
Anders Jenbo 7db4ed749a Apply more enums, defines and types 2020-04-08 20:18:11 +02:00
Anders Jenbo 660405505f Remove C compat
It's unmaintained and clear that we won't be going back since some
functions can only be solved with C++
2020-04-06 05:43:20 +02:00
Robin Eklind 54a23821f2 Merge pull request #2018 from mewpull/dtherad-wait-inf
dthread: use INFINITE enum for second argument to WaitForSingleObject
2020-03-08 18:25:52 +01:00
Robin Eklind dce389599e dthread: add parameter name to dthread_handler
This fixes a build error in dthread_handler when compiling as C.

	Source/dthread.cpp:92:46: error: parameter name omitted
	unsigned int __stdcall dthread_handler(void *)
																^
2020-03-08 18:12:09 +01:00
Robin Eklind f6e6b4b56f dthread: use INFINITE enum for second argument to WaitForSingleObject 2020-03-08 17:56:06 +01:00
Anders Jenbo 3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
Anders Jenbo 20621a0642 add all.h and use in place of diablo.h (#2005)
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.

Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
2020-02-14 13:12:54 +01:00
Anders Jenbo 56f04e1919 Update dthread.cpp 2019-09-17 04:40:41 +02:00
Anders Jenbo 5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo 11b6b1f860 Remove more garbage 2019-06-03 02:20:42 +01:00
Anders Jenbo 218ad0e3c4 Clean up dthread.cpp 2019-05-02 00:16:46 +01:00
Anders Jenbo 55a0396f8f Clean up mem_free_dbg style 2019-04-22 13:22:57 +02:00
galaxyhaxz 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz cef65ea0b6 Implement Critical section constructor 2019-04-15 01:16:43 +02:00
galaxyhaxz 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxz 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders Jenbo 7835583a72 Clean up dthread.cpp 2019-01-14 03:53:37 +01:00
Anders Jenbo b582709d38 dthread_send_delta bin exact (#563) 2019-01-14 02:20:53 +01:00
Anders Jenbo 9b7da61dcf Auto format src 2019-01-13 18:55:59 +01:00
Anders Jenbo 54247a076c C init (#549)
* Make initializers C compatible

* Compile more files as C

dthread.cpp dx.cpp init logging.cpp fault.cpp msgcmd.cpp nthread.cpp

* Update defs.h
2019-01-10 21:39:28 +01:00
Anders Jenbo 77849aea72 Remove unused init (#533) 2018-12-31 04:26:51 +01:00
Anders Jenbo 47bf82b059 C compatability from a-d (#518) 2018-12-29 15:12:19 +01:00
Robin Eklind 2b696c4f22 dthread_send_delta almost bin exact
uses eax instead of ecx in one instruction,
but semantically equivalent.

Updates #236.
2018-11-27 01:33:35 +01:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo 8317d80d94 Clean up threading 2018-10-23 00:54:09 +02:00
Dennis Duda f83bceedfa Merge branch 'master' into win32_ansi 2018-09-16 20:58:15 +02:00
Andrew Dunstan aedf7555d1 Remove A suffix from all string-related win32 API function names 2018-09-16 02:52:51 +10:00
galaxyhaxz 34938876e0 A few name corrections (#203) 2018-09-14 23:47:22 -05:00
nomdenom b8eb6c54fb Fix signature of multi_send_pinfo(...) (#164) 2018-08-20 19:03:21 -05:00
galaxyhaxz 49a6f4f9fc Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz bb01c6f084 Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00