lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] git commit: Convert comments in headers to C89
Date Sun, 16 Feb 2014 23:18:29 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/master 748a74d9e -> a130e81ee


Convert comments in headers to C89


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/a130e81e
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/a130e81e
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/a130e81e

Branch: refs/heads/master
Commit: a130e81eee4fa4c24fcf7c784bd5258463c31738
Parents: 748a74d
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Feb 16 23:08:12 2014 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Mon Feb 17 00:18:02 2014 +0100

----------------------------------------------------------------------
 runtime/core/Clownfish/Util/Atomic.cfh      |  2 +-
 runtime/core/Clownfish/Util/NumberUtils.cfh | 30 ++++++++++++------------
 2 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/a130e81e/runtime/core/Clownfish/Util/Atomic.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Util/Atomic.cfh b/runtime/core/Clownfish/Util/Atomic.cfh
index 2d3bf64..fac9b40 100644
--- a/runtime/core/Clownfish/Util/Atomic.cfh
+++ b/runtime/core/Clownfish/Util/Atomic.cfh
@@ -98,7 +98,7 @@ cfish_Atomic_cas_ptr(void *volatile *target, void *old_value, void *new_value)
{
 
 #error "No support for atomic operations."
 
-#endif // Big platform if-else chain.
+#endif /* Big platform if-else chain. */
 
 #ifdef CFISH_USE_SHORT_NAMES
   #define Atomic_cas_ptr cfish_Atomic_cas_ptr

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/a130e81e/runtime/core/Clownfish/Util/NumberUtils.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Util/NumberUtils.cfh b/runtime/core/Clownfish/Util/NumberUtils.cfh
index b57a104..d6bb791 100644
--- a/runtime/core/Clownfish/Util/NumberUtils.cfh
+++ b/runtime/core/Clownfish/Util/NumberUtils.cfh
@@ -185,11 +185,11 @@ cfish_NumUtil_encode_bigend_u16(uint16_t value, void *dest_ptr) {
     uint8_t *dest = *(uint8_t**)dest_ptr;
 #ifdef CFISH_BIG_END
     memcpy(dest, &value, sizeof(uint16_t));
-#else // little endian
+#else /* little endian */
     uint8_t *source = (uint8_t*)&value;
     dest[0] = source[1];
     dest[1] = source[0];
-#endif // CFISH_BIG_END (and little endian)
+#endif /* CFISH_BIG_END (and little endian) */
 }
 
 static CFISH_INLINE void
@@ -197,13 +197,13 @@ cfish_NumUtil_encode_bigend_u32(uint32_t value, void *dest_ptr) {
     uint8_t *dest = *(uint8_t**)dest_ptr;
 #ifdef CFISH_BIG_END
     memcpy(dest, &value, sizeof(uint32_t));
-#else // little endian
+#else /* little endian */
     uint8_t *source = (uint8_t*)&value;
     dest[0] = source[3];
     dest[1] = source[2];
     dest[2] = source[1];
     dest[3] = source[0];
-#endif // CFISH_BIG_END (and little endian)
+#endif /* CFISH_BIG_END (and little endian) */
 }
 
 static CFISH_INLINE void
@@ -211,7 +211,7 @@ cfish_NumUtil_encode_bigend_u64(uint64_t value, void *dest_ptr) {
     uint8_t *dest = *(uint8_t**)dest_ptr;
 #ifdef CFISH_BIG_END
     memcpy(dest, &value, sizeof(uint64_t));
-#else // little endian
+#else /* little endian */
     uint8_t *source = (uint8_t*)&value;
     dest[0] = source[7];
     dest[1] = source[6];
@@ -221,7 +221,7 @@ cfish_NumUtil_encode_bigend_u64(uint64_t value, void *dest_ptr) {
     dest[5] = source[2];
     dest[6] = source[1];
     dest[7] = source[0];
-#endif // CFISH_BIG_END (and little endian)
+#endif /* CFISH_BIG_END (and little endian) */
 }
 
 static CFISH_INLINE uint16_t
@@ -300,8 +300,8 @@ cfish_NumUtil_decode_bigend_f64(void *source) {
     return duo.d;
 }
 
-#define CFISH_NUMUTIL_C32_MAX_BYTES  ((sizeof(uint32_t) * 8 / 7) + 1) // 5
-#define CFISH_NUMUTIL_C64_MAX_BYTES ((sizeof(uint64_t) * 8 / 7) + 1)  // 10
+#define CFISH_NUMUTIL_C32_MAX_BYTES ((sizeof(uint32_t) * 8 / 7) + 1) /*  5 */
+#define CFISH_NUMUTIL_C64_MAX_BYTES ((sizeof(uint64_t) * 8 / 7) + 1) /* 10 */
 
 static CFISH_INLINE void
 cfish_NumUtil_encode_c32(uint32_t value, char **out_buf) {
@@ -309,11 +309,11 @@ cfish_NumUtil_encode_c32(uint32_t value, char **out_buf) {
     uint8_t  *const limit = buf + sizeof(buf);
     uint8_t  *ptr         = limit - 1;
     int       num_bytes;
-    // Write last byte first, which has no continue bit.
+    /* Write last byte first, which has no continue bit. */
     *ptr = value & 0x7f;
     value >>= 7;
     while (value) {
-        // Work backwards, writing bytes with continue bits set.
+        /* Work backwards, writing bytes with continue bits set. */
         *--ptr = ((value & 0x7f) | 0x80);
         value >>= 7;
     }
@@ -328,11 +328,11 @@ cfish_NumUtil_encode_c64(uint64_t value, char **out_buf) {
     uint8_t  *const limit = buf + sizeof(buf);
     uint8_t  *ptr         = limit - 1;
     int       num_bytes;
-    // Write last byte first, which has no continue bit.
+    /* Write last byte first, which has no continue bit. */
     *ptr = value & 0x7f;
     value >>= 7;
     while (value) {
-        // Work backwards, writing bytes with continue bits set.
+        /* Work backwards, writing bytes with continue bits set. */
         *--ptr = ((value & 0x7f) | 0x80);
         value >>= 7;
     }
@@ -347,11 +347,11 @@ cfish_NumUtil_encode_padded_c32(uint32_t value, char **out_buf) {
         = { 0x80, 0x80, 0x80, 0x80, 0x80 };
     uint8_t *const limit = buf + sizeof(buf);
     uint8_t *ptr         = limit - 1;
-    // Write last byte first, which has no continue bit.
+    /* Write last byte first, which has no continue bit. */
     *ptr = value & 0x7f;
     value >>= 7;
     while (value) {
-        // Work backwards, writing bytes with continue bits set.
+        /* Work backwards, writing bytes with continue bits set. */
         *--ptr = ((value & 0x7f) | 0x80);
         value >>= 7;
     }
@@ -359,7 +359,7 @@ cfish_NumUtil_encode_padded_c32(uint32_t value, char **out_buf) {
     *out_buf += sizeof(buf);
 }
 
-// Decode a compressed integer up to size of 'var', advancing 'source'
+/* Decode a compressed integer up to size of 'var', advancing 'source' */
 #define CFISH_NUMUTIL_DECODE_CINT(var, source) \
     do { \
         var = (*source & 0x7f); \


Mime
View raw message