Skip to content

Commit 2cfdb22

Browse files
authored
Merge pull request #122 from darioizzo/master
complex type changed in f2c and user classes
2 parents e9b0a01 + 1c0af0f commit 2cfdb22

File tree

13 files changed

+529
-547
lines changed

13 files changed

+529
-547
lines changed

include/keplerian_toolbox/third_party/cspice/f2c.h

Lines changed: 254 additions & 263 deletions
Large diffs are not rendered by default.

src/third_party/cspice/c_abs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#ifdef KR_headers
44
extern double f__cabs();
55

6-
double c_abs(z) complex *z;
6+
double c_abs(z) complex_type *z;
77
#else
88
extern double f__cabs(double, double);
99

10-
double c_abs(complex *z)
10+
double c_abs(complex_type *z)
1111
#endif
1212
{
1313
return( f__cabs( z->r, z->i ) );

src/third_party/cspice/c_cos.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#ifdef KR_headers
44
extern double sin(), cos(), sinh(), cosh();
55

6-
VOID c_cos(r, z) complex *r, *z;
6+
VOID c_cos(r, z) complex_type *r, *z;
77
#else
88
#undef abs
99
#include "math.h"
1010

11-
void c_cos(complex *r, complex *z)
11+
void c_cos(complex_type *r, complex_type *z)
1212
#endif
1313
{
1414
double zr = z->r;

src/third_party/cspice/c_div.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#ifdef KR_headers
44
extern VOID sig_die();
55
VOID c_div(c, a, b)
6-
complex *a, *b, *c;
6+
complex_type *a, *b, *c;
77
#else
88
extern void sig_die(char*,int);
9-
void c_div(complex *c, complex *a, complex *b)
9+
void c_div(complex_type *c, complex_type *a, complex_type *b)
1010
#endif
1111
{
1212
double ratio, den;

src/third_party/cspice/c_exp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#ifdef KR_headers
44
extern double exp(), cos(), sin();
55

6-
VOID c_exp(r, z) complex *r, *z;
6+
VOID c_exp(r, z) complex_type *r, *z;
77
#else
88
#undef abs
99
#include "math.h"
1010

11-
void c_exp(complex *r, complex *z)
11+
void c_exp(complex_type *r, complex_type *z)
1212
#endif
1313
{
1414
double expx;

src/third_party/cspice/c_log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
#ifdef KR_headers
44
extern double log(), f__cabs(), atan2();
5-
VOID c_log(r, z) complex *r, *z;
5+
VOID c_log(r, z) complex_type *r, *z;
66
#else
77
#undef abs
88
#include "math.h"
99
extern double f__cabs(double, double);
1010

11-
void c_log(complex *r, complex *z)
11+
void c_log(complex_type *r, complex_type *z)
1212
#endif
1313
{
1414
double zi;

src/third_party/cspice/c_sin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#ifdef KR_headers
44
extern double sin(), cos(), sinh(), cosh();
55

6-
VOID c_sin(r, z) complex *r, *z;
6+
VOID c_sin(r, z) complex_type *r, *z;
77
#else
88
#undef abs
99
#include "math.h"
1010

11-
void c_sin(complex *r, complex *z)
11+
void c_sin(complex_type *r, complex_type *z)
1212
#endif
1313
{
1414
double zr = z->r;

src/third_party/cspice/c_sqrt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
#ifdef KR_headers
44
extern double sqrt(), f__cabs();
55

6-
VOID c_sqrt(r, z) complex *r, *z;
6+
VOID c_sqrt(r, z) complex_type *r, *z;
77
#else
88
#undef abs
99
#include "math.h"
1010
extern double f__cabs(double, double);
1111

12-
void c_sqrt(complex *r, complex *z)
12+
void c_sqrt(complex_type *r, complex_type *z)
1313
#endif
1414
{
1515
double mag, t;

0 commit comments

Comments
 (0)