[Top][All Lists]

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

Re: Towards a cleaner build: calc.el

From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: calc.el
Date: Sun, 16 Jun 2019 17:31:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

This one is really weird:

calc/calc.el:3928:1:Warning: the following functions are not known to be
    defined: math-zerop, math-compare

I'm only getting this on one machine, but not the other.  And calc has

(declare-function math-compare "calc-ext" (a b))
(declare-function math-zerop "calc-misc" (a))

Hm...  One machine compiles a lot faster than the other (and I'm
compiling with -j8), so perhaps there's some ordering issue here?  There
are no calls to math-zerop at all directly in calc.el, but instead
there's the Math-zerop calls:

   (and (Math-zerop a) (not (eq (car-safe a) 'mod))
        (if (and (math-floatp a) (Math-ratp b)) (math-float b) b))

Which are defined in calc-macs, and look like:

;;; Faster in-line version zerop, normalized values only.
(defsubst Math-zerop (a)                ; [P N]
  (if (consp a)
      (and (not (memq (car a) '(bigpos bigneg)))
           (if (eq (car a) 'float)
               (eq (nth 1 a) 0)
             (math-zerop a)))
    (eq a 0)))


(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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