inline bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG ();
if (!SANITIZE_GET_SIZE()) return false;
- /* Note; for non-recursive types, this is not much needed
+ /* Note:
+ * for non-recursive types, this is not much needed.
+ * But we keep the code to make sure the objects pointed to
+ * do have a simple sanitize(). */
+ return true;
unsigned int count = len;
for (unsigned int i = 0; i < count; i++)
if (!SANITIZE (array[i]))
return false;
- */
return true;
}
inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
inline bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG ();
if (!SANITIZE_GET_SIZE()) return false;
- /* Note; for non-recursive types, this is not much needed
+ /* Note:
+ * for non-recursive types, this is not much needed.
+ * But we keep the code to make sure the objects pointed to
+ * do have a simple sanitize(). */
+ return true;
unsigned int count = len ? len - 1 : 0;
for (unsigned int i = 0; i < count; i++)
if (!SANITIZE (array[i]))
return false;
- */
return true;
}
SANITIZE_DEBUG ();
return OffsetArrayOf<Type>::sanitize (SANITIZE_ARG, CONST_CHARP(this));
}
+ inline bool sanitize (SANITIZE_ARG_DEF, unsigned int user_data) {
+ SANITIZE_DEBUG ();
+ return OffsetArrayOf<Type>::sanitize (SANITIZE_ARG, CONST_CHARP(this), user_data);
+ }
};
typedef OffsetListOf<Lookup> LookupList;
inline bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG ();
- return SANITIZE (carets);
+ return SANITIZE_THIS (carets);
}
private:
OffsetArrayOf<CaretValue>
- carets; /* Offset rrray of CaretValue tables
+ carets; /* Offset array of CaretValue tables
* --from beginning of LigGlyph table
* --in increasing coordinate order */
};
* ordered by class--zero-based. */
ASSERT_SIZE (LigatureAttach, 2);
-typedef OffsetArrayOf<LigatureAttach> LigatureArray;
+typedef OffsetListOf<LigatureAttach> LigatureArray;
/* Array of LigatureAttach
* tables ordered by
* LigatureCoverage Index */
const MarkArray& mark_array = this+markArray;
const LigatureArray& lig_array = this+ligatureArray;
- const LigatureAttach& lig_attach = &lig_array+lig_array[lig_index];
+ const LigatureAttach& lig_attach = lig_array[lig_index];
/* Find component to attach to */
count = lig_attach.rows;
SANITIZE_DEBUG ();
return SANITIZE_SELF () &&
SANITIZE_THIS2 (markCoverage, ligatureCoverage) &&
- SANITIZE_THIS2 (markArray, ligatureArray);
+ SANITIZE_THIS (markArray) && ligatureArray.sanitize (SANITIZE_ARG, CONST_CHARP(this), classCount);
}
private: