This commit is contained in:
Behdad Esfahbod 2018-02-13 13:59:39 -08:00
parent d5b33f2fe1
commit 2dbfeecf96
1 changed files with 6 additions and 4 deletions

View File

@ -40,6 +40,8 @@ using namespace OT;
struct RearrangementSubtable struct RearrangementSubtable
{ {
typedef void EntryData;
struct driver_context_t struct driver_context_t
{ {
static const bool in_place = true; static const bool in_place = true;
@ -60,13 +62,13 @@ struct RearrangementSubtable
ret (false), ret (false),
start (0), end (0) {} start (0), end (0) {}
inline bool is_actionable (StateTableDriver<void> *driver, inline bool is_actionable (StateTableDriver<EntryData> *driver,
const Entry<void> *entry) const Entry<EntryData> *entry)
{ {
return (entry->flags & Verb) && start < end; return (entry->flags & Verb) && start < end;
} }
inline bool transition (StateTableDriver<void> *driver, inline bool transition (StateTableDriver<EntryData> *driver,
const Entry<void> *entry) const Entry<EntryData> *entry)
{ {
hb_buffer_t *buffer = driver->buffer; hb_buffer_t *buffer = driver->buffer;
unsigned int flags = entry->flags; unsigned int flags = entry->flags;