Commit graph

31 commits

Author SHA1 Message Date
Alyssa Milburn
be35baddc7 TINSEL: Rename globals to add g_ prefix. 2012-02-22 23:14:29 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Matthew Hoops
9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
1dbf8d73d5 TINSEL: Mark all (?) global vars with a FIXME comment
Use of global vars is what prevents RTL from working in Tinsel (and
probably in other engines). More specifically, the fact that many
global vars are not explicitly inited when the engine is (re)launched.

svn-id: r54262
2010-11-16 09:53:55 +00:00
Max Horn
9a350f4398 ENGINES: Get rid of some (f)printfs
svn-id: r54011
2010-11-01 16:04:47 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
79734dbc15 TINSEL: Make HeapCompact local to heapmem.cpp; add code to print heap statistics
svn-id: r45428
2009-10-27 00:37:54 +00:00
Max Horn
e07a9b0524 TINSEL: Changed heap manager to use malloc internally
svn-id: r45427
2009-10-27 00:37:23 +00:00
Max Horn
05508d8dcd TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn
5672f353dd TINSEL: Fix warning again
svn-id: r45419
2009-10-26 21:08:15 +00:00
Max Horn
6c1c9eda3a TINSEL: Make MEM_NODE internal to heapmem.cpp
svn-id: r45418
2009-10-26 20:38:34 +00:00
Max Horn
d2e64a350a TINSEL: cleanup
svn-id: r45417
2009-10-26 20:36:44 +00:00
Max Horn
e1de772e72 TINSEL: Fix handling of free memory blocks
svn-id: r45416
2009-10-26 20:35:06 +00:00
Johannes Schickel
692a4b74dc Change assert parameter to match the comment above it.
svn-id: r45415
2009-10-26 20:08:33 +00:00
Torbjörn Andersson
939d8d1a37 Silence GCC warning.
svn-id: r45413
2009-10-26 20:03:07 +00:00
Max Horn
6591010f66 TINSEL: Further untangle memory managment.
* Add new function MemoryNoAlloc
* Make MemoryAlloc private
* Get rid of params to various memory related functions

svn-id: r45409
2009-10-26 16:01:34 +00:00
Max Horn
b9534216ed TINSEL: Remove MemoryHandle(), some unneeded #includes and the return value of MemoryReAlloc()
svn-id: r45408
2009-10-26 16:01:12 +00:00
Max Horn
e963dfbd17 TINSEL: Remove dead stuff from memory managment code, doxygenify some comments
svn-id: r45402
2009-10-26 10:41:28 +00:00
Max Horn
bbe0b81aff TINSEL: Remove DWM_FIXED and add new MemoryAllocFixed() function
svn-id: r45401
2009-10-26 10:41:11 +00:00
Max Horn
240f230c1e TINSEL: Cleanup
svn-id: r45398
2009-10-26 10:40:16 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Joost Peters
0ef0365db5 Make MemoryReAlloc() 64-bit alignment safe
svn-id: r43013
2009-08-02 21:44:21 +00:00
Joost Peters
7d3f68154f align memory handles to sizeof(void*) instead of 4 (which is just good enough for 32-bit) - this fixes DW2 on 64-bit systems that require alignment
svn-id: r43005
2009-08-02 17:58:48 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Joost Peters
e98f573688 add comment for clarification
svn-id: r35528
2008-12-24 16:13:09 +00:00
Joost Peters
85bfce72d3 on systems that need alignment, allocate chunks that are a multiple of 4 to ensure we get aligned chunks.
Otherwise, some pNode structs will be dereferenced from unaligned addresses.

svn-id: r35527
2008-12-24 16:10:55 +00:00
Filippos Karapetis
94b914b0cb Reduced the memory allocated for DW1 and DW1 demo by 5MB
svn-id: r35464
2008-12-21 12:30:30 +00:00
Filippos Karapetis
af945ac788 Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 should be completable
svn-id: r35196
2008-12-01 20:35:36 +00:00
Max Horn
bc2ec5afde Got rid of some typedefs
svn-id: r33235
2008-07-23 10:27:24 +00:00
Max Horn
c441c5261f Added Tinsel engine to main repos (no news item for it ON PURPOSE)
svn-id: r33230
2008-07-23 09:02:47 +00:00