@@ -42,53 +42,41 @@ SRE(at)(SRE_STATE* state, const SRE_CHAR* ptr, SRE_CODE at)
42
42
return ((void * ) ptr == state -> end );
43
43
44
44
case SRE_AT_BOUNDARY :
45
- if (state -> beginning == state -> end )
46
- return 0 ;
47
45
thatp = ((void * ) ptr > state -> beginning ) ?
48
46
SRE_IS_WORD ((int ) ptr [-1 ]) : 0 ;
49
47
thisp = ((void * ) ptr < state -> end ) ?
50
48
SRE_IS_WORD ((int ) ptr [0 ]) : 0 ;
51
49
return thisp != thatp ;
52
50
53
51
case SRE_AT_NON_BOUNDARY :
54
- if (state -> beginning == state -> end )
55
- return 0 ;
56
52
thatp = ((void * ) ptr > state -> beginning ) ?
57
53
SRE_IS_WORD ((int ) ptr [-1 ]) : 0 ;
58
54
thisp = ((void * ) ptr < state -> end ) ?
59
55
SRE_IS_WORD ((int ) ptr [0 ]) : 0 ;
60
56
return thisp == thatp ;
61
57
62
58
case SRE_AT_LOC_BOUNDARY :
63
- if (state -> beginning == state -> end )
64
- return 0 ;
65
59
thatp = ((void * ) ptr > state -> beginning ) ?
66
60
SRE_LOC_IS_WORD ((int ) ptr [-1 ]) : 0 ;
67
61
thisp = ((void * ) ptr < state -> end ) ?
68
62
SRE_LOC_IS_WORD ((int ) ptr [0 ]) : 0 ;
69
63
return thisp != thatp ;
70
64
71
65
case SRE_AT_LOC_NON_BOUNDARY :
72
- if (state -> beginning == state -> end )
73
- return 0 ;
74
66
thatp = ((void * ) ptr > state -> beginning ) ?
75
67
SRE_LOC_IS_WORD ((int ) ptr [-1 ]) : 0 ;
76
68
thisp = ((void * ) ptr < state -> end ) ?
77
69
SRE_LOC_IS_WORD ((int ) ptr [0 ]) : 0 ;
78
70
return thisp == thatp ;
79
71
80
72
case SRE_AT_UNI_BOUNDARY :
81
- if (state -> beginning == state -> end )
82
- return 0 ;
83
73
thatp = ((void * ) ptr > state -> beginning ) ?
84
74
SRE_UNI_IS_WORD ((int ) ptr [-1 ]) : 0 ;
85
75
thisp = ((void * ) ptr < state -> end ) ?
86
76
SRE_UNI_IS_WORD ((int ) ptr [0 ]) : 0 ;
87
77
return thisp != thatp ;
88
78
89
79
case SRE_AT_UNI_NON_BOUNDARY :
90
- if (state -> beginning == state -> end )
91
- return 0 ;
92
80
thatp = ((void * ) ptr > state -> beginning ) ?
93
81
SRE_UNI_IS_WORD ((int ) ptr [-1 ]) : 0 ;
94
82
thisp = ((void * ) ptr < state -> end ) ?
0 commit comments