blob: e7aa002053c3c9ccd9c5dbe3ae0abdc5a02454c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* Generated by re2c */
#define NULL ((char*) 0)
const unsigned char *scan(const unsigned char *p, unsigned int len, int *state)
{
unsigned char c;
const unsigned char *q;
const unsigned char * const e = p + len;
switch (*state) {
default: goto yy0;
case 0: goto yyFillLabel0;
case 1: goto yyFillLabel1;
}
yy0:
*state = 0;
if (p >= e) {
return NULL;
}
yyFillLabel0:
c = *p;
if (c <= '/') goto yy4;
if (c >= ':') goto yy4;
++p;
c = *p;
goto yy7;
yy3:
{ return p; }
yy4:
++p;
{ return NULL; }
yy6:
++p;
*state = 1;
if (p >= e) {
return NULL;
}
yyFillLabel1:
c = *p;
yy7:
if (c <= '/') goto yy3;
if (c <= '9') goto yy6;
goto yy3;
}
|