(wrong string) ée

From: <git_AT_suckless.org>
Date: Fri, 29 Apr 2016 18:56:15 +0200 (CEST)

commit ea5c6307c674d345295de3e1301ea16586880484
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Fri Apr 29 18:55:33 2016 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Fri Apr 29 18:55:41 2016 +0200

    Change UNSAFE to ZAHL_UNSAFE, so it can be used in zahl-inlines.h
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/bench/libhebimath.h b/bench/libhebimath.h
index 8f8f3ce..495abd1 100644
--- a/bench/libhebimath.h
+++ b/bench/libhebimath.h
_AT_@ -29,7 +29,7 @@ static jmp_buf jbuf;
 #define UNIFORM 1
 #define MODUNIFORM 2
 
-#ifdef UNSAFE
+#ifdef ZAHL_UNSAFE
 # define try(expr) (expr)
 #else
 # define try(expr) do if ((error = (expr))) longjmp(jbuf, 1); while (0)
diff --git a/bench/libtfm.h b/bench/libtfm.h
index 1610802..b87a288 100644
--- a/bench/libtfm.h
+++ b/bench/libtfm.h
_AT_@ -24,7 +24,7 @@ static z_t _0, _1, _a, _b;
 static int _tmp, error;
 static jmp_buf jbuf;
 
-#ifdef UNSAFE
+#ifdef ZAHL_UNSAFE
 # define try(expr) (expr)
 #else
 # define try(expr) do if ((error = (expr))) longjmp(jbuf, 1); while (0)
diff --git a/bench/libtommath.h b/bench/libtommath.h
index 3529118..f502618 100644
--- a/bench/libtommath.h
+++ b/bench/libtommath.h
_AT_@ -24,7 +24,7 @@ static z_t _0, _1, _a, _b;
 static int _tmp, error;
 static jmp_buf jbuf;
 
-#ifdef UNSAFE
+#ifdef ZAHL_UNSAFE
 # define try(expr) (expr)
 #else
 # define try(expr) do if ((error = (expr))) longjmp(jbuf, 1); while (0)
diff --git a/config.mk b/config.mk
index 5c87cbd..c670ea4 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -15,7 +15,7 @@ RANLIB = ranlib
 # you have to add -DSECURE_RANDOM_PATHNAME=... to CPPFLAGS.
 # Remove -DGOOD_RAND if the higher bits have higher entropy in the lower
 # bits in rand(3), this was historically the case.
-# Add -DUNSAFE if you rather libzahl did not check for errors.
+# Add -DZAHL_UNSAFE if you rather libzahl did not check for errors.
 
 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DGOOD_RAND
 CFLAGS = -std=c99 -flto -O3 -Wall -pedantic
diff --git a/src/internals.h b/src/internals.h
index 3213441..6faa254 100644
--- a/src/internals.h
+++ b/src/internals.h
_AT_@ -97,7 +97,7 @@ extern void *libzahl_temp_allocation;
 #define likely(expr) ZAHL_LIKELY(expr)
 #define unlikely(expr) ZAHL_UNLIKELY(expr)
 
-#if defined(UNSAFE)
+#if defined(ZAHL_UNSAFE)
 # define check(expr) 0
 #else
 # define check(expr) unlikely(expr)
diff --git a/src/zrand.c b/src/zrand.c
index 020b58c..e236a94 100644
--- a/src/zrand.c
+++ b/src/zrand.c
_AT_@ -209,7 +209,7 @@ zrand(z_t r, enum zranddev dev, enum zranddist dist, z_t n)
                 break;
 
         default:
-#if !defined(UNSAFE)
+#if !defined(ZAHL_UNSAFE)
                 libzahl_failure(EINVAL);
 #endif
                 break;
diff --git a/test.c b/test.c
index ffd9066..1b18b42 100644
--- a/test.c
+++ b/test.c
_AT_@ -787,7 +787,7 @@ main(void)
         assert((zseti(a, 11), zptest(0, a, 100)), != NONPRIME);
         assert((zseti(a, 101), zptest(0, a, 100)), != NONPRIME);
 
-#if defined(UNSAFE)
+#if defined(ZAHL_UNSAFE)
         (void) env2;
 #else
         assert_nr(zdivmod(a, b, _0, _0));
Received on Fri Apr 29 2016 - 18:56:15 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 29 2016 - 19:00:19 CEST