mirror of https://github.com/XEphem/XEphem.git
Replace C++ style comments for ANSI C compatibility
Allows successful compilation with -std=c89 -D_XOPEN_SOURCE=500 on Linux gcc.
This commit is contained in:
parent
0a1b50503b
commit
b8c9897cf1
|
|
@ -3376,7 +3376,7 @@ short *xp, *yp; /* projected location onto drawing surface */
|
||||||
unsigned h = d + 2*hb;
|
unsigned h = d + 2*hb;
|
||||||
double dL;
|
double dL;
|
||||||
|
|
||||||
// *yp = (int)floor(h/2.0 * (1.0 - sin(pl)) + 0.5);
|
/* *yp = (int)floor(h/2.0 * (1.0 - sin(pl)) + 0.5); */
|
||||||
*yp = (int)floor(h/2.0 * (1.0 - 2*pl/PI) + 0.5);
|
*yp = (int)floor(h/2.0 * (1.0 - 2*pl/PI) + 0.5);
|
||||||
|
|
||||||
dL = pL - elng;
|
dL = pL - elng;
|
||||||
|
|
@ -3640,7 +3640,7 @@ double *ltp, *lgp; /* resulting lat/long, rads */
|
||||||
if (x < 0 || x >= maxx || y < 0 || y >= maxy)
|
if (x < 0 || x >= maxx || y < 0 || y >= maxy)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
//*ltp = asin (1.0 - 2.0*y/maxy);
|
/* *ltp = asin (1.0 - 2.0*y/maxy); */
|
||||||
*ltp = PI * (1.0 - 2.0*y/maxy) / 2;
|
*ltp = PI * (1.0 - 2.0*y/maxy) / 2;
|
||||||
|
|
||||||
*lgp = 2*PI*(x - maxx/2)/maxx + elng;
|
*lgp = 2*PI*(x - maxx/2)/maxx + elng;
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int fd; //file desciptor for the underlying connection socket
|
int fd; /* file desciptor for the underlying connection socket */
|
||||||
SSL *ssl; //ssl connection for use with SSL_read( )and SSL_write()
|
SSL *ssl; /* ssl connection for use with SSL_read( )and SSL_write() */
|
||||||
} XE_SSL_FD;
|
} XE_SSL_FD;
|
||||||
|
|
||||||
/* support functions */
|
/* support functions */
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,7 @@ Obj *op) /* working object -- returns as answer */
|
||||||
return (-3);
|
return (-3);
|
||||||
|
|
||||||
} while (fabs(dt)>TMACC);
|
} while (fabs(dt)>TMACC);
|
||||||
// fprintf (stderr, "%s 0alt npasses = %d\n", op->o_name, npasses);
|
/* fprintf (stderr, "%s 0alt npasses = %d\n", op->o_name, npasses); */
|
||||||
|
|
||||||
/* return codes */
|
/* return codes */
|
||||||
return (fabs(mjdn-mjd) < .5 ? 0 : -2);
|
return (fabs(mjdn-mjd) < .5 ? 0 : -2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue