aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/astro/astro.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/astro/astro.h
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/astro/astro.h')
-rw-r--r--src/cmd/astro/astro.h10
1 files changed, 6 insertions, 4 deletions
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 <u.h>
#include <libc.h>
-//#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);