aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rpp.c
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/boot/spp/rpp/rpp.c
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/boot/spp/rpp/rpp.c')
-rw-r--r--unix/boot/spp/rpp/rpp.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/rpp.c b/unix/boot/spp/rpp/rpp.c
new file mode 100644
index 00000000..b9215a9d
--- /dev/null
+++ b/unix/boot/spp/rpp/rpp.c
@@ -0,0 +1,31 @@
+/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+ */
+
+#include "ratlibc/ratdef.h"
+
+int xargc;
+char **xargv;
+
+extern int INITST (void);
+extern int RATFOR (void);
+extern int ENDST (void);
+
+
+/* RPP -- Second pass of the SPP preprocessor. Converts a Ratfor like
+ * input language into Fortran. RPP differs from standard tools ratfor
+ * in a number of ways. Its input language is the output of XPP and
+ * contains tokens not intended for use in any programming language.
+ * Support is provided for SPP language features, and the output fortran
+ * is pretty-printed.
+ */
+int main (int argc, char *argv[])
+{
+ xargc = argc;
+ xargv = argv;
+
+ INITST();
+ RATFOR();
+ ENDST();
+
+ return (0);
+}