From cfe71af59b2956d5388b2d0b63b44e4047e845a1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 5 Oct 2016 21:47:35 +0300 Subject: [PATCH] Fix typos in 'error' pragma messages * 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 | 2 +- src/atomic_ops/generalize.h | 4 ++-- src/atomic_ops/sysdeps/armcc/arm_v6.h | 2 +- src/atomic_ops_stack.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/atomic_ops.h b/src/atomic_ops.h index b4aadfa..47ce23d 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -182,7 +182,7 @@ # include # 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) diff --git a/src/atomic_ops/generalize.h b/src/atomic_ops/generalize.h index c9c9d2e..9c03b01 100644 --- a/src/atomic_ops/generalize.h +++ b/src/atomic_ops/generalize.h @@ -153,10 +153,10 @@ #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) diff --git a/src/atomic_ops/sysdeps/armcc/arm_v6.h b/src/atomic_ops/sysdeps/armcc/arm_v6.h index 78b99a5..030b65c 100644 --- a/src/atomic_ops/sysdeps/armcc/arm_v6.h +++ b/src/atomic_ops/sysdeps/armcc/arm_v6.h @@ -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" diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index 1a430df..cf7a02e 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -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 */ -- 2.50.1