Fix const correctness in the API

This commit is contained in:
Behdad Esfahbod 2011-08-10 16:25:56 +02:00
parent a21add6c0d
commit 0501573ded
8 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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 ();

View File

@ -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;

View File

@ -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

View File

@ -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++)

View File

@ -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);

View File

@ -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 ();

View File

@ -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