*** empty log message ***
[m17n/libotf.git] / src / otfopen.c
index 0f72757..ea0445b 100644 (file)
@@ -82,7 +82,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite
 
 typedef struct
 {
-  char *name;
+  const char *name;
   long pos;
   long bufsize;
   long allocated;
@@ -92,7 +92,7 @@ typedef struct
 typedef long OTF_StreamState;
 
 OTF_Stream *
-make_stream (char *name)
+make_stream (const char *name)
 {
   OTF_Stream *stream;
   char *errfmt = "stream creation%s";
@@ -132,7 +132,7 @@ setup_stream (OTF_Stream *stream, FILE *fp, long offset, int nbytes)
 }
 
 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;
@@ -2739,7 +2739,7 @@ read_header_part (OTF *otf, FILE *fp, FT_Face face)
 }
 
 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;
@@ -2786,7 +2786,7 @@ get_table_info (OTF *otf, char *name)
    freeing memory previously allocated.  */
 
 OTF *
-OTF_open (char *otf_name)
+OTF_open (const char *otf_name)
 {
   FILE *fp;
   char *errfmt = "opening otf (%s)";
@@ -2907,7 +2907,7 @@ OTF_close (OTF *otf)
 /*** (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;
@@ -2932,7 +2932,7 @@ OTF_get_table (OTF *otf, char *name)
 /*** (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);
 }
@@ -2995,7 +2995,7 @@ OTF_get_features (OTF *otf, int gsubp)
 
 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;
@@ -3070,9 +3070,9 @@ OTF_check_features (OTF *otf, int gsubp,
 /*** (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;