Skip to content

Commit

Permalink
Rename jv_type_private.h to jv_private.h, move jvp_number_is_nan there
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Aug 3, 2023
1 parent dcaf701 commit 491341f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void *alloca (size_t);
#include "locfile.h"
#include "jv_unicode.h"
#include "jv_alloc.h"

#include "jv_private.h"

static jv type_error(jv bad, const char* msg) {
char errbuf[15];
Expand Down
1 change: 0 additions & 1 deletion src/jv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/jv_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/jv_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions src/jv_private.h
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions src/jv_type_private.h

This file was deleted.

0 comments on commit 491341f

Please sign in to comment.