提交 0501573d 编写于 作者: B Behdad Esfahbod

Fix const correctness in the API

上级 a21add6c
......@@ -40,7 +40,7 @@ hb_fallback_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options);
const char * const *shaper_options);
HB_END_DECLS
......
......@@ -33,7 +33,7 @@ hb_fallback_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options)
const char * const *shaper_options)
{
buffer->guess_properties ();
......
......@@ -433,7 +433,7 @@ hb_ot_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options)
const char * const *shaper_options)
{
hb_ot_shape_plan_t plan;
......
......@@ -39,7 +39,7 @@ hb_ot_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options);
const char * const *shaper_options);
HB_END_DECLS
......
......@@ -42,7 +42,7 @@ typedef hb_bool_t (*hb_shape_func_t) (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options);
const char * const *shaper_options);
#define HB_SHAPER_IMPLEMENT(name) {#name, hb_##name##_shape}
static struct hb_shaper_pair_t {
......@@ -110,12 +110,12 @@ hb_shape_list_shapers (void)
}
hb_bool_t
hb_shape_full (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options,
const char **shaper_list)
hb_shape_full (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char * const *shaper_options,
const char * const *shaper_list)
{
if (likely (!shaper_list)) {
for (unsigned int i = 0; i < ARRAY_LENGTH (shapers); i++)
......
......@@ -49,12 +49,12 @@ hb_shape (hb_font_t *font,
unsigned int num_features);
hb_bool_t
hb_shape_full (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options,
const char **shaper_list);
hb_shape_full (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char * const *shaper_options,
const char * const *shaper_list);
const char **
hb_shape_list_shapers (void);
......
......@@ -208,7 +208,7 @@ hb_uniscribe_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options)
const char * const *shaper_options)
{
buffer->guess_properties ();
......
......@@ -39,7 +39,7 @@ hb_uniscribe_shape (hb_font_t *font,
hb_buffer_t *buffer,
const hb_feature_t *features,
unsigned int num_features,
const char *shaper_options);
const char * const *shaper_options);
HB_END_DECLS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册