From 5a0abd175439ef97c1d9ff67be182b86a5710824 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 9 Jan 2007 03:44:18 +0000 Subject: [PATCH] Adjusted many prototypes to contain `const' qualifiers. --- src/otf.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/otf.h b/src/otf.h index 9be9fe5..efa37ff 100644 --- a/src/otf.h +++ b/src/otf.h @@ -1067,7 +1067,7 @@ typedef struct See also OTF_get_table() and OTF_close(). */ -extern OTF *OTF_open (char *name); +extern OTF *OTF_open (const char *name); #include #include FT_FREETYPE_H @@ -1104,7 +1104,7 @@ extern void OTF_close (OTF *otf); See also OTF_open(). */ -extern int OTF_get_table (OTF *otf, char *name); +extern int OTF_get_table (OTF *otf, const char *name); /*** (2-4) OTF_check_table () */ @@ -1118,7 +1118,7 @@ extern int OTF_get_table (OTF *otf, char *name); See also OTF_open(). */ -extern int OTF_check_table (OTF *otf, char *name); +extern int OTF_check_table (OTF *otf, const char *name); /*** (2-5) OTF_get_scripts () */ @@ -1165,7 +1165,7 @@ extern int OTF_get_features (OTF *otf, int gsubp); extern int OTF_check_features (OTF *otf, int gsubp, OTF_Tag script, OTF_Tag language, - OTF_Tag *features, int n_features); + const OTF_Tag *features, int n_features); /*** (3) API for driving OTF */ @@ -1302,7 +1302,8 @@ extern int OTF_drive_gdef (OTF *otf, OTF_GlyphString *gstring); use OTF_drive_gsub_alternate(). */ extern int OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring, - char *script, char *language, char *features); + const char *script, const char *language, + const char *features); /*** (3-5) OTF_drive_gpos() */ @@ -1316,7 +1317,8 @@ extern int OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring, $GSTRING. $FEATURES is a list of features to apply. */ extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring, - char *script, char *language, char *features); + const char *script, const char *language, + const char *features); /*** (3-6) OTF_drive_tables() */ @@ -1328,8 +1330,9 @@ extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring, order, and update the glyphs string GSTRING. */ extern int OTF_drive_tables (OTF *otf, OTF_GlyphString *gstring, - char *script, char *language, - char *gsub_features, char *gpos_features); + const char *script, const char *language, + const char *gsub_features, + const char *gpos_features); /*** (3-7) OTF_get_unicode() */ @@ -1349,8 +1352,8 @@ extern int OTF_get_unicode (OTF *otf, OTF_GlyphID code); (Alternate Substituion). */ extern int OTF_drive_gsub_alternate (OTF *otf, OTF_GlyphString *gstring, - char *script, char *language, - char *features); + const char *script, const char *language, + const char *features); /*** (4) API for error handling ***/ @@ -1426,7 +1429,7 @@ extern int OTF_error; first, followed by a colon and a blank. Then the message and a newline. */ -extern void OTF_perror (char *prefix); +extern void OTF_perror (const char *prefix); /*** (5) API miscellaneous ***/ @@ -1438,7 +1441,7 @@ extern void OTF_perror (char *prefix); NULL, return 0. Otherwise, $NAME must be at least 4-byte length. Only the first 4 characters are took into an account. */ -extern OTF_Tag OTF_tag (char *name); +extern OTF_Tag OTF_tag (const char *name); /*** Convert OTF tag to name string. -- 1.7.10.4