mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 11:35:46 +01:00
Compare commits
4 Commits
a7678c874c
...
1169ca98b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 1169ca98b1 | |||
| 75ebff9071 | |||
| 4f081e7f3e | |||
| 8a1ed6e3c4 |
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@@ -10,8 +10,8 @@ jobs:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- ubuntu-24.04-arm
|
||||
- windows-latest
|
||||
- windows-11-arm
|
||||
# - windows-latest
|
||||
# - windows-11-arm
|
||||
- macos-latest
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
@@ -32,6 +32,6 @@ jobs:
|
||||
path: lib/obj/
|
||||
key: ${{runner.os}}-lib/obj-${{github.sha}}
|
||||
restore-keys: ${{runner.os}}-lib/obj-
|
||||
- run: make libs
|
||||
- run: make all
|
||||
- run: make test
|
||||
- run: make -j libs
|
||||
- run: make -j all
|
||||
- run: make -j test
|
||||
|
||||
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ LD ?= ld
|
||||
# setting default compilation flags
|
||||
# some of which are able to be overwritten, others are always appended
|
||||
CPPFLAGS ?=
|
||||
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic
|
||||
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -Wno-pointer-arith
|
||||
LDFLAGS ?= -flto
|
||||
CFLAGS += -std=gnu99
|
||||
|
||||
|
||||
@@ -138,8 +138,8 @@ static char *conf_getpat_concat(const char *restrict s1, const char *restrict s2
|
||||
buf = ptr; // store the head pointer into buf
|
||||
|
||||
// copy data to the buffer
|
||||
ptr = mempcpy(ptr, s1, s1len); // copy s1 data to the buffer
|
||||
if (s2len) ptr = mempcpy(ptr, s2, s2len); // copy s2 data to the buffer (excluding null-terminator)
|
||||
ptr = memcpy(ptr, s1, s1len) + s1len; // copy s1 data to the buffer
|
||||
if (s2len) ptr = memcpy(ptr, s2, s2len) + s2len; // copy s2 data to the buffer (excluding null-terminator)
|
||||
(void)strcpy(ptr, s3); // copy s3 as a string, thus including null-terminator
|
||||
|
||||
// return the buffer
|
||||
|
||||
Reference in New Issue
Block a user