summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-10-05 21:47:35 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-10-05 21:47:35 +0300
commit2f18c21601472fac497d9d6bd3f5881ad75254ce (patch)
tree332c51f37a1a9f077e34a9c085908967150097e4
parentb1365bde2444003ca95bc28ff06bdd34a81839a7 (diff)
downloadlibatomic_ops-2f18c21601472fac497d9d6bd3f5881ad75254ce.tar.gz
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.
-rw-r--r--src/atomic_ops.h2
-rw-r--r--src/atomic_ops/generalize.h4
-rw-r--r--src/atomic_ops/sysdeps/armcc/arm_v6.h2
-rw-r--r--src/atomic_ops_stack.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/atomic_ops.h b/src/atomic_ops.h
index ef37b9f..f5b8145 100644
--- a/src/atomic_ops.h
+++ b/src/atomic_ops.h
@@ -203,7 +203,7 @@
# 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)
diff --git a/src/atomic_ops/generalize.h b/src/atomic_ops/generalize.h
index 317c5e7..6b17163 100644
--- a/src/atomic_ops/generalize.h
+++ b/src/atomic_ops/generalize.h
@@ -188,10 +188,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 9376e5b..c205deb 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
#define AO_ACCESS_CHECK_ALIGNED
diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c
index 55e5711..af34d4f 100644
--- a/src/atomic_ops_stack.c
+++ b/src/atomic_ops_stack.c
@@ -240,7 +240,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 */