Skip to content

Commit 02e73c0

Browse files
committed
Use decl/ folder to hold forward declarations
1 parent 5c78457 commit 02e73c0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/decl/ptype-decl.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef VCTRS_PTYPE_DECL_H
2+
#define VCTRS_PTYPE_DECL_H
3+
4+
static inline SEXP vec_ptype_method(SEXP x);
5+
static inline SEXP vec_ptype_invoke(SEXP x, SEXP method);
6+
7+
#endif

src/type.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "ptype2.h"
55
#include "type-data-frame.h"
66
#include "utils.h"
7+
#include "decl/ptype-decl.h"
78

89
// Initialised at load time
910
static SEXP syms_vec_ptype = NULL;
@@ -56,9 +57,6 @@ static inline SEXP vec_ptype_slice(SEXP x, SEXP empty) {
5657
}
5758
}
5859

59-
static inline SEXP vec_ptype_method(SEXP x);
60-
static inline SEXP vec_ptype_invoke(SEXP x, SEXP method);
61-
6260
static SEXP s3_type(SEXP x, struct vctrs_arg* x_arg) {
6361
switch (class_type(x)) {
6462
case vctrs_class_bare_tibble:

0 commit comments

Comments
 (0)