Fix const correctness in the API
This commit is contained in:
parent
a21add6c0d
commit
0501573ded
|
@ -40,7 +40,7 @@ hb_fallback_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options);
|
const char * const *shaper_options);
|
||||||
|
|
||||||
|
|
||||||
HB_END_DECLS
|
HB_END_DECLS
|
||||||
|
|
|
@ -33,7 +33,7 @@ hb_fallback_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options)
|
const char * const *shaper_options)
|
||||||
{
|
{
|
||||||
buffer->guess_properties ();
|
buffer->guess_properties ();
|
||||||
|
|
||||||
|
|
|
@ -433,7 +433,7 @@ hb_ot_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options)
|
const char * const *shaper_options)
|
||||||
{
|
{
|
||||||
hb_ot_shape_plan_t plan;
|
hb_ot_shape_plan_t plan;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ hb_ot_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options);
|
const char * const *shaper_options);
|
||||||
|
|
||||||
|
|
||||||
HB_END_DECLS
|
HB_END_DECLS
|
||||||
|
|
|
@ -42,7 +42,7 @@ typedef hb_bool_t (*hb_shape_func_t) (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options);
|
const char * const *shaper_options);
|
||||||
|
|
||||||
#define HB_SHAPER_IMPLEMENT(name) {#name, hb_##name##_shape}
|
#define HB_SHAPER_IMPLEMENT(name) {#name, hb_##name##_shape}
|
||||||
static struct hb_shaper_pair_t {
|
static struct hb_shaper_pair_t {
|
||||||
|
@ -114,8 +114,8 @@ hb_shape_full (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options,
|
const char * const *shaper_options,
|
||||||
const char **shaper_list)
|
const char * const *shaper_list)
|
||||||
{
|
{
|
||||||
if (likely (!shaper_list)) {
|
if (likely (!shaper_list)) {
|
||||||
for (unsigned int i = 0; i < ARRAY_LENGTH (shapers); i++)
|
for (unsigned int i = 0; i < ARRAY_LENGTH (shapers); i++)
|
||||||
|
|
|
@ -53,8 +53,8 @@ hb_shape_full (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options,
|
const char * const *shaper_options,
|
||||||
const char **shaper_list);
|
const char * const *shaper_list);
|
||||||
|
|
||||||
const char **
|
const char **
|
||||||
hb_shape_list_shapers (void);
|
hb_shape_list_shapers (void);
|
||||||
|
|
|
@ -208,7 +208,7 @@ hb_uniscribe_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options)
|
const char * const *shaper_options)
|
||||||
{
|
{
|
||||||
buffer->guess_properties ();
|
buffer->guess_properties ();
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ hb_uniscribe_shape (hb_font_t *font,
|
||||||
hb_buffer_t *buffer,
|
hb_buffer_t *buffer,
|
||||||
const hb_feature_t *features,
|
const hb_feature_t *features,
|
||||||
unsigned int num_features,
|
unsigned int num_features,
|
||||||
const char *shaper_options);
|
const char * const *shaper_options);
|
||||||
|
|
||||||
|
|
||||||
HB_END_DECLS
|
HB_END_DECLS
|
||||||
|
|
Loading…
Reference in New Issue