Index: third_party/ots/src/ots.cc |
diff --git a/third_party/ots/src/ots.cc b/third_party/ots/src/ots.cc |
index 5ba8dd94c4625a18b89aeb7c78bfdcf2c7768445..28d0285de670f4111aab72e63f7988b6883f2b0d 100644 |
--- a/third_party/ots/src/ots.cc |
+++ b/third_party/ots/src/ots.cc |
@@ -24,6 +24,7 @@ namespace { |
// 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 { |
@@ -472,7 +473,7 @@ bool ProcessGeneric(ots::OpenTypeFile *header, uint32_t signature, |
const uint32_t this_tag = ntohl(tables[i].tag); |
const uint32_t prev_tag = ntohl(tables[i - 1].tag); |
if (this_tag <= prev_tag) { |
- return OTS_FAILURE_MSG_HDR("table directory not correctly ordered"); |
+ OTS_WARNING_MSG_HDR("Table directory is not correctly ordered"); |
} |
} |
@@ -818,10 +819,4 @@ bool OTSContext::Process(OTSStream *output, |
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 |