move macos to own folder
Test and Deploy / test (push) Successful in 11s Details
Test and Deploy / docs (push) Successful in 18s Details

This commit is contained in:
Evan Burkey 2024-07-07 02:17:47 -07:00
parent a99d1d3784
commit 074798ed62
4 changed files with 5 additions and 4 deletions

View File

@ -20,7 +20,7 @@ set(SOURCES
)
if ((${CMAKE_SYSTEM_NAME} STREQUAL "Darwin"))
add_library(flint ${SOURCES} src/macos.c)
add_library(flint ${SOURCES} src/macos/macos.c)
else()
add_library(flint ${SOURCES})
endif()

View File

@ -20,7 +20,7 @@ static const char b64_table[] = {
typedef struct {
unsigned char *ptr;
int count;
size_t count;
} b64_buf;
static int new_b64_buf(b64_buf *b) {
@ -204,7 +204,7 @@ unsigned char *b64_decode(const char *s, size_t sz, size_t *decode_sz) {
unsigned char *hex_decode(const char *orig, size_t *sz) {
size_t buf_sz = strlen(orig) + 1;
char *sptr = orig;
const char *sptr = orig;
if (strncmp(orig, "0x", 2) == 0) {
buf_sz -= 2;
sptr += 2;

View File

@ -25,4 +25,5 @@ int simple_english_scoring(const char *s) {
score += ses_score_sw(*c);
}
return score;
}
}