]> gcc.gnu.org Git - gcc.git/commitdiff
*: Delete KR_headers cruft.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 1 Jun 2002 01:53:53 +0000 (01:53 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 1 Jun 2002 01:53:53 +0000 (01:53 +0000)
* libF77/*: Delete KR_headers cruft.
* libI77/*: Likewise.
* libU77/*: Likewise.

From-SVN: r54132

210 files changed:
libf2c/ChangeLog
libf2c/libF77/F77_aloc.c
libf2c/libF77/abort_.c
libf2c/libF77/c_abs.c
libf2c/libF77/c_cos.c
libf2c/libF77/c_div.c
libf2c/libF77/c_exp.c
libf2c/libF77/c_log.c
libf2c/libF77/c_sin.c
libf2c/libF77/c_sqrt.c
libf2c/libF77/cabs.c
libf2c/libF77/configure
libf2c/libF77/configure.in
libf2c/libF77/d_abs.c
libf2c/libF77/d_acos.c
libf2c/libF77/d_asin.c
libf2c/libF77/d_atan.c
libf2c/libF77/d_atn2.c
libf2c/libF77/d_cnjg.c
libf2c/libF77/d_cos.c
libf2c/libF77/d_cosh.c
libf2c/libF77/d_dim.c
libf2c/libF77/d_exp.c
libf2c/libF77/d_imag.c
libf2c/libF77/d_int.c
libf2c/libF77/d_lg10.c
libf2c/libF77/d_log.c
libf2c/libF77/d_mod.c
libf2c/libF77/d_nint.c
libf2c/libF77/d_prod.c
libf2c/libF77/d_sign.c
libf2c/libF77/d_sin.c
libf2c/libF77/d_sinh.c
libf2c/libF77/d_sqrt.c
libf2c/libF77/d_tan.c
libf2c/libF77/d_tanh.c
libf2c/libF77/derf_.c
libf2c/libF77/derfc_.c
libf2c/libF77/dtime_.c
libf2c/libF77/ef1asc_.c
libf2c/libF77/ef1cmc_.c
libf2c/libF77/erf_.c
libf2c/libF77/erfc_.c
libf2c/libF77/etime_.c
libf2c/libF77/exit_.c
libf2c/libF77/getarg_.c
libf2c/libF77/getenv_.c
libf2c/libF77/h_abs.c
libf2c/libF77/h_dim.c
libf2c/libF77/h_dnnt.c
libf2c/libF77/h_indx.c
libf2c/libF77/h_len.c
libf2c/libF77/h_mod.c
libf2c/libF77/h_nint.c
libf2c/libF77/h_sign.c
libf2c/libF77/hl_ge.c
libf2c/libF77/hl_gt.c
libf2c/libF77/hl_le.c
libf2c/libF77/hl_lt.c
libf2c/libF77/i_abs.c
libf2c/libF77/i_dim.c
libf2c/libF77/i_dnnt.c
libf2c/libF77/i_indx.c
libf2c/libF77/i_len.c
libf2c/libF77/i_mod.c
libf2c/libF77/i_nint.c
libf2c/libF77/i_sign.c
libf2c/libF77/iargc_.c
libf2c/libF77/l_ge.c
libf2c/libF77/l_gt.c
libf2c/libF77/l_le.c
libf2c/libF77/l_lt.c
libf2c/libF77/lbitbits.c
libf2c/libF77/lbitshft.c
libf2c/libF77/main.c
libf2c/libF77/pow_ci.c
libf2c/libF77/pow_dd.c
libf2c/libF77/pow_di.c
libf2c/libF77/pow_hh.c
libf2c/libF77/pow_ii.c
libf2c/libF77/pow_qq.c
libf2c/libF77/pow_ri.c
libf2c/libF77/pow_zi.c
libf2c/libF77/pow_zz.c
libf2c/libF77/qbitbits.c
libf2c/libF77/qbitshft.c
libf2c/libF77/r_abs.c
libf2c/libF77/r_acos.c
libf2c/libF77/r_asin.c
libf2c/libF77/r_atan.c
libf2c/libF77/r_atn2.c
libf2c/libF77/r_cnjg.c
libf2c/libF77/r_cos.c
libf2c/libF77/r_cosh.c
libf2c/libF77/r_dim.c
libf2c/libF77/r_exp.c
libf2c/libF77/r_imag.c
libf2c/libF77/r_int.c
libf2c/libF77/r_lg10.c
libf2c/libF77/r_log.c
libf2c/libF77/r_mod.c
libf2c/libF77/r_nint.c
libf2c/libF77/r_sign.c
libf2c/libF77/r_sin.c
libf2c/libF77/r_sinh.c
libf2c/libF77/r_sqrt.c
libf2c/libF77/r_tan.c
libf2c/libF77/r_tanh.c
libf2c/libF77/s_cat.c
libf2c/libF77/s_cmp.c
libf2c/libF77/s_copy.c
libf2c/libF77/s_paus.c
libf2c/libF77/s_rnge.c
libf2c/libF77/s_stop.c
libf2c/libF77/setarg.c
libf2c/libF77/setsig.c
libf2c/libF77/sig_die.c
libf2c/libF77/signal1.h0
libf2c/libF77/signal_.c
libf2c/libF77/system_.c
libf2c/libF77/z_abs.c
libf2c/libF77/z_cos.c
libf2c/libF77/z_div.c
libf2c/libF77/z_exp.c
libf2c/libF77/z_log.c
libf2c/libF77/z_sin.c
libf2c/libF77/z_sqrt.c
libf2c/libI77/backspace.c
libf2c/libI77/close.c
libf2c/libI77/configure
libf2c/libI77/configure.in
libf2c/libI77/dfe.c
libf2c/libI77/dolio.c
libf2c/libI77/due.c
libf2c/libI77/endfile.c
libf2c/libI77/err.c
libf2c/libI77/fio.h
libf2c/libI77/fmt.c
libf2c/libI77/fmt.h
libf2c/libI77/fmtlib.c
libf2c/libI77/ftell_.c
libf2c/libI77/iio.c
libf2c/libI77/ilnw.c
libf2c/libI77/inquire.c
libf2c/libI77/lio.h
libf2c/libI77/lread.c
libf2c/libI77/lwrite.c
libf2c/libI77/open.c
libf2c/libI77/rdfmt.c
libf2c/libI77/rewind.c
libf2c/libI77/rsfe.c
libf2c/libI77/rsli.c
libf2c/libI77/rsne.c
libf2c/libI77/sfe.c
libf2c/libI77/sue.c
libf2c/libI77/uio.c
libf2c/libI77/util.c
libf2c/libI77/wref.c
libf2c/libI77/wrtfmt.c
libf2c/libI77/wsfe.c
libf2c/libI77/wsle.c
libf2c/libI77/wsne.c
libf2c/libI77/xwsne.c
libf2c/libU77/access_.c
libf2c/libU77/alarm_.c
libf2c/libU77/chdir_.c
libf2c/libU77/chmod_.c
libf2c/libU77/config.hin
libf2c/libU77/configure
libf2c/libU77/configure.in
libf2c/libU77/ctime_.c
libf2c/libU77/datetime_.c
libf2c/libU77/dtime_.c
libf2c/libU77/etime_.c
libf2c/libU77/fgetc_.c
libf2c/libU77/flush1_.c
libf2c/libU77/fnum_.c
libf2c/libU77/fputc_.c
libf2c/libU77/fstat_.c
libf2c/libU77/gerror_.c
libf2c/libU77/getcwd_.c
libf2c/libU77/getgid_.c
libf2c/libU77/getlog_.c
libf2c/libU77/getpid_.c
libf2c/libU77/getuid_.c
libf2c/libU77/gmtime_.c
libf2c/libU77/idate_.c
libf2c/libU77/ierrno_.c
libf2c/libU77/irand_.c
libf2c/libU77/isatty_.c
libf2c/libU77/itime_.c
libf2c/libU77/kill_.c
libf2c/libU77/link_.c
libf2c/libU77/lstat_.c
libf2c/libU77/ltime_.c
libf2c/libU77/mclock_.c
libf2c/libU77/perror_.c
libf2c/libU77/rand_.c
libf2c/libU77/rename_.c
libf2c/libU77/sleep_.c
libf2c/libU77/srand_.c
libf2c/libU77/stat_.c
libf2c/libU77/symlnk_.c
libf2c/libU77/sys_clock_.c
libf2c/libU77/time_.c
libf2c/libU77/ttynam_.c
libf2c/libU77/umask_.c
libf2c/libU77/unlink_.c
libf2c/libU77/vxtidate_.c
libf2c/libU77/vxttime_.c

index 9d49605c4df36a36a753c9483dd5a9551f57ae95..a2629f4f1b26ef5deef7273231c7b3ae7f19f3f4 100644 (file)
@@ -1,3 +1,9 @@
+Fri May 31 21:50:01 2002  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * libF77/*: Delete KR_headers cruft.
+       * libI77/*: Likewise.
+       * libU77/*: Likewise.
+
 Thu May 30 23:04:52 2002  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (WARN_CFLAGS): New.
index e329a1bfb3415847d8fe3e60cfd5e06f775f9b25..f34bfa079759c4ecf26bc4eed55aa3ab63fac0c3 100644 (file)
@@ -6,13 +6,6 @@
 
 static integer memfailure = 3;
 
-#ifdef KR_headers
-extern char *malloc();
-extern void G77_exit_0 ();
-
- char *
-F77_aloc(Len, whence) integer Len; char *whence;
-#else
 #include <stdlib.h>
 #ifdef __cplusplus
 extern "C" {
@@ -24,7 +17,6 @@ extern void G77_exit_0 (integer*);
 
  char *
 F77_aloc(integer Len, char *whence)
-#endif
 {
        char *rv;
        unsigned int uLen = (unsigned int) Len; /* for K&R C */
index f0c2f8df3599ee0ea8ec5abf10e875d6cefd3660..ac277f6646f0d026c769aec01a617c0768d26fcd 100644 (file)
@@ -1,15 +1,9 @@
 #include <stdio.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-extern VOID sig_die();
-
-int G77_abort_0 ()
-#else
 extern void sig_die(char*,int);
 
 int G77_abort_0 (void)
-#endif
 {
 sig_die("Fortran abort routine called", 1);
 return 0;      /* not reached */
index 041fbd3d8bb06e13998e975cb8c17eedd0a6afb1..c1251e14f53ca5a3a636d1ee14858d74e278e99d 100644 (file)
@@ -1,14 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double f__cabs();
-
-double c_abs(z) complex *z;
-#else
 extern double f__cabs(double, double);
 
 double c_abs(complex *z)
-#endif
 {
 return( f__cabs( z->r, z->i ) );
 }
index 549953dc65620fb47188b4422eb78c32b39c9680..eb2acc4c8043042894cdca9ea3eb3a57cdb3abef 100644 (file)
@@ -1,15 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double sin(), cos(), sinh(), cosh();
-
-VOID c_cos(r, z) complex *r, *z;
-#else
 #undef abs
 #include "math.h"
 
 void c_cos(complex *r, complex *z)
-#endif
 {
        double zi = z->i, zr = z->r;
        r->r =   cos(zr) * cosh(zi);
index 4d153b4c4afc0df757822ff4ac747c312f600fc2..20763a3d69e4744389f62fccfe57704646a840d8 100644 (file)
@@ -1,13 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern VOID sig_die();
-VOID c_div(c, a, b)
-complex *a, *b, *c;
-#else
 extern void sig_die(char*,int);
 void c_div(complex *c, complex *a, complex *b)
-#endif
 {
        double ratio, den;
        double abr, abi, cr;
index 52d0d2ffc95cffd932407380e220cf0dc0ac9b8b..3e281e91c6e7b6300c8c28a667345becb7bb35c0 100644 (file)
@@ -1,15 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double exp(), cos(), sin();
-
- VOID c_exp(r, z) complex *r, *z;
-#else
 #undef abs
 #include "math.h"
 
 void c_exp(complex *r, complex *z)
-#endif
 {
        double expx, zi = z->i;
 
index 24d1a3c957b43d8edddfcc353571817fbeee1c3b..990b42060be48687451f21ae98286bfd33ce1f96 100644 (file)
@@ -1,15 +1,10 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double log(), f__cabs(), atan2();
-VOID c_log(r, z) complex *r, *z;
-#else
 #undef abs
 #include "math.h"
 extern double f__cabs(double, double);
 
 void c_log(complex *r, complex *z)
-#endif
 {
        double zi, zr;
        r->i = atan2(zi = z->i, zr = z->r);
index 93a57660a90226185e3ae9e499b1238a14ec2f61..07ef4d6501c545927ef6a24f720bdb98100868e8 100644 (file)
@@ -1,15 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double sin(), cos(), sinh(), cosh();
-
-VOID c_sin(r, z) complex *r, *z;
-#else
 #undef abs
 #include "math.h"
 
 void c_sin(complex *r, complex *z)
-#endif
 {
        double zi = z->i, zr = z->r;
        r->r = sin(zr) * cosh(zi);
index 8481ee4857e00a8a80b3a4ad63f36effe5786c1f..3b9a30f5635ea9b1e49e8eb1c0e8e47fa3ef1f81 100644 (file)
@@ -1,16 +1,10 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double sqrt(), f__cabs();
-
-VOID c_sqrt(r, z) complex *r, *z;
-#else
 #undef abs
 #include "math.h"
 extern double f__cabs(double, double);
 
 void c_sqrt(complex *r, complex *z)
-#endif
 {
        double mag, t;
        double zi = z->i, zr = z->r;
index 2fad044e884081c0cee7f0a3f35a67e7f78949da..17276abd054ade6f7aee15a71cc36461be67ca9e 100644 (file)
@@ -1,11 +1,6 @@
-#ifdef KR_headers
-extern double sqrt();
-double f__cabs(real, imag) double real, imag;
-#else
 #undef abs
 #include <math.h>
 double f__cabs(double real, double imag)
-#endif
 {
 double temp;
 
index 5b6a257737b91f8d92f58e47d1882a248600475d..4e198c87c8f8beda4b105760ba30cb65128d95f7 100755 (executable)
@@ -28,7 +28,6 @@ program_suffix=NONE
 program_transform_name=s,x,x,
 silent=
 site=
-sitefile=
 srcdir=
 target=NONE
 verbose=
@@ -143,7 +142,6 @@ Configuration:
   --help                  print this message
   --no-create             do not create output files
   --quiet, --silent       do not print \`checking...' messages
-  --site-file=FILE        use FILE as the site file
   --version               print the version of autoconf that created configure
 Directory and file names:
   --prefix=PREFIX         install architecture-independent files in PREFIX
@@ -314,11 +312,6 @@ EOF
   -site=* | --site=* | --sit=*)
     site="$ac_optarg" ;;
 
-  -site-file | --site-file | --site-fil | --site-fi | --site-f)
-    ac_prev=sitefile ;;
-  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
-    sitefile="$ac_optarg" ;;
-
   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     ac_prev=srcdir ;;
   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
@@ -484,16 +477,12 @@ fi
 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
 # Prefer explicitly selected file to automatically selected ones.
-if test -z "$sitefile"; then
-  if test -z "$CONFIG_SITE"; then
-    if test "x$prefix" != xNONE; then
-      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
-    else
-      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
-    fi
+if test -z "$CONFIG_SITE"; then
+  if test "x$prefix" != xNONE; then
+    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+  else
+    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   fi
-else
-  CONFIG_SITE="$sitefile"
 fi
 for ac_site_file in $CONFIG_SITE; do
   if test -r "$ac_site_file"; then
@@ -541,7 +530,7 @@ fi
 # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:545: checking for $ac_word" >&5
+echo "configure:534: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -571,7 +560,7 @@ if test -z "$CC"; then
   # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:575: checking for $ac_word" >&5
+echo "configure:564: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -622,7 +611,7 @@ fi
       # Extract the first word of "cl", so it can be a program name with args.
 set dummy cl; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:626: checking for $ac_word" >&5
+echo "configure:615: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -655,7 +644,7 @@ fi
 
 
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:659: checking whether we are using GNU C" >&5
+echo "configure:648: checking whether we are using GNU C" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -664,7 +653,7 @@ else
   yes;
 #endif
 EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -683,7 +672,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
 ac_save_CFLAGS="$CFLAGS"
 CFLAGS=
 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:687: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:676: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -726,7 +715,7 @@ else
   # Extract the first word of "ranlib", so it can be a program name with args.
 set dummy ranlib; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:730: checking for $ac_word" >&5
+echo "configure:719: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -755,7 +744,7 @@ fi
 
 fi
 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:759: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -785,7 +774,7 @@ fi
 
 # Sanity check for the cross-compilation case:
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:789: checking how to run the C preprocessor" >&5
+echo "configure:778: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
@@ -800,13 +789,13 @@ else
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
   cat > conftest.$ac_ext <<EOF
-#line 804 "configure"
+#line 793 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -817,13 +806,13 @@ else
   rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF
-#line 821 "configure"
+#line 810 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -834,13 +823,13 @@ else
   rm -rf conftest*
   CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF
-#line 838 "configure"
+#line 827 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -866,17 +855,17 @@ echo "$ac_t""$CPP" 1>&6
 
 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
-echo "configure:870: checking for stdio.h" >&5
+echo "configure:859: checking for stdio.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 875 "configure"
+#line 864 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -904,12 +893,12 @@ fi
 
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:908: checking for ANSI C header files" >&5
+echo "configure:897: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 913 "configure"
+#line 902 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <stdarg.h>
@@ -917,7 +906,7 @@ else
 #include <float.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -934,7 +923,7 @@ rm -f conftest*
 if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 938 "configure"
+#line 927 "configure"
 #include "confdefs.h"
 #include <string.h>
 EOF
@@ -952,7 +941,7 @@ fi
 if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 956 "configure"
+#line 945 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
@@ -973,7 +962,7 @@ if test "$cross_compiling" = yes; then
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 977 "configure"
+#line 966 "configure"
 #include "confdefs.h"
 #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -984,7 +973,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 exit (0); }
 
 EOF
-if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -1007,14 +996,13 @@ EOF
 
 fi
 
-
 echo $ac_n "checking for posix""... $ac_c" 1>&6
-echo "configure:1013: checking for posix" >&5
+echo "configure:1001: checking for posix" >&5
 if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1018 "configure"
+#line 1006 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <unistd.h>
@@ -1040,12 +1028,12 @@ echo "$ac_t""$g77_cv_header_posix" 1>&6
 # We can rely on the GNU library being posix-ish.  I guess checking the 
 # header isn't actually like checking the functions, though...
 echo $ac_n "checking for GNU library""... $ac_c" 1>&6
-echo "configure:1044: checking for GNU library" >&5
+echo "configure:1032: checking for GNU library" >&5
 if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1049 "configure"
+#line 1037 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #ifdef __GNU_LIBRARY__
@@ -1068,12 +1056,12 @@ fi
 echo "$ac_t""$g77_cv_lib_gnu" 1>&6
 
 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:1072: checking return type of signal handlers" >&5
+echo "configure:1060: checking return type of signal handlers" >&5
 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1077 "configure"
+#line 1065 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <signal.h>
@@ -1090,7 +1078,7 @@ int main() {
 int i;
 ; return 0; }
 EOF
-if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_type_signal=void
 else
@@ -1111,12 +1099,12 @@ EOF
 # we'll get atexit by default
 if test $ac_cv_header_stdc != yes; then
 echo $ac_n "checking for atexit""... $ac_c" 1>&6
-echo "configure:1115: checking for atexit" >&5
+echo "configure:1103: checking for atexit" >&5
 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1120 "configure"
+#line 1108 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char atexit(); below.  */
@@ -1139,7 +1127,7 @@ atexit();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_atexit=yes"
 else
@@ -1164,12 +1152,12 @@ else
 EOF
 
   echo $ac_n "checking for onexit""... $ac_c" 1>&6
-echo "configure:1168: checking for onexit" >&5
+echo "configure:1156: checking for onexit" >&5
 if eval "test \"`echo '$''{'ac_cv_func_onexit'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1173 "configure"
+#line 1161 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char onexit(); below.  */
@@ -1192,7 +1180,7 @@ onexit();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_onexit=yes"
 else
@@ -1210,12 +1198,12 @@ if eval "test \"`echo '$ac_cv_func_'onexit`\" = yes"; then
 else
   echo "$ac_t""no" 1>&6
 echo $ac_n "checking for on_exit""... $ac_c" 1>&6
-echo "configure:1214: checking for on_exit" >&5
+echo "configure:1202: checking for on_exit" >&5
 if eval "test \"`echo '$''{'ac_cv_func_on_exit'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1219 "configure"
+#line 1207 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char on_exit(); below.  */
@@ -1238,7 +1226,7 @@ on_exit();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_on_exit=yes"
 else
@@ -1268,7 +1256,7 @@ else true
 fi
 
 echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6
-echo "configure:1272: checking for drem in -lm" >&5
+echo "configure:1260: checking for drem in -lm" >&5
 ac_lib_var=`echo m'_'drem | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1276,7 +1264,7 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-lm  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1280 "configure"
+#line 1268 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1287,7 +1275,7 @@ int main() {
 drem()
 ; return 0; }
 EOF
-if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
index ae34d36d908f2326bacf8e4a6e1c710f505dc543..838ce965a12696e7ad2582f8d553ea3163130a01 100644 (file)
@@ -56,17 +56,6 @@ the G77 runtime system.  If necessary, install gcc now with \`LANGUAGES=c',
 then the target library, then build with \`LANGUAGES=f77'.])])
 
 AC_HEADER_STDC
-dnl We could do this if we didn't know we were using gcc
-dnl AC_MSG_CHECKING(for prototype-savvy compiler)
-dnl AC_CACHE_VAL(g77_cv_sys_proto,                
-dnl   [AC_TRY_LINK(,                             
-dnl dnl looks screwy because TRY_LINK expects a function body
-dnl    [return 0;} int foo (int * bar) {],       
-dnl    g77_cv_sys_proto=yes,                      
-dnl    [g77_cv_sys_proto=no                       
-dnl     AC_DEFINE(KR_headers)])])                
-dnl AC_MSG_RESULT($g77_cv_sys_proto)              
-
 AC_MSG_CHECKING(for posix)
 AC_CACHE_VAL(g77_cv_header_posix,
   AC_EGREP_CPP(yes,
index cb157e067b73f6ebba1fd43e0dbbece95067dea9..2927a5e867d337e3bce719fcf31f0117fd390fdd 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double d_abs(x) doublereal *x;
-#else
 double d_abs(doublereal *x)
-#endif
 {
 if(*x >= 0)
        return(*x);
index 33da5369db216787f51678a326041b96e77e4ff6..a87ff30da9b85d5f4cd4ee159c38f57ff5edcc15 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double acos();
-double d_acos(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_acos(doublereal *x)
-#endif
 {
 return( acos(*x) );
 }
index 79b33ca1bd6da863ec6b3d2526d2fdad7a4b0b65..ea2815ace70f25c0246a6dc2f988021d729473e5 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double asin();
-double d_asin(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_asin(doublereal *x)
-#endif
 {
 return( asin(*x) );
 }
index caea4a406e0b9b0e94cddd0eec71f7f8a60ac786..d1624fd4f1e8385d416a92d6b320e7dbd80b62ad 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double atan();
-double d_atan(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_atan(doublereal *x)
-#endif
 {
 return( atan(*x) );
 }
index 6748a55d56fb855fbaf20ae0970573fc6cf5dc1f..9a6ff8c4c56590968921e353f89e0f146d32c88b 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double atan2();
-double d_atn2(x,y) doublereal *x, *y;
-#else
 #undef abs
 #include <math.h>
 double d_atn2(doublereal *x, doublereal *y)
-#endif
 {
 return( atan2(*x,*y) );
 }
index c1970a56da9f17a61e8d26bf8942b766d0580267..b8027780fb7e3c0ca72a392b1cf4f7865678b613 100644 (file)
@@ -1,11 +1,7 @@
 #include "f2c.h"
 
  VOID
-#ifdef KR_headers
-d_cnjg(r, z) doublecomplex *r, *z;
-#else
 d_cnjg(doublecomplex *r, doublecomplex *z)
-#endif
 {
        doublereal zi = z->i;
        r->r = z->r;
index fa4d6ca406f107adb8daac2e17f4495a880abc23..83f9198028a2e40c5f68dafd788a560dc58e2a8a 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double cos();
-double d_cos(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_cos(doublereal *x)
-#endif
 {
 return( cos(*x) );
 }
index edc0ebc10923f9ba202bc87e64dec3879682578e..c1bffcb0bad196d667756e48ed2f0c5e70df10ac 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double cosh();
-double d_cosh(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_cosh(doublereal *x)
-#endif
 {
 return( cosh(*x) );
 }
index 1d0ecb7bbb64f531e06f458dd3dab218ae7dc910..a52ba7642edfe4d14ec89f04d481184c851ca15a 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double d_dim(a,b) doublereal *a, *b;
-#else
 double d_dim(doublereal *a, doublereal *b)
-#endif
 {
 return( *a > *b ? *a - *b : 0);
 }
index be12fd70551e69c96489e6674025df50cf5716b8..b4afe87d01f54097767a085e310008bdc0a874bf 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double exp();
-double d_exp(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_exp(doublereal *x)
-#endif
 {
 return( exp(*x) );
 }
index 793a3f9c40592ae6d6130bd972642f0864089b2d..a53d00c05998648f8ac52dccdc9b362b21aac090 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double d_imag(z) doublecomplex *z;
-#else
 double d_imag(doublecomplex *z)
-#endif
 {
 return(z->i);
 }
index beff1e7d3781d16ee8c7826f774d60e8fa5a743d..dca077cab4e9137454596a1bfa62f21f72b51f30 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-double d_int(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_int(doublereal *x)
-#endif
 {
 return( (*x>0) ? floor(*x) : -floor(- *x) );
 }
index c0892bd512aae2724d58dd308028403321212b89..32824b88df0f65c5e35bb458d6885e50fc544a79 100644 (file)
@@ -2,14 +2,9 @@
 
 #define log10e 0.43429448190325182765
 
-#ifdef KR_headers
-double log();
-double d_lg10(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_lg10(doublereal *x)
-#endif
 {
 return( log10e * log(*x) );
 }
index 592015b28212ec984c5b3dbbd26d30b196d8da89..50bbefd93c1734b30d139b22954049e617e03fe8 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double log();
-double d_log(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_log(doublereal *x)
-#endif
 {
 return( log(*x) );
 }
index 23f19299168edf53ef54faf79cb19335b1e6b32a..bbc24ad6547bcc8215a9e8a6de9319ae0fa70594 100644 (file)
@@ -1,13 +1,5 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-#ifdef IEEE_drem
-double drem();
-#else
-double floor();
-#endif
-double d_mod(x,y) doublereal *x, *y;
-#else
 #ifdef IEEE_drem
 double drem(double, double);
 #else
@@ -15,7 +7,6 @@ double drem(double, double);
 #include <math.h>
 #endif
 double d_mod(doublereal *x, doublereal *y)
-#endif
 {
 #ifdef IEEE_drem
        double xa, ya, z;
index 064beff669ce1102a433f2449d753f99beb9ffce..b74a15f99de9227596c77807b585420a03f6a48d 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-double d_nint(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_nint(doublereal *x)
-#endif
 {
 return( (*x)>=0 ?
        floor(*x + .5) : -floor(.5 - *x) );
index 3d4cef7835c2c0549d207a40b618b073a7c69f54..b39580fa502ec99fee7f32fdc4d27ad0aba77ed6 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double d_prod(x,y) real *x, *y;
-#else
 double d_prod(real *x, real *y)
-#endif
 {
 return( (*x) * (*y) );
 }
index 514ff0bbff82ab99bd5211365c6f089f5b80fbf7..c77d843bada4c9e15c7432c4c3d327d91146872b 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double d_sign(a,b) doublereal *a, *b;
-#else
 double d_sign(doublereal *a, doublereal *b)
-#endif
 {
 double x;
 x = (*a >= 0 ? *a : - *a);
index fdd699eede535ea5617b7bba6c8f79df79f88426..ed51ebd53e021b45c9cf43e8012940bb928d554f 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sin();
-double d_sin(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_sin(doublereal *x)
-#endif
 {
 return( sin(*x) );
 }
index 77f36904f8e5636f42c51bc4bdcd16e6b611644f..b691dc0f1388cf4205ba325f83e7e0c9fedb3572 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sinh();
-double d_sinh(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_sinh(doublereal *x)
-#endif
 {
 return( sinh(*x) );
 }
index b5cf83b946f8472c5596e00207946a6f5b028a7f..760a524f80f4b8c0a6c3c7b0f1cad93905098ce7 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sqrt();
-double d_sqrt(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_sqrt(doublereal *x)
-#endif
 {
 return( sqrt(*x) );
 }
index af94a053223c6647b6bd035c51129c6c7273733c..a93e58b0a190a81b280678eb5a49b0fc958241f8 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double tan();
-double d_tan(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_tan(doublereal *x)
-#endif
 {
 return( tan(*x) );
 }
index 92a02d4fd6ba56c4572b99c9ccb35909d4026a5d..06c44d00497f92cb492648785fd9b4a10aa27b52 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double tanh();
-double d_tanh(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 double d_tanh(doublereal *x)
-#endif
 {
 return( tanh(*x) );
 }
index fba6b6b11f39426723ba4684da7329e306200c77..cc41913441c6d95dc54c8832b2833aa6f9af9583 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double erf();
-double G77_derf_0 (x) doublereal *x;
-#else
 extern double erf(double);
 double G77_derf_0 (doublereal *x)
-#endif
 {
 return( erf(*x) );
 }
index ae1ac740302216e1a91d28bb8af90a22cd9a61d6..0be115912a6228d384dee815cf5a35505df4ccfb 100644 (file)
@@ -1,14 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern double erfc();
-
-double G77_derfc_0 (x) doublereal *x;
-#else
 extern double erfc(double);
 
 double G77_derfc_0 (doublereal *x)
-#endif
 {
 return( erfc(*x) );
 }
index e2c3a03cb7ad4f76f0eaf2abf988be0eff71f154..9d5abf69dcf5659967c9b847874de0ac4350381a 100644 (file)
 #endif
 
  double
-#ifdef KR_headers
-dtime_(tarray) float *tarray;
-#else
 dtime_(float *tarray)
-#endif
 {
 #ifdef USE_CLOCK
 #ifndef CLOCKS_PER_SECOND
index 8588584fbabe132e88e16509134cca4e962cc7ff..2e12423196faaadb6d0d278b509b26f64dd51ddf 100644 (file)
@@ -6,13 +6,8 @@
 #define M      ( (long) (sizeof(long) - 1) )
 #define EVEN(x)        ( ( (x)+ M) & (~M) )
 
-#ifdef KR_headers
-extern VOID s_copy();
-G77_ef1asc_0 (a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
-#else
 extern void s_copy(char*,char*,ftnlen,ftnlen);
 int G77_ef1asc_0 (ftnint *a, ftnlen *la, ftnint *b, ftnlen *lb)
-#endif
 {
 s_copy( (char *)a, (char *)b, EVEN(*la), *lb );
 return 0;      /* ignored return value */
index f471172935f5be2bd30026fec052576c2c0a20ad..79eabdf39b1964a18205a6b8336f0f38a11482d8 100644 (file)
@@ -2,13 +2,8 @@
 
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-integer G77_ef1cmc_0 (a, la, b, lb) ftnint *a, *b; ftnlen *la, *lb;
-#else
 extern integer s_cmp(char*,char*,ftnlen,ftnlen);
 integer G77_ef1cmc_0 (ftnint *a, ftnlen *la, ftnint *b, ftnlen *lb)
-#endif
 {
 return( s_cmp( (char *)a, (char *)b, *la, *lb) );
 }
index 1ba4350ad05c9712afef2da2b444c0545e869e1c..e8a90edacf401d1b6f38f3b0b3c097199dc65b05 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double erf();
-double G77_erf_0 (x) real *x;
-#else
 extern double erf(double);
 double G77_erf_0 (real *x)
-#endif
 {
 return( erf(*x) );
 }
index f44b1d49d84b26956f55819d2e21191c093bd35c..5f7247932451212803a8036c5e5242b6d8518a57 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double erfc();
-double G77_erfc_0 (x) real *x;
-#else
 extern double erfc(double);
 double G77_erfc_0 (real *x)
-#endif
 {
 return( erfc(*x) );
 }
index 0c3209d26126cff4ac1cf90099c98639bd77b09f..48a8f6b347ccc4dbb730ed601a8844be9d400ce0 100644 (file)
 #endif
 
  double
-#ifdef KR_headers
-etime_(tarray) float *tarray;
-#else
 etime_(float *tarray)
-#endif
 {
 #ifdef USE_CLOCK
 #ifndef CLOCKS_PER_SECOND
index 4c0582add127ea1735b7bb19c5a5f2d15cb5aaf9..7c361dbd05d163a0e733751b1afbfb99abdc82e5 100644 (file)
 #undef abs
 #undef min
 #undef max
-#ifndef KR_headers
 #include <stdlib.h>
 #ifdef __cplusplus
 extern "C" {
 #endif
 extern void f_exit(void);
-#endif
 
  void
-#ifdef KR_headers
-G77_exit_0 (rc) integer *rc;
-#else
 G77_exit_0 (integer *rc)
-#endif
 {
 #ifdef NO_ONEXIT
        f_exit();
index 5cf3ffb8599928b14b538e6f5487d9d62b62bf5c..c873596bde85732f410db6613ea1bf65b716ae84 100644 (file)
@@ -6,11 +6,7 @@
  * variable argument c
 */
 
-#ifdef KR_headers
-VOID G77_getarg_0 (n, s, ls) ftnint *n; register char *s; ftnlen ls;
-#else
 void G77_getarg_0 (ftnint *n, register char *s, ftnlen ls)
-#endif
 {
 extern int f__xargc;
 extern char **f__xargv;
index 4d0b7cf7b04b2b611ec08e6a17b177bbd7dfdd3f..a1654ef0d3b555e5695afcf3a240eae9cacfd943 100644 (file)
@@ -1,12 +1,8 @@
 #include "f2c.h"
 #undef abs
-#ifdef KR_headers
-extern char *F77_aloc(), *getenv();
-#else
 #include <stdlib.h>
 #include <string.h>
 extern char *F77_aloc(ftnlen, char*);
-#endif
 
 /*
  * getenv - f77 subroutine to return environment variables
@@ -20,13 +16,8 @@ extern char *F77_aloc(ftnlen, char*);
  *             if ENV_NAME is not defined
  */
 
-#ifdef KR_headers
- VOID
-G77_getenv_0 (fname, value, flen, vlen) char *value, *fname; ftnlen vlen, flen;
-#else
  void
 G77_getenv_0 (char *fname, char *value, ftnlen flen, ftnlen vlen)
-#endif
 {
        char buf[256], *ep, *fp;
        integer i;
index 73b82151ac1d78d21617656965c6abbdcb061e2a..e5f4d6b3b284b0d949ce11cfdfd9dd9b0050f594 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_abs(x) shortint *x;
-#else
 shortint h_abs(shortint *x)
-#endif
 {
 if(*x >= 0)
        return(*x);
index ceff660e26cd8afc17117df58014cfac59be1912..04cf55d10599338bb1ef454303bead2f25a9902c 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_dim(a,b) shortint *a, *b;
-#else
 shortint h_dim(shortint *a, shortint *b)
-#endif
 {
 return( *a > *b ? *a - *b : 0);
 }
index 005ac6fc41245a322793062e5ff59aca320bae6d..651d05c5679443da52517ac998024c315e7870bf 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-shortint h_dnnt(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 shortint h_dnnt(doublereal *x)
-#endif
 {
 return (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
 }
index a211cc7fa0fbb423db313ed882c3416373f32f7e..a78c8733bdf6f48abc57157c336ac2056b207a89 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
-#else
 shortint h_indx(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 ftnlen i, n;
 char *s, *t, *bend;
index 00a2151bfa1172a2093fbaaffc4e8092b0f48838..8c63116d1b90ae14a3e2e5743d9598764325201f 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_len(s, n) char *s; ftnlen n;
-#else
 shortint h_len(char *s, ftnlen n)
-#endif
 {
 return(n);
 }
index 43431c1c503c517e809f7b6b3b5b3cbdc22ae480..998ada752adc8c176b1784854d688e40aba8cdf2 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_mod(a,b) short *a, *b;
-#else
 shortint h_mod(short *a, short *b)
-#endif
 {
 return( *a % *b);
 }
index 6b8dc29b1542c3f0adbd846e5c2ca27060799a42..bdfee6420150257bc51c5bf2b18c19e3a8c08b86 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-shortint h_nint(x) real *x;
-#else
 #undef abs
 #include <math.h>
 shortint h_nint(real *x)
-#endif
 {
 return (shortint)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
 }
index 7b06c157a74e20bc62ea8cef1b3dbb35eb93c107..7efc7cab59c1713b2042140decef61a36c78f749 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint h_sign(a,b) shortint *a, *b;
-#else
 shortint h_sign(shortint *a, shortint *b)
-#endif
 {
 shortint x;
 x = (*a >= 0 ? *a : - *a);
index 4c29527065a27d9cda7422dfb39cc6078ef7b7c6..2415216eaf9468817845b3c0e4b90a3d3b920249 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 shortlogical hl_ge(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) >= 0);
 }
index c4f345a0859e1159a0d873818cab14d3669b4ea4..bf5c4208bec53cfdaa9ccaf46d3cea63a90de43c 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 shortlogical hl_gt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) > 0);
 }
index a9cce596c715cffe21f6be4619a584d3bd20fc53..cb6fe05f6249aae0c3db7c79d6e134531b961071 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 shortlogical hl_le(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) <= 0);
 }
index 162d919c3b486a4ad09344ffb908e1f126982a8a..f774c71e155975997a454254a772601ab328b0a8 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-shortlogical hl_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 shortlogical hl_lt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) < 0);
 }
index be21295aaa12246b28d8bfa9846eefdf3b28f47c..2f96f5c78380c8568bfb6266b9b3ca7da868a4d0 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_abs(x) integer *x;
-#else
 integer i_abs(integer *x)
-#endif
 {
 if(*x >= 0)
        return(*x);
index 6e1b1707b55587256bd66783e1e589f8e2d9ba1a..68e8a3df079777b119fc06bdae7a23a24a75a147 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_dim(a,b) integer *a, *b;
-#else
 integer i_dim(integer *a, integer *b)
-#endif
 {
 return( *a > *b ? *a - *b : 0);
 }
index 4ede56ac35596db45333866e663f51c344b34f49..ed4fdff8086fa3e935ef77553437ff6a2285da07 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-integer i_dnnt(x) doublereal *x;
-#else
 #undef abs
 #include <math.h>
 integer i_dnnt(doublereal *x)
-#endif
 {
 return (integer)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));
 }
index 96e7bc51ba85c2ed7d579fb9e9f3d314792137aa..92c44aabcf9fc833bb0e354012e032bae18b998b 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_indx(a, b, la, lb) char *a, *b; ftnlen la, lb;
-#else
 integer i_indx(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 ftnlen i, n;
 char *s, *t, *bend;
index 4020fee4618387451463f3b63ab4c9f752e52200..0e9cfb72a43540f56698e3ceb5c4e104a00c92af 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_len(s, n) char *s; ftnlen n;
-#else
 integer i_len(char *s, ftnlen n)
-#endif
 {
 return(n);
 }
index 6937c421357066777d589bac1ad16d9a97b6f954..2e574f71415f697c4438f4395d30f7fc151fe634 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_mod(a,b) integer *a, *b;
-#else
 integer i_mod(integer *a, integer *b)
-#endif
 {
 return( *a % *b);
 }
index 411ce32821e3e1241226cb0e6df1915fadba5b80..2698d5f5074735a725f4ab1168dc96be5c201064 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-integer i_nint(x) real *x;
-#else
 #undef abs
 #include <math.h>
 integer i_nint(real *x)
-#endif
 {
 return (integer)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
 }
index 94009b86e6fa898e23f123d5b3c47f6f5d71fb92..1db4729126b0a87790ff350e6a0cbe4903ad02c5 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer i_sign(a,b) integer *a, *b;
-#else
 integer i_sign(integer *a, integer *b)
-#endif
 {
 integer x;
 x = (*a >= 0 ? *a : - *a);
index 1e04c7744b3bfbf4f3ea32f3155364d47a161095..a57c25711d1262a695ef703c1f4f87f6743f1055 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-ftnint G77_iargc_0 ()
-#else
 ftnint G77_iargc_0 (void)
-#endif
 {
 extern int f__xargc;
 return ( f__xargc - 1 );
index 86b4a1f5a7f5d1b2e07666dd53bf030a67590995..ffa2faaad4ab90663a1ab7f0c93bbe3cdbff737d 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_ge(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 logical l_ge(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) >= 0);
 }
index c4b52f5bf7dd4441c31b716166c7beacf4028bf4..e0d314407a94b62c6e5621423d0d7bf423ec554e 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_gt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 logical l_gt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) > 0);
 }
index f2740a238143dd9e42680473db7f46b024a83fba..d3e9de82c0fa2ff273f7d85318ae269f3408b240 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_le(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 logical l_le(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) <= 0);
 }
index c48dc946f9a7ff8020992495a5dfd72850f7a6d0..df28ec09c5f8d112d11e1764dc3c4cef5df07597 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern integer s_cmp();
-logical l_lt(a,b,la,lb) char *a, *b; ftnlen la, lb;
-#else
 extern integer s_cmp(char *, char *, ftnlen, ftnlen);
 logical l_lt(char *a, char *b, ftnlen la, ftnlen lb)
-#endif
 {
 return(s_cmp(a,b,la,lb) < 0);
 }
index 75e9f9c603f9bcd7ee81d476a9871232bcc44968..4536dc4719ea192dc88dc4f261195a962d6cc5a5 100644 (file)
@@ -5,11 +5,7 @@
 #endif
 
  integer
-#ifdef KR_headers
-lbit_bits(a, b, len) integer a, b, len;
-#else
 lbit_bits(integer a, integer b, integer len)
-#endif
 {
        /* Assume 2's complement arithmetic */
 
@@ -23,11 +19,7 @@ lbit_bits(integer a, integer b, integer len)
        }
 
  integer
-#ifdef KR_headers
-lbit_cshift(a, b, len) integer a, b, len;
-#else
 lbit_cshift(integer a, integer b, integer len)
-#endif
 {
        unsigned long x, y, z;
 
index 81b0fdbeaba14a91196f09672d7753a13d51b942..daa1e7656de5052c3c11c49c3ecbf727696a3780 100644 (file)
@@ -1,11 +1,7 @@
 #include "f2c.h"
 
  integer
-#ifdef KR_headers
-lbit_shift(a, b) integer a; integer b;
-#else
 lbit_shift(integer a, integer b)
-#endif
 {
        return b >= 0 ? a << b : (integer)((uinteger)a >> -b);
        }
index 17bf449e40242655541a5559b0db9406f6a95d07..9f41947b97732f0d04eeebe74e86450f66e41a17 100644 (file)
@@ -3,10 +3,8 @@
 #include <stdio.h>
 #include "signal1.h"
 
-#ifndef KR_headers
 #undef VOID
 #include <stdlib.h>
-#endif
 
 #ifndef VOID
 #define VOID void
 extern "C" {
 #endif
 
-#ifdef NO__STDC
-#define ONEXIT onexit
-extern VOID f_exit();
-#else
-#ifndef KR_headers
 extern void f_exit(void);
 #ifndef NO_ONEXIT
 #define ONEXIT atexit
 extern int atexit(void (*)(void));
 #endif
-#else
-#ifndef NO_ONEXIT
-#define ONEXIT onexit
-extern VOID f_exit();
-#endif
-#endif
-#endif
 
-#ifdef KR_headers
-extern VOID f_init();
-extern int MAIN__();
-#else
 extern void f_init(void);
 extern int MAIN__(void);
-#endif
 
 #ifdef __cplusplus
        }
 #endif
 
-#ifdef KR_headers
-main(argc, argv) int argc; char **argv;
-#else
 main(int argc, char **argv)
-#endif
 {
 f_setarg(argc, argv);
 f_setsig();
index 37e2ce0f2eb9d90b0abe72ab0cc292da8b03160b..98bb84ffb22c3db41d2c67dd73abbda534dbf2c2 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-VOID pow_ci(p, a, b)   /* p = a**b  */
- complex *p, *a; integer *b;
-#else
 extern void pow_zi(doublecomplex*, doublecomplex*, integer*);
 void pow_ci(complex *p, complex *a, integer *b)        /* p = a**b  */
-#endif
 {
 doublecomplex p1, a1;
 
index d0dd0ff274473b69b6af2bc186558e178f9d9400..7c421fefd9e686a701cd1a0b28847a8502d3f2c9 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double pow();
-double pow_dd(ap, bp) doublereal *ap, *bp;
-#else
 #undef abs
 #include <math.h>
 double pow_dd(doublereal *ap, doublereal *bp)
-#endif
 {
 return(pow(*ap, *bp) );
 }
index affed625a91100c46eb99cbb8f33d4b4fba21ae2..d396ed031390255908dfab778dc0bd5614d2a776 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double pow_di(ap, bp) doublereal *ap; integer *bp;
-#else
 double pow_di(doublereal *ap, integer *bp)
-#endif
 {
 double pow, x;
 integer n;
index 24a019734da152aa39bf9d6337363b430f377d2b..d734720ef514a1eda6be979436228ad23ae86cba 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-shortint pow_hh(ap, bp) shortint *ap, *bp;
-#else
 shortint pow_hh(shortint *ap, shortint *bp)
-#endif
 {
        shortint pow, x, n;
        unsigned u;
index 84d1c7e0b5ec06095c588cb09033330f1b3261af..a895b23e167f3de609bf96e18a03f10b6927f965 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-integer pow_ii(ap, bp) integer *ap, *bp;
-#else
 integer pow_ii(integer *ap, integer *bp)
-#endif
 {
        integer pow, x, n;
        unsigned long u;
index 3bc80e05f7f0a0975e538fecc2569cbfa4a9202c..df01f14e95b77ff4914b289a3f73c7c33e7ebf38 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-longint pow_qq(ap, bp) longint *ap, *bp;
-#else
 longint pow_qq(longint *ap, longint *bp)
-#endif
 {
        longint pow, x, n;
        unsigned long long u;   /* system-dependent */
index 6e5816bbf10915c7f75c370aea7ecaf96b75b023..c15347a2a1b0ac0d62cf439c17610c475636c440 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double pow_ri(ap, bp) real *ap; integer *bp;
-#else
 double pow_ri(real *ap, integer *bp)
-#endif
 {
 double pow, x;
 integer n;
index abb3cb2b5302962e0cb731c4b13daf03b2b10a23..3b520602fc3090a577368f0cf6d31429b4f0cdd6 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-VOID pow_zi(p, a, b)   /* p = a**b  */
- doublecomplex *p, *a; integer *b;
-#else
 extern void z_div(doublecomplex*, doublecomplex*, doublecomplex*);
 void pow_zi(doublecomplex *p, doublecomplex *a, integer *b)    /* p = a**b  */
-#endif
 {
        integer n;
        unsigned long u;
index 20faf29cfb895345731de33b2c4876405cc3dc9d..5fc8c45866327b07d08246405be86938064f472f 100644 (file)
@@ -1,14 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double log(), exp(), cos(), sin(), atan2(), f__cabs();
-VOID pow_zz(r,a,b) doublecomplex *r, *a, *b;
-#else
 #undef abs
 #include <math.h>
 extern double f__cabs(double,double);
 void pow_zz(doublecomplex *r, doublecomplex *a, doublecomplex *b)
-#endif
 {
 double logr, logi, x, y;
 
index ad4ac963ce20e1c487317094bf378d5e2b220a55..ef87858ce63450ce44edae36238b3a9d88f3d1f8 100644 (file)
@@ -9,11 +9,7 @@
 #endif
 
  integer
-#ifdef KR_headers
-qbit_bits(a, b, len) longint a; integer b, len;
-#else
 qbit_bits(longint a, integer b, integer len)
-#endif
 {
        /* Assume 2's complement arithmetic */
 
@@ -27,11 +23,7 @@ qbit_bits(longint a, integer b, integer len)
        }
 
  longint
-#ifdef KR_headers
-qbit_cshift(a, b, len) longint a; integer b, len;
-#else
 qbit_cshift(longint a, integer b, integer len)
-#endif
 {
        ulongint x, y, z;
 
index 87fffb91ff8e75647ae176e8a11143765d4d3f37..03ab5f271ba43aa22b96132c1cb34576c4b83021 100644 (file)
@@ -1,11 +1,7 @@
 #include "f2c.h"
 
  longint
-#ifdef KR_headers
-qbit_shift(a, b) longint a; integer b;
-#else
 qbit_shift(longint a, integer b)
-#endif
 {
        return b >= 0 ? a << b : (longint)((ulongint)a >> -b);
        }
index 7b222961d16dc05806ee1ca2e19551315f2f6461..77c2abd08e60a1ed81226cf6d77d4026486e26f8 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double r_abs(x) real *x;
-#else
 double r_abs(real *x)
-#endif
 {
 if(*x >= 0)
        return(*x);
index 330f88a30929ba2416a8e2734d079c232ca345cd..79d7b6bac5ea7205fc7ca472dc61d7ef81594e8a 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double acos();
-double r_acos(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_acos(real *x)
-#endif
 {
 return( acos(*x) );
 }
index 45ece4b749e3d0010c0d3086bc2d8e3f6f9162aa..83722ba5c5284fec12bd5883a25347ca622c2c3d 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double asin();
-double r_asin(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_asin(real *x)
-#endif
 {
 return( asin(*x) );
 }
index 36479c915b05e3c77f8b4debe7a9e22cda765b33..f8262f23ce5bc140a0c7f922bcac0bb4f728f255 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double atan();
-double r_atan(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_atan(real *x)
-#endif
 {
 return( atan(*x) );
 }
index 9347e1f13a9af8675883e4ba0ff7cb5de6f3ee83..0abc146bbc881ba5a05d1ca34efda7a3389ae376 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double atan2();
-double r_atn2(x,y) real *x, *y;
-#else
 #undef abs
 #include <math.h>
 double r_atn2(real *x, real *y)
-#endif
 {
 return( atan2(*x,*y) );
 }
index 756c694ee7a8f97effea1ab15891689aca3943ab..3be7f6f9581892f2113471ad1bb4cbf7a837c1bd 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-VOID r_cnjg(r, z) complex *r, *z;
-#else
 VOID r_cnjg(complex *r, complex *z)
-#endif
 {
        real zi = z->i;
        r->r = z->r;
index 5bda158cee950b498817689d257464b36bbad4d2..380e250b81d9f581da18e76fe549340096586a06 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double cos();
-double r_cos(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_cos(real *x)
-#endif
 {
 return( cos(*x) );
 }
index 7ae72cc0cef95f9e798c9a280615043899d825ca..d133cf9b8036bcabbbfbbd660505344b2bb680a9 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double cosh();
-double r_cosh(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_cosh(real *x)
-#endif
 {
 return( cosh(*x) );
 }
index baca95cd9e4745ddd29e38ec65361e1d705b3ad2..fe3896b76519a27217ad68d2cec5017eba34120f 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double r_dim(a,b) real *a, *b;
-#else
 double r_dim(real *a, real *b)
-#endif
 {
 return( *a > *b ? *a - *b : 0);
 }
index d1dea75563f029c87d6c29ce9a16c697f3db819a..2a9581c267c9c1f9a9a03551ae8ed45cc8fb61af 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double exp();
-double r_exp(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_exp(real *x)
-#endif
 {
 return( exp(*x) );
 }
index d51252bbb7910a7e6b9b7c35f9d630aa3e3257f1..42042a9cb8e456167d10372cb4f9f0af249dfdae 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double r_imag(z) complex *z;
-#else
 double r_imag(complex *z)
-#endif
 {
 return(z->i);
 }
index 8378e775726a2ce3d709506665d781f8d5e569b3..b2a4747424cade578689d6a5cad8f6110277bee9 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-double r_int(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_int(real *x)
-#endif
 {
 return( (*x>0) ? floor(*x) : -floor(- *x) );
 }
index 51f84201711829b65c7929a476e7cffad91763e2..36336cb52ddf5372d8f5c5eefc31856cc27ed3aa 100644 (file)
@@ -2,14 +2,9 @@
 
 #define log10e 0.43429448190325182765
 
-#ifdef KR_headers
-double log();
-double r_lg10(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_lg10(real *x)
-#endif
 {
 return( log10e * log(*x) );
 }
index 4873fb418e89da09524447f8e93c887ccaac0f98..3cc069d8d92543d2a79db4024b78eff0c6db0949 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double log();
-double r_log(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_log(real *x)
-#endif
 {
 return( log(*x) );
 }
index faea344a7b764d9de80dcd29f6349f318424ef4d..c2a1929cfce52881fffffea9c9c2613f059cd0bf 100644 (file)
@@ -1,13 +1,5 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-#ifdef IEEE_drem
-double drem();
-#else
-double floor();
-#endif
-double r_mod(x,y) real *x, *y;
-#else
 #ifdef IEEE_drem
 double drem(double, double);
 #else
@@ -15,7 +7,6 @@ double drem(double, double);
 #include <math.h>
 #endif
 double r_mod(real *x, real *y)
-#endif
 {
 #ifdef IEEE_drem
        double xa, ya, z;
index f5382af660afa2763f572d84c529d47f60a54ec3..79700c8fd98b1b06aa6871d99b0d9c5b23c0ab97 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double floor();
-double r_nint(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_nint(real *x)
-#endif
 {
 return( (*x)>=0 ?
        floor(*x + .5) : -floor(.5 - *x) );
index df6d02af00a76a2937cddc66d9070f407c7008da..01defda583a45330ed7dae330fdf715b86411b0d 100644 (file)
@@ -1,10 +1,6 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double r_sign(a,b) real *a, *b;
-#else
 double r_sign(real *a, real *b)
-#endif
 {
 double x;
 x = (*a >= 0 ? *a : - *a);
index 095b9510de90c66cd45d21dd840be25518f9ca97..9d7db2ce7c7b51f74eae328f1a60d89b158a996f 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sin();
-double r_sin(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_sin(real *x)
-#endif
 {
 return( sin(*x) );
 }
index 3bf4bb138be9af8bb3dd136a3c6ec64624e8a382..47b6ad8a2b94a8506bf19844653fe59b16bd909d 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sinh();
-double r_sinh(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_sinh(real *x)
-#endif
 {
 return( sinh(*x) );
 }
index d0203d3d19bd9301772780abb8c860cf4d867f40..114cd1bd3016b84ca37a2636ceb7154a4627d1aa 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sqrt();
-double r_sqrt(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_sqrt(real *x)
-#endif
 {
 return( sqrt(*x) );
 }
index fc0009e4774d72c87f0ffddd8d9fd7f7c68416a1..455c96401939fde853241362e7f23ba7483d41ee 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double tan();
-double r_tan(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_tan(real *x)
-#endif
 {
 return( tan(*x) );
 }
index 818c6a8451bfb7814f8a33d99919565c1569c72b..9fe150e01726542d4800c5677aa2740838b4865a 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double tanh();
-double r_tanh(x) real *x;
-#else
 #undef abs
 #include <math.h>
 double r_tanh(real *x)
-#endif
 {
 return( tanh(*x) );
 }
index 77a94f64745347e0ce0278447200cb445dbdd4da..470a3dad337938d7ccba9803f3cc76d10e0da9fa 100644 (file)
@@ -7,25 +7,15 @@
 #ifndef NO_OVERWRITE
 #include <stdio.h>
 #undef abs
-#ifdef KR_headers
- extern char *F77_aloc();
- extern void free();
- extern void G77_exit_0 ();
-#else
 #undef min
 #undef max
 #include <stdlib.h>
  extern char *F77_aloc(ftnlen, char*);
-#endif
 #include <string.h>
 #endif /* NO_OVERWRITE */
 
  VOID
-#ifdef KR_headers
-s_cat(lp, rpp, rnp, np, ll) char *lp, *rpp[]; ftnint rnp[], *np; ftnlen ll;
-#else
 s_cat(char *lp, char *rpp[], ftnint rnp[], ftnint *np, ftnlen ll)
-#endif
 {
        ftnlen i, nc;
        char *rp;
index 1e052f28642612703ce669a92dbf28fa922c3115..febc58649eafc218198978285c35d1648cf2be94 100644 (file)
@@ -2,11 +2,7 @@
 
 /* compare two strings */
 
-#ifdef KR_headers
-integer s_cmp(a0, b0, la, lb) char *a0, *b0; ftnlen la, lb;
-#else
 integer s_cmp(char *a0, char *b0, ftnlen la, ftnlen lb)
-#endif
 {
 register unsigned char *a, *aend, *b, *bend;
 a = (unsigned char *)a0;
index d1673510c62b8afd684b06c3692094e6147aaab7..a0c98caa3d752fddaf7018cb9a2119d0ef7b55b1 100644 (file)
@@ -8,11 +8,7 @@
 
 /* assign strings:  a = b */
 
-#ifdef KR_headers
-VOID s_copy(a, b, la, lb) register char *a, *b; ftnlen la, lb;
-#else
 void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb)
-#endif
 {
        register char *aend, *bend;
 
index a7733a533620109671f7e0b7a72c838406c61f49..3fe256c948c547fc0511fdef68a59a155f25d55e 100644 (file)
@@ -3,10 +3,6 @@
 #define PAUSESIG 15
 
 #include "signal1.h"
-#ifdef KR_headers
-#define Void /* void */
-#define Int /* int */
-#else
 #define Void void
 #define Int int
 #undef abs
@@ -17,7 +13,6 @@
 extern "C" {
 #endif
 extern int getpid(void), isatty(int), pause(void);
-#endif
 
 extern VOID f_exit(Void);
 
@@ -28,11 +23,7 @@ waitpause(Sigarg)
        }
 
  static VOID
-#ifdef KR_headers
-s_1paus(fin) FILE *fin;
-#else
 s_1paus(FILE *fin)
-#endif
 {
        fprintf(stderr,
        "To resume execution, type go.  Other input will terminate the job.\n");
@@ -47,11 +38,7 @@ s_1paus(FILE *fin)
        }
 
  int
-#ifdef KR_headers
-s_paus(s, n) char *s; ftnlen n;
-#else
 s_paus(char *s, ftnlen n)
-#endif
 {
        fprintf(stderr, "PAUSE ");
        if(n > 0)
index 766889bbfa5912968897c06e7c1abe0518391d3b..833d3e1a449a7fa9cd138a786d50db2b5ffde9de 100644 (file)
@@ -3,13 +3,8 @@
 
 /* called when a subscript is out of range */
 
-#ifdef KR_headers
-extern VOID sig_die();
-integer s_rnge(varn, offset, procn, line) char *varn, *procn; ftnint offset, line;
-#else
 extern VOID sig_die(char*,int);
 integer s_rnge(char *varn, ftnint offset, char *procn, ftnint line)
-#endif
 {
 register int i;
 
index 975edb7d4ad08148294166a6573fc6e10ecd980d..6e8652aeb2e19d0168b25aee195e5fbd692b830f 100644 (file)
@@ -1,10 +1,6 @@
 #include <stdio.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-extern void f_exit();
-VOID s_stop(s, n) char *s; ftnlen n;
-#else
 #undef abs
 #undef min
 #undef max
@@ -15,7 +11,6 @@ extern "C" {
 void f_exit(void);
 
 int s_stop(char *s, ftnlen n)
-#endif
 {
 int i;
 
index 929860aeef3aa70c008af0efc3c853848bf8dcac..83aedaf5fb79613ed58c223a45bcdf121a068b41 100644 (file)
@@ -1,10 +1,8 @@
 /* Set up the global argc/argv info for use by getarg_, iargc_, and
    g77's inlined intrinsic equivalents.  */
 
-#ifndef KR_headers
 #undef VOID
 #include <stdlib.h>
-#endif
 
 #ifndef VOID
 #define VOID void
@@ -18,11 +16,7 @@ char **f__xargv;
 #endif
 
  void
-#ifdef KR_headers
-f_setarg(argc, argv) int argc; char **argv;
-#else
 f_setarg(int argc, char **argv)
-#endif
 {
 f__xargc = argc;
 f__xargv = argv;
index 8fde2fa27e81874b2e4c68935ba5d5a30e7d4518..38fce0ac0c11d1161f8a7ee56d95bab3784ac904 100644 (file)
@@ -9,10 +9,8 @@
 #endif
 #endif
 
-#ifndef KR_headers
 #undef VOID
 #include <stdlib.h>
-#endif
 
 #ifndef VOID
 #define VOID void
 extern "C" {
 #endif
 
-#ifdef KR_headers
-extern VOID sig_die();
-#define Int /* int */
-#else
 extern void sig_die(char*, int);
 #define Int int
-#endif
 
 static VOID sigfdie(Sigarg)
 {
index bebb1e7b8f783d0921442b10d2c44a162c41acda..507c7ee658e2354f1e1d60fc520923c87abc9bf5 100644 (file)
@@ -7,9 +7,6 @@
 #endif
 #endif
 
-#ifdef KR_headers
-void sig_die(s, kill) register char *s; int kill;
-#else
 #include <stdlib.h>
 #ifdef __cplusplus
 extern "C" {
@@ -17,7 +14,6 @@ extern "C" {
  extern void f_exit(void);
 
 void sig_die(register char *s, int kill)
-#endif
 {
        /* print error message, then clear buffers */
        fprintf(stderr, "%s\n", s);
index a383774b82d2f53661d1119f093aec1e2409b401..d6d7b55d59ccd839f966268616d67ec324ffe366 100644 (file)
 #define Sigret_t void
 #endif
 #ifndef Sigarg_t
-#ifdef KR_headers
-#define Sigarg_t
-#else
 #define Sigarg_t int
-#endif
 #endif /*Sigarg_t*/
 
 #ifdef USE_SIG_PF      /* compile with -DUSE_SIG_PF under IRIX */
index b0d7ce6a69bc6943a965f3550772bd1a10bbfb63..ff496a182b88af89486820030abd1fe0cd77f964 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 #include "signal1.h"
 
-#ifdef KR_headers
-void *
-G77_signal_0 (sigp, proc) integer *sigp; sig_pf proc;
-#else
 void *
 G77_signal_0 (integer *sigp, sig_pf proc)
-#endif
 {
        int sig;
        sig = (int)*sigp;
index ed024a14ded5ca7a234b46bbaad732d81721086a..ebb3041618bad5742322f06f9b9cc4c6eb6823b8 100644 (file)
@@ -2,12 +2,6 @@
 
 #include "f2c.h"
 
-#ifdef KR_headers
-extern char *F77_aloc();
-
- integer
-G77_system_0 (s, n) register char *s; ftnlen n;
-#else
 #undef abs
 #undef min
 #undef max
@@ -16,7 +10,6 @@ extern char *F77_aloc(ftnlen, char*);
 
  integer
 G77_system_0 (register char *s, ftnlen n)
-#endif
 {
        char buff0[256], *buff;
        register char *bp, *blast;
index 7e67ad2957fb966bb01c39c4ed58c342f687a613..50375653f6042416cacb1dc1f1f6d72358fd1ce4 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double f__cabs();
-double z_abs(z) doublecomplex *z;
-#else
 double f__cabs(double, double);
 double z_abs(doublecomplex *z)
-#endif
 {
 return( f__cabs( z->r, z->i ) );
 }
index 2d4a24d2818612cdef2d8c0efd1fd902ccd818e6..74ee2e4d66a5ce87f5af1da745eb7494a76eb6ef 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sin(), cos(), sinh(), cosh();
-VOID z_cos(r, z) doublecomplex *r, *z;
-#else
 #undef abs
 #include "math.h"
 void z_cos(doublecomplex *r, doublecomplex *z)
-#endif
 {
        double zi = z->i, zr = z->r;
        r->r =   cos(zr) * cosh(zi);
index e14df32a1f8a79c3a8807abe9dfabdc984df8fe3..d0b5944cbb5a3570b64ca28b06f4b33d7a841584 100644 (file)
@@ -1,12 +1,7 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-extern VOID sig_die();
-VOID z_div(c, a, b) doublecomplex *a, *b, *c;
-#else
 extern void sig_die(char*, int);
 void z_div(doublecomplex *c, doublecomplex *a, doublecomplex *b)
-#endif
 {
        double ratio, den;
        double abr, abi, cr;
index ecf84296d72007a3b1db4e2463445802a0b65096..2dad1219859268ed928488cb02f644fc4c4a6e64 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double exp(), cos(), sin();
-VOID z_exp(r, z) doublecomplex *r, *z;
-#else
 #undef abs
 #include "math.h"
 void z_exp(doublecomplex *r, doublecomplex *z)
-#endif
 {
        double expx, zi = z->i;
 
index 9dcc7f73fe5da8d1196d9fd2ad12a161cf6f9ea9..09f8cd4eeea339789511a69611959b182d05e67d 100644 (file)
@@ -1,14 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double log(), f__cabs(), atan2();
-VOID z_log(r, z) doublecomplex *r, *z;
-#else
 #undef abs
 #include "math.h"
 extern double f__cabs(double, double);
 void z_log(doublecomplex *r, doublecomplex *z)
-#endif
 {
        double s, s0, t, t2, u, v;
        double zi = z->i, zr = z->r;
index e24caff927e9ce3e42bc8f770285adcf89362e23..1294d2238a917816aa051ce990ab0ef038aeb81a 100644 (file)
@@ -1,13 +1,8 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sin(), cos(), sinh(), cosh();
-VOID z_sin(r, z) doublecomplex *r, *z;
-#else
 #undef abs
 #include "math.h"
 void z_sin(doublecomplex *r, doublecomplex *z)
-#endif
 {
        double zi = z->i, zr = z->r;
        r->r = sin(zr) * cosh(zi);
index c04e8f0a1a72324a1beae8bd3bd22b283dac5a98..94560ed8223fb821a0624e2dc06815e6ccaa9fd2 100644 (file)
@@ -1,14 +1,9 @@
 #include "f2c.h"
 
-#ifdef KR_headers
-double sqrt(), f__cabs();
-VOID z_sqrt(r, z) doublecomplex *r, *z;
-#else
 #undef abs
 #include "math.h"
 extern double f__cabs(double, double);
 void z_sqrt(doublecomplex *r, doublecomplex *z)
-#endif
 {
        double mag, zi = z->i, zr = z->r;
 
index 848923912bf85fe2014c91f61b4e7d0f2129f42c..ba1dfa17adfc2876471cda0af3297ce98a9f246a 100644 (file)
@@ -2,11 +2,7 @@
 #include <sys/types.h>
 #include "f2c.h"
 #include "fio.h"
-#ifdef KR_headers
-integer f_back(a) alist *a;
-#else
 integer f_back(alist *a)
-#endif
 {      unit *b;
        off_t v, w, x, y, z;
        uiolen n;
index 79a349369ed32e959136295312c6edb6363ae5b2..e016fdaeb2ed60b553d294b011d42375106ead86 100644 (file)
@@ -1,9 +1,7 @@
 #include "config.h"
 #include "f2c.h"
 #include "fio.h"
-#ifdef KR_headers
-integer f_clos(a) cllist *a;
-#else
+
 #undef abs
 #undef min
 #undef max
@@ -25,7 +23,6 @@ extern int unlink(const char*);
 #endif
 
 integer f_clos(cllist *a)
-#endif
 {      unit *b;
 
        if (f__init & 2)
@@ -66,11 +63,7 @@ integer f_clos(cllist *a)
        return(0);
        }
  void
-#ifdef KR_headers
-f_exit()
-#else
 f_exit(void)
-#endif
 {      int i;
        static cllist xx;
        if (! (f__init & 1))
@@ -93,11 +86,7 @@ f_exit(void)
        }
 }
  int
-#ifdef KR_headers
-G77_flush_0 ()
-#else
 G77_flush_0 (void)
-#endif
 {      int i;
        for(i=0;i<MXUNIT;i++)
                if(f__units[i].ufd != NULL && f__units[i].uwrt)
index e064fbaa43e1a57c41836c8f48b34a26fa04679a..7b8efd895fbbbd233138f52dcdf17e9201f42ca0 100755 (executable)
@@ -988,14 +988,13 @@ EOF
 
 fi
 
-
 echo $ac_n "checking for posix""... $ac_c" 1>&6
-echo "configure:994: checking for posix" >&5
+echo "configure:993: checking for posix" >&5
 if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 999 "configure"
+#line 998 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <unistd.h>
@@ -1021,12 +1020,12 @@ echo "$ac_t""$g77_cv_header_posix" 1>&6
 # We can rely on the GNU library being posix-ish.  I guess checking the 
 # header isn't actually like checking the functions, though...
 echo $ac_n "checking for GNU library""... $ac_c" 1>&6
-echo "configure:1025: checking for GNU library" >&5
+echo "configure:1024: checking for GNU library" >&5
 if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1030 "configure"
+#line 1029 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 #ifdef __GNU_LIBRARY__
@@ -1050,12 +1049,12 @@ echo "$ac_t""$g77_cv_lib_gnu" 1>&6
 
 # Apparently cygwin needs to be special-cased.
 echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6
-echo "configure:1054: checking for cyg\`win'32" >&5
+echo "configure:1053: checking for cyg\`win'32" >&5
 if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1059 "configure"
+#line 1058 "configure"
 #include "confdefs.h"
 #ifdef __CYGWIN32__
   yes
@@ -1078,12 +1077,12 @@ echo "$ac_t""$g77_cv_sys_cygwin32" 1>&6
 
 # ditto for mingw32.
 echo $ac_n "checking for mingw32""... $ac_c" 1>&6
-echo "configure:1082: checking for mingw32" >&5
+echo "configure:1081: checking for mingw32" >&5
 if eval "test \"`echo '$''{'g77_cv_sys_mingw32'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1087 "configure"
+#line 1086 "configure"
 #include "confdefs.h"
 #ifdef __MINGW32__
   yes
@@ -1106,12 +1105,12 @@ echo "$ac_t""$g77_cv_sys_mingw32" 1>&6
 
 
 echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:1110: checking for working const" >&5
+echo "configure:1109: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1115 "configure"
+#line 1114 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -1160,7 +1159,7 @@ ccp = (char const *const *) p;
 
 ; return 0; }
 EOF
-if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_const=yes
 else
@@ -1181,12 +1180,12 @@ EOF
 fi
 
 echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:1185: checking for size_t" >&5
+echo "configure:1184: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1190 "configure"
+#line 1189 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -1219,12 +1218,12 @@ fi
 # Apparently positive result on cygwin loses re. NON_UNIX_STDIO
 # (as of cygwin b18). Likewise on mingw.
 echo $ac_n "checking for fstat""... $ac_c" 1>&6
-echo "configure:1223: checking for fstat" >&5
+echo "configure:1222: checking for fstat" >&5
 if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1228 "configure"
+#line 1227 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char fstat(); below.  */
@@ -1247,7 +1246,7 @@ fstat();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_fstat=yes"
 else
@@ -1267,7 +1266,7 @@ else
 fi
 
 echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6
-echo "configure:1271: checking need for NON_UNIX_STDIO" >&5
+echo "configure:1270: checking need for NON_UNIX_STDIO" >&5
 if test $g77_cv_sys_cygwin32 = yes \
   || test $g77_cv_sys_mingw32 = yes \
   || test $ac_cv_func_fstat = no; then
@@ -1283,12 +1282,12 @@ fi
 for ac_func in fseeko
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1287: checking for $ac_func" >&5
+echo "configure:1286: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1292 "configure"
+#line 1291 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1311,7 +1310,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1338,12 +1337,12 @@ done
 for ac_func in ftello
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1342: checking for $ac_func" >&5
+echo "configure:1341: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1347 "configure"
+#line 1346 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1366,7 +1365,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1393,12 +1392,12 @@ done
 for ac_func in ftruncate
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1397: checking for $ac_func" >&5
+echo "configure:1396: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1402 "configure"
+#line 1401 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1421,7 +1420,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1448,12 +1447,12 @@ done
 for ac_func in mkstemp
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1452: checking for $ac_func" >&5
+echo "configure:1451: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1457 "configure"
+#line 1456 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1476,7 +1475,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1503,12 +1502,12 @@ done
 for ac_func in tempnam
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1507: checking for $ac_func" >&5
+echo "configure:1506: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1512 "configure"
+#line 1511 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1531,7 +1530,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1558,12 +1557,12 @@ done
 for ac_func in tmpnam
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1562: checking for $ac_func" >&5
+echo "configure:1561: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1567 "configure"
+#line 1566 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1586,7 +1585,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1616,19 +1615,19 @@ done
 # However, on my sunos4/gcc setup unistd.h leads us wrongly to believe
 # we're posix-conformant, so always do the test.
 echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6
-echo "configure:1620: checking for ansi/posix sprintf result" >&5
+echo "configure:1619: checking for ansi/posix sprintf result" >&5
 if test "$cross_compiling" = yes; then
   g77_cv_sys_sprintf_ansi=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 1625 "configure"
+#line 1624 "configure"
 #include "confdefs.h"
   #include <stdio.h>
     /* does sprintf return the number of chars transferred? */
     main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);}
 
 EOF
-if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   g77_cv_sys_sprintf_ansi=yes
 else
@@ -1659,9 +1658,9 @@ fi
 
 # define NON_ANSI_RW_MODES on unix (can't hurt)
 echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6
-echo "configure:1663: checking NON_ANSI_RW_MODES" >&5
+echo "configure:1662: checking NON_ANSI_RW_MODES" >&5
 cat > conftest.$ac_ext <<EOF
-#line 1665 "configure"
+#line 1664 "configure"
 #include "confdefs.h"
 #ifdef unix
   yes
@@ -1706,12 +1705,12 @@ EOF
 
 
 echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:1710: checking for off_t" >&5
+echo "configure:1709: checking for off_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1715 "configure"
+#line 1714 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
index 988a8e542c30f70a5bece45a7bce8654ad1646ab..0455647e4422d034494207e89c7408878b2c2a4e 100644 (file)
@@ -62,17 +62,6 @@ the G77 runtime system.  If necessary, install gcc now with \`LANGUAGES=c',
 then the target library, then build with \`LANGUAGES=f77'.])])
 
 AC_HEADER_STDC
-dnl We could do this if we didn't know we were using gcc
-dnl AC_MSG_CHECKING(for prototype-savvy compiler)
-dnl AC_CACHE_VAL(g77_cv_sys_proto,                
-dnl   [AC_TRY_LINK(,                             
-dnl dnl looks screwy because TRY_LINK expects a function body
-dnl    [return 0;} int foo (int * bar) {],       
-dnl    g77_cv_sys_proto=yes,                      
-dnl    [g77_cv_sys_proto=no                       
-dnl     AC_DEFINE(KR_headers)])])                
-dnl AC_MSG_RESULT($g77_cv_sys_proto)              
-
 AC_MSG_CHECKING(for posix)
 AC_CACHE_VAL(g77_cv_header_posix,
   AC_EGREP_CPP(yes,
index 18edabc9cd105be26ae60b8f0e26255c02dc9255..cfadb15347a39b5a14cf5ca33852cac691e8a804 100644 (file)
@@ -61,11 +61,7 @@ y_newrec(Void)
        return(1);
 }
 
-#ifdef KR_headers
-c_dfe(a) cilist *a;
-#else
 c_dfe(cilist *a)
-#endif
 {
        f__sequential=0;
        f__formatted=f__external=1;
@@ -86,11 +82,7 @@ c_dfe(cilist *a)
        f__curunit->uend = 0;
        return(0);
 }
-#ifdef KR_headers
-integer s_rdfe(a) cilist *a;
-#else
 integer s_rdfe(cilist *a)
-#endif
 {
        int n;
        if(f__init != 1) f_init();
@@ -109,11 +101,7 @@ integer s_rdfe(cilist *a)
        fmt_bg();
        return(0);
 }
-#ifdef KR_headers
-integer s_wdfe(a) cilist *a;
-#else
 integer s_wdfe(cilist *a)
-#endif
 {
        int n;
        if(f__init != 1) f_init();
index 1e0c3779bb5d583c424d48eb17742b0975d829b4..860af54092248d0fd6bac221011f804032c8e911 100644 (file)
@@ -4,15 +4,9 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-#ifdef KR_headers
-extern int (*f__lioproc)();
-
-integer do_lio(type,number,ptr,len) ftnint *number,*type; char *ptr; ftnlen len;
-#else
 extern int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint);
 
 integer do_lio(ftnint *type, ftnint *number, char *ptr, ftnlen len)
-#endif
 {
        return((*f__lioproc)(number,ptr,len,*type));
 }
index f7d6941935e1ad08f43f6656c0838258f2374d0d..d118c4d5c129f7b1723a4c40974e3f3950ede376 100644 (file)
@@ -2,11 +2,7 @@
 #include "f2c.h"
 #include "fio.h"
 
-#ifdef KR_headers
-c_due(a) cilist *a;
-#else
 c_due(cilist *a)
-#endif
 {
        if(f__init != 1) f_init();
        f__init = 3;
@@ -29,11 +25,7 @@ c_due(cilist *a)
        f__curunit->uend = 0;
        return(0);
 }
-#ifdef KR_headers
-integer s_rdue(a) cilist *a;
-#else
 integer s_rdue(cilist *a)
-#endif
 {
        int n;
        f__reading=1;
@@ -42,11 +34,7 @@ integer s_rdue(cilist *a)
                err(a->cierr,errno,"read start");
        return(0);
 }
-#ifdef KR_headers
-integer s_wdue(a) cilist *a;
-#else
 integer s_wdue(cilist *a)
-#endif
 {
        int n;
        f__reading=0;
index 4c5a9dd21d63fc4e4546fb256925ace098e04ada..bd7f0c1e68743ba5bcb2ff651228f9e435c74176 100644 (file)
@@ -5,24 +5,15 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#ifdef KR_headers
-extern char *strcpy();
-extern FILE *tmpfile();
-#else
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
 #include <string.h>
-#endif
 
 extern char *f__r_mode[], *f__w_mode[];
 
-#ifdef KR_headers
-integer f_end(a) alist *a;
-#else
 integer f_end(alist *a)
-#endif
 {
        unit *b;
        FILE *tf;
@@ -44,11 +35,7 @@ integer f_end(alist *a)
 
 #ifndef HAVE_FTRUNCATE
  static int
-#ifdef KR_headers
-copy(from, len, to) FILE *from, *to; register long len;
-#else
 copy(FILE *from, register long len, FILE *to)
-#endif
 {
        int len1;
        char buf[BUFSIZ];
@@ -64,11 +51,7 @@ copy(FILE *from, register long len, FILE *to)
 #endif /* !defined(HAVE_FTRUNCATE) */
 
  int
-#ifdef KR_headers
-t_runc(a) alist *a;
-#else
 t_runc(alist *a)
-#endif
 {
        off_t loc, len;
        unit *b;
index 1c21f198cdbc7e97885a5a83540a03b8861cf6ad..15cee11372ec874b2bb112de89312a94c987eb2d 100644 (file)
@@ -6,14 +6,10 @@
 #include <sys/stat.h>
 #endif
 #include "f2c.h"
-#ifdef KR_headers
-extern char *malloc();
-#else
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
-#endif
 #include "fio.h"
 #include "fmt.h"       /* for struct syl */
 
@@ -29,17 +25,10 @@ flag f__cplus,f__cblank;
 char *f__fmtbuf;
 int f__fmtlen;
 flag f__external;      /*1 if external io, 0 if internal */
-#ifdef KR_headers
-int (*f__doed)(),(*f__doned)();
-int (*f__doend)(),(*f__donewrec)(),(*f__dorevert)();
-int (*f__getn)();      /* for formatted input */
-void (*f__putn)();     /* for formatted output */
-#else
 int (*f__getn)(void);  /* for formatted input */
 void (*f__putn)(int);  /* for formatted output */
 int (*f__doed)(struct syl*, char*, ftnlen),(*f__doned)(struct syl*);
 int (*f__dorevert)(void),(*f__donewrec)(void),(*f__doend)(void);
-#endif
 flag f__sequential;    /*1 if sequential io, 0 if direct*/
 flag f__formatted;     /*1 if formatted io, 0 if unformatted*/
 FILE *f__cf;   /*current file*/
@@ -87,11 +76,7 @@ char *F_err[] =
 };
 #define MAXERR (sizeof(F_err)/sizeof(char *)+100)
 
-#ifdef KR_headers
-f__canseek(f) FILE *f; /*SYSDEP*/
-#else
 f__canseek(FILE *f) /*SYSDEP*/
-#endif
 {
 #ifdef NON_UNIX_STDIO
        return !isatty(fileno(f));
@@ -142,11 +127,7 @@ f__canseek(FILE *f) /*SYSDEP*/
 }
 
  void
-#ifdef KR_headers
-f__fatal(n,s) char *s;
-#else
 f__fatal(int n, char *s)
-#endif
 {
        static int dead = 0;
 
@@ -204,11 +185,7 @@ f_init(Void)
        p->ufmt=1;
        p->uwrt=1;
 }
-#ifdef KR_headers
-f__nowreading(x) unit *x;
-#else
 f__nowreading(unit *x)
-#endif
 {
        off_t loc;
        int ufmt, urw;
@@ -235,11 +212,7 @@ f__nowreading(unit *x)
        x->uwrt = 0;
        return 0;
 }
-#ifdef KR_headers
-f__nowwriting(x) unit *x;
-#else
 f__nowwriting(unit *x)
-#endif
 {
        off_t loc;
        int ufmt;
@@ -275,11 +248,7 @@ f__nowwriting(unit *x)
 }
 
  int
-#ifdef KR_headers
-err__fl(f, m, s) int f, m; char *s;
-#else
 err__fl(int f, int m, char *s)
-#endif
 {
        if (!f)
                f__fatal(m, s);
index 8c6d274fe49886567da994f3e234f8ed25e573af..52086ba482ecb05aeb17dc561999520825f5701a 100644 (file)
@@ -59,16 +59,6 @@ extern int f__init;
 extern cilist *f__elist;       /*active external io list*/
 extern flag f__reading,f__external,f__sequential,f__formatted;
 #undef Void
-#ifdef KR_headers
-#define Void /*void*/
-extern int (*f__getn)();       /* for formatted input */
-extern void (*f__putn)();      /* for formatted output */
-extern void x_putc();
-extern long f__inode();
-extern VOID sig_die();
-extern int (*f__donewrec)(), t_putc(), x_wSL();
-extern int c_sfe(), err__fl(), xrd_SL(), f__putbuf();
-#else
 #define Void void
 #ifdef __cplusplus
 extern "C" {
@@ -94,7 +84,6 @@ extern int f__putbuf(int);
 #ifdef __cplusplus
        }
 #endif
-#endif
 extern int (*f__doend)(Void);
 extern FILE *f__cf;    /*current file*/
 extern unit *f__curunit;       /*current unit*/
index 793dceb53b8ef33700a11895ac1bd5143dd78dc5..af41fd85b2a5f51f5691a227fd54838ed059ff15 100644 (file)
@@ -23,11 +23,7 @@ static struct syl f__syl[SYLMX];
 int f__parenlvl,f__pc,f__revloc;
 
  static
-#ifdef KR_headers
-char *ap_end(s) char *s;
-#else
 char *ap_end(char *s)
-#endif
 {      char quote;
        quote= *s++;
        for(;*s;s++)
@@ -42,11 +38,7 @@ char *ap_end(char *s)
        /*NOTREACHED*/ return 0;
 }
  static
-#ifdef KR_headers
-op_gen(a,b,c,d)
-#else
 op_gen(int a, int b, int c, int d)
-#endif
 {      struct syl *p= &f__syl[f__pc];
        if(f__pc>=SYLMX)
        {       fprintf(stderr,"format too complicated:\n");
@@ -58,13 +50,8 @@ op_gen(int a, int b, int c, int d)
        p->p2.i[1]=d;
        return(f__pc++);
 }
-#ifdef KR_headers
-static char *f_list();
-static char *gt_num(s,n,n1) char *s; int *n, n1;
-#else
 static char *f_list(char*);
 static char *gt_num(char *s, int *n, int n1)
-#endif
 {      int m=0,f__cnt=0;
        char c;
        for(c= *s;;c = *s)
@@ -87,11 +74,7 @@ static char *gt_num(char *s, int *n, int n1)
 }
 
  static
-#ifdef KR_headers
-char *f_s(s,curloc) char *s;
-#else
 char *f_s(char *s, int curloc)
-#endif
 {
        skip(s);
        if(*s++!='(')
@@ -108,11 +91,7 @@ char *f_s(char *s, int curloc)
 }
 
  static
-#ifdef KR_headers
-ne_d(s,p) char *s,**p;
-#else
 ne_d(char *s, char **p)
-#endif
 {      int n,x,sign=0;
        struct syl *sp;
        switch(*s)
@@ -200,11 +179,7 @@ ne_d(char *s, char **p)
 }
 
  static
-#ifdef KR_headers
-e_d(s,p) char *s,**p;
-#else
 e_d(char *s, char **p)
-#endif
 {      int i,im,n,w,d,e,found=0,x=0;
        char *sv=s;
        s=gt_num(s,&n,1);
@@ -319,11 +294,7 @@ e_d(char *s, char **p)
        return(1);
 }
  static
-#ifdef KR_headers
-char *i_tem(s) char *s;
-#else
 char *i_tem(char *s)
-#endif
 {      char *t;
        int n,curloc;
        if(*s==')') return(s);
@@ -335,11 +306,7 @@ char *i_tem(char *s)
 }
 
  static
-#ifdef KR_headers
-char *f_list(s) char *s;
-#else
 char *f_list(char *s)
-#endif
 {
        for(;*s!=0;)
        {       skip(s);
@@ -359,11 +326,7 @@ char *f_list(char *s)
        return(NULL);
 }
 
-#ifdef KR_headers
-pars_f(s) char *s;
-#else
 pars_f(char *s)
-#endif
 {
        char *e;
 
@@ -405,11 +368,7 @@ int f__cnt[STKSZ],f__ret[STKSZ],f__cp,f__rp;
 flag f__workdone, f__nonl;
 
  static
-#ifdef KR_headers
-type_f(n)
-#else
 type_f(int n)
-#endif
 {
        switch(n)
        {
@@ -437,11 +396,7 @@ type_f(int n)
                return(ED);
        }
 }
-#ifdef KR_headers
-integer do_fio(number,ptr,len) ftnint *number; ftnlen len; char *ptr;
-#else
 integer do_fio(ftnint *number, char *ptr, ftnlen len)
-#endif
 {      struct syl *p;
        int n,i;
        for(i=0;i<*number;i++,ptr+=len)
index 6197e76ed5a45f9c4b96d212f9706935472f4969..7219dce02d7365425499356f5af89f7c35592a34 100644 (file)
@@ -46,21 +46,13 @@ typedef union
 } ufloat;
 typedef union
 {      short is;
-#ifndef KR_headers
        signed
-#endif
                char ic;
        integer il;
 #ifdef Allow_TYQUAD
        longint ili;
 #endif
 } Uint;
-#ifdef KR_headers
-extern int (*f__doed)(),(*f__doned)();
-extern int (*f__dorevert)();
-extern int rd_ed(),rd_ned();
-extern int w_ed(),w_ned();
-#else
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -76,7 +68,6 @@ extern int wrt_L(Uint*, int, ftnlen);
 #ifdef __cplusplus
        }
 #endif
-#endif
 extern flag f__cblank,f__cplus,f__workdone, f__nonl;
 extern char *f__fmtbuf;
 extern int f__fmtlen;
@@ -94,8 +85,4 @@ extern int f__cursor;
 #define TYQUAD 14
 #endif
 
-#ifdef KR_headers
-extern char *f__icvt();
-#else
 extern char *f__icvt(longint, int*, int*, int);
-#endif
index 69c0d9b406fc46fcc9e91742bc1a2ca80470f93f..afc8bfdb6f4736db7d3a0530cf90070b91285ae4 100644 (file)
 #define ulongint unsigned long
 #endif
 
-#ifdef KR_headers
-char *f__icvt(value,ndigit,sign, base) longint value; int *ndigit,*sign;
- register int base;
-#else
 char *f__icvt(longint value, int *ndigit, int *sign, int base)
-#endif
 {
        static char buf[MAXINTLENGTH+1];
        register int i;
index 250a0cc9bcd59dfdefd6a45efbc1891e6a624869..44a5bbca9ebebe8bf939de2aba6365e7116e3251 100644 (file)
@@ -3,11 +3,7 @@
 #include "fio.h"
 
  static FILE *
-#ifdef KR_headers
-unit_chk(Unit, who) integer Unit; char *who;
-#else
 unit_chk(integer Unit, char *who)
-#endif
 {
        if (Unit >= MXUNIT || Unit < 0)
                f__fatal(101, who);
@@ -15,22 +11,14 @@ unit_chk(integer Unit, char *who)
        }
 
  integer
-#ifdef KR_headers
-G77_ftell_0 (Unit) integer *Unit;
-#else
 G77_ftell_0 (integer *Unit)
-#endif
 {
        FILE *f;
        return (f = unit_chk(*Unit, "ftell")) ? (integer) FTELL(f) : -1L;
        }
 
  integer
-#ifdef KR_headers
-G77_fseek_0 (Unit, offset, xwhence) integer *Unit, *offset, *xwhence;
-#else
 G77_fseek_0 (integer *Unit, integer *offset, integer *xwhence)
-#endif
 {
        FILE *f;
        int w = (int)*xwhence;
index 931f15aab6310c2b683e677590784eb2055c5bb7..ee782f482da29c0bf3a5a1fe79eb3c1bf3c7509d 100644 (file)
@@ -16,11 +16,7 @@ z_getc(Void)
 }
 
  void
-#ifdef KR_headers
-z_putc(c)
-#else
 z_putc(int c)
-#endif
 {
        if (f__icptr < f__icend && f__recpos++ < f__svic->icirlen)
                *f__icptr++ = c;
@@ -41,11 +37,7 @@ z_endp(Void)
        return 0;
        }
 
-#ifdef KR_headers
-c_si(a) icilist *a;
-#else
 c_si(icilist *a)
-#endif
 {
        if (f__init & 2)
                f__fatal (131, "I/O recursion");
@@ -78,11 +70,7 @@ iw_rev(Void)
        return(f__workdone=0);
        }
 
-#ifdef KR_headers
-integer s_rsfi(a) icilist *a;
-#else
 integer s_rsfi(icilist *a)
-#endif
 {      int n;
        if(n=c_si(a)) return(n);
        f__reading=1;
@@ -109,11 +97,7 @@ z_wnew(Void)
        f__icnum++;
        return 1;
 }
-#ifdef KR_headers
-integer s_wsfi(a) icilist *a;
-#else
 integer s_wsfi(icilist *a)
-#endif
 {      int n;
        if(n=c_si(a)) return(n);
        f__reading=0;
index 58fca0d326a70533fe1331df8700fa3c651df29b..bf9f87b8919705ed137ab4e72235980617f21339 100644 (file)
@@ -6,11 +6,7 @@ extern char *f__icptr;
 extern char *f__icend;
 extern icilist *f__svic;
 extern int f__icnum;
-#ifdef KR_headers
-extern void z_putc();
-#else
 extern void z_putc(int);
-#endif
 
  static int
 z_wSL(Void)
@@ -21,11 +17,7 @@ z_wSL(Void)
        }
 
  static void
-#ifdef KR_headers
-c_liw(a) icilist *a;
-#else
 c_liw(icilist *a)
-#endif
 {
        f__reading = 0;
        f__external = 0;
@@ -44,11 +36,7 @@ c_liw(icilist *a)
        }
 
  integer
-#ifdef KR_headers
-s_wsni(a) icilist *a;
-#else
 s_wsni(icilist *a)
-#endif
 {
        cilist ca;
 
@@ -62,11 +50,7 @@ s_wsni(icilist *a)
        }
 
  integer
-#ifdef KR_headers
-s_wsli(a) icilist *a;
-#else
 s_wsli(icilist *a)
-#endif
 {
        if(f__init != 1) f_init();
        f__init = 3;
index 5c5575a1d12435dd8fda5f55dc90297b8b7cb730..53cba24d9f8a7c0bdae2b4e192dd4b910f22ddca 100644 (file)
@@ -2,9 +2,6 @@
 #include "f2c.h"
 #include "fio.h"
 #include <string.h>
-#ifdef KR_headers
-integer f_inqu(a) inlist *a;
-#else
 #if defined (MSDOS) && !defined (GO32)
 #undef abs
 #undef min
@@ -12,7 +9,6 @@ integer f_inqu(a) inlist *a;
 #include "io.h"
 #endif
 integer f_inqu(inlist *a)
-#endif
 {      flag byfile;
        int i, n;
        unit *p;
index ec0c23df5fe2b3a82c2b6f5f9aeb7ec0441aa08f..c9540db044c258738fb0f458dc420765f41cc521 100644 (file)
@@ -43,9 +43,7 @@
 
 typedef union
 {
-#ifndef KR_headers
        signed
-#endif
                char    flchar;
        short   flshort;
        ftnint  flint;
@@ -56,10 +54,6 @@ typedef union
        doublereal      fldouble;
 } flex;
 extern int f__scale;
-#ifdef KR_headers
-extern int (*f__lioproc)(), (*l_getc)(), (*l_ungetc)();
-extern int l_read(), l_write();
-#else
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -73,5 +67,4 @@ extern int z_rnew(void);
 #ifdef __cplusplus
        }
 #endif
-#endif
 extern ftnint L_len;
index d546efcc4e13b5a8062ced541b325ede3800800e..2b99175790863f6330d8ebb83c73090a7eef5e08 100644 (file)
@@ -16,25 +16,17 @@ static longint f__llx;
 static int quad_read;
 #endif
 
-#ifdef KR_headers
-extern double atof();
-extern char *malloc(), *realloc();
-int (*f__lioproc)(), (*l_getc)(), (*l_ungetc)();
-#else
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
-#endif
 
 #include "fmt.h"
 #include "lio.h"
 #include "fp.h"
 
-#ifndef KR_headers
 int (*f__lioproc)(ftnint*, char*, ftnlen, ftnint), (*l_getc)(void),
        (*l_ungetc)(int,FILE*);
-#endif
 
 int l_eof;
 
@@ -64,20 +56,12 @@ char f__ltab[128+1] = {     /* offset one for EOF */
 
 #ifdef ungetc
  static int
-#ifdef KR_headers
-un_getc(x,f__cf) int x; FILE *f__cf;
-#else
 un_getc(int x, FILE *f__cf)
-#endif
 { return ungetc(x,f__cf); }
 #else
 #define un_getc ungetc
-#ifdef KR_headers
- extern int ungetc();
-#else
 extern int ungetc(int, FILE*); /* for systems with a buggy stdio.h */
 #endif
-#endif
 
 t_getc(Void)
 {      int ch;
@@ -110,11 +94,7 @@ double f__lx,f__ly;
 #define Ungetc(x,y) (*l_ungetc)(x,y)
 
  static int
-#ifdef KR_headers
-l_R(poststar, reqint) int poststar, reqint;
-#else
 l_R(int poststar, int reqint)
-#endif
 {
        char s[FMAX+EXPMAXDIGS+4];
        register int ch;
@@ -261,11 +241,7 @@ bad:
        }
 
  static int
-#ifdef KR_headers
-rd_count(ch) register int ch;
-#else
 rd_count(register int ch)
-#endif
 {
        if (ch < '0' || ch > '9')
                return 1;
@@ -342,11 +318,7 @@ l_C(Void)
 
  static char nmLbuf[256], *nmL_next;
  static int (*nmL_getc_save)(Void);
-#ifdef KR_headers
- static int (*nmL_ungetc_save)(/* int, FILE* */);
-#else
  static int (*nmL_ungetc_save)(int, FILE*);
-#endif
 
  static int
 nmL_getc(Void)
@@ -360,22 +332,14 @@ nmL_getc(Void)
        }
 
  static int
-#ifdef KR_headers
-nmL_ungetc(x, f) int x; FILE *f;
-#else
 nmL_ungetc(int x, FILE *f)
-#endif
 {
        f = f;  /* banish non-use warning */
        return *--nmL_next = x;
        }
 
  static int
-#ifdef KR_headers
-Lfinish(ch, dot, rvp) int ch, dot, *rvp;
-#else
 Lfinish(int ch, int dot, int *rvp)
-#endif
 {
        char *s, *se;
        static char what[] = "namelist input";
@@ -619,11 +583,7 @@ l_CHAR(Void)
                }
        }
 }
-#ifdef KR_headers
-c_le(a) cilist *a;
-#else
 c_le(cilist *a)
-#endif
 {
        if(f__init != 1) f_init();
        f__init = 3;
@@ -640,11 +600,7 @@ c_le(cilist *a)
        if(!f__curunit->ufmt) err(a->cierr,103,"lio");
        return(0);
 }
-#ifdef KR_headers
-l_read(number,ptr,len,type) ftnint *number,type; char *ptr; ftnlen len;
-#else
 l_read(ftnint *number, char *ptr, ftnlen len, ftnint type)
-#endif
 {
 #define Ptr ((flex *)ptr)
        int i,n,ch;
@@ -771,11 +727,7 @@ l_read(ftnint *number, char *ptr, ftnlen len, ftnint type)
        return(0);
 #undef Ptr
 }
-#ifdef KR_headers
-integer s_rsle(a) cilist *a;
-#else
 integer s_rsle(cilist *a)
-#endif
 {
        int n;
 
index bf209f47ed201c4bcfbd9be0366c79f876ef4087..d21a0feb7932744f4ea0e65e2351914de086ec4b 100644 (file)
@@ -14,11 +14,7 @@ donewrec(Void)
        }
 
  static VOID
-#ifdef KR_headers
-lwrt_I(n) longint n;
-#else
 lwrt_I(longint n)
-#endif
 {
        char *p;
        int ndigit, sign;
@@ -33,22 +29,14 @@ lwrt_I(longint n)
                PUT(*p++);
 }
  static VOID
-#ifdef KR_headers
-lwrt_L(n, len) ftnint n; ftnlen len;
-#else
 lwrt_L(ftnint n, ftnlen len)
-#endif
 {
        if(f__recpos+LLOGW>=L_len)
                donewrec();
        wrt_L((Uint *)&n,LLOGW, len);
 }
  static VOID
-#ifdef KR_headers
-lwrt_A(p,len) char *p; ftnlen len;
-#else
 lwrt_A(char *p, ftnlen len)
-#endif
 {
        int a;
        char *p1, *pe;
@@ -89,11 +77,7 @@ lwrt_A(char *p, ftnlen len)
 }
 
  static int
-#ifdef KR_headers
-l_g(buf, n) char *buf; double n;
-#else
 l_g(char *buf, double n)
-#endif
 {
 #ifdef Old_list_output
        doublereal absn;
@@ -167,17 +151,9 @@ l_g(char *buf, double n)
        }
 
  static VOID
-#ifdef KR_headers
-l_put(s) register char *s;
-#else
 l_put(register char *s)
-#endif
 {
-#ifdef KR_headers
-       register void (*pn)() = f__putn;
-#else
        register void (*pn)(int) = f__putn;
-#endif
        register int c;
 
        while(c = *s++)
@@ -185,11 +161,7 @@ l_put(register char *s)
        }
 
  static VOID
-#ifdef KR_headers
-lwrt_F(n) double n;
-#else
 lwrt_F(double n)
-#endif
 {
        char buf[LEFBL];
 
@@ -198,11 +170,7 @@ lwrt_F(double n)
        l_put(buf);
 }
  static VOID
-#ifdef KR_headers
-lwrt_C(a,b) double a,b;
-#else
 lwrt_C(double a, double b)
-#endif
 {
        char *ba, *bb, bufa[LEFBL], bufb[LEFBL];
        int al, bl;
@@ -231,11 +199,7 @@ lwrt_C(double a, double b)
        l_put(bb);
        PUT(')');
 }
-#ifdef KR_headers
-l_write(number,ptr,len,type) ftnint *number,type; char *ptr; ftnlen len;
-#else
 l_write(ftnint *number, char *ptr, ftnlen len, ftnint type)
-#endif
 {
 #define Ptr ((flex *)ptr)
        int i;
index 52e70d50b7c50f8d6ae0f67a207949beb415cd44..9e3ce67cd79073b400f2a641a4e133af89a30966 100644 (file)
 #endif
 #endif
 
-#ifdef KR_headers
-extern char *malloc();
-#ifdef NON_ANSI_STDIO
-extern char *mktemp();
-#endif
-extern integer f_clos();
-#else
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
 extern int f__canseek(FILE*);
 extern integer f_clos(cllist*);
-#endif
 
 #ifdef NON_ANSI_RW_MODES
 char *f__r_mode[2] = {"r", "r"};
@@ -37,11 +29,7 @@ char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};
  int f__buflen = (int)sizeof(f__buf0);
 
  static void
-#ifdef KR_headers
-f__bufadj(n, c) int n, c;
-#else
 f__bufadj(int n, int c)
-#endif
 {
        unsigned int len;
        char *nbuf, *s, *t, *te;
@@ -64,11 +52,7 @@ f__bufadj(int n, int c)
        }
 
  int
-#ifdef KR_headers
-f__putbuf(c) int c;
-#else
 f__putbuf(int c)
-#endif
 {
        char *s, *se;
        int n;
@@ -94,11 +78,7 @@ f__putbuf(int c)
        }
 
  void
-#ifdef KR_headers
-x_putc(c)
-#else
 x_putc(int c)
-#endif
 {
        if (f__recpos >= f__buflen)
                f__bufadj(f__recpos, f__buflen);
@@ -109,11 +89,7 @@ x_putc(int c)
   do {if(f) {f__init &= ~2; errno= m;} else opn_err(m,s,a); return(m);} while(0)
 
  static void
-#ifdef KR_headers
-opn_err(m, s, a) int m; char *s; olist *a;
-#else
 opn_err(int m, char *s, olist *a)
-#endif
 {
        if (a->ofnm) {
                /* supply file name to error message */
@@ -124,11 +100,7 @@ opn_err(int m, char *s, olist *a)
        f__fatal(m, s);
        }
 
-#ifdef KR_headers
-integer f_open(a) olist *a;
-#else
 integer f_open(olist *a)
-#endif
 {      unit *b;
        integer rv;
        char buf[256], *s, *env;
@@ -284,11 +256,7 @@ integer f_open(olist *a)
                                opnerr(a->oerr,129,"open");
        return(0);
 }
-#ifdef KR_headers
-fk_open(seq,fmt,n) ftnint n;
-#else
 fk_open(int seq, int fmt, ftnint n)
-#endif
 {      char nbuf[10];
        olist a;
        int rtn;
index 81426ae7d1a2b255fb7c1fce9944aa540aeaa422..4da8ed6bb29cd99cf6627e0f482347c324390fab 100644 (file)
@@ -4,24 +4,16 @@
 #include "fio.h"
 
 extern int f__cursor;
-#ifdef KR_headers
-extern double atof();
-#else
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
-#endif
 
 #include "fmt.h"
 #include "fp.h"
 
  static int
-#ifdef KR_headers
-rd_Z(n,w,len) Uint *n; ftnlen len;
-#else
 rd_Z(Uint *n, int w, ftnlen len)
-#endif
 {
        long x[9];
        char *s, *s0, *s1, *se, *t;
@@ -95,11 +87,7 @@ rd_Z(Uint *n, int w, ftnlen len)
        }
 
  static int
-#ifdef KR_headers
-rd_I(n,w,len, base) Uint *n; int w; ftnlen len; register int base;
-#else
 rd_I(Uint *n, int w, ftnlen len, register int base)
-#endif
 {
        int bad, ch, sign;
        longint x = 0;
@@ -166,11 +154,7 @@ rd_I(Uint *n, int w, ftnlen len, register int base)
 }
 
  static int
-#ifdef KR_headers
-rd_L(n,w,len) ftnint *n; ftnlen len;
-#else
 rd_L(ftnint *n, int w, ftnlen len)
-#endif
 {      int ch, dot, lv;
 
        if (w <= 0)
@@ -227,11 +211,7 @@ rd_L(ftnint *n, int w, ftnlen len)
 }
 
  static int
-#ifdef KR_headers
-rd_F(p, w, d, len) ufloat *p; ftnlen len;
-#else
 rd_F(ufloat *p, int w, int d, ftnlen len)
-#endif
 {
        char s[FMAX+EXPMAXDIGS+4];
        register int ch;
@@ -394,11 +374,7 @@ zero:
 
 
  static int
-#ifdef KR_headers
-rd_A(p,len) char *p; ftnlen len;
-#else
 rd_A(char *p, ftnlen len)
-#endif
 {      int i,ch;
        for(i=0;i<len;i++)
        {       GET(ch);
@@ -407,11 +383,7 @@ rd_A(char *p, ftnlen len)
        return(0);
 }
  static int
-#ifdef KR_headers
-rd_AW(p,w,len) char *p; ftnlen len;
-#else
 rd_AW(char *p, int w, ftnlen len)
-#endif
 {      int i,ch;
        if(w>=len)
        {       for(i=0;i<w-len;i++)
@@ -430,11 +402,7 @@ rd_AW(char *p, int w, ftnlen len)
        return(0);
 }
  static int
-#ifdef KR_headers
-rd_H(n,s) char *s;
-#else
 rd_H(int n, char *s)
-#endif
 {      int i,ch;
        for(i=0;i<n;i++)
                if((ch=(*f__getn)())<0) return(ch);
@@ -442,11 +410,7 @@ rd_H(int n, char *s)
        return(1);
 }
  static int
-#ifdef KR_headers
-rd_POS(s) char *s;
-#else
 rd_POS(char *s)
-#endif
 {      char quote;
        int ch;
        quote= *s++;
@@ -456,11 +420,7 @@ rd_POS(char *s)
                else *s = ch=='\n'?' ':ch;
        return(1);
 }
-#ifdef KR_headers
-rd_ed(p,ptr,len) struct syl *p; char *ptr; ftnlen len;
-#else
 rd_ed(struct syl *p, char *ptr, ftnlen len)
-#endif
 {      int ch;
        for(;f__cursor>0;f__cursor--) if((ch=(*f__getn)())<0) return(ch);
        if(f__cursor<0)
@@ -519,11 +479,7 @@ rd_ed(struct syl *p, char *ptr, ftnlen len)
                clearerr(f__cf);
        return(errno);
 }
-#ifdef KR_headers
-rd_ned(p) struct syl *p;
-#else
 rd_ned(struct syl *p)
-#endif
 {
        switch(p->op)
        {
index 06915195d67030190a8fb263b05df4055ccc4c07..39c2dae7dafe26ba08076acab7517ee865d1102d 100644 (file)
@@ -1,11 +1,7 @@
 #include "config.h"
 #include "f2c.h"
 #include "fio.h"
-#ifdef KR_headers
-integer f_rew(a) alist *a;
-#else
 integer f_rew(alist *a)
-#endif
 {
        unit *b;
        if (f__init & 2)
index 1be45310f5179b0b40d61c95dcc8347ccd22fe4e..5014665ee5b1f74224bb75bf0b82666f0ea336cb 100644 (file)
@@ -44,11 +44,7 @@ x_rev(Void)
        (void) xrd_SL();
        return(0);
 }
-#ifdef KR_headers
-integer s_rsfe(a) cilist *a; /* start */
-#else
 integer s_rsfe(cilist *a) /* start */
-#endif
 {      int n;
        if(f__init != 1) f_init();
        f__init = 3;
index baf2ba548736e95728880b8e1b5c49a4056e263a..d083d48a2d698f1e3a7b75475c631a209333128d 100644 (file)
@@ -24,11 +24,7 @@ static int i_getc(Void)
        }
 
  static
-#ifdef KR_headers
-int i_ungetc(ch, f) int ch; FILE *f;
-#else
 int i_ungetc(int ch, FILE *f)
-#endif
 {
        if (--f__recpos == f__svic->icirlen)
                return '\n';
@@ -39,11 +35,7 @@ int i_ungetc(int ch, FILE *f)
        }
 
  static void
-#ifdef KR_headers
-c_lir(a) icilist *a;
-#else
 c_lir(icilist *a)
-#endif
 {
        extern int l_eof;
        if(f__init != 1) f_init();
@@ -67,11 +59,7 @@ c_lir(icilist *a)
        }
 
 
-#ifdef KR_headers
-integer s_rsli(a) icilist *a;
-#else
 integer s_rsli(icilist *a)
-#endif
 {
        f__lioproc = l_read;
        f__lquit = 0;
@@ -84,13 +72,9 @@ integer s_rsli(icilist *a)
 integer e_rsli(Void)
 { f__init = 1; return 0; }
 
-#ifdef KR_headers
-integer s_rsni(a) icilist *a;
-#else
 extern int x_rsne(cilist*);
 
 integer s_rsni(icilist *a)
-#endif
 {
        extern int nml_read;
        integer rv;
index a0d0bfe407d88654379a0a800ade67bc34541df6..78497e8f3c4880bd9065c96635edb2a35884a5a2 100644 (file)
  extern int f__lcount, nml_read;
  extern t_getc(Void);
 
-#ifdef KR_headers
- extern char *malloc(), *memset();
-
-#ifdef ungetc
- static int
-un_getc(x,f__cf) int x; FILE *f__cf;
-{ return ungetc(x,f__cf); }
-#else
-#define un_getc ungetc
- extern int ungetc();
-#endif
-
-#else
 #undef abs
 #undef min
 #undef max
@@ -65,15 +52,10 @@ un_getc(int x, FILE *f__cf)
 #else
 #define un_getc ungetc
 extern int ungetc(int, FILE*); /* for systems with a buggy stdio.h */
-#endif
 #endif
 
  static Vardesc *
-#ifdef KR_headers
-hash(ht, s) hashtab *ht; register char *s;
-#else
 hash(hashtab *ht, register char *s)
-#endif
 {
        register int c, x;
        register hashentry *h;
@@ -88,11 +70,7 @@ hash(hashtab *ht, register char *s)
        }
 
  hashtab *
-#ifdef KR_headers
-mk_hashtab(nl) Namelist *nl;
-#else
 mk_hashtab(Namelist *nl)
-#endif
 {
        int nht, nv;
        hashtab *ht;
@@ -164,11 +142,7 @@ nl_init(Void) {
 #define Ungetc(x,y) (*l_ungetc)(x,y)
 
  static int
-#ifdef KR_headers
-getname(s, slen) register char *s; int slen;
-#else
 getname(register char *s, int slen)
-#endif
 {
        register char *se = s + slen - 1;
        register int ch;
@@ -190,11 +164,7 @@ getname(register char *s, int slen)
        }
 
  static int
-#ifdef KR_headers
-getnum(chp, val) int *chp; ftnlen *val;
-#else
 getnum(int *chp, ftnlen *val)
-#endif
 {
        register int ch, sign;
        register ftnlen x;
@@ -224,12 +194,7 @@ getnum(int *chp, ftnlen *val)
        }
 
  static int
-#ifdef KR_headers
-getdimen(chp, d, delta, extent, x1)
- int *chp; dimen *d; ftnlen delta, extent, *x1;
-#else
 getdimen(int *chp, dimen *d, ftnlen delta, ftnlen extent, ftnlen *x1)
-#endif
 {
        register int k;
        ftnlen x2, x3;
@@ -263,11 +228,7 @@ getdimen(int *chp, dimen *d, ftnlen delta, ftnlen extent, ftnlen *x1)
 
 #ifndef No_Namelist_Questions
  static Void
-#ifdef KR_headers
-print_ne(a) cilist *a;
-#else
 print_ne(cilist *a)
-#endif
 {
        flag intext = f__external;
        int rpsave = f__recpos;
@@ -289,11 +250,7 @@ print_ne(cilist *a)
 
  static char where0[] = "namelist read start ";
 
-#ifdef KR_headers
-x_rsne(a) cilist *a;
-#else
 x_rsne(cilist *a)
-#endif
 {
        int ch, got1, k, n, nd, quote, readall;
        Namelist *nl;
@@ -582,11 +539,7 @@ x_rsne(cilist *a)
        }
 
  integer
-#ifdef KR_headers
-s_rsne(a) cilist *a;
-#else
 s_rsne(cilist *a)
-#endif
 {
        extern int l_eof;
        int n;
index b67d823cf7c6015ef9cad7eaefb3b2b2b8e93f57..c03675177322ab4f59a9ebafbffe1f43782149ed 100644 (file)
@@ -12,11 +12,7 @@ integer e_rsfe(Void)
        f__fmtbuf=NULL;
        return(n);
 }
-#ifdef KR_headers
-c_sfe(a) cilist *a; /* check */
-#else
 c_sfe(cilist *a) /* check */
-#endif
 {      unit *p;
        if(a->ciunit >= MXUNIT || a->ciunit<0)
                err(a->cierr,101,"startio");
index 8865054b10b7cddf739052a2da21dbebdc61f8e2..79e251d71a791e6667f49e8d05960bfbcfd8b835 100644 (file)
@@ -4,11 +4,7 @@
 extern uiolen f__reclen;
 off_t f__recloc;
 
-#ifdef KR_headers
-c_sue(a) cilist *a;
-#else
 c_sue(cilist *a)
-#endif
 {
        f__external=f__sequential=1;
        f__formatted=0;
@@ -23,11 +19,7 @@ c_sue(cilist *a)
        if(!f__curunit->useek) err(a->cierr,103,"sue");
        return(0);
 }
-#ifdef KR_headers
-integer s_rsue(a) cilist *a;
-#else
 integer s_rsue(cilist *a)
-#endif
 {
        int n;
        if(f__init != 1) f_init();
@@ -48,11 +40,7 @@ integer s_rsue(cilist *a)
        }
        return(0);
 }
-#ifdef KR_headers
-integer s_wsue(a) cilist *a;
-#else
 integer s_wsue(cilist *a)
-#endif
 {
        int n;
        if(f__init != 1) f_init();
index ea733cec06c20a253d502514181e2c32c7982bae..d282ee40cc3f922a1ff774e60188938230bd5e4e 100644 (file)
@@ -3,11 +3,7 @@
 #include <sys/types.h>
 uiolen f__reclen;
 
-#ifdef KR_headers
-do_us(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
 do_us(ftnint *number, char *ptr, ftnlen len)
-#endif
 {
        if(f__reading)
        {
@@ -25,11 +21,7 @@ do_us(ftnint *number, char *ptr, ftnlen len)
                return(0);
        }
 }
-#ifdef KR_headers
-integer do_ud(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
 integer do_ud(ftnint *number, char *ptr, ftnlen len)
-#endif
 {
        f__recpos += (int)(*number * len);
        if(f__recpos > f__curunit->url && f__curunit->url!=1)
@@ -37,11 +29,7 @@ integer do_ud(ftnint *number, char *ptr, ftnlen len)
        if(f__reading)
        {
 #ifdef Pad_UDread
-#ifdef KR_headers
-       int i;
-#else
        size_t i;
-#endif
                if (!(i = fread(ptr,(size_t)len,(size_t)(*number),f__cf))
                 && !(f__recpos - *number*len))
                        err(f__elist->cierr,EOF,"do_ud");
@@ -57,11 +45,7 @@ integer do_ud(ftnint *number, char *ptr, ftnlen len)
        (void) fwrite(ptr,(size_t)len,(size_t)(*number),f__cf);
        return(0);
 }
-#ifdef KR_headers
-integer do_uio(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
-#else
 integer do_uio(ftnint *number, char *ptr, ftnlen len)
-#endif
 {
        if(f__sequential)
                return(do_us(number,ptr,len));
index 8280ac06a7fcaa5fc5e515407cd5ecd9f7040ed6..ff7051e4cc99edb0bfa7c8ed57db62bf15b41a4b 100644 (file)
@@ -9,11 +9,7 @@
 #include "fio.h"
 
  VOID
-#ifdef KR_headers
-g_char(a,alen,b) char *a,*b; ftnlen alen;
-#else
 g_char(char *a, ftnlen alen, char *b)
-#endif
 {
        char *x = a + alen, *y = b + alen;
 
@@ -31,21 +27,13 @@ g_char(char *a, ftnlen alen, char *b)
        }
 
  VOID
-#ifdef KR_headers
-b_char(a,b,blen) char *a,*b; ftnlen blen;
-#else
 b_char(char *a, char *b, ftnlen blen)
-#endif
 {      int i;
        for(i=0;i<blen && *a!=0;i++) *b++= *a++;
        for(;i<blen;i++) *b++=' ';
 }
 #ifndef NON_UNIX_STDIO
-#ifdef KR_headers
-long f__inode(a, dev) char *a; int *dev;
-#else
 long f__inode(char *a, int *dev)
-#endif
 {      struct stat x;
        if(stat(a,&x)<0) return(-1);
        *dev = x.st_dev;
index a10bcaa1236c82b072f744b6ef72bd3f26758a92..677364c48f18f4e77f88dc7ba1f64ad3beaddf7f 100644 (file)
@@ -4,22 +4,16 @@
 #include <ctype.h>
 #endif
 
-#ifndef KR_headers
 #undef abs
 #undef min
 #undef max
 #include <stdlib.h>
 #include <string.h>
-#endif
 
 #include "fmt.h"
 #include "fp.h"
 
-#ifdef KR_headers
-wrt_E(p,w,d,e,len) ufloat *p; ftnlen len;
-#else
 wrt_E(ufloat *p, int w, int d, int e, ftnlen len)
-#endif
 {
        char buf[FMAX+EXPMAXDIGS+4], *s, *se;
        int d1, delta, e1, i, sign, signspace;
@@ -191,11 +185,7 @@ nogood:
        return 0;
        }
 
-#ifdef KR_headers
-wrt_F(p,w,d,len) ufloat *p; ftnlen len;
-#else
 wrt_F(ufloat *p, int w, int d, ftnlen len)
-#endif
 {
        int d1, sign, n;
        double x;
index 37006ba77c284fb0b423b204ac94d6ae7fa01755..5fcab711b8a800727b6bb46844e88546a695de5b 100644 (file)
@@ -66,11 +66,7 @@ mv_cur(Void) /* shouldn't use fseek because it insists on calling fflush */
 }
 
  static int
-#ifdef KR_headers
-wrt_Z(n,w,minlen,len) Uint *n; int w, minlen; ftnlen len;
-#else
 wrt_Z(Uint *n, int w, int minlen, ftnlen len)
-#endif
 {
        register char *s, *se;
        register int i, w1;
@@ -121,11 +117,7 @@ wrt_Z(Uint *n, int w, int minlen, ftnlen len)
        }
 
  static int
-#ifdef KR_headers
-wrt_I(n,w,len, base) Uint *n; ftnlen len; register int base;
-#else
 wrt_I(Uint *n, int w, ftnlen len, register int base)
-#endif
 {      int ndigit,sign,spare,i;
        longint x;
        char *ans;
@@ -149,11 +141,7 @@ wrt_I(Uint *n, int w, ftnlen len, register int base)
        return(0);
 }
  static int
-#ifdef KR_headers
-wrt_IM(n,w,m,len,base) Uint *n; ftnlen len; int base;
-#else
 wrt_IM(Uint *n, int w, int m, ftnlen len, int base)
-#endif
 {      int ndigit,sign,spare,i,xsign;
        longint x;
        char *ans;
@@ -186,11 +174,7 @@ wrt_IM(Uint *n, int w, int m, ftnlen len, int base)
        return(0);
 }
  static int
-#ifdef KR_headers
-wrt_AP(s) char *s;
-#else
 wrt_AP(char *s)
-#endif
 {      char quote;
        int i;
 
@@ -205,11 +189,7 @@ wrt_AP(char *s)
        return(1);
 }
  static int
-#ifdef KR_headers
-wrt_H(a,s) char *s;
-#else
 wrt_H(int a, char *s)
-#endif
 {
        int i;
 
@@ -218,11 +198,7 @@ wrt_H(int a, char *s)
        while(a--) (*f__putn)(*s++);
        return(1);
 }
-#ifdef KR_headers
-wrt_L(n,len, sz) Uint *n; ftnlen sz;
-#else
 wrt_L(Uint *n, int len, ftnlen sz)
-#endif
 {      int i;
        long x;
        if(sizeof(long)==sz) x=n->il;
@@ -235,21 +211,13 @@ wrt_L(Uint *n, int len, ftnlen sz)
        return(0);
 }
  static int
-#ifdef KR_headers
-wrt_A(p,len) char *p; ftnlen len;
-#else
 wrt_A(char *p, ftnlen len)
-#endif
 {
        while(len-- > 0) (*f__putn)(*p++);
        return(0);
 }
  static int
-#ifdef KR_headers
-wrt_AW(p,w,len) char * p; ftnlen len;
-#else
 wrt_AW(char * p, int w, ftnlen len)
-#endif
 {
        while(w>len)
        {       w--;
@@ -261,11 +229,7 @@ wrt_AW(char * p, int w, ftnlen len)
 }
 
  static int
-#ifdef KR_headers
-wrt_G(p,w,d,e,len) ufloat *p; ftnlen len;
-#else
 wrt_G(ufloat *p, int w, int d, int e, ftnlen len)
-#endif
 {      double up = 1,x;
        int i=0,oldscale,n,j;
        x = len==sizeof(real)?p->pf:p->pd;
@@ -290,11 +254,7 @@ wrt_G(ufloat *p, int w, int d, int e, ftnlen len)
        }
        return(wrt_E(p,w,d,e,len));
 }
-#ifdef KR_headers
-w_ed(p,ptr,len) struct syl *p; char *ptr; ftnlen len;
-#else
 w_ed(struct syl *p, char *ptr, ftnlen len)
-#endif
 {
        int i;
 
@@ -336,11 +296,7 @@ w_ed(struct syl *p, char *ptr, ftnlen len)
                return(wrt_Z((Uint *)ptr,p->p1,p->p2.i[0],len));
        }
 }
-#ifdef KR_headers
-w_ned(p) struct syl *p;
-#else
 w_ned(struct syl *p)
-#endif
 {
        switch(p->op)
        {
index 490231ac75ad37b749ce4a230c30196d5fa19acf..c4b1532f2135187e4e650077a92be867692b5e22 100644 (file)
@@ -40,11 +40,7 @@ xw_rev(Void)
        return n;
 }
 
-#ifdef KR_headers
-integer s_wsfe(a) cilist *a;   /*start*/
-#else
 integer s_wsfe(cilist *a)      /*start*/
-#endif
 {      int n;
        if(f__init != 1) f_init();
        f__init = 3;
index 386e8678aadda25e3367b2cacba3d9892f26644d..82c3326a35de0e5356a4b4b419bfa6422307b8cb 100644 (file)
@@ -5,11 +5,7 @@
 #include "lio.h"
 #include "string.h"
 
-#ifdef KR_headers
-integer s_wsle(a) cilist *a;
-#else
 integer s_wsle(cilist *a)
-#endif
 {
        int n;
        if(n=c_le(a)) return(n);
index ae3f8178949cfbf9da2e8453ffa34d7d446f59d5..7c08925f5f3a96e07fabb2fdc6a8f3927aeb4039 100644 (file)
@@ -3,11 +3,7 @@
 #include "lio.h"
 
  integer
-#ifdef KR_headers
-s_wsne(a) cilist *a;
-#else
 s_wsne(cilist *a)
-#endif
 {
        int n;
 
index 96fdd02191685c1eadb80e9d033275f33578f3c3..525fcdbc35e1d205258c455a6c960c81aa1aa321 100644 (file)
@@ -13,14 +13,10 @@ nl_donewrec(Void)
        PUT(' ');
        }
 
-#ifdef KR_headers
-x_wsne(a) cilist *a;
-#else
 #include <string.h>
 
  VOID
 x_wsne(cilist *a)
-#endif
 {
        Namelist *nl;
        char *s;
index fefdebb0d8dcb87b7df2b8ed4abc93930b5c10f6..a2439e825a90c8369050ddf27851a551dd083415 100644 (file)
@@ -45,17 +45,9 @@ Boston, MA 02111-1307, USA.  */
 #  define F_OK 0
 #endif
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_access_0 (name, mode, Lname, Lmode)
-     char *name, *mode;
-     ftnlen Lname, Lmode;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_access_0 (const char *name, const char *mode, ftnlen Lname, ftnlen Lmode)
-#endif
 {
   char *buff;
   char *bp, *blast;
index e7f9c2ddcc4a8869878ccf286a95441a6eeed66f..fd3842a425ac2608404f80d8fc960f3fe330804e 100644 (file)
@@ -29,32 +29,18 @@ Boston, MA 02111-1307, USA.  */
 
 #ifndef RETSIGTYPE
 /* we shouldn't rely on this... */
-#ifdef KR_headers
-#define RETSIGTYPE int
-#else
 #define RETSIGTYPE void
 #endif
-#endif
 typedef RETSIGTYPE (*sig_type)();
 
-#ifdef KR_headers
-extern sig_type signal();
-#else
 #include <signal.h>
 typedef int (*sig_proc)(int);
-#endif
 
 #ifndef SIG_ERR
 #define SIG_ERR ((sig_type) -1)
 #endif
 
-#ifdef KR_headers
-integer G77_alarm_0 (seconds, proc)
-     integer *seconds;
-     sig_type proc;
-#else
 integer G77_alarm_0 (integer *seconds, sig_proc proc)
-#endif
 {
   int status;
 #if defined (HAVE_ALARM) && defined (SIGALRM)
index 9bd53fb95d7f86c76dc66789aba6a1080ad21d07..a071a6d7728baf4a5e425686ac29b3bc877787ca 100644 (file)
@@ -32,17 +32,9 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_chdir_0 (name, Lname)
-     char *name;
-     ftnlen Lname;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_chdir_0 (const char *name, const ftnlen Lname)
-#endif
 {
   char *buff;
   char *bp, *blast;
index d482d9ed8284d6a66a32d1fea3789f40a2d1b821..dfe0d361608770066d67f76b59da876d75600665 100644 (file)
@@ -41,19 +41,10 @@ Boston, MA 02111-1307, USA.  */
 #define CHMOD_PATH "/bin/chmod"
 #endif
 
-#ifdef KR_headers
-extern void s_cat ();
-void g_char ();
-
-integer G77_chmod_0 (name, mode, Lname, Lmode)
-     char *name, *mode;
-     ftnlen Lname, Lmode;
-#else
 extern void s_cat(char *lp, char *rpp[], ftnlen rnp[], ftnlen *np, ftnlen ll);
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_chmod_0 (/* const */ char *name, /* const */ char *mode, const ftnlen Lname, const ftnlen Lmode)
-#endif
 {
   char *buff;
   char *bp, *blast;
index 2f20872a4cff43354c1072111c387ea1eb72d3db..9848d06b0ec7dc80b44e1e4ef8c9dfcbbc6f1d5a 100644 (file)
 /* Define as the path of the `chmod' program. */
 #undef CHMOD_PATH
 
+/* Define if your gettimeofday takes only one argument. */
+#undef GETTIMEOFDAY_ONE_ARGUMENT
+
+/* Define if your gettimeofday takes a time zome argument. */
+#undef HAVE_TIMEZONE
+
 /* Define if you have the alarm function.  */
 #undef HAVE_ALARM
 
@@ -54,6 +60,9 @@
 /* Define if you have the getrusage function.  */
 #undef HAVE_GETRUSAGE
 
+/* Define if you have the gettimeofday function.  */
+#undef HAVE_GETTIMEOFDAY
+
 /* Define if you have the getuid function.  */
 #undef HAVE_GETUID
 
index f25748f99f0b462d2d20a96af786ca2ae957c5db..6eb7f25a8122a9d3c0e6f07f8bea5e54c02d7dee 100755 (executable)
@@ -995,14 +995,13 @@ EOF
 
 fi
 
-
 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:1001: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:1000: checking whether time.h and sys/time.h may both be included" >&5
 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1006 "configure"
+#line 1005 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/time.h>
@@ -1011,7 +1010,7 @@ int main() {
 struct tm *tp;
 ; return 0; }
 EOF
-if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_time=yes
 else
@@ -1036,17 +1035,17 @@ for ac_hdr in limits.h unistd.h sys/time.h string.h stdlib.h \
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:1040: checking for $ac_hdr" >&5
+echo "configure:1039: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1045 "configure"
+#line 1044 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1074,12 +1073,12 @@ done
 
 
 echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:1078: checking for working const" >&5
+echo "configure:1077: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1083 "configure"
+#line 1082 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -1128,7 +1127,7 @@ ccp = (char const *const *) p;
 
 ; return 0; }
 EOF
-if { (eval echo configure:1132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_const=yes
 else
@@ -1149,12 +1148,12 @@ EOF
 fi
 
 echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:1153: checking for size_t" >&5
+echo "configure:1152: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1158 "configure"
+#line 1157 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -1182,12 +1181,12 @@ EOF
 fi
 
 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:1186: checking for mode_t" >&5
+echo "configure:1185: checking for mode_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1191 "configure"
+#line 1190 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -1216,12 +1215,12 @@ fi
 
 
 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:1220: checking for pid_t" >&5
+echo "configure:1219: checking for pid_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1225 "configure"
+#line 1224 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -1249,12 +1248,12 @@ EOF
 fi
 
 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
-echo "configure:1253: checking for st_blksize in struct stat" >&5
+echo "configure:1252: checking for st_blksize in struct stat" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1258 "configure"
+#line 1257 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -1262,7 +1261,7 @@ int main() {
 struct stat s; s.st_blksize;
 ; return 0; }
 EOF
-if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_st_blksize=yes
 else
@@ -1283,12 +1282,12 @@ EOF
 fi
 
 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
-echo "configure:1287: checking for st_blocks in struct stat" >&5
+echo "configure:1286: checking for st_blocks in struct stat" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1292 "configure"
+#line 1291 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -1296,7 +1295,7 @@ int main() {
 struct stat s; s.st_blocks;
 ; return 0; }
 EOF
-if { (eval echo configure:1300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_st_blocks=yes
 else
@@ -1319,12 +1318,12 @@ else
 fi
 
 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
-echo "configure:1323: checking for st_rdev in struct stat" >&5
+echo "configure:1322: checking for st_rdev in struct stat" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1328 "configure"
+#line 1327 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -1332,7 +1331,7 @@ int main() {
 struct stat s; s.st_rdev;
 ; return 0; }
 EOF
-if { (eval echo configure:1336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_st_rdev=yes
 else
@@ -1353,12 +1352,12 @@ EOF
 fi
 
 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
-echo "configure:1357: checking whether struct tm is in sys/time.h or time.h" >&5
+echo "configure:1356: checking whether struct tm is in sys/time.h or time.h" >&5
 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1362 "configure"
+#line 1361 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <time.h>
@@ -1366,7 +1365,7 @@ int main() {
 struct tm *tp; tp->tm_sec;
 ; return 0; }
 EOF
-if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_struct_tm=time.h
 else
@@ -1388,7 +1387,7 @@ fi
 
 
 echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
-echo "configure:1392: checking for gethostname in -lsocket" >&5
+echo "configure:1391: checking for gethostname in -lsocket" >&5
 ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1396,7 +1395,7 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-lsocket  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1400 "configure"
+#line 1399 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1407,7 +1406,7 @@ int main() {
 gethostname()
 ; return 0; }
 EOF
-if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1433,12 +1432,12 @@ for ac_func in symlink getcwd getwd lstat gethostname strerror clock \
   getrusage times alarm getlogin getgid getuid kill link ttyname
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1437: checking for $ac_func" >&5
+echo "configure:1436: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1442 "configure"
+#line 1441 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1461,7 +1460,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1490,12 +1489,12 @@ done
   for ac_func in gettimeofday
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1494: checking for $ac_func" >&5
+echo "configure:1493: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1499 "configure"
+#line 1498 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -1518,7 +1517,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -1544,19 +1543,19 @@ done
 
   if test "$ac_cv_func_gettimeofday" = yes; then
     echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
-echo "configure:1548: checking for struct timezone" >&5
+echo "configure:1547: checking for struct timezone" >&5
 if eval "test \"`echo '$''{'g77_cv_struct_timezone'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1553 "configure"
+#line 1552 "configure"
 #include "confdefs.h"
 #include <sys/time.h>
 int main() {
 struct timezone tz;
 ; return 0; }
 EOF
-if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   g77_cv_struct_timezone=yes
 else
@@ -1577,7 +1576,7 @@ EOF
 
 else
   cat > conftest.$ac_ext <<EOF
-#line 1581 "configure"
+#line 1580 "configure"
 #include "confdefs.h"
 
 #ifdef TIME_WITH_SYS_TIME
@@ -1600,7 +1599,7 @@ main ()
     exit (0);
 }
 EOF
-if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   cat >> confdefs.h <<\EOF
 #define HAVE_TIMEZONE 1
@@ -1616,12 +1615,12 @@ fi
     fi
     
     echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
-echo "configure:1620: checking whether gettimeofday can accept two arguments" >&5
+echo "configure:1619: checking whether gettimeofday can accept two arguments" >&5
 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1625 "configure"
+#line 1624 "configure"
 #include "confdefs.h"
 
 #ifdef TIME_WITH_SYS_TIME
@@ -1647,7 +1646,7 @@ int main() {
       gettimeofday (&time, DUMMY);
 ; return 0; }
 EOF
-if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   emacs_cv_gettimeofday_two_arguments=yes
 else
index 13fa524129f11ae40f579a26f1e99d669a3dd7b8..fefc19407882c19ec706d921df943a1f56f0709f 100644 (file)
@@ -70,17 +70,6 @@ fi
 
 dnl Checks for header files.
 AC_HEADER_STDC
-dnl We could do this if we didn't know we were using gcc
-dnl AC_MSG_CHECKING(for prototype-savvy compiler)
-dnl AC_CACHE_VAL(ac_cv_sys_proto,                
-dnl   [AC_TRY_LINK(,                             
-dnl dnl looks screwy because TRY_LINK expects a function body
-dnl    [return 0;} int foo (int * bar) {],       
-dnl    ac_cv_sys_proto=yes,                      
-dnl    [ac_cv_sys_proto=no                       
-dnl     AC_DEFINE(KR_headers)])])                
-dnl AC_MSG_RESULT($ac_cv_sys_proto)              
-
 AC_HEADER_TIME
 AC_CHECK_HEADERS(limits.h unistd.h sys/time.h string.h stdlib.h \
   sys/param.h sys/times.h)
index a855cb59539fd6b8c4be0cf1daa19d19833ae08c..c80f6f6866b77bb1371192c446bb23f17220be4d 100644 (file)
@@ -39,14 +39,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* may need sys/time.h & long arg for stime (bsd, svr1-3) */
 
-#ifdef KR_headers
-/* Character */ void G77_ctime_0 (chtime, Lchtime, xstime)
-     char *chtime;
-     longint * xstime;
-     ftnlen Lchtime;
-#else
 /* Character */ void G77_ctime_0 (char *chtime, const ftnlen Lchtime, longint * xstime)
-#endif
 {
   int i, l;
   int s_copy ();
index 62b06b6ad3b67e10d9466bf5266fb1eeef1287b5..68fe411464d5861a853db2fa012030df5b2315e6 100644 (file)
@@ -33,11 +33,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-VOID s_copy ();
-#else
 void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
-#endif
 
 int G77_date_and_time_0 (char *date, char *fftime, char *zone,
                         integer *values, ftnlen date_len,
index 19100e698de6f0554e3195c6788e310621b44ab1..ab821d7ad6be23877141a6a5b75b061608f48e9f 100644 (file)
@@ -51,12 +51,7 @@ Boston, MA 02111-1307, USA.  */
    different to all others. */
 static long clk_tck = 0;
 
-#ifdef KR_headers
-double G77_dtime_0 (tarray)
-     real tarray[2];
-#else
 double G77_dtime_0 (real tarray[2])
-#endif
 {
 #if defined (_WIN32)
   static int win32_platform = -1;
index 88eead3fbb47c4223f467ba193ad3b4d04260ff7..b613e89a89d6656ad29eff5df213f66a32f6c239 100644 (file)
@@ -51,12 +51,7 @@ Boston, MA 02111-1307, USA.  */
    different to all others. */
 static long clk_tck = 0;
 
-#ifdef KR_headers
-double G77_etime_0 (tarray)
-     real tarray[2];
-#else
 double G77_etime_0 (real tarray[2])
-#endif
 {
 #if defined (_WIN32)
   static int win32_platform = -1;
index 49f39830d2c82894d4d5dbcf2d4c84c1c04ebf48..66a3e2d6341b431c156c459d04213399fae9063d 100644 (file)
@@ -26,14 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 #include "fio.h"
 
-#ifdef KR_headers
-integer G77_fgetc_0 (lunit, c, Lc)
-     integer *lunit;
-     ftnlen Lc;                        /* should be 1 */
-     char *c;
-#else
 integer G77_fgetc_0 (const integer *lunit, char *c, ftnlen Lc)
-#endif
 {
   int err;
   FILE *f = f__units[*lunit].ufd;
@@ -56,13 +49,7 @@ integer G77_fgetc_0 (const integer *lunit, char *c, ftnlen Lc)
     return 0; }
 }
 
-#ifdef KR_headers
-integer G77_fget_0 (c, Lc)
-     ftnlen Lc;                        /* should be 1 */
-     char *c;
-#else
 integer G77_fget_0 (char *c, const ftnlen Lc)
-#endif
 {
   integer five = 5;
 
index 451915debacaef034eb1cad218f52fc1a4c4ef75..71b09c7bbbec5e598dc6ad64f693402826739204 100644 (file)
@@ -25,16 +25,9 @@ Boston, MA 02111-1307, USA.  */
 
 /* This flushes a single unit, c.f. libI77 version. */
 
-#ifdef KR_headers
-extern integer G77_fnum_0 ();
-
-/* Subroutine */ int G77_flush1_0 (lunit)
-     integer *lunit;
-#else
 extern integer G77_fnum_0 (integer *);
 
 /* Subroutine */ int G77_flush1_0 (const integer *lunit)
-#endif
 {
   if (*lunit>=MXUNIT || *lunit<0)
     err(1,101,"flush");
index 0a3ba013e0616eb5e8e6bea6fb337d78108e4058..cdd3399f43b38ed195b39952a88a8c2d90fab086 100644 (file)
@@ -22,12 +22,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 #include "fio.h"
 
-#ifdef KR_headers
-integer G77_fnum_0 (lunit)
-     integer *lunit;
-#else
 integer G77_fnum_0 (integer *lunit)
-#endif
 {
   if (*lunit>=MXUNIT || *lunit<0)
     err(1,101,"fnum");
index 5a1109e8d4f6ef9cc95053863ffb1c25966a8863..fe527e5112f7c8f719d6acf8bf0efff9ffeaab4b 100644 (file)
@@ -26,14 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 #include "fio.h"
 
-#ifdef KR_headers
-integer G77_fputc_0 (lunit, c, Lc)
-     integer *lunit;
-     ftnlen Lc;                        /* should be 1 */
-     char *c;
-#else
 integer G77_fputc_0 (const integer *lunit, const char *c, const ftnlen Lc)
-#endif
 {
   int err;
   FILE *f = f__units[*lunit].ufd;
@@ -51,13 +44,7 @@ integer G77_fputc_0 (const integer *lunit, const char *c, const ftnlen Lc)
     return 0;
 }
 
-#ifdef KR_headers
-integer G77_fput_0 (c, Lc)
-     ftnlen Lc;                        /* should be 1 */
-     char *c;
-#else
 integer G77_fput_0 (const char *c, const ftnlen Lc)
-#endif
 {
   integer six = 6;
 
index da5434ad0b733ec8822ab99d2913b5de1c2ff260..cf64d4e3c9cc14438be7c7bed37a01485cc5b3f1 100644 (file)
@@ -26,17 +26,9 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#ifdef KR_headers
-extern integer G77_fnum_0 ();
-
-integer G77_fstat_0 (lunit, statb)
-     integer *lunit;
-     integer statb[13];
-#else
 extern integer G77_fnum_0 (const integer *);
 
 integer G77_fstat_0 (const integer *lunit, integer statb[13])
-#endif
 {
   int err;
   struct stat buf;
index 6f5943c1dcec84ce35da2a7e1a4a2d360ec48aac..61c00523abee55145300d00dcba3c3973966dd67 100644 (file)
@@ -32,14 +32,8 @@ Boston, MA 02111-1307, USA.  */
      extern char *sys_errlist [];
 #    define strerror(i) (sys_errlist[i])
 #endif
-#ifdef KR_headers
-extern void s_copy ();
-/* Subroutine */ int G77_gerror_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 /* Subroutine */ int G77_gerror_0 (char *str, ftnlen Lstr)
-#endif
 {
   char * s;
 
index e757803896ad3f1c7972d7f467cf6c8a41bc27cb..4b1c8a98fbc1262d5bf2b28821da231310655956 100644 (file)
@@ -37,14 +37,8 @@ Boston, MA 02111-1307, USA.  */
   extern char *getcwd ();
 #endif
 
-#ifdef KR_headers
-extern void s_copy ();
-integer G77_getcwd_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 integer G77_getcwd_0 (char *str, const ftnlen Lstr)
-#endif
 {
     int i;
     char *ret;
@@ -62,14 +56,8 @@ integer G77_getcwd_0 (char *str, const ftnlen Lstr)
 
 #  include <sys/param.h>
   extern char *getwd ();
-#ifdef KR_headers
-extern VOID s_copy ();
-integer G77_getcwd_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 integer G77_getcwd_0 (char *str, const ftnlen Lstr)
-#endif
 {
   char pathname[MAXPATHLEN];
   size_t l;
@@ -84,14 +72,8 @@ integer G77_getcwd_0 (char *str, const ftnlen Lstr)
 
 #else  /* !HAVE_GETWD && !HAVE_GETCWD */
 
-#ifdef KR_headers
-extern VOID s_copy ();
-integer G77_getcwd_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 integer G77_getcwd_0 (char *str, const ftnlen Lstr)
-#endif
 {
   return errno = ENOSYS;
 }
index b489bacc6ed20518e6aa186837399eae824f4f9a..b831fc218f4f9819c05eea56e482eda7f48ac00f 100644 (file)
@@ -26,11 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>             /* for ENOSYS */
 #include "f2c.h"
 
-#ifdef KR_headers
-integer G77_getgid_0 ()
-#else
 integer G77_getgid_0 (void)
-#endif
 {
 #if defined (HAVE_GETGID)
   return getgid ();
index 82cb564a67a418be60474114b69a5e19b7bd84d1..98310144eabdfb7cabb5bdc2fd5068316a7841d6 100644 (file)
@@ -41,14 +41,8 @@ Boston, MA 02111-1307, USA.  */
 
 /* SGI also has character*(*) function getlog() */
 
-#ifdef KR_headers
-extern VOID s_copy ();
-/* Subroutine */ int G77_getlog_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 /* Subroutine */ int G77_getlog_0 (char *str, const ftnlen Lstr)
-#endif
 {
   size_t i;
   char *p;
index fa484785957c97fbe7adf0fed8c9b61bfd33b8db..c31cc048e48e0435c6480b16f8bfc2afaea67b85 100644 (file)
@@ -25,11 +25,7 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/types.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-integer G77_getpid_0 ()
-#else
 integer G77_getpid_0 (void)
-#endif
 {
   return getpid ();
 }
index 408ff0ab60047040b03daaec62b6ff9f3014c287..7db9c5928c29aabe34436da479e0a4d8e01d1051 100644 (file)
@@ -26,11 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>             /* for ENOSYS */
 #include "f2c.h"
 
-#ifdef KR_headers
-integer G77_getuid_0 ()
-#else
 integer G77_getuid_0 (void)
-#endif
 {
 #if defined (HAVE_GETUID)
   return getuid ();
index 8036b5aabe4f9c571fe51cf2a99deea91c410d50..0c4e6a9c579ee46e7e9c3e35b1e6fd3bd5590159 100644 (file)
@@ -33,12 +33,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-/* Subroutine */ int G77_gmtime_0 (xstime, tarray)
-     integer *xstime, tarray[9];
-#else
 /* Subroutine */ int G77_gmtime_0 (const integer * xstime, integer tarray[9])
-#endif
 {
   struct tm *lt;
   time_t stime = *xstime;
index 572efd956eb1643d17b5d1aceedb997bb7adf4dc..b4c29f2e3664ba02780a1d40674321545254a40d 100644 (file)
@@ -37,12 +37,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* libU77 one: */
 
-#ifdef KR_headers
-/* Subroutine */ int G77_idate_0 (iarray)
-     int iarray[3];
-#else
 /* Subroutine */ int G77_idate_0 (int iarray[3])
-#endif
 {
   struct tm *lt;
   time_t tim;
index 557b53a46648b6b2b892e5232295b50e9a6a815d..ed7d4e7ec4fbd000136343bbecd9ca621750d59f 100644 (file)
@@ -22,11 +22,7 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-integer G77_ierrno_0 ()
-#else
 integer G77_ierrno_0 (void)
-#endif
 {
   return errno;
 }
index 2bf14ccee263b6fd9f7f0b70a0945e12b81cfd64..83496891a21182d77d051f5d3e7231df1ab2d642 100644 (file)
@@ -31,12 +31,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Note this is per SunOS -- other s may have no arg. */
 
-#ifdef KR_headers
-integer G77_irand_0 (flag)
-  integer *flag;
-#else
 integer G77_irand_0 (integer *flag)
-#endif
 {
   switch (*flag) {
   case 0:
index 92c33468f5394c2a6d28197b686a0c750af3b2ed..3d803b34d28716205d8b0bd6ff91770e36ce293e 100644 (file)
@@ -25,16 +25,9 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 #include "fio.h"
 
-#ifdef KR_headers
-extern integer G77_fnum_0 ();
-
-logical G77_isatty_0 (lunit)
-     integer *lunit;
-#else
 extern integer G77_fnum_0 (integer *);
 
 logical G77_isatty_0 (integer *lunit)
-#endif
 {
   if (*lunit>=MXUNIT || *lunit<0)
     err(1,101,"isatty");
index ad47872dc8d006416e60b5003947a81c6fea32f6..8fbfcc394fc470baed69d468d47639373626aa35 100644 (file)
@@ -33,12 +33,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-/* Subroutine */ int G77_itime_0 (tarray)
-     integer tarray[3];
-#else
 /* Subroutine */ int G77_itime_0 (integer tarray[3])
-#endif
 {
   struct tm *lt;
   time_t tim;
index 99197bd02e7b94f43abe491a78fea9800458eb43..d133fa562f94d90c5d0f3c0494e630173dc7ea11 100644 (file)
@@ -26,12 +26,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* fixme: bsd, svr1-3 use int, not pid_t */
 
-#ifdef KR_headers
-integer G77_kill_0 (pid, signum)
-     integer *pid, *signum;
-#else
 integer G77_kill_0 (const integer *pid, const integer *signum)
-#endif
 {
 #if defined (HAVE_KILL)
   return kill ((pid_t) *pid, *signum) ? errno : 0;
index 003fac8ffe28030b134408ec82299bd72fa183a2..1f46e2e893c3a67d4fafff6ff343e3a6ee773779 100644 (file)
@@ -34,16 +34,9 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>             /* for ENOSYS */
 #include "f2c.h"
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_link_0 (path1, path2, Lpath1, Lpath2)
-     char *path1, *path2; ftnlen Lpath1, Lpath2;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_link_0 (const char *path1, const char *path2, const ftnlen Lpath1, const ftnlen Lpath2)
-#endif
 {
 #if defined (HAVE_LINK)
   char *buff1, *buff2;
index 801f6aad1af65066849b684c882fb3f2ae0d0b94..5a1831bbc13c3a72fd47bb62c379f46b7a5c7044 100644 (file)
@@ -30,18 +30,9 @@ Boston, MA 02111-1307, USA.  */
 
 /* lstat isn't posix */
 
-#ifdef KR_headers
-void g_char();
-
-integer G77_lstat_0 (name, statb, Lname)
-     char *name;
-     integer statb[13];
-     ftnlen Lname;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_lstat_0 (const char *name, integer statb[13], const ftnlen Lname)
-#endif
 {
 #if HAVE_LSTAT
   char *buff;
index d4afa878cea3833546e1bf828f61345ca3bfa527..ea5b1b9911c314aef4361b9d7927bf4a01a8be83 100644 (file)
@@ -33,12 +33,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-/* Subroutine */ int G77_ltime_0 (xstime, tarray)
-     integer *xstime, tarray[9];
-#else
 /* Subroutine */ int G77_ltime_0 (const integer * xstime, integer tarray[9])
-#endif
 {
   struct tm *lt;
   time_t stime = *xstime;
index 6b7e81b1e04503f49cb9d0f3bc28283da0f14995..cf6abb449887db729133d9191a00e09dff23710e 100644 (file)
@@ -33,11 +33,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Reported by wd42ej@sgi83.wwb.noaa.gov (Russ Jones AUTO-Sun3) on AIX. */
 
-#ifdef KR_headers
-longint G77_mclock_0 ()
-#else
 longint G77_mclock_0 (void)
-#endif
 {
 #if HAVE_CLOCK
   return clock ();
index 26d8582dbccf0d96a144aa89610edc6dd14f9412..1d3c3f2ec695817e29aad50d52d1bab57c9cbc67 100644 (file)
@@ -28,12 +28,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-/* Subroutine */ int G77_perror_0 (str, Lstr)
-     char *str; ftnlen Lstr;
-#else
 /* Subroutine */ int G77_perror_0 (const char *str, const ftnlen Lstr)
-#endif
 {
   char buff[1000];
   char *bp, *blast;
index 165aee1220c93052bfd077b0672a52be27cc514b..55604615b0be9f1be144b055403e14605d31cc53 100644 (file)
@@ -34,12 +34,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Note this is per SunOS -- other s may have no arg. */
 
-#ifdef KR_headers
-double G77_rand_0 (flag)
-  integer *flag;
-#else
 double G77_rand_0 (integer *flag)
-#endif
 {
   switch (*flag) {
   case 0:
index 9583001c42184e7452f1c44041018ac18ec4aa67..335b592aa217bda614c7a9f464da5bae2f7c4aae 100644 (file)
@@ -29,16 +29,9 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_rename_0 (path1, path2, Lpath1, Lpath2)
-     char *path1, *path2; ftnlen Lpath1, Lpath2;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_rename_0 (const char *path1, const char *path2, const ftnlen Lpath1, const ftnlen Lpath2)
-#endif
 {
   char *buff1, *buff2;
   char *bp, *blast;
index 36e1b8d9a7b533cf05d08a81720eb3f8ad6292c7..081bc5b7bca02f4a9c17ef46a08b304a1c432622 100644 (file)
@@ -25,12 +25,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 
 /* Subroutine */
-#ifdef KR_headers
-int G77_sleep_0 (seconds)
-     integer *seconds;
-#else
 int G77_sleep_0 (const integer *seconds)
-#endif
 {
   (void) sleep ((unsigned int) *seconds);
   return 0;
index 8edc62e4fe037ff73e6ae0ce7dfffe6343d78403..12280187e2c39acb91bc498f204cf98a6bdc57a8 100644 (file)
@@ -25,12 +25,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 
 /* Subroutine */ 
-#ifdef KR_headers
-int G77_srand_0 (seed)
-     integer *seed;
-#else
 int G77_srand_0 (const integer *seed)
-#endif
 {
   srand ((unsigned int) *seed);
   return 0;
index b24f3892221257bbd7e42d631b8d0e1576455cef..4c89248c2df13fd518ec2f92c69b3d84f4d31cd7 100644 (file)
@@ -27,18 +27,9 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/stat.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_stat_0 (name, statb, Lname)
-     char *name;
-     integer statb[13];
-     ftnlen Lname;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_stat_0 (const char *name, integer statb[13], const ftnlen Lname)
-#endif
 {
   char *buff;
   char *bp, *blast;
index 4b0bf24541d2fc0488320612aa9aa6ab7aa0f014..6f24841c13ed18cbe449d24276133edd40b9e628 100644 (file)
@@ -33,16 +33,9 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_symlnk_0 (path1, path2, Lpath1, Lpath2)
-     char *path1, *path2; ftnlen Lpath1, Lpath2;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_symlnk_0 (const char *path1, const char *path2, const ftnlen Lpath1, const ftnlen Lpath2)
-#endif
 {
 #if HAVE_SYMLINK
   char *buff1, *buff2;
index 86ee2fdefd5a49bb52953dc1535aa015ec9385c6..d35faad053c1d00093183be41fe8bf3ce5b897b2 100644 (file)
@@ -43,12 +43,7 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>             /* for ENOSYS */
 #include "f2c.h"
 
-#ifdef KR_headers
-int G77_system_clock_0 (count, count_rate, count_max)
-     integer *count, *count_rate, *count_max;
-#else
 int G77_system_clock_0 (integer *count, integer *count_rate, integer *count_max)
-#endif
 {
 #if defined (HAVE_TIMES)
   struct tms buffer;
index 73894b0b4136e4c0d0490cfe9a389b36a7148e1e..621da3aa9b77e9c32280301c719ee24d3fd7b241 100644 (file)
@@ -35,11 +35,7 @@ Boston, MA 02111-1307, USA.  */
 /* As well as this external function some compilers have an intrinsic
    subroutine which fills a character argument (which is the VMS way)
    -- caveat emptor. */
-#ifdef KR_headers
-longint G77_time_0 ()
-#else
 longint G77_time_0 (void)
-#endif
 {
   /* There are potential problems with the cast of the time_t here. */
   return time (NULL);
index c7610fb0c87232add1e6bee07279ad7c5b19a3f5..3175f05390266b88104a72a779f5d778bc5937d0 100644 (file)
@@ -35,16 +35,9 @@ Boston, MA 02111-1307, USA.  */
 #include <errno.h>             /* for ENOSYS */
 #include "f2c.h"
 
-#ifdef KR_headers
-extern void s_copy ();
-extern integer G77_fnum_0 ();
-/* Character */ void G77_ttynam_0 (ret_val, ret_val_len, lunit)
-     char *ret_val; ftnlen ret_val_len; integer *lunit
-#else
 extern integer G77_fnum_0 (integer *lunit);
 extern void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb);
 /* Character */ void G77_ttynam_0 (char *ret_val, ftnlen ret_val_len, integer *lunit)
-#endif
 {
 #if defined (HAVE_TTYNAME)
   size_t i;
index 203acfa916f2144f0c56ec5dde993e8554989346..347da2d8554e04901ec0d8d22b754076c880782f 100644 (file)
@@ -23,12 +23,7 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/stat.h>
 #include "f2c.h"
 
-#ifdef KR_headers
-integer G77_umask_0 (mask)
-     integer *mask;
-#else
 integer G77_umask_0 (integer *mask)
-#endif
 {
   return umask ((mode_t) *mask);
 }
index cd00559b29ac342bdfb57413d886e8e3b8851d60..004002e5d1df2ad679a85ae71a8edaca748ff662 100644 (file)
@@ -33,16 +33,9 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #include "f2c.h"
 
-#ifdef KR_headers
-void g_char ();
-
-integer G77_unlink_0 (str, Lstr)
-     char *str; ftnlen  Lstr;
-#else
 void g_char(const char *a, ftnlen alen, char *b);
 
 integer G77_unlink_0 (const char *str, const ftnlen Lstr)
-#endif
 {
   char *buff;
   char *bp, *blast;
index e5963af42e6554178f2ebdcc7c6d970fafe8d763..6211f135adfb2838b7fc758fbee755ffc26765dd 100644 (file)
@@ -38,12 +38,7 @@ Boston, MA 02111-1307, USA.  */
 /* VMS style: */
 
 /* Subroutine */
-#ifdef KR_headers
-int G77_vxtidate_y2kbug_0 (m, d, y)
-     integer *y, *m, *d;
-#else
 int G77_vxtidate_y2kbug_0 (integer *m, integer *d, integer *y)
-#endif
 {
   struct tm *lt;
   time_t tim;
@@ -57,12 +52,7 @@ int G77_vxtidate_y2kbug_0 (integer *m, integer *d, integer *y)
 
 #ifdef PIC
 extern const char *G77_Non_Y2K_Compliance_Message;
-#  ifdef KR_headers
-int G77_vxtidate_y2kbuggy_0 (m, d, y)
-     integer *y, *m, *d;
-#  else
 int G77_vxtidate_y2kbuggy_0 (integer *m, integer *d, integer *y)
-#  endif
 {
   extern int G77_abort_0();
   fprintf (stderr, "%s\n", G77_Non_Y2K_Compliance_Message);
index e45cc05d055191514a818329b78d38c072f2dd50..99d3f50edce3c034d4ca04a64620464351c44356 100644 (file)
@@ -39,13 +39,7 @@ Boston, MA 02111-1307, USA.  */
 #include "f2c.h"
 
 /* Subroutine */
-#ifdef KR_headers
-void G77_vxttime_0 (chtime, Lchtime)
-     char chtime[8];
-     ftnlen Lchtime;
-#else
 void G77_vxttime_0 (char chtime[8], const ftnlen Lchtime)
-#endif
 {
   time_t tim;
   char *ctim;
This page took 0.31156 seconds and 5 git commands to generate.