aboutsummaryrefslogtreecommitdiff
path: root/src/hyper/macro.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
committerdos-reis <gdr@axiomatics.org>2010-08-08 17:37:46 +0000
commit13112984fd32d4684959a923497a9a476981283e (patch)
tree05c9b0a7efa76555aec9b49abf9203f4c1d462bf /src/hyper/macro.c
parent45103d600768000e5c242fe478ff9468526bb8f6 (diff)
downloadopen-axiom-13112984fd32d4684959a923497a9a476981283e.tar.gz
* hyper/ex2ht.c (strPrefix): Be const-correct.
* hyper/htinp.c (get_graph_output): Likewise. (print_paste): Likewise. (print_graph_paste): Likewise. * hyper/initx.c (get_color): Likewise. * hyper/keyin.c (handle_key): Likewise. * hyper/lex.c (token_table): Likewise. * hyper/macro.c (number): Likewise. * hyper/mem.c (alloc_page): Likewise. * hyper/parse-aux.c (make_special_page): Likewise. (is_number): Likewise. * hyper/parse-types.c (errmess): Likewise. * lib/sockio-c.c (oa_socket_read): Cast to second argument to appropriate type. (oa_socket_read_byte): Likewise.
Diffstat (limited to 'src/hyper/macro.c')
-rw-r--r--src/hyper/macro.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/hyper/macro.c b/src/hyper/macro.c
index cdabf8f8..596506c6 100644
--- a/src/hyper/macro.c
+++ b/src/hyper/macro.c
@@ -86,14 +86,14 @@ scan_HyperDoc(void)
}
int
-number(char *str)
+number(const char *str)
{
- char *t = str;
-
- while (*t)
- if (!isdigit(*t++))
- return 0;
- return 1;
+ const char *t = str;
+
+ while (*t)
+ if (!isdigit(*t++))
+ return 0;
+ return 1;
}
/* Parse a given macro given the pointer to the unlaoded macro ** */