[m-rev.] diff: Escape backslashes in foreign code.
Paul Bone
paul at bone.id.au
Thu Apr 10 18:07:59 AEST 2014
Branches: version-14.01-branch, master
---
Escape backslashes in foreign code.
library/version_array.m:
Escape backslashes in foreign code so that gcc and gdb give us
meaningful line numbers.
---
library/version_array.m | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/library/version_array.m b/library/version_array.m
index 255311d..ef764e9 100644
--- a/library/version_array.m
+++ b/library/version_array.m
@@ -1028,18 +1028,18 @@ ML_va_resize(ML_va_ptr, MR_Integer, MR_Word, MR_AllocSiteInfoPtr);
#define ML_va_latest_version(VA) ((VA)->index == -1)
#ifdef MR_THREAD_SAFE
- #define ML_maybe_lock(lock) \
- do { \
- if (lock) { \
- MR_LOCK(lock, ""ML_maybe_lock""); \
- } \
+ #define ML_maybe_lock(lock) \\
+ do { \\
+ if (lock) { \\
+ MR_LOCK(lock, ""ML_maybe_lock""); \\
+ } \\
} while (0)
- #define ML_maybe_unlock(lock) \
- do { \
- if (lock) { \
- MR_UNLOCK(lock, ""ML_maybe_unlock""); \
- } \
+ #define ML_maybe_unlock(lock) \\
+ do { \\
+ if (lock) { \\
+ MR_UNLOCK(lock, ""ML_maybe_unlock""); \\
+ } \\
} while (0)
#else
#define ML_maybe_lock(lock) ((void) 0)
--
1.9.1
More information about the reviews
mailing list