Jan Engelhardt
a23c6a42a3
mem_malloc type triviality checks (7/8)
...
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((char) \*\)mem_malloc\((\S+)\)}{mem_rmalloc<$1>($2)}'
```
2024-09-16 22:12:14 +02:00
Jan Engelhardt
c7da9daee2
mem_malloc type triviality checks (2/8)
...
Automated replacement with
```
git grep -l mem_malloc |
xargs perl -i -lpe 's{\((\w+) \*\)mem_malloc\(sizeof\(\1\) \* (\S+)\)}{mem_rmalloc<$1>($2)}'
```
2024-09-16 22:12:12 +02:00
Azamat H. Hackimov
ffdbc8b621
Convert music to use new logging facility
2024-09-10 03:00:25 +03:00
Jan Engelhardt
1da600caf2
Resolve alloc-dealloc-mismatch in OutrageMusicSeq::FreeList
...
Once a level is loaded/started, the program runs into:
==17675==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs operator delete []) on 0x50800031be20
f0 operator delete[](void*) (/lib64/libasan.so.8+0xfde68) (BuildId: 5615a04b8d0a5a8eafa661f7235e2d98fa2b9137)
f1 OutrageMusicSeq::FreeList() $GIT/music/sequencer.cpp:675
f2 OutrageMusicSeq::Shutdown() $GIT/music/sequencer.cpp:208
f3 D3MusicStop() $GIT/Descent3/d3music.cpp:118
f4 mmInterface::OnDestroy() $GIT/Descent3/mmItem.cpp:400
f5 UIWindow::Destroy() $GIT/ui/UIWindow.cpp:203
f6 MainMenu() $GIT/Descent3/menu.cpp:911
f7 MainLoop() $GIT/Descent3/descent.cpp:546
f8 Descent3() $GIT/Descent3/descent.cpp:508
f9 oeD3LnxApp::run() $GIT/Descent3/sdlmain.cpp:151
0x50800031be20 is located 0 bytes inside of 88-byte region [0x50800031be20,0x50800031be78)
allocated by thread T0 here:
f0 operator new(unsigned long) (/lib64/libasan.so.8+0xfd2f8) (BuildId: 5615a04b8d0a5a8eafa661f7235e2d98fa2b9137)
f1 OutrageMusicSeq::AddToList(short, short, int, OutrageMusicSeq::music_ins const*) $GIT/music/sequencer.cpp:653
f2 OutrageMusicSeq::LoadTheme(char const*) $GIT/music/omflex.cpp:310
f3 OutrageMusicSeq::Init(char const*) $GIT/music/sequencer.cpp:198
f4 D3MusicStart(char const*) $GIT/Descent3/d3music.cpp:80
f5 mmInterface::Create() $GIT/Descent3/mmItem.cpp:353
f6 MainMenu() $GIT/Descent3/menu.cpp:732
f7 MainLoop() $GIT/Descent3/descent.cpp:546
f8 Descent3() $GIT/Descent3/descent.cpp:508
f9 oeD3LnxApp::run() $GIT/Descent3/sdlmain.cpp:151
2024-08-30 01:26:00 +02:00
Azamat H. Hackimov
220108f650
Isolate libacm module
...
Update libacm module, minor cleanups.
2024-07-28 16:50:43 +03:00
GravisZro
9cf9781369
Properly format/use variadic macros
2024-05-24 20:57:17 -04:00
GravisZro
5e5e0c99c3
Replace "short" with "int16_t" and fix missing headers
2024-05-23 23:49:31 -04:00
GravisZro
26b7776f43
Replace "ubyte" with "uint8_t"
2024-05-23 23:07:26 -04:00
JeodC
a4ab78192c
Join license header with historical commentrs
...
Join the license header with historical comments using a separator so IDEs can correctly parse the initial header.
Also use .gitattributes to ensure all files are LF.
2024-05-08 14:41:19 -04:00
Azamat H. Hackimov
4826c37a69
Add BUILD_INTERFACE to cfile module
...
Other modules that depends on it, can reuse includes on linking.
There some files formally not belonging any packages (lib directory), as workaround there temporary include_directories(cfile) on root of project. After migrating all modules this can be removed.
2024-04-24 00:41:02 +03:00
Azamat H. Hackimov
c275d359c7
Reapply "Cfile module update"
...
This reverts commit 066b436fd9
.
2024-04-24 00:40:39 +03:00
Louis Gombert
43af644827
Fix -Wparentheses
2024-04-21 20:24:31 +02:00
Kevin Bentley
1f45163248
Updated source to reflect the license that this code is released under.
2024-04-20 09:57:49 -06:00
Edu Garcia
066b436fd9
Revert "Cfile module update"
2024-04-19 13:57:55 +01:00
Azamat H. Hackimov
9b45091633
Rename/move cfile related files
...
Rename to lowercase and move headers to own directory.
2024-04-19 00:17:15 +03:00
Azamat H. Hackimov
38128ea134
Additional clang-format
2024-04-17 00:25:04 +03:00
Kevin Bentley
7399b5a2f2
Fix CRLF line endings.
2024-04-16 14:21:35 -06:00
Kevin Bentley
c6640cc631
clang-format on everything.
2024-04-16 12:56:40 -06:00
Kevin Bentley
df209742fc
Initial import
2024-04-15 21:43:29 -06:00