summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_scan.c')
-rw-r--r--lib/skin_parser/skin_scan.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/skin_parser/skin_scan.c b/lib/skin_parser/skin_scan.c
index d18f2224b3..de9c423f04 100644
--- a/lib/skin_parser/skin_scan.c
+++ b/lib/skin_parser/skin_scan.c
@@ -32,7 +32,7 @@
32/* Scanning Functions */ 32/* Scanning Functions */
33 33
34/* Simple function to advance a char* past a comment */ 34/* Simple function to advance a char* past a comment */
35void skip_comment(char** document) 35void skip_comment(const char** document)
36{ 36{
37 while(**document != '\n' && **document != '\0') 37 while(**document != '\n' && **document != '\0')
38 (*document)++; 38 (*document)++;
@@ -40,7 +40,7 @@ void skip_comment(char** document)
40 (*document)++; 40 (*document)++;
41} 41}
42 42
43void skip_arglist(char** document) 43void skip_arglist(const char** document)
44{ 44{
45 if(**document == ARGLISTOPENSYM) 45 if(**document == ARGLISTOPENSYM)
46 (*document)++; 46 (*document)++;
@@ -66,7 +66,7 @@ void skip_arglist(char** document)
66 (*document)++; 66 (*document)++;
67} 67}
68 68
69void skip_enumlist(char** document) 69void skip_enumlist(const char** document)
70{ 70{
71 if(**document == ENUMLISTOPENSYM) 71 if(**document == ENUMLISTOPENSYM)
72 (*document)++; 72 (*document)++;
@@ -93,10 +93,10 @@ void skip_enumlist(char** document)
93 (*document)++; 93 (*document)++;
94} 94}
95 95
96char* scan_string(char** document) 96char* scan_string(const char** document)
97{ 97{
98 98
99 char* cursor = *document; 99 const char* cursor = *document;
100 int length = 0; 100 int length = 0;
101 char* buffer = NULL; 101 char* buffer = NULL;
102 int i; 102 int i;
@@ -149,10 +149,10 @@ char* scan_string(char** document)
149 return buffer; 149 return buffer;
150} 150}
151 151
152int scan_int(char** document) 152int scan_int(const char** document)
153{ 153{
154 154
155 char* cursor = *document, *end; 155 const char *cursor = *document, *end;
156 int length = 0; 156 int length = 0;
157 char buffer[16]; 157 char buffer[16];
158 int retval; 158 int retval;
@@ -194,7 +194,7 @@ int scan_int(char** document)
194 return retval; 194 return retval;
195} 195}
196 196
197int check_viewport(char* document) 197int check_viewport(const char* document)
198{ 198{
199 if(strlen(document) < 3) 199 if(strlen(document) < 3)
200 return 0; 200 return 0;