emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calc/calc-forms.el,v


From: Jay Belanger
Subject: [Emacs-diffs] Changes to emacs/lisp/calc/calc-forms.el,v
Date: Fri, 22 Jun 2007 05:52:29 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jay Belanger <jpb>      07/06/22 05:52:29

Index: calc-forms.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/calc/calc-forms.el,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- calc-forms.el       22 Jun 2007 04:09:00 -0000      1.24
+++ calc-forms.el       22 Jun 2007 05:52:29 -0000      1.25
@@ -560,11 +560,13 @@
        ((eq x 'J)
         (math-format-number 
           (math-add math-fd-date 
-                    (math-read-number-simple "1.7214235"))))
+                    (eval-when-compile
+                      (math-read-number "1.7214235")))))
        ((eq x 'j)
         (math-format-number (math-add 
                               (math-floor math-fd-date) 
-                              (math-read-number-simple "1721424"))))
+                              (eval-when-compile
+                                (math-read-number "1721424")))))
        ((eq x 'U)
         (math-format-number (nth 1 (math-date-parts math-fd-date 719164))))
        ((progn
@@ -939,8 +941,10 @@
                                              0
                                            (if (or (eq this 'j)
                                                    (math-integerp num))
-                                                (math-read-number-simple 
"1721424")
-                                              (math-read-number-simple 
"1.7214235"))))
+                                                (eval-when-compile
+                                                  (math-read-number "1721424"))
+                                              (eval-when-compile
+                                                (math-read-number 
"1.7214235")))))
                            hour (or (nth 3 num) hour)
                            minute (or (nth 4 num) minute)
                            second (or (nth 5 num) second)
@@ -1149,15 +1153,20 @@
 (defun calcFunc-julian (date &optional zone)
   (if (math-realp date)
       (list 'date (if (math-integerp date)
-                     (math-sub date (math-read-number-simple "1721424"))
+                     (math-sub date (eval-when-compile
+                                       (math-read-number "1721424")))
                    (setq date (math-sub date 
-                                         (math-read-number-simple 
"1.7214235")))
+                                         (eval-when-compile
+                                           (math-read-number "1.7214235"))))
                    (math-sub date (math-div (calcFunc-tzone zone date)
                                             '(float 864 2)))))
     (if (eq (car date) 'date)
        (math-add (nth 1 date) (if (math-integerp (nth 1 date))
-                                  (math-read-number-simple "1721424")
-                                (math-add  (math-read-number-simple 
"1.7214235")
+                                   (eval-when-compile
+                                     (math-read-number "1721424"))
+                                (math-add  
+                                  (eval-when-compile
+                                    (math-read-number "1.7214235"))
                                           (math-div (calcFunc-tzone zone date)
                                                     '(float 864 2)))))
       (math-reject-arg date 'datep))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]