Alibek Omarov
37e3cf7e86
public: crtlib: remove unused functions
2 years ago
Alibek Omarov
fb6e310eab
public: move va() function back to engine, it's not recommended to use in shared modules
2 years ago
Alibek Omarov
3765686077
public: make va() buffer size public
2 years ago
Alibek Omarov
4684f174ee
public: completely get rid of PATH_SEPARATOR macros
2 years ago
Alibek Omarov
75ccd2283b
public: fix Q_memmem counting haystack size incorrectly
2 years ago
Alibek Omarov
07e622f224
public: add generic implementation for Q_memmem
2 years ago
Alibek Omarov
e1ea3387ee
common: rename PATH_SPLITTER to PATH_SEPARATOR, change it's type to character
2 years ago
Alibek Omarov
071638794a
public: redefine Q_strpbrk to C standard version, add Q_strchrnul
2 years ago
Andrey Akhmichin
3488d4e65f
public: simplified strings operations.
2 years ago
Alibek Omarov
7f1bb9b4a6
public: introduce Q_strnicmpext function
...
The goal is to provide both string compare with fixed length and simple pattern match
2 years ago
Alibek Omarov
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
2 years ago
Alibek Omarov
5350d88f57
public: crtlib: add quotation mark support for ParseFile, required for filesystem_stdio
2 years ago
Alibek Omarov
fb43a5590f
public: Q_strstr should return pointer to non-const data
3 years ago
Alibek Omarov
12815bfbf2
public: remove naive implementations of standard function, add them with standard C with few extensions
3 years ago
Alibek Omarov
ab6214142f
public: remove custom str(r)chr functions
3 years ago
Velaron
15dc25d2cd
engine: rename Q_cleanstr to something more meaningful
3 years ago
Velaron
568c7fd917
engine: strip color codes when writing to log
3 years ago
Alibek Omarov
ccf90beb7d
public: crtlib: add Q_isspace function
3 years ago
Alibek Omarov
4f89288ccf
common: cleanup port.h
3 years ago
Alibek Omarov
3771a1d6c5
public: replace our Q_strlen with standard strlen with nullptr check in macro
3 years ago
Alibek Omarov
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
3 years ago
Alibek Omarov
9e5d5e0ea3
public: moved COM_ParseFileSafe to libpublic, added optional argument for length and overflow checking
3 years ago
Alibek Omarov
4723eb2586
public: crtlib: fix error in COM_SlashPathFix
4 years ago
Alibek Omarov
29902f48d5
public: oops, fix broken crtlib
4 years ago
Alibek Omarov
d25a661701
public: moar int to size_t for string length
4 years ago
Alibek Omarov
6cc2205321
public: strlen must return size_t, not int
4 years ago
mittorn
5884cf88d3
crtlib: fix undefined behaviour when stripping extenstion from empty string
4 years ago
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:]]\+$//' {} \+
```
4 years ago
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
23ea7ecbcc
public: optimize MD5_Print function.
4 years ago
Alibek Omarov
4c6fd79f07
tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already
5 years ago
Andrey Akhmichin
7a58813254
utils: add studio model decompiler.
5 years ago
Andrey Akhmichin
9a0da3cd4f
public: crtlib.c: reduce memory usage.
5 years ago
Alibek Omarov
15924aebaa
xash3d-fwgs: check if HAVE_TGMATH_H is set to positive value rather it's just defined
5 years ago
Alibek Omarov
78baf568ae
engine: more double promotion fixes
5 years ago
Alibek Omarov
0577ecbccf
public: initial fix of double promotion
5 years ago
Alibek Omarov
e0d993a5a8
public: fix tautological-compare
5 years ago
Alibek Omarov
2f8fec6b70
Remove trailing spaces, convert mistakenly put spaces to tabs. The most useful commit ever.
5 years ago
Alibek Omarov
e700a7498e
engine: move matchpattern from old engine
6 years ago
Alibek Omarov
fb6fd61cd9
public: initial moving some common code into static public library, that can be linked to any engine part
6 years ago
mittorn
4247af8fa8
Reduce engine dependencies. crtlib/mathlib/matrixlib now can be built standalone
6 years ago
Alibek Omarov
234507b7f1
ref: fix all undefined references
6 years ago
Alibek Omarov
e7234bada2
ref: now it compiles, not linking yet. ref_api header moved to engine/ to clarify, that it's sort of engine internals
6 years ago
Alibek Omarov
aae3510763
Apply 4281 update
6 years ago
Alibek Omarov
814b7eda07
Apply 4140 update
7 years ago
Alibek Omarov
34f6f6d539
Fix implicit declaration on dedicated
7 years ago
Alibek Omarov
9bab7d222a
Apply 4097 update
7 years ago
Alibek Omarov
f7a58ec04d
Remove MSVC-specific try-except for C in Q_vsnprintf
7 years ago
Alibek Omarov
8d6e3b7f79
Pure engine source code(LF line endings, UTF8 encoded)
7 years ago