Skip to content

Commit

Permalink
Merge pull request #122 from darioizzo/master
Browse files Browse the repository at this point in the history
complex type changed in f2c and user classes
  • Loading branch information
darioizzo authored Apr 11, 2020
2 parents e9b0a01 + 1c0af0f commit 2cfdb22
Show file tree
Hide file tree
Showing 13 changed files with 529 additions and 547 deletions.
517 changes: 254 additions & 263 deletions include/keplerian_toolbox/third_party/cspice/f2c.h

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/third_party/cspice/c_abs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#ifdef KR_headers
extern double f__cabs();

double c_abs(z) complex *z;
double c_abs(z) complex_type *z;
#else
extern double f__cabs(double, double);

double c_abs(complex *z)
double c_abs(complex_type *z)
#endif
{
return( f__cabs( z->r, z->i ) );
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_cos.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#ifdef KR_headers
extern double sin(), cos(), sinh(), cosh();

VOID c_cos(r, z) complex *r, *z;
VOID c_cos(r, z) complex_type *r, *z;
#else
#undef abs
#include "math.h"

void c_cos(complex *r, complex *z)
void c_cos(complex_type *r, complex_type *z)
#endif
{
double zr = z->r;
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_div.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#ifdef KR_headers
extern VOID sig_die();
VOID c_div(c, a, b)
complex *a, *b, *c;
complex_type *a, *b, *c;
#else
extern void sig_die(char*,int);
void c_div(complex *c, complex *a, complex *b)
void c_div(complex_type *c, complex_type *a, complex_type *b)
#endif
{
double ratio, den;
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#ifdef KR_headers
extern double exp(), cos(), sin();

VOID c_exp(r, z) complex *r, *z;
VOID c_exp(r, z) complex_type *r, *z;
#else
#undef abs
#include "math.h"

void c_exp(complex *r, complex *z)
void c_exp(complex_type *r, complex_type *z)
#endif
{
double expx;
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#ifdef KR_headers
extern double log(), f__cabs(), atan2();
VOID c_log(r, z) complex *r, *z;
VOID c_log(r, z) complex_type *r, *z;
#else
#undef abs
#include "math.h"
extern double f__cabs(double, double);

void c_log(complex *r, complex *z)
void c_log(complex_type *r, complex_type *z)
#endif
{
double zi;
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_sin.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#ifdef KR_headers
extern double sin(), cos(), sinh(), cosh();

VOID c_sin(r, z) complex *r, *z;
VOID c_sin(r, z) complex_type *r, *z;
#else
#undef abs
#include "math.h"

void c_sin(complex *r, complex *z)
void c_sin(complex_type *r, complex_type *z)
#endif
{
double zr = z->r;
Expand Down
4 changes: 2 additions & 2 deletions src/third_party/cspice/c_sqrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#ifdef KR_headers
extern double sqrt(), f__cabs();

VOID c_sqrt(r, z) complex *r, *z;
VOID c_sqrt(r, z) complex_type *r, *z;
#else
#undef abs
#include "math.h"
extern double f__cabs(double, double);

void c_sqrt(complex *r, complex *z)
void c_sqrt(complex_type *r, complex_type *z)
#endif
{
double mag, t;
Expand Down
Loading

0 comments on commit 2cfdb22

Please sign in to comment.