File tree Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 3
3
4
4
int main () {
5
5
// Example usage of the functions defined in libsimple.h
6
- CVectorPair_float_ vecPair ;
6
+ CVectorPair_Float32 vecPair ;
7
7
vecPair .from .length = 3 ;
8
8
vecPair .from .data = (float []){1.0f , 2.0f , 3.0f };
9
9
vecPair .to .length = 3 ;
Original file line number Diff line number Diff line change 4
4
#include <stdint.h>
5
5
#include <stdbool.h>
6
6
7
- typedef struct {
7
+ typedef struct CTree_Float64 CTree_Float64 ;
8
+ typedef struct CVector_CTree_Float64 {
8
9
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
+ CTree_Float64 * data ;
11
+ } CVector_CTree_Float64 ;
12
+ struct CTree_Float64 {
13
+ CVector_CTree_Float64 children ;
14
+ };
15
+ typedef struct MyTwoVec {
16
16
int32_t x ;
17
17
int32_t y ;
18
18
} 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 ;
19
27
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 );
22
31
#endif // JULIALIB_LIBSIMPLE_H
You can’t perform that action at this time.
0 commit comments