[3091] in Athena Bugs

home help back first fref pref prev next nref lref last post

RT Kernel: ca/float.c

daemon@ATHENA.MIT.EDU (John Carr)
Mon Sep 4 20:22:45 1989

To: bugs@ATHENA.MIT.EDU
Date: Mon, 04 Sep 89 20:22:30 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>

ANSI C limits the scope of an extern variable declaration to the
block in which it appears.  The following is a patch to ca/float.c
to make it compile with ANSI compilers.

*** /minos/sys/ca/float.c	Sun Jan 15 08:37:28 1989
--- float.c	Fri Aug 25 17:53:25 1989
***************
*** 355,360 ****
--- 355,362 ----
      }
  }
  
+ extern void _FPemulate();		/* Floating point emulator */
+ 
  /*
   * getfloatstate()
   *
***************
*** 371,377 ****
      } *uap;
      struct floatstate ourstate;
      int usersize;
-     extern void _FPemulate();		/* Floating point emulator */
      extern void fpgen();		/* Floating point code generator */
  
      /* Set up argument list */
--- 373,378 ----

home help back first fref pref prev next nref lref last post