summaryrefslogtreecommitdiff
path: root/astro/ephem/files/patch-ae
blob: 9d0155db37e41dcd82d9c37ed40f7d4966b36462 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- listing.c.orig	Sat Mar 14 23:22:09 1992
+++ listing.c	Sun Jan 21 20:48:40 2007
@@ -6,21 +6,36 @@
  * format of the listing file is one line per screen update.
  */
 
+#include <string.h>
 #include <stdio.h>
 #include <math.h>
 #include "screen.h"
 
-extern char *strcpy();
+#if (defined(__unix__) || defined(unix)) && !defined(USG)             
+#include <sys/param.h>                                                
+#endif
+
+#if defined(VMS) || defined(unix)
+#include <errno.h>
+#endif
 
 #ifdef VMS
 #include <perror.h>
-#include <errno.h>
 #else
+#ifndef BSD
 extern char *sys_errlist[];
+#endif
 extern errno;
 #endif
 
 #define	errsys	(sys_errlist[errno])
+
+static lst_reset();
+static lst_select_fields();
+static lst_turn_off();
+static lst_turn_on();
+static lst_file();
+static display_listing_file(FILE *lfp);
 
 
 #define	TRACE(x)	{FILE *fp = fopen("trace","a"); fprintf x; fclose(fp);}