Alibek Omarov
aee5e46516
public: rewrite Q_strncpy with standard C functions, make it inlined to allow compiler remove unneeded checks
...
So far, passes all tests.
1 year ago
Alibek Omarov
ff436ae100
public: crtlib: add safe COM_DefaultExtension and COM_ReplaceExtension
2 years ago
Alibek Omarov
ac39090f6e
public: crtlib: add safe COM_FileBase implementation
2 years ago
Alibek Omarov
b16fa8eddc
public: remove Q_strcat and Q_strcpy, and patch the code that uses it
2 years ago
Alibek Omarov
b333edeefe
public: crtlib: remove unused Q_strlwr macro
2 years ago
Alibek Omarov
096ee34f67
public: remove Q_vsprintf, replace by proper Q_vsnprintf proper calls
...
Fixes weird off by one error caused by glibc updates? I didn't tracked
what causes it exactly but replacing it seems to work. Anyway, we should
remove all 99999 hacks in libpublic.
2 years ago
Alibek Omarov
e4a5b95e81
public: build: split Q_buildnum to separate function that calculates build number from arbitrary date string
2 years ago
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
5d98e13fb8
public: add Q_ArcitectureStringByID function to get library naming compliant CPU and ABI string
2 years ago
Alibek Omarov
1dc3cc2d57
public: add Q_PlatformStringByID function that returns library naming compliant string by platform identifier from buildenums
2 years ago
Alibek Omarov
07e622f224
public: add generic implementation for Q_memmem
2 years ago
Alibek Omarov
071638794a
public: redefine Q_strpbrk to C standard version, add Q_strchrnul
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
12ea6dcfd7
public: move build.c from engine to public library, in preparation of filesystem_stdio merge
2 years ago
Alibek Omarov
a9c82dbe21
public: make crtlib linkable with C++
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
2 years ago
Alibek Omarov
12815bfbf2
public: remove naive implementations of standard function, add them with standard C with few extensions
2 years ago
Alibek Omarov
ab6214142f
public: remove custom str(r)chr functions
2 years ago
Velaron
15dc25d2cd
engine: rename Q_cleanstr to something more meaningful
2 years ago
Velaron
568c7fd917
engine: strip color codes when writing to log
2 years ago
Alibek Omarov
9ce8edcb38
public: moved compiler attributes to xash3d_types.h
3 years ago
Alibek Omarov
56103a90eb
engine: client: limit token size in client dll parsefile to 1024 (GoldSrc value)
3 years ago
Alibek Omarov
ccf90beb7d
public: crtlib: add Q_isspace function
3 years ago
Alibek Omarov
f60112773f
public: crtlib: include string.h for strlen
3 years ago
Alibek Omarov
3771a1d6c5
public: replace our Q_strlen with standard strlen with nullptr check in macro
3 years ago
Alibek Omarov
e5e1570aed
public: redeclare ParseFile flags to be exactly same as in exported API headers
3 years ago
Alibek Omarov
f3fedbfdba
engine: add safe ParseFile to menu extended API
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
cce7c7d782
public: declare unsafe ParseFile as ParseFileLegacy
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
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
Andrey Akhmichin
abd9778ef3
engine: common: simplified strings operations.
4 years ago
Andrey Akhmichin
23ea7ecbcc
public: optimize MD5_Print function.
4 years ago
Andrey Akhmichin
7a58813254
utils: add studio model decompiler.
5 years ago
Alibek Omarov
0fe18ae6dc
engine: fix -Wmaybe-uninitialized
5 years ago
Alibek Omarov
e700a7498e
engine: move matchpattern from old engine
5 years ago
Alibek Omarov
76a8fe4873
engine: use build.h for printing architecture and operating system, also implement architecture names from library naming scheme proposal ( #39 )
6 years ago
Alibek Omarov
70d45f23de
public: crclib now is part of public library
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
d0d5fd1a3f
ref: fix some undefined references, compile-in mathlib and crtlib to refdll
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
99bd7c81da
ref: render code moved out of engine, doesn't compile, first API prototype
6 years ago
Alibek Omarov
814b7eda07
Apply 4140 update
7 years ago
Alibek Omarov
5a449a56ea
Port restricted cmds and cvars from old engine. TODO: implement better stufftext filter
7 years ago