diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:30:09 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:30:09 +0000 |
commit | c7373aea6badf4ce6e1bca4a5335b89569d5c8a5 (patch) | |
tree | ebdd5fea26edc6f892bd2787737b25970ca00990 /Build/source/texk/xdvipdfmx/src/dpxutil.c | |
parent | 5fc8d99062f93c1d823ef44569549781d4a8e36b (diff) |
towards TL2010: texk/xdvipdfmx
git-svn-id: svn://tug.org/texlive/trunk@15971 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/dpxutil.c')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/dpxutil.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/dpxutil.c b/Build/source/texk/xdvipdfmx/src/dpxutil.c index a30a3269dfa..70676206cd6 100644 --- a/Build/source/texk/xdvipdfmx/src/dpxutil.c +++ b/Build/source/texk/xdvipdfmx/src/dpxutil.c @@ -209,7 +209,7 @@ get_hash (const void *key, int keylen) int i; for (i = 0; i < keylen; i++) { - hkey = (hkey << 5) + hkey + ((char *)key)[i]; + hkey = (hkey << 5) + hkey + ((const char *)key)[i]; } return (hkey % HASH_TABLE_SIZE); @@ -425,10 +425,10 @@ ht_iter_next (struct ht_iter *iter) static int -read_c_escchar (char *r, char **pp, char *endptr) +read_c_escchar (char *r, const char **pp, const char *endptr) { int c = 0, l = 1; - char *p = *pp; + const char *p = *pp; switch (p[0]) { case 'a' : c = '\a'; p++; break; @@ -487,9 +487,9 @@ read_c_escchar (char *r, char **pp, char *endptr) #define C_QUOTE '"' #define C_ESCAPE '\\' static int -read_c_litstrc (char *q, int len, char **pp, char *endptr) +read_c_litstrc (char *q, int len, const char **pp, const char *endptr) { - char *p; + const char *p; int l = 0; #define Q_TERM 0 #define Q_CONT -1 @@ -540,10 +540,10 @@ read_c_litstrc (char *q, int len, char **pp, char *endptr) } char * -parse_c_string (char **pp, char *endptr) +parse_c_string (const char **pp, const char *endptr) { char *q = NULL; - char *p = *pp; + const char *p = *pp; int l = 0; if (p >= endptr || p[0] != C_QUOTE) @@ -572,10 +572,10 @@ parse_c_string (char **pp, char *endptr) ) char * -parse_c_ident (char **pp, char *endptr) +parse_c_ident (const char **pp, const char *endptr) { char *q = NULL; - char *p = *pp; + const char *p = *pp; int n; if (p >= endptr || !ISCNONDIGITS(*p)) @@ -590,10 +590,10 @@ parse_c_ident (char **pp, char *endptr) } char * -parse_float_decimal (char **pp, char *endptr) +parse_float_decimal (const char **pp, const char *endptr) { char *q = NULL; - char *p = *pp; + const char *p = *pp; int s = 0, n = 0; if (p >= endptr) |