提交 2c80296a 编写于 作者: B Behdad Esfahbod

[HB] Add XXX marks

上级 c46f8efd
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
#define HB_OT_LAYOUT_PRIVATE_H #define HB_OT_LAYOUT_PRIVATE_H
#include "hb-private.h" #include "hb-private.h"
#include "hb-ot-layout.h" #include "hb-ot-layout.h"
#include "hb-buffer-private.h" #include "hb-buffer-private.h"
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#define HB_OT_LAYOUT_CC #define HB_OT_LAYOUT_CC
/* XXX */
#include "hb-buffer-private.h"
#include "hb-ot-layout.h"
#include "hb-ot-layout-private.h" #include "hb-ot-layout-private.h"
#include "hb-ot-layout-open-private.h" #include "hb-ot-layout-open-private.h"
...@@ -263,7 +259,7 @@ hb_ot_layout_set_glyph_class (hb_ot_layout_t *layout, ...@@ -263,7 +259,7 @@ hb_ot_layout_set_glyph_class (hb_ot_layout_t *layout,
hb_codepoint_t glyph, hb_codepoint_t glyph,
hb_ot_layout_glyph_class_t klass) hb_ot_layout_glyph_class_t klass)
{ {
/* TODO optimize this, similar to old harfbuzz code for example */ /* TODO optimize this? similar to old harfbuzz code for example */
hb_ot_layout_class_t gdef_klass; hb_ot_layout_class_t gdef_klass;
int len = layout->new_gdef.len; int len = layout->new_gdef.len;
...@@ -271,6 +267,7 @@ hb_ot_layout_set_glyph_class (hb_ot_layout_t *layout, ...@@ -271,6 +267,7 @@ hb_ot_layout_set_glyph_class (hb_ot_layout_t *layout,
if (HB_UNLIKELY (glyph > 65535)) if (HB_UNLIKELY (glyph > 65535))
return; return;
/* XXX this is not threadsafe */
if (glyph >= len) { if (glyph >= len) {
int new_len; int new_len;
unsigned char *new_klasses; unsigned char *new_klasses;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册