(wrong string) ée

From: <git_AT_suckless.org>
Date: Tue, 26 Apr 2016 23:10:51 +0200 (CEST)

commit ef6bf64a3c9139ff1f1b2dce45f91cf826067a33
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Tue Apr 26 23:10:15 2016 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Tue Apr 26 23:10:15 2016 +0200

    zzero1 did not guarantee that all arguments were evaulated exactly once, thus made static inline
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/src/internals.h b/src/internals.h
index 3ee7bd3..6454a21 100644
--- a/src/internals.h
+++ b/src/internals.h
_AT_@ -111,7 +111,6 @@ extern struct zahl **libzahl_temp_stack_end;
 #define zpositive(a) (zsignum(a) > 0)
 #define zpositive1(a, b) (zpositive(a) + zpositive(b) > 0)
 #define zpositive2(a, b) (zsignum(a) + zsignum(b) == 2)
-#define zzero1(a, b) (zzero(a) || zzero(b))
 #define zzero2(a, b) (!(zsignum(a) | zsignum(b)))
 #define zmemmove(d, s, n) memmove((d), (s), (n) * sizeof(zahl_char_t))
 
_AT_@ -119,6 +118,12 @@ void libzahl_realloc(z_t a, size_t need);
 void zmul_impl(z_t a, z_t b, z_t c);
 void zsqr_impl(z_t a, z_t b);
 
+static inline int
+zzero1(z_t a, z_t b)
+{
+ return zzero(a) || zzero(b);
+}
+
 static void
 libzahl_failure(int error)
 {
Received on Tue Apr 26 2016 - 23:10:51 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 26 2016 - 23:12:13 CEST