diff --git a/src/Makefile.am b/src/Makefile.am index 789b5e7..65c9d1d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -31,9 +31,9 @@ apfl_internal_headers += context.h apfl_internal_headers += format.h apfl_internal_headers += gc.h apfl_internal_headers += hashmap.h -apfl_internal_headers += internal.h apfl_internal_headers += resizable.h apfl_internal_headers += scope.h +apfl_internal_headers += strings.h apfl_internal_headers += value.h EXTRA_DIST = $(apfl_internal_headers) apfl.h diff --git a/src/context.c b/src/context.c index c703678..1482bed 100644 --- a/src/context.c +++ b/src/context.c @@ -7,8 +7,8 @@ #include "context.h" #include "gc.h" #include "hashmap.h" -#include "internal.h" #include "resizable.h" +#include "strings.h" #include "value.h" static struct stack * diff --git a/src/eval.c b/src/eval.c index 3b4f007..c59aea3 100644 --- a/src/eval.c +++ b/src/eval.c @@ -7,7 +7,7 @@ #include "compile.h" #include "context.h" #include "hashmap.h" -#include "internal.h" +#include "strings.h" #include "value.h" #define TRY(ex) \ diff --git a/src/expr.c b/src/expr.c index 4e9da57..38a8165 100644 --- a/src/expr.c +++ b/src/expr.c @@ -6,7 +6,6 @@ #include "alloc.h" #include "format.h" -#include "internal.h" #define TRY(x) do { if (!(x)) return false; } while (0) diff --git a/src/parser.c b/src/parser.c index 6acdc68..6019dc2 100644 --- a/src/parser.c +++ b/src/parser.c @@ -6,7 +6,6 @@ #include "alloc.h" #include "resizable.h" -#include "internal.h" struct apfl_parser { struct apfl_allocator allocator; diff --git a/src/strings.c b/src/strings.c index 8d2d7fd..4131174 100644 --- a/src/strings.c +++ b/src/strings.c @@ -7,8 +7,8 @@ #include "alloc.h" #include "gc.h" -#include "internal.h" #include "resizable.h" +#include "strings.h" struct apfl_string_view apfl_string_view_from_view(struct apfl_string_view view) diff --git a/src/internal.h b/src/strings.h similarity index 61% rename from src/internal.h rename to src/strings.h index 96c527c..a53f8fb 100644 --- a/src/internal.h +++ b/src/strings.h @@ -1,17 +1,13 @@ -#ifndef APFL_INTERNAL_H -#define APFL_INTERNAL_H +#ifndef APFL_STRINGS_H +#define APFL_STRINGS_H #ifdef __cplusplus extern "C" { #endif -#include -#include - +#include "apfl.h" #include "gc.h" -// Internal use only functions - struct apfl_string *apfl_string_move_into_new_gc_string(struct gc *gc, struct apfl_string *in); #ifdef __cplusplus diff --git a/src/value.c b/src/value.c index 8e88bea..28334b4 100644 --- a/src/value.c +++ b/src/value.c @@ -5,7 +5,6 @@ #include "alloc.h" #include "context.h" #include "format.h" -#include "internal.h" #include "resizable.h" #include "hashmap.h" #include "value.h"