typedef struct
{
- char *name;
+ const char *name;
long pos;
long bufsize;
long allocated;
typedef long OTF_StreamState;
OTF_Stream *
-make_stream (char *name)
+make_stream (const char *name)
{
OTF_Stream *stream;
char *errfmt = "stream creation%s";
}
OTF_Stream *
-make_stream_from_ft_face (FT_Face face, char *name)
+make_stream_from_ft_face (FT_Face face, const char *name)
{
char *errfmt = "FT_Face stream creation for %s";
void *errret = NULL;
}
static OTF_TableInfo *
-get_table_info (OTF *otf, char *name)
+get_table_info (OTF *otf, const char *name)
{
char *errfmt = "OTF Table Read%s";
OTF_TableInfo *errret = NULL;
freeing memory previously allocated. */
OTF *
-OTF_open (char *otf_name)
+OTF_open (const char *otf_name)
{
FILE *fp;
char *errfmt = "opening otf (%s)";
/*** (2-3) OTF_get_table() */
int
-OTF_get_table (OTF *otf, char *name)
+OTF_get_table (OTF *otf, const char *name)
{
OTF_TableInfo *table_info = get_table_info (otf, name);
void *address;
/*** (2-4) OTF_check_table() */
int
-OTF_check_table (OTF *otf, char *name)
+OTF_check_table (OTF *otf, const char *name)
{
return (get_table_info (otf, name) ? 0 : -1);
}
int
OTF_check_features (OTF *otf, int gsubp,
- OTF_Tag script, OTF_Tag language, OTF_Tag *features,
+ OTF_Tag script, OTF_Tag language, const OTF_Tag *features,
int n_features)
{
OTF_ScriptList *script_list;
/*** (5) API miscellaneous ***/
OTF_Tag
-OTF_tag (char *name)
+OTF_tag (const char *name)
{
- unsigned char *p = (unsigned char *) name;
+ const unsigned char *p = (unsigned char *) name;
if (! name)
return (OTF_Tag) 0;