]> granicus.if.org Git - libatomic_ops/commitdiff
Fix typos in 'error' pragma messages
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Oct 2016 18:47:35 +0000 (21:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 3 Nov 2016 08:32:46 +0000 (11:32 +0300)
* src/atomic_ops.h [_HPUX_SOURCE && !__ia64] (AO_barrier_dummy):
Fix typo ("do not") in comment.
* src/atomic_ops/generalize.h [AO_HAVE_nop_acquire]: Fix typo
("do not") in #error message.
* src/atomic_ops/generalize.h [AO_HAVE_nop_release]: Likewise.
* src/atomic_ops/sysdeps/armcc/arm_v6.h [__TARGET_ARCH_ARM < 6]:
Likewise.
* src/atomic_ops/sysdeps/armcc/arm_v6.h [__TARGET_ARCH_ARM < 6]: Add
#error pragma.
* src/atomic_ops_stack.c [AO_HAVE_compare_and_swap_double]: Fix typo
("does not") in #error message.

src/atomic_ops.h
src/atomic_ops/generalize.h
src/atomic_ops/sysdeps/armcc/arm_v6.h
src/atomic_ops_stack.c

index b4aadfa2f1e2785dcd7cbe84b78610b4edb39c84..47ce23d25acf15a0569bbebefcdda1129337594a 100644 (file)
 #   include <machine/sys/inline.h>
 #   define AO_compiler_barrier() _Asm_sched_fence()
 # else
-    /* FIXME - We dont know how to do this.  This is a guess.   */
+    /* FIXME - We do not know how to do this.  This is a guess. */
     /* And probably a bad one.                                  */
     static volatile int AO_barrier_dummy;
 #   define AO_compiler_barrier() (void)(AO_barrier_dummy = AO_barrier_dummy)
index c9c9d2e3c1e6b51634d308953f0b2e0de6a0c6c0..9c03b01b644f8f1f5ddb311849b786d396f5b9f6 100644 (file)
 #endif
 
 #if defined(AO_HAVE_nop_acquire)
-# error AO_nop_acquire is useless: dont define.
+# error AO_nop_acquire is useless: do not define.
 #endif
 #if defined(AO_HAVE_nop_release)
-# error AO_nop_release is useless: dont define.
+# error AO_nop_release is useless: do not define.
 #endif
 
 #if defined(AO_HAVE_nop_full) && !defined(AO_HAVE_nop_read)
index 78b99a5f0d1f3ed2e4d18615d5946ec43717d483..030b65c12370934b55b21e9db372057f3cb4602f 100644 (file)
@@ -23,7 +23,7 @@
 #include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
 
 #if __TARGET_ARCH_ARM < 6
-Dont use with ARM instruction sets lower than v6
+# error Do not use with ARM instruction sets lower than v6
 #else
 
 #include "../standard_ao_double_t.h"
index 1a430df5a24cf74b0c4a84d1bd14e4b15ee3d620..cf7a02e63c8cad67904d51d105dbdc0219b51594 100644 (file)
@@ -268,7 +268,7 @@ AO_t *AO_stack_pop_acquire(AO_stack_t *list)
 
 /* Needed for future IA64 processors.  No current clients? */
 
-#error Untested!  Probably doesnt work.
+# error Untested!  Probably does not work.
 
 /* We have a wide CAS, but only does an AO_t-wide comparison.   */
 /* We can't use the Treiber optimization, since we only check   */