Index: third_party/ots/src/ots.cc |
diff --git a/third_party/ots/src/ots.cc b/third_party/ots/src/ots.cc |
index 28d0285de670f4111aab72e63f7988b6883f2b0d..5ba8dd94c4625a18b89aeb7c78bfdcf2c7768445 100644 |
--- a/third_party/ots/src/ots.cc |
+++ b/third_party/ots/src/ots.cc |
@@ -24,7 +24,6 @@ |
// Generate a message with or without a table tag, when 'header' is the OpenTypeFile pointer |
#define OTS_FAILURE_MSG_TAG(msg_,tag_) OTS_FAILURE_MSG_TAG_(header, msg_, tag_) |
#define OTS_FAILURE_MSG_HDR(msg_) OTS_FAILURE_MSG_(header, msg_) |
-#define OTS_WARNING_MSG_HDR(msg_) OTS_WARNING_MSG_(header, msg_) |
struct OpenTypeTable { |
@@ -473,7 +472,7 @@ |
const uint32_t this_tag = ntohl(tables[i].tag); |
const uint32_t prev_tag = ntohl(tables[i - 1].tag); |
if (this_tag <= prev_tag) { |
- OTS_WARNING_MSG_HDR("Table directory is not correctly ordered"); |
+ return OTS_FAILURE_MSG_HDR("table directory not correctly ordered"); |
} |
} |
@@ -819,4 +818,10 @@ |
return result; |
} |
+// For backward compatibility |
+bool Process(OTSStream *output, const uint8_t *data, size_t length) { |
+ static OTSContext context; |
+ return context.Process(output, data, length); |
+} |
+ |
} // namespace ots |