trivial diff: Remove calls to obsolete predicates

Mark Anthony BROWN dougl at cs.mu.OZ.AU
Thu Mar 18 17:15:08 AEDT 1999


Estimated hours taken: 0.1

library/string.m:
	Use function float__abs/1 instead of the obsolete
	predicate float__abs/2.


Index: library/string.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/string.m,v
retrieving revision 1.109
diff -u -t -r1.109 string.m
--- string.m	1999/03/15 08:48:10	1.109
+++ string.m	1999/03/18 05:01:40
@@ -914,7 +914,7 @@
         ; 
         Conversion_in = 'g' ->                  %g is either %e of %f
                 (Poly_var = f(F) ->
-                        float__abs(F, Ft),
+                        Ft = float__abs(F),
                         int__pow(10, Prec, P),
                         int__to_float(P, Pe),
                         (
@@ -933,7 +933,7 @@
         ;
         Conversion_in = 'G' ->          %G is either %E of %f
                 (Poly_var = f(F) ->
-                        float__abs(F, Ft),
+                        Ft = float__abs(F),
                         int__pow(10, Prec, P),
                         int__to_float(P, Pe),
                         (
-- 
Mark Brown  (dougl at cs.mu.oz.au)       )O+   |  For Microsoft to win,
MEngSc student,                             |  the customer must lose
Dept of Computer Science, Melbourne Uni     |          -- Eric S. Raymond



More information about the developers mailing list