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:
robxnano 2023-04-08 09:56:31 +01:00 committed by 89391914+robxnano@users.noreply.github.com
parent 0a1b50503b
commit b8c9897cf1
No known key found for this signature in database
GPG Key ID: 9FB6B03B782D1E42
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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 */

View File

@ -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);