From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/astro/astro.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/cmd/astro/astro.h') diff --git a/src/cmd/astro/astro.h b/src/cmd/astro/astro.h index 1c74a162..52754039 100644 --- a/src/cmd/astro/astro.h +++ b/src/cmd/astro/astro.h @@ -1,8 +1,10 @@ #include #include -//#pragma varargck type "R" double -//#pragma varargck type "D" double +#ifdef VARARGCK +#pragma varargck type "R" double +#pragma varargck type "D" double +#endif typedef struct Obj1 Obj1; typedef struct Obj2 Obj2; @@ -20,7 +22,7 @@ enum DARK = 1<<0, SIGNIF = 1<<1, PTIME = 1<<2, - LIGHT = 1<<3, + LIGHT = 1<<3 }; struct Obj1 @@ -150,7 +152,7 @@ extern double cosx(double, int, int, int, int, double); extern double dist(Obj1*, Obj1*); extern double dsrc(double, Tim*, int); extern void dtsetup(double, Tim*); -//extern int evcomp(void*, void*); +/*extern int evcomp(void*, void*);*/ extern void event(char*, char*, char*, double, int); extern void evflush(void); extern double fmod(double, double); -- cgit v1.2.3