#include <config.h>
#include "otf.h"
-#include "otferror.h"
+#include "internal.h"
extern int debug_flag;
return 0;
}
+static int
+prepare_drive_log (OTF_DriveLog *log, int size)
+{
+ if (size > log->allocated)
+ {
+ OTF_Tag *tags;
+ int allocated = log->allocated;
+
+ while (size > allocated)
+ allocated <<= 1;
+ tags = realloc (log->tags, sizeof (OTF_Tag) * log->allocated);
+ if (! tags)
+ return -1;
+ log->allocated = allocated;
+ log->tags = tags;
+ }
+ log->size = 0;
+ return 0;
+}
+
+
\f
static int
get_coverage_index (OTF_Coverage *coverage, OTF_GlyphID id)
return OTF_drive_gsub_internal (otf, gstring, script, language, features, 0);
}
-int
+static int
OTF_drive_gpos_internal (OTF *otf, OTF_GlyphString *gstring,
const char *script, const char *language,
const char *features,
return -1;
return 0;
}
+
+OTF_Tag *
+OTF_get_drive_log (OTF *otf)
+{
+ OTF_DriveLog *log = get_drive_log (otf);
+
+ return (log ? log->tags : NULL);
+}
+