Alibek Omarov
5d98e13fb8
public: add Q_ArcitectureStringByID function to get library naming compliant CPU and ABI string
2 years ago
Alibek Omarov
113904ea91
public: fix build
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
15a5975abf
public: build.h refactoring, removed XASH_MSVC, XASH_MINGW, as this header never intended to detect the compiler
2 years ago
Alibek Omarov
65debeb738
public: add header buildenums.h declaring all platforms, architectures and ABIs as integer constants.
2 years ago
Alibek Omarov
209a03a12a
engine, public: prepare to removal of XASH_MSVC macro
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
Andrey Akhmichin
c1fe547925
public: update miniz to version 3.0.0 from upstream.
2 years ago
Alibek Omarov
e54289f811
public: wscript: add dummy sdk_includes target that only exposes standard HLSDK include paths
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
a2d11f670a
engine, public: fix float precision issues in mathlib and monster navigation code
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
Jesse Buhagiar
b23d5ed354
Build: Add SerenityOS to list of compatible systems
...
This is required by the build system to spit out a library with
the correct name/platform.
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
9ce8edcb38
public: moved compiler attributes to xash3d_types.h
3 years ago
SNMetamorph
24ea8fba4b
engine: common: fixed lightmap shifting caused by insufficent precision in Mod_CalcSurfaceExtents
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
4f89288ccf
common: cleanup port.h
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
207675990e
public: build: fix missing define value
3 years ago
Alibek Omarov
ab256e294e
public: build: add RISC-V support(based on @archanox patches), add forcing endianness from build system
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
SNMetamorph
af3c0686c5
engine: mathlib: added Q_equal macros
3 years ago
Alibek Omarov
4723eb2586
public: crtlib: fix error in COM_SlashPathFix
4 years ago
Alibek Omarov
91ee9bd32a
engine: merge tests for imagelib
4 years ago
exstrim401
b7922368bd
engine: Haiku OS support ( #478 )
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
Alibek Omarov
385cc3f497
public: remote obsolete header
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