Skip to content

Commit 0c38e91

Browse files
committed
Update header file to latest from JuliaLibWrapping.jl
1 parent f5ffa0c commit 0c38e91

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

test/trimming/capplication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
int main() {
55
// Example usage of the functions defined in libsimple.h
6-
CVectorPair_float_ vecPair;
6+
CVectorPair_Float32 vecPair;
77
vecPair.from.length = 3;
88
vecPair.from.data = (float[]){1.0f, 2.0f, 3.0f};
99
vecPair.to.length = 3;

test/trimming/libsimple.h

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,28 @@
44
#include <stdint.h>
55
#include <stdbool.h>
66

7-
typedef struct {
7+
struct CTree_Float64;
8+
typedef struct CVector_CTree_Float64 {
89
int32_t length;
9-
float * data;
10-
} CVector_float_;
11-
typedef struct {
12-
CVector_float_ from;
13-
CVector_float_ to;
14-
} CVectorPair_float_;
15-
typedef struct {
10+
struct CTree_Float64* data;
11+
} CVector_CTree_Float64;
12+
typedef struct CTree_Float64 {
13+
CVector_CTree_Float64 children;
14+
} CTree_Float64;
15+
typedef struct MyTwoVec {
1616
int32_t x;
1717
int32_t y;
1818
} MyTwoVec;
19+
typedef struct CVector_Float32 {
20+
int32_t length;
21+
float* data;
22+
} CVector_Float32;
23+
typedef struct CVectorPair_Float32 {
24+
CVector_Float32 from;
25+
CVector_Float32 to;
26+
} CVectorPair_Float32;
1927

20-
int32_t countsame(MyTwoVec * list, int32_t n);
21-
float copyto_and_sum(CVectorPair_float_ fromto);
28+
float copyto_and_sum(CVectorPair_Float32 fromto);
29+
int64_t tree_size(CTree_Float64 tree);
30+
int32_t countsame(MyTwoVec* list, int32_t n);
2231
#endif // JULIALIB_LIBSIMPLE_H

0 commit comments

Comments
 (0)