Alibek Omarov
0795fe92fe
public: build: allow older __ppc__ macro defined by GCC 4.0 (even though I probably won't support GCC 4.0)
2025-11-06 20:06:51 +05:00
Alibek Omarov
8a94256558
public: fix build with C++
2025-11-03 19:28:59 +05:00
Alibek Omarov
654d7013c6
public: add PSP definitions
2025-10-09 22:32:30 +05:00
Alibek Omarov
d16ef9bf2a
common: xash3d_types: refactoring
2025-10-08 05:02:08 +05:00
Alibek Omarov
a1d3b7d65f
Remove STDINT_H macro, use stdint.h directly. Compilers and platforms that do not have this header shall provide them on their own.
2025-10-08 03:53:37 +05:00
Alibek Omarov
59d771c4e4
public: add definitions for GNU/Hurd
2025-08-13 16:45:53 +05:00
Alibek Omarov
a5b68c5ed9
public: remove unused global
2025-08-08 17:01:35 +05:00
Alibek Omarov
ac22de84bf
public: remove Q_buildnum generated from __DATE__ macro, as we rely only on Git now
2025-08-04 10:25:42 +05:00
Alibek Omarov
67d1536127
public: rename rsqrt to Q_rsqrt due to weird collision with tgmath.h macro
...
It was reported on Discord with no additional information attached. But I guess
it might be better to prefix our math- and crtlib functions in general.
2025-08-03 10:20:52 +05:00
Alibek Omarov
671157ee20
public: wscript: set compiler for tests using compiler key instead of directly setting up features, otherwise it won't add uselib
2025-07-29 21:42:02 +05:00
Alibek Omarov
4398de1dab
public: wscript: explicitly set language for libc tests in multicheck, as Waf chooses C++ by default
...
Compiling tgmath.h test with C++ compiler causes misdetection on PSVita which has broken tgmath.h support.
2025-07-29 20:41:59 +05:00
Alibek Omarov
dc09cf0c39
public: fix incorrect logic where libc extension defines were exported without an actual check
2025-07-29 11:31:45 +05:00
Alibek Omarov
f4854dbcde
public: wscript: parallelize libc extension checks for faster reconfigure
2025-07-29 08:57:57 +05:00
Alibek Omarov
72b8182af0
public: comment out XASH_JS define to avoid arch misdetection on modern Emscripten versions
2025-06-15 13:01:13 +05:00
Alibek Omarov
6aa281bc59
public: define Emscripten as POSIX-compatible
2025-06-15 12:51:57 +05:00
Alibek Omarov
22661fd446
public: define XASH_TERMUX if __TERMUX__ is defined. Do not enable XASH_MOBILE_PLATFORM for it
2025-04-24 21:40:35 +03:00
Andrey Akhmichin
ccb8d611c6
public: add getopt implementation from NetBSD libc.
2025-04-02 12:07:41 +03:00
Alibek Omarov
d68f29737a
public: crtlib: use Q_rint instead of round in Q_pretifymem, so we don't have to link libm when we don't need it
2025-03-16 01:01:13 +03:00
Alibek Omarov
7aa9f23590
public: crtlib: fix Q_pretifymem so it compiles with -Wformat-nonliteral
2025-03-15 14:19:47 +03:00
Alibek Omarov
1510cb458f
public: fix another typo
2025-02-11 21:12:50 +03:00
Alibek Omarov
39659644bf
public: merge calc bone quaternion and position into single function
...
Expect that only adj and output quaternion can be NULL.
2025-02-11 18:57:08 +03:00
Alibek Omarov
c48d93e3ce
public: use last Git commit date (committer date, to be exact) as more predictable source for build num
2025-02-07 17:51:10 +03:00
Alibek Omarov
8f257cc331
public: add parsing build date from ISO-8601 alike format
2025-02-07 17:47:23 +03:00
Alibek Omarov
151e7fe37b
public: crtlib: check for empty buffer in Q_vsnprintf
2025-02-06 21:19:10 +03:00
Alibek Omarov
f911210b81
public: simplify ctype.h is* functions wrappers for null-terminated strings, add Q_isalpha
2025-02-05 18:21:18 +03:00
Alibek Omarov
93ebddfba3
public: utflib: simplify Q_EncodeUTF8
2025-02-02 02:31:56 +03:00
NightFox
98a04c7764
FIx Matrix*x4_LoadIdentity (xash3d_mathlib.h)
2025-01-25 08:21:21 +03:00
Alibek Omarov
375998dffb
Cleanup xash3d_types.h from engine-specific macros and types
2025-01-22 15:10:18 +03:00
Alibek Omarov
870fad5606
public: tests: remove Q_colorstr tests
2025-01-18 10:36:11 +03:00
Alibek Omarov
4b1b3aa13c
public: remove Q_colorstr, as it's completely useless and checking for color string is easy actually
2025-01-18 08:29:36 +03:00
Alibek Omarov
201d9c8f80
public: split VCS info to separate file for slightly better compilation speeds
2025-01-13 20:02:59 +03:00
Alibek Omarov
69341e36a3
public: expose commit and branch as global variables instead of functions
2025-01-13 20:02:59 +03:00
Alibek Omarov
3532a77643
public: move git commit and branch private to libpublic
2025-01-13 20:02:59 +03:00
Alibek Omarov
03eac904c1
public: make COM_FixSlashes inlined
2024-12-29 09:05:15 +03:00
Alibek Omarov
70897af362
public: add dll helpers to simplify basic interaction with exported functions lists
2024-12-23 04:43:15 +03:00
Alibek Omarov
2aa13c8347
public: xash3d_mathlib: include string.h with memset definition
2024-12-17 21:58:42 +03:00
Alibek Omarov
53344771fd
public: xash3d_mathlib: get rid of matrix identity global macros
2024-12-17 21:01:51 +03:00
Alibek Omarov
2373743920
public: mention FSF in copyright header, as some of the libc extensions callbacks were derived from glibc [skip ci]
2024-12-17 20:41:55 +03:00
Alibek Omarov
90a3497afe
public: improve Q_strncat fallback implementation
2024-12-17 20:40:19 +03:00
Alibek Omarov
339aebb08c
public: add Q_strnlen with fallback to memchr
2024-12-17 20:03:09 +03:00
Alibek Omarov
b4afe390d6
public: slight refactoring
2024-12-17 19:57:27 +03:00
Alibek Omarov
0154ffa060
wscript: try to automatically set console subsystem flag depending on target features
...
Remove subsystem flag from shlibs and stlibs, it's only required for executables.
2024-11-27 15:43:13 +03:00
Alibek Omarov
fa272d9d93
public: add optional feature for COM_ParseFileSafe to ignore shell like hash symbol prefixed comments
2024-11-18 14:14:49 +03:00
Alibek Omarov
3691f02359
public: crtlib: make Q_strchrnul return non-const pointer, like strchr
2024-11-17 13:56:31 +03:00
Alibek Omarov
721c8043f1
public: optimize COM_FileExtension
2024-11-17 06:20:52 +03:00
Alibek Omarov
ac7617990a
public: add Q_splitstr function
2024-11-17 05:34:29 +03:00
Alibek Omarov
a6592e7776
public: add test to check that pair Q_buildos and Q_buildarch return expected (for this build) data
2024-11-12 21:24:48 +03:00
Alibek Omarov
b51d1a4e2e
public: mark some functions as never returning nullptr
2024-11-07 16:11:40 +03:00
Alibek Omarov
d15949d2e8
Rename _format to FORMAT_CHECK
2024-11-07 14:24:07 +03:00
Alibek Omarov
0adda483c5
public: add definitions for Solaris
2024-11-07 07:12:30 +03:00