fb6e310eab
public: move va() function back to engine, it's not recommended to use in shared modules
2023-03-13 02:44:59 +03:00
3765686077
public: make va() buffer size public
2023-03-11 05:28:17 +03:00
4684f174ee
public: completely get rid of PATH_SEPARATOR macros
2023-01-05 06:06:07 +03:00
75ccd2283b
public: fix Q_memmem counting haystack size incorrectly
2023-01-04 17:17:18 +03:00
07e622f224
public: add generic implementation for Q_memmem
2023-01-03 06:58:58 +03:00
e1ea3387ee
common: rename PATH_SPLITTER to PATH_SEPARATOR, change it's type to character
2022-12-27 02:31:46 +03:00
071638794a
public: redefine Q_strpbrk to C standard version, add Q_strchrnul
2022-12-27 02:31:46 +03:00
Andrey Akhmichin
3488d4e65f
public: simplified strings operations.
2022-11-18 19:32:17 +03:00
7f1bb9b4a6
public: introduce Q_strnicmpext function
...
The goal is to provide both string compare with fixed length and simple pattern match
2022-08-25 19:21:47 +03:00
5e4fc64430
filesystem: introduce new module, based on engine filesystem.
...
The goal is to share filesystem code between engine and
utilities and provide C++ VFileSystem interface in the future
2022-07-28 18:56:02 +03:00
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2022-07-26 03:17:11 +03:00
fb43a5590f
public: Q_strstr should return pointer to non-const data
2022-06-29 04:02:40 +03:00
12815bfbf2
public: remove naive implementations of standard function, add them with standard C with few extensions
2022-06-29 02:42:47 +03:00
ab6214142f
public: remove custom str(r)chr functions
2022-06-14 03:23:46 +03:00
15dc25d2cd
engine: rename Q_cleanstr to something more meaningful
2022-06-13 23:36:13 +03:00
568c7fd917
engine: strip color codes when writing to log
2022-06-13 23:36:13 +03:00
ccf90beb7d
public: crtlib: add Q_isspace function
2022-01-04 02:22:20 +03:00
4f89288ccf
common: cleanup port.h
2021-12-23 19:17:11 +03:00
3771a1d6c5
public: replace our Q_strlen with standard strlen with nullptr check in macro
2021-12-03 09:44:51 +03:00
378c4f30f3
public: ParseFile drops const qualifier, return -1 length on overflow
...
As we usually put allocated data to ParseFile, we don't need const qualifier
2021-10-08 17:31:32 +03:00
9e5d5e0ea3
public: moved COM_ParseFileSafe to libpublic, added optional argument for length and overflow checking
2021-10-08 17:31:32 +03:00
4723eb2586
public: crtlib: fix error in COM_SlashPathFix
2021-07-02 19:27:04 +03:00
29902f48d5
public: oops, fix broken crtlib
2021-03-10 13:38:36 +03:00
d25a661701
public: moar int to size_t for string length
2021-03-10 13:18:23 +03:00
6cc2205321
public: strlen must return size_t, not int
2021-03-07 03:38:54 +03:00
5884cf88d3
crtlib: fix undefined behaviour when stripping extenstion from empty string
2021-02-14 21:33:41 +00:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
abd9778ef3
engine: common: simplified strings operations.
2020-11-28 23:20:14 +03:00
23ea7ecbcc
public: optimize MD5_Print function.
2020-09-14 14:28:47 +03:00
4c6fd79f07
tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already
2020-03-30 00:42:10 +03:00
7a58813254
utils: add studio model decompiler.
2020-03-04 09:23:12 +03:00
9a0da3cd4f
public: crtlib.c: reduce memory usage.
2020-02-12 14:40:19 +05:00
15924aebaa
xash3d-fwgs: check if HAVE_TGMATH_H is set to positive value rather it's just defined
2019-11-05 01:41:35 +03:00
78baf568ae
engine: more double promotion fixes
2019-10-18 16:46:54 +03:00
0577ecbccf
public: initial fix of double promotion
2019-10-18 16:46:54 +03:00
e0d993a5a8
public: fix tautological-compare
2019-10-18 07:23:34 +03:00
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
2019-07-19 20:23:08 +03:00
e700a7498e
engine: move matchpattern from old engine
2019-07-09 16:36:15 +03:00
fb6fd61cd9
public: initial moving some common code into static public library, that can be linked to any engine part
2019-03-20 01:17:46 +03:00