Commit Graph

267 Commits

Author SHA1 Message Date
🗣🗣: "ùồầỳ hợp lý quãi chất thế nhờ"🤫🗿🔥🔥
8fad3bbad6 public: wrap macro arguments in parentheses 2026-06-05 21:55:59 +05:00
Xav101
074bd8b2b3 public: add unaligned access handlers for new big endian port 2026-05-21 14:25:33 +05:00
Alibek Omarov
c5a8160c32 public: add Vec2, Vec3 and Vec4 macros used for initializers 2026-05-20 23:24:36 +05:00
Alibek Omarov
c5fbc98d16 public: refactor variable declarations 2026-05-20 23:24:36 +05:00
Alibek Omarov
dbe1a2742e public: add Q_strcmp_constant_time 2026-05-17 11:23:08 +05:00
Alibek Omarov
2290ae0239 public: disable Amiga's double-slash check in CheckNastyPath 2026-05-17 10:42:22 +05:00
Alibek Omarov
5d7ed9d8a7 public: add CheckNastyPath from Darkplaces's VFS so it can be used in engine for path traversal checks 2026-05-16 21:28:51 +05:00
Alibek Omarov
516554b704 public: update miniz to latest version 2026-05-15 12:36:56 +05:00
Alibek Omarov
10d441f825 public: fix warnings, add guards around some of the macros, remove unused variable 2026-05-13 10:30:35 +05:00
Alibek Omarov
d4205867dd public: simplify COM_Strip and COM_DefaultExtension by reusing extension extraction function. Add moar tests for them 2026-05-10 00:56:44 +05:00
Alibek Omarov
ec8059173d public: explicitly cast chars to bytes in ctype functions 2026-04-28 09:50:33 +05:00
Alibek Omarov
800725453a engine: soundlib: pass XASH_BIG_ENDIAN to ov_read in vorbis loader 2026-04-26 04:12:52 +05:00
Alibek Omarov
75e4a21d7a engine: mod_studio: more studio model swapping 2026-04-26 04:12:52 +05:00
Alibek Omarov
b60afd73e9 public: swaplib: add comments 2026-04-24 06:58:53 +05:00
Alibek Omarov
84447a5292 public: crclib: add fix for md5 from q3 2026-04-24 06:58:53 +05:00
Alibek Omarov
878822290c public: crclib: fix CRC32_BlockSequence on BE 2026-04-24 06:58:53 +05:00
Alibek Omarov
489c1c9dd5 public: add swaplib 2026-04-24 06:58:53 +05:00
Alibek Omarov
a3dba64513 public: move atlas packing code from renderer, add tests 2026-04-20 01:33:54 +05:00
Alibek Omarov
82475c3b58 public: remove tgmath.h include in C++ mode 2026-03-26 15:49:33 +05:00
Alibek Omarov
c421f3136d public: reformat BoxOnPlaneSide function 2026-03-26 02:48:13 +05:00
Alibek Omarov
acaede2a0d public: redefine mplane_t, make PlaneIntersect inline, turn BOX_ON_PLANE_SIDE into an inline function instead of a macro 2026-03-26 02:37:59 +05:00
Alibek Omarov
df95baa282 public: minor refactoring, mark some more functions as returns_nonnull 2026-03-17 00:19:27 +05:00
Alibek Omarov
c19a824a42 public: add Q_memfgets, replacement for COM_MemFgets rewritten using crtlib functions. Add a test 2026-03-01 03:04:33 +05:00
Alibek Omarov
192ed942c4 public: add new features to ParseFileSafe, such as disabling interpreting certain characters as separate tokens, or instead forcing them to be separate tokens 2026-02-28 04:17:34 +05:00
Alibek Omarov
9a285986c4 public: reimplement COM_TrimSpace, add it to crtlib, add tests for it 2026-02-28 00:05:37 +05:00
Alibek Omarov
7c527d8886 public: minor refactoring 2026-02-26 10:29:09 +05:00
Alibek Omarov
fc9ab68837 public: link tests to build_vcs too 2026-02-23 23:25:24 +05:00
Alibek Omarov
2bdc22fbeb public: exclude build_vcs from libpublic dependencies, add it per project 2026-02-23 21:48:23 +05:00
Alibek Omarov
6bcb98e779 public: replace COM_CheckString and COM_CheckStringEmpty by COM_StringEmptyOrNULL and COM_StringEmpty. Remove legacy macros 2026-02-21 01:20:34 +05:00
Alibek Omarov
ae15886a14 public: add COM_StringEmpty and COM_StringEmptyOrNULL macros (that eventually replace less obvious COM_CheckString and COM_CheckStringEmpty) 2026-02-21 01:20:34 +05:00
Владислав Сухов
d391ef1747 public: crtlib: make COM_FixSlashes remove duplicate slashes 2026-01-30 02:25:44 +05:00
Alibek Omarov
1c6eb85a12 public: crtlib: modify format of Q_timestamp TIME_FILENAME to make it sortable 2026-01-19 22:33:49 +05:00
ksagameng
0976d96419 crtlib: Force use xash strchrnul implementation on ios 2026-01-05 09:37:20 +05:00
Xav101
15bbe9892e public: mathlib: add parenthesis to fix ambiguous order of operations 2025-11-17 03:08:38 +08:00
Alibek Omarov
0dfeea5213 Migrate to library-suffix library 2025-11-11 06:59:41 +05:00
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