Louis Gombert
b33cc21dce
Merge pull request #587 from winterheart/module-fixes
...
Update module, add logger module
2024-09-18 22:18:13 +02:00
Azamat H. Hackimov
dc0cd880e4
Add logger module
...
Implementing separated logger module.
2024-09-18 22:50:08 +03:00
Jan Engelhardt
3c9234c4c0
mem_malloc type triviality checks (8/8)
...
(Manual modification.) Change mem_malloc callsites with
non-fundamental types to mem_rmalloc.
2024-09-16 22:12:14 +02:00
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
de0af3b10d
mem_malloc type triviality checks (6/8)
...
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((uint8_t) \*\)mem_malloc\((\S+)\)}{mem_rmalloc<$1>($2)}'
```
2024-09-16 22:12:13 +02:00
Jan Engelhardt
4d2fdb2316
mem_malloc type triviality checks (4/8)
...
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((\w+) \*\)mem_malloc\((\S+) \* sizeof\(\1\)\)}{mem_rmalloc<$1 *>($2)}'
```
2024-09-16 22:12:13 +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
Louis Gombert
7282af9cd8
Merge pull request #568 from winterheart/valgrind
...
Fix discovered memory leaks
2024-09-16 20:48:56 +02:00
Azamat H. Hackimov
4259fe4c18
Convert manage to use new logging facility
2024-09-10 03:00:25 +03:00
Azamat H. Hackimov
d185ab9514
Fix memory leaks in dedicated mode
2024-09-04 14:17:02 +03:00
Jan Engelhardt
38b835a03b
Fix spello "its"
2024-09-03 13:26:51 +02:00
Jan Engelhardt
a3a31c77a2
Fix spello "seperate.."
2024-09-03 13:26:51 +02:00
Jan Engelhardt
b14470bbff
Fix spello "independan.."
2024-09-03 13:26:51 +02:00
Jan Engelhardt
edbde82918
Fix spello "agression"
2024-09-03 13:26:51 +02:00
Jan Engelhardt
234e666ce0
Fix spello "charactor"
2024-09-03 13:26:51 +02:00
Azamat H. Hackimov
16a6866885
DDIO: new crossplatform SleepMS() function
...
Use C++ chrono and thread for crossplatform sleep function.
2024-08-20 23:08:10 +03:00
Thomas Roß
fdcc348b9c
[Cleanup] Fixed mismatch between function declarations and implementations.
2024-08-20 20:03:02 +02:00
Thomas Roß
7b71873a69
[Cleanup] Removed function declarations that are not implemented.
2024-08-20 20:03:02 +02:00
C.W. Betts
1384aa62af
Quiet warnings about uninitialized values.
2024-07-31 15:40:16 -06:00
Louis Gombert
ae5840f314
Merge pull request #502 from winterheart/modules-split
...
Splitting submodules of project
2024-07-30 23:17:47 +02:00
Azamat H. Hackimov
9e3563de4d
Isolate model submodule
...
Isolate model from rest of the project, minor cleanups.
2024-07-28 16:50:42 +03:00
Louis Gombert
0d7ad92c61
Use standard temporary directory to store cache data instead of custom/cache
2024-07-26 01:22:32 +02:00
Chris Sarbora
3da53e567f
Programmatically replace all __LINUX__
with POSIX
...
Steps:
```sh
srcs=$(mktemp)
find . -name "*.cpp" -or -name "*.c" -or -name "*.h" -or -name "*.hpp" -or -name "*.cc" -or -name "*.hh" > $srcs
xargs sed -i 's/ifndef __LINUX__/if !defined(POSIX)/' < $srcs
xargs sed -i 's/ifdef __LINUX__/if defined(POSIX)/' < $srcs
xargs sed -i 's/defined(__LINUX__)/defined(POSIX)/' < $srcs
```
2024-07-12 18:11:54 -05:00
Azamat H. Hackimov
de49da0e9a
DDIO: Remove unused platform-dependent functions
...
Remove ddio_CreateDir(), ddio_RemoveDir(), ddio_SaveWorkingDir(), ddio_RestoreWorkingDir(), ddio_DirExists(). Replace them in code with std::fs alternatives.
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
3af18dadc3
MANAGE: convert some global path variables to std::fs::path
...
Simplifies code related to UpdatePrimitive().
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
a00be9f71a
MANAGE: refactor UpdatePrimitive() related code
...
Use std::fs::path on path construction, simplify code.
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
c33d99a5db
MANAGE: convert UpdatePrimitive() to use std::fs::path
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
d1f0ddf888
CFILE: refactor internal paths and extensions
...
Refactor paths and extensions to use std::map. Rewriting related code in manage.cpp.
2024-07-01 12:50:49 +03:00
Azamat H. Hackimov
0ea758084f
CFILE: refactor internal paths and extensions
...
Refactor paths and extensions to use std::map. Rewriting related code in manage.cpp.
2024-07-01 12:50:48 +03:00
Azamat H. Hackimov
59487976f6
Isolate misc module
...
Isolate misc module for better dependency handling.
2024-06-27 01:26:35 +03:00
Azamat H. Hackimov
db8aa64d2f
Make mem module isolated from project
...
Properly define MEM_USE_RTL definition only for mem library. Link other dependant modules with mem.
2024-06-20 00:43:51 +03:00
Louis Gombert
bcca92722d
Release build fixes
2024-06-07 23:50:38 +02:00
GravisZro
1c7e3053f2
Replace "PSPATHNAME_LEN" and "MAX_PATH" with "_MAX_PATH"
2024-06-01 22:19:41 -04:00
GravisZro
f7ae658fe2
Modernize struct/enum/unions type declarations
2024-05-30 03:35:17 -04:00
GravisZro
9cf9781369
Properly format/use variadic macros
2024-05-24 20:57:17 -04:00
Azamat H. Hackimov
a0929aefe2
Rename ddio_common to ddio
2024-05-24 22:18:14 +03:00
Azamat H. Hackimov
6bc3c71a83
Reordering ddio_common module
...
Merge ddio_lnx and ddio_win into ddio_common module.
2024-05-24 22:17:44 +03:00
GravisZro
aebe1bbbb6
Replace "ushort" with "uint16_t" and fix missing includes
2024-05-23 23:16:40 -04:00
GravisZro
26b7776f43
Replace "ubyte" with "uint8_t"
2024-05-23 23:07:26 -04:00
GravisZro
9d3e361a35
Replace "sbyte" with "int8_t"
2024-05-23 23:05:05 -04:00
GravisZro
dec9de7456
64-bit fixes
...
Switch all the (u)long types to (u)int32_t where appropriate.
2024-05-22 18:14:45 -04:00
Azamat H. Hackimov
3bd07d1f7e
Reordering dependant on sndlib modules
...
Properly include and reuse produced static lib in other components.
2024-05-22 22:03:46 +03:00
Azamat H. Hackimov
3fa32ff386
Reorder headers related to linux module
2024-05-19 12:21:43 +03: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
Edu García
3440667e93
remove unused code (mainly windows.h)
2024-05-07 23:45:33 +01:00
Oskar Strengbohm
4582b44eb3
misc: pstring: Refactor dependents.
2024-04-29 10:01:33 +02:00
Ryan C. Gordon
6c8977caf0
Heavy patching for compiler warnings.
...
The vast majority of this is fixing up `char *` that should be `const char *`
but a handful of other fixes, like potential buffer overflows that GCC
noticed, etc, were applied as well.
This removes `-Wno-write-strings` from CMakeLists.txt, as it is no longer
necessary, as there is no longer a flood of compiler warning spam when
building.
This does not fix all compiler warnings; there are still a handful, and they
are legitimate, but they can be dealt with in a future commit.
2024-04-29 00:18:56 -04:00
Chris Sarbora
e6ba1906c9
Remove MacOS (Classic) code and all references (1/3)
...
The MACINTOSH define refers to MacOS Classic (not OS X) which we do not
plan to support. Rather than carry the cruft forever, let's delete it.
NOTE: legacy/ is unused but we're keeping it around, so MACINTOSH uses
there are left alone.
Process used for this commit:
```
git rm -r mac
find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" \) \
-exec unifdef -UMACINTOSH -o {} {} \;
git restore legacy
git add .
```
Test Plan:
On Mac, build both Debug and Release
```
cmake --build --preset mac --config Debug
cmake --build --preset mac --config Release
```
2024-04-27 07:38:14 -07: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