1
1
2
2
This increases the number of typedef's understood by BSD indent from 100
3
- to 1000. The second patch allows it to understand 0x7fU constants.
3
+ to 1000. The second patch allows it to understand 0x7fU and 0LL constants.
4
4
5
5
- --------------------------------------------------------------------------
6
6
@@ -24,23 +24,35 @@ to 1000. The second patch allows it to understand 0x7fU constants.
24
24
"switch", 1,
25
25
"case", 2,
26
26
27
- *** ./lexi.c.orig Wed May 26 10:50:54 1999
28
- --- ./lexi.c Wed May 26 10:51:08 1999
27
+ *** ./lexi.c.orig Wed Apr 18 17:15:17 2001
28
+ --- ./lexi.c Mon Sep 3 19:05:17 2001
29
29
***************
30
- *** 186,192 ****
30
+ *** 186,194 ****
31
31
*e_token++ = *buf_ptr++;
32
32
}
33
33
}
34
- ! if (*buf_ptr == 'L' || *buf_ptr == 'l')
35
- *e_token++ = *buf_ptr++;
34
+ ! if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
35
+ ! *buf_ptr == 'l' || *buf_ptr == 'u')
36
+ ! *e_token++ = *buf_ptr++;
36
37
}
37
38
else
38
- --- 186,193 ----
39
+ while (chartype[*buf_ptr] == alphanum) { /* copy it over */
40
+ --- 186,203 ----
39
41
*e_token++ = *buf_ptr++;
40
42
}
41
43
}
42
- ! if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
43
- ! *buf_ptr == 'l' || *buf_ptr == 'u')
44
- *e_token++ = *buf_ptr++;
44
+ ! if (*buf_ptr == 'F' || *buf_ptr == 'f') {
45
+ ! /* float constant */
46
+ ! *e_token++ = *buf_ptr++;
47
+ ! } else {
48
+ ! /* integer constant (U, L, UL, LL, ULL) */
49
+ ! if (*buf_ptr == 'U' || *buf_ptr == 'u')
50
+ ! *e_token++ = *buf_ptr++;
51
+ ! if (*buf_ptr == 'L' || *buf_ptr == 'l')
52
+ ! *e_token++ = *buf_ptr++;
53
+ ! if (*buf_ptr == 'L' || *buf_ptr == 'l')
54
+ ! *e_token++ = *buf_ptr++;
55
+ ! }
45
56
}
46
57
else
58
+ while (chartype[*buf_ptr] == alphanum) { /* copy it over */
0 commit comments