diff options
Diffstat (limited to 'utils/themeeditor/skin_scan.c')
-rw-r--r-- | utils/themeeditor/skin_scan.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/themeeditor/skin_scan.c b/utils/themeeditor/skin_scan.c index dfe5d008e5..37c948fb3c 100644 --- a/utils/themeeditor/skin_scan.c +++ b/utils/themeeditor/skin_scan.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <ctype.h> | 23 | #include <ctype.h> |
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <string.h> | ||
25 | 26 | ||
26 | #include "skin_scan.h" | 27 | #include "skin_scan.h" |
27 | #include "skin_debug.h" | 28 | #include "skin_debug.h" |
@@ -136,3 +137,22 @@ int scan_int(char** document) | |||
136 | *document = cursor; | 137 | *document = cursor; |
137 | return retval; | 138 | return retval; |
138 | } | 139 | } |
140 | |||
141 | int check_viewport(char* document) | ||
142 | { | ||
143 | if(strlen(document) < 3) | ||
144 | return 0; | ||
145 | |||
146 | if(document[0] != TAGSYM) | ||
147 | return 0; | ||
148 | |||
149 | if(document[1] != 'V') | ||
150 | return 0; | ||
151 | |||
152 | if(document[2] != ARGLISTOPENSYM | ||
153 | && document[2] != 'l' | ||
154 | && document[2] != 'i') | ||
155 | return 0; | ||
156 | |||
157 | return 1; | ||
158 | } | ||