diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-13 15:21:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-13 15:21:45 +0900 |
| commit | d8165f2b38c6405d506649d93112bad62d3d9ec0 (patch) | |
| tree | 91e805adbe9ad1ee334d1096fc656af3a603ab35 /src | |
| parent | 08a03629004cf6dd5e3beaab1af422483bb0bd48 (diff) | |
| download | ducc-d8165f2b38c6405d506649d93112bad62d3d9ec0.tar.gz ducc-d8165f2b38c6405d506649d93112bad62d3d9ec0.tar.zst ducc-d8165f2b38c6405d506649d93112bad62d3d9ec0.zip | |
feat: include <string.h>
Diffstat (limited to 'src')
| -rw-r--r-- | src/ast.c | 1 | ||||
| -rw-r--r-- | src/cli.c | 1 | ||||
| -rw-r--r-- | src/codegen.c | 1 | ||||
| -rw-r--r-- | src/common.c | 1 | ||||
| -rw-r--r-- | src/fs.c | 1 | ||||
| -rw-r--r-- | src/io.c | 1 | ||||
| -rw-r--r-- | src/main.c | 1 | ||||
| -rw-r--r-- | src/parse.c | 1 | ||||
| -rw-r--r-- | src/preprocess.c | 1 | ||||
| -rw-r--r-- | src/std.h | 10 | ||||
| -rw-r--r-- | src/token.c | 1 | ||||
| -rw-r--r-- | src/tokenize.c | 1 |
12 files changed, 11 insertions, 10 deletions
@@ -1,4 +1,5 @@ #include "ast.h" +#include <string.h> #include "common.h" #include "preprocess.h" @@ -1,5 +1,6 @@ #include "cli.h" #include <stdio.h> +#include <string.h> #include "common.h" #include "version.h" diff --git a/src/codegen.c b/src/codegen.c index dccabe4..6b3c858 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1,4 +1,5 @@ #include "codegen.h" +#include <string.h> #include "common.h" #include "preprocess.h" diff --git a/src/common.c b/src/common.c index 02bb712..75ca0ca 100644 --- a/src/common.c +++ b/src/common.c @@ -1,6 +1,7 @@ #include "common.h" #include <stdarg.h> #include <stdio.h> +#include <string.h> void fatal_error(const char* msg, ...) { va_list args; @@ -1,4 +1,5 @@ #include "fs.h" +#include <string.h> #include "std.h" // 'ext' must include '.'. @@ -1,5 +1,6 @@ #include "io.h" #include <stdio.h> +#include <string.h> #include "common.h" #include "json.h" @@ -1,3 +1,4 @@ +#include <string.h> #include "ast.h" #include "cli.h" #include "codegen.h" diff --git a/src/parse.c b/src/parse.c index f9c4cea..14fd7d2 100644 --- a/src/parse.c +++ b/src/parse.c @@ -1,5 +1,6 @@ #include "parse.h" #include <stdio.h> +#include <string.h> #include "common.h" #include "tokenize.h" diff --git a/src/preprocess.c b/src/preprocess.c index bd7feae..5e029f2 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -1,6 +1,7 @@ #include "preprocess.h" #include <ctype.h> #include <stdio.h> +#include <string.h> #include "common.h" #include "parse.h" #include "sys.h" @@ -6,18 +6,8 @@ int atoi(const char*); void* calloc(size_t, size_t); void exit(int); -void* memcpy(void*, const void*, size_t); -void* memmove(void*, const void*, size_t); -void* memset(void*, int, size_t); int mkstemps(char*, int); void* realloc(void*, size_t); -int strcmp(const char*, const char*); -size_t strlen(const char*); -int strncmp(const char*, const char*, size_t); -char* strdup(const char*); -char* strndup(const char*, size_t); -char* strstr(const char*, const char*); -char* strrchr(const char*, int); long strtol(const char*, char**, int); int system(const char*); diff --git a/src/token.c b/src/token.c index e825de1..1942ffb 100644 --- a/src/token.c +++ b/src/token.c @@ -1,5 +1,6 @@ #include "token.h" #include <stdio.h> +#include <string.h> #include "common.h" #include "json.h" diff --git a/src/tokenize.c b/src/tokenize.c index c897b02..c6f46a5 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -1,4 +1,5 @@ #include "tokenize.h" +#include <string.h> #include "common.h" typedef struct { |
