]> code.delx.au - gnu-emacs/blobdiff - lisp/float-sup.el
entered into RCS
[gnu-emacs] / lisp / float-sup.el
index bf95369fd82c372ee681c69fcad5514d908b1e96..bd0d8a444baf92c3a9fe8220c9e03e62f6803511 100644 (file)
@@ -1,11 +1,14 @@
-;; Basic editing commands for Emacs
+;;; float-sup.el --- detect absence of floating-point support in Emacs runtime
+
 ;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc.
 
+;; Maintainer: FSF
+
 ;; This file is part of GNU Emacs.
 
 ;; GNU Emacs is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 1, or (at your option)
+;; the Free Software Foundation; either version 2, or (at your option)
 ;; any later version.
 
 ;; GNU Emacs is distributed in the hope that it will be useful,
@@ -17,6 +20,8 @@
 ;; along with GNU Emacs; see the file COPYING.  If not, write to
 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
+;;; Code:
+
 ;; Provide a meaningful error message if we are running on
 ;; bare (non-float) emacs.
 ;; Can't test for 'floatp since that may be defined by float-imitation
@@ -27,8 +32,6 @@
   (error "Floating point was disabled at compile time"))
 
 ;; provide an easy hook to tell if we are running with floats or not.
-(provide 'lisp-float-type)
-
 ;; define pi and e via math-lib calls. (much less prone to killer typos.)
 (defconst pi (* 4 (atan 1)) "The value of Pi (3.1415926...)")
 (defconst e (exp 1) "The value of e (2.7182818...)")
@@ -42,8 +45,7 @@
 (defconst radians-to-degrees (/ 180.0 pi)
   "Radian to degree conversion constant")
 
-;; these expand to a single multiply by a float
-;; when byte compiled
+;; these expand to a single multiply by a float when byte compiled
 
 (defmacro degrees-to-radians (x)
   "Convert ARG from degrees to radians."
@@ -51,3 +53,7 @@
 (defmacro radians-to-degrees (x)
   "Convert ARG from radians to degrees."
   (list '* (/ 180.0 pi) x))
+
+(provide 'lisp-float-type)
+
+;;; float-sup.el ends here