diff options
author | itchyny <itchyny@cybozu.co.jp> | 2023-08-04 08:13:48 +0900 |
---|---|---|
committer | Emanuele Torre <torreemanuele6@gmail.com> | 2023-08-13 14:16:02 +0200 |
commit | f86566b2631b777c0d0c9a4572eb21146a14829b (patch) | |
tree | 145f23c0525036ea0077083718bff0eaf949f201 | |
parent | f31c180e8f38c085c4366a91f9bfffc2dd7c2bc2 (diff) |
Rename jv_type_private.h to jv_private.h, move jvp_number_is_nan there
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | src/builtin.c | 1 | ||||
-rw-r--r-- | src/jv.h | 1 | ||||
-rw-r--r-- | src/jv_aux.c | 2 | ||||
-rw-r--r-- | src/jv_print.c | 2 | ||||
-rw-r--r-- | src/jv_private.h | 7 | ||||
-rw-r--r-- | src/jv_type_private.h | 6 |
7 files changed, 11 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am index 2cd6b5f2..78888ade 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,7 @@ LIBJQ_INCS = src/builtin.h src/bytecode.h src/compile.h \ src/linker.h src/locfile.h src/opcode_list.h src/parser.y \ src/util.h src/decNumber/decContext.h src/decNumber/decNumber.h \ src/decNumber/decNumberLocal.h src/jv_dtoa_tsd.h src/jv_thread.h \ - src/jv_type_private.h + src/jv_private.h LIBJQ_SRC = src/builtin.c src/bytecode.c src/compile.c src/execute.c \ src/jq_test.c src/jv.c src/jv_alloc.c src/jv_aux.c \ diff --git a/src/builtin.c b/src/builtin.c index 5476c659..2ea40dc5 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -43,6 +43,7 @@ void *alloca (size_t); #include "locfile.h" #include "jv_unicode.h" #include "jv_alloc.h" +#include "jv_private.h" #include "util.h" @@ -70,7 +70,6 @@ jv jv_number(double); jv jv_number_with_literal(const char*); double jv_number_value(jv); int jv_is_integer(jv); -int jvp_number_is_nan(jv); int jv_number_has_literal(jv n); const char* jv_number_get_literal(jv); diff --git a/src/jv_aux.c b/src/jv_aux.c index 6a5efa94..133fb54c 100644 --- a/src/jv_aux.c +++ b/src/jv_aux.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <assert.h> #include "jv_alloc.h" -#include "jv_type_private.h" +#include "jv_private.h" // making this static verbose function here // until we introduce a less confusing naming scheme diff --git a/src/jv_print.c b/src/jv_print.c index 4b757d7c..37236706 100644 --- a/src/jv_print.c +++ b/src/jv_print.c @@ -14,7 +14,7 @@ #include "jv_dtoa_tsd.h" #include "jv_unicode.h" #include "jv_alloc.h" -#include "jv_type_private.h" +#include "jv_private.h" #ifndef MAX_PRINT_DEPTH #define MAX_PRINT_DEPTH (256) diff --git a/src/jv_private.h b/src/jv_private.h new file mode 100644 index 00000000..066520fd --- /dev/null +++ b/src/jv_private.h @@ -0,0 +1,7 @@ +#ifndef JV_PRIVATE +#define JV_PRIVATE + +int jvp_number_cmp(jv, jv); +int jvp_number_is_nan(jv); + +#endif //JV_PRIVATE diff --git a/src/jv_type_private.h b/src/jv_type_private.h deleted file mode 100644 index a25254dc..00000000 --- a/src/jv_type_private.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef JV_TYPE_PRIVATE -#define JV_TYPE_PRIVATE - -int jvp_number_cmp(jv, jv); - -#endif //JV_TYPE_PRIVATE |