From 62c7d677e8699143e55e7bfa0cc3c1db75f32506 Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Mon, 12 Feb 2018 10:09:35 -0800 Subject: [PATCH] C-style comments --- src/hb-open-file-private.hh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh index ae30655a3..f01ab8718 100644 --- a/src/hb-open-file-private.hh +++ b/src/hb-open-file-private.hh @@ -133,15 +133,16 @@ typedef struct OffsetTable unsigned int table_count) { TRACE_SERIALIZE (this); - // alloc 12 for the OTHeader + /* alloc 12 for the OTHeader */ if (unlikely (!c->extend_min (*this))) return_trace (false); - // write sfntVersion (bytes 0..3) + /* write sfntVersion (bytes 0..3) */ sfnt_version.set (sfnt_tag); - // take space for numTables, searchRange, entrySelector, RangeShift - // and the TableRecords themselves + /* take space for numTables, searchRange, entrySelector, RangeShift + * and the TableRecords themselves + */ if (unlikely (!tables.serialize (c, table_count))) return_trace (false); - // write OffsetTables, alloc for and write actual table blobs + /* write OffsetTables, alloc for and write actual table blobs */ for (unsigned int i = 0; i < table_count; i++) { TableRecord &rec = tables.array[i]; @@ -153,9 +154,9 @@ typedef struct OffsetTable // take room for the table void *p = c->allocate_size (rec.length); if (unlikely (!p)) {return false;} - // copy the actual table + /* copy the actual table */ memcpy (p, hb_blob_get_data (blob, nullptr), rec.length); - // 4-byte allignment + /* 4-byte allignment */ if (rec.length % 4) p = c->allocate_size (4 - rec.length % 4); }