225 Commits

Author SHA1 Message Date
Sergey Fedorov 1561ba3596 Defines.h: add missing powerpc macros
See: https://github.com/radareorg/radare2/issues/26030
2026-06-04 08:55:41 +02:00
well-mannered-goat 7bf2ef164b add alpha arch detection 2026-05-23 07:04:14 +02:00
Florian Märkl f25786fa35 Add OpenBSD detection 2026-05-22 13:11:50 +02:00
Zephyr Lykos e008c670c2 ignore meson downloaded subprojects 2025-12-07 21:54:55 +01:00
Zephyr Lykos 8b38dd3197 fix: define ZYAN_PRINTF_ATTR on clang 2025-12-07 21:54:55 +01:00
Zephyr Lykos 2dfb60d8b7 tests: fix vector test on big-endian platforms (#93) 2025-10-08 10:30:48 +02:00
Benjamin Moir 06c17a7fa9 Scope public MSVC compile options to C,CXX (#92) 2025-08-14 19:36:03 +02:00
Alcaro 75a36c45ae Status.h: Make ZYAN_FAILED return ZYAN_FALSE or ZYAN_TRUE (#90) 2025-06-11 18:07:19 +02:00
Alcaro 13fea077c6 String.h: Fix ZYAN_STRING_TO_VEW typo 2025-06-11 17:35:34 +02:00
mappzor 7ad36e5211 Added ZYAN_ARCHITECTURE_WIDTH (#88) 2025-05-24 19:31:27 +02:00
mappzor dc72b4e99c Big endian support (#87) 2025-05-18 22:07:50 +02:00
StackOverflowExcept1on de93227392 chore: bump min cmake version to 3.10, update googletest 2025-05-06 13:56:50 +02:00
Zephyr Lykos c9daa45b96 tests: make FreeZyanU16 a ZyanMemberProcedure instead of a ZyanMemberFunction 2025-04-25 23:00:36 +02:00
Zephyr Lykos d6d6be334d build: simplify conditions, fix flags not being applied to .cpp 2025-04-25 23:00:36 +02:00
Joel Höner 0b2432ced0 Bump version to v1.5.2 v1.5.2 2025-02-09 16:19:45 +01:00
Zephyr Lykos cbb6e099b8 build: fix linking on emscripten 2025-02-07 13:53:09 +01:00
Zephyr Lykos 79d779a17c fix: dllexport on mingw 2025-02-07 13:53:09 +01:00
Zephyr Lykos b11856d6a8 build: support gnu symbol visibility when building DSO 2025-02-07 13:53:09 +01:00
Alcaro d2b47e29ea Add __attribute__((unused)) to ZYAN_STATIC_ASSERT
Fixes #81
2025-02-06 15:21:36 +01:00
Zephyr Lykos 7afed0ec12 Implement ZyanString example 2025-01-27 01:53:52 +01:00
Zephyr Lykos baba8da6fe Fix symbol visibility on clang-cl 2025-01-27 01:53:52 +01:00
Zephyr Lykos d511a9b925 Fix build failure on 32-bit 2025-01-27 01:53:52 +01:00
Zephyr Lykos 53f6d2730d Bump version to v1.5.1 (#77) v1.5.1 2025-01-09 16:57:26 +01:00
Zephyr Lykos 38d4f0285e Add meson build system support (#75) 2024-09-19 15:02:08 +02:00
Jérôme Duval 419cde9e92 Add Haiku support 2024-07-22 15:19:10 +02:00
Kai Pastor fb69402566 Add alias target "Zycore::Zycore" (#71) 2024-06-01 12:11:01 +02:00
Clayton 13114fa525 Fix issue with llvm-rc when ZYCORE_BUILD_SHARED_LIB is enabled (#70) 2024-04-07 08:44:10 +02:00
Joel Höner 74620eefd2 Bump version to v1.5.0 v1.5.0 2024-02-04 22:04:02 +01:00
Niclas Rosenvik a2fc93e461 Add support for more generic unix-like systems 2024-01-20 19:45:37 +01:00
Niclas Rosenvik c8ae81cc42 Add NetBSD support 2024-01-20 19:45:37 +01:00
Joel Höner f98abdfa0d Bump copyright year 2024-01-01 01:07:25 +01:00
wuruilong01 5f8caa05ba Add support for loongarch (#66) 2023-09-11 08:49:18 +02:00
Felix Wang cbba473a24 Set DOXYGEN_GENERATE_MAN config option to generate manpages 2023-06-07 14:52:25 +02:00
Joel Höner 685c3350ef Add missing (void) on functions without args
Multiple functions without arguments were missing the `(void)` that
prevents them from being interpreted as not having a prototype. Newer
Clang versions started printing warnings for that in pedantic mode.
2023-05-21 21:36:03 +02:00
Florian Bernd c6b1d5d6ff Add ZYAN_GETENV macro to LibC.h (#63) 2023-04-04 21:46:29 +02:00
Julian Pidancet 2acd5000b5 Better support for linux kernel (#62)
* Add the ZYAN_DIV64 macro

Add a macro for dividing 64bit numbers.

With 32bit linux targets, GCC generates a call to __udivdi3 when
dividing 64bit integers, even when compiling in freestanding mode.
However, the __udivdi3 implementation resides in libgcc which is not
linked-in when building kernel code.

Besides, the Linux kernel voluntarily doesn't implement __udivdi3 to
force developers to use the do_div macro instead [1].

[1] https://lwn.net/Articles/456689/

* Support for building with no libc on GCC version 4.4.7

Fallback to custom defined types when __*_TYPE__ macros are not defined
on GCC.

Old versions of GCC such as version 4.4.7 and prior do not define the
__*_TYPE__ macros, so provide custom type definition when building
without libc headers [1].

Also add custom definition for ZYAN_*_MAX and ZYAN_*_MIN values as
__*_MAX__ macros are also missing for the same reason [2].

[1] https://godbolt.org/z/j5Yhs48z9
[2] https://godbolt.org/z/1TvjTd5Ga
2023-03-03 09:29:51 +01:00
Florian Bernd 1401fb85ac Fix a label can only be part of a statement warning (#61) v1.4.1 2022-11-20 14:58:40 +01:00
mappzor 5f650a181b CMake: Enable CMAKE_MSVC_RUNTIME_LIBRARY (MSVC) 2022-11-20 01:44:42 +01:00
Joel Höner 6c958cfe2a Fix no-libc build on "other" platforms (#58)
The `ifdef` in `Process.c` previously didn't include the header selection,
resulting in "Unsupported platform detected" on non-Windows/non-Unix platforms
like Emscripten.
2022-10-24 20:21:36 +02:00
Joel Höner 59819206cc Bump version to v1.4.0 v1.4.0 2022-10-22 16:45:26 +02:00
r4ve1 4bc563f6d2 Fix build-system to better work with vcpkg (#56) 2022-10-13 12:11:35 +02:00
Joel Höner 4a8b5e2ab4 CMake: rename target doc -> ZycoreDoc
Both the documentation target in zycore and zydis were previously called
"doc" which caused a CMake error in zydis complaining about the same name
being used twice.
2022-10-09 22:02:36 +02:00
Florian Bernd a754e112e8 Bump version to 1.3.0 v1.3.0 2022-10-03 19:11:52 +02:00
pkubaj 3e95307df7 Add support for ppc(64) and riscv64 (#52) 2022-10-03 17:45:34 +02:00
Andrea Pappacoda 8f39333a9d build: only enable CXX if needed
This allows building Zycore when only a C compiler is installed
2022-10-03 14:26:31 +02:00
Andrea Pappacoda 7bd7569692 build: add doc target
This new target, only available if Doxygen is found on the build
machine, generates Doxygen documentation with CMake's doxygen_add_docs()
2022-10-03 14:26:31 +02:00
oberrich 7c33e13e8d Fix ZYAN_TRUE/ZYAN_FALSE signedness
Using inappropriate signedness emits `C4365` warnings when compiling with `cl.exe /Wall`
2022-09-30 18:00:54 +02:00
oberrich a0feec7ff2 Fix warning C4668 2022-09-30 18:00:54 +02:00
Joel Höner bdbd3ff40a Bump version to v1.2 v1.2.0 2022-09-11 17:07:19 +02:00
Matthew Olson 60b6ef1c3e Fix for dynamic libraries too 2022-07-09 01:44:14 +02:00