Hi all, I first proposed this change over two and a half years ago.[1] Unfortunately, it never seemed to gain any traction. I figured I'd give it another shot.
Adding this open-source implementation of memrchr() allows for CGIT to be built on macOS. This can be very convenient, be it for CGIT development or to have a local CGIT instance that'll work even without network connection. The change seems quite small and well contained (less than 60 lines of code added; no other platform affected), and it enables an additional platform/OS for CGIT. Proof that it actually builds (x86 works too, of course): $ file cgit cgit: Mach-O 64-bit executable arm64 $ otool -L cgit cgit: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (...) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0) Regards, -Markus [1] https://www.mail-archive.com/[email protected]/msg03014.html Markus Mayer (1): global: provide memrchr implementation for macOS cgit.h | 4 ++++ cgit.mk | 9 +++++++++ memrchr.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 memrchr.c -- 2.39.0
