@@ -52,8 +52,6 @@ pub static PCRE_INFO_REQUIREDCHARFLAGS: fullinfo_field = 22;
52
52
pub static PCRE_INFO_MATCHLIMIT : fullinfo_field = 23 ;
53
53
pub static PCRE_INFO_RECURSIONLIMIT : fullinfo_field = 24 ;
54
54
55
- #[ fixed_stack_segment]
56
- #[ inline( never) ]
57
55
pub unsafe fn pcre_compile ( pattern : * c_char , options : :: options , tableptr : * c_uchar ) -> Result < * mut pcre , ( Option < ~str > , c_int ) > {
58
56
assert ! ( ptr:: is_not_null( pattern) ) ;
59
57
let mut err: * c_char = ptr:: null ( ) ;
@@ -84,8 +82,6 @@ pub unsafe fn pcre_compile(pattern: *c_char, options: ::options, tableptr: *c_uc
84
82
}
85
83
}
86
84
87
- #[ fixed_stack_segment]
88
- #[ inline( never) ]
89
85
pub unsafe fn pcre_exec ( code : * pcre , extra : * pcre_extra , subject : * c_char , length : c_int , startoffset : c_int , options : :: options , ovector : * mut c_int , ovecsize : c_int ) -> c_int {
90
86
assert ! ( ptr:: is_not_null( code) ) ;
91
87
assert ! ( ovecsize >= 0 && ovecsize % 3 == 0 ) ;
@@ -99,20 +95,14 @@ pub unsafe fn pcre_exec(code: *pcre, extra: *pcre_extra, subject: *c_char, lengt
99
95
rc
100
96
}
101
97
102
- #[ fixed_stack_segment]
103
- #[ inline( never) ]
104
98
pub unsafe fn pcre_free ( ptr : * mut c_void ) {
105
99
native:: pcre_free ( ptr) ;
106
100
}
107
101
108
- #[ fixed_stack_segment]
109
- #[ inline( never) ]
110
102
pub unsafe fn pcre_free_study ( extra : * mut pcre_extra ) {
111
103
native:: pcre_free_study ( extra) ;
112
104
}
113
105
114
- #[ fixed_stack_segment]
115
- #[ inline( never) ]
116
106
pub unsafe fn pcre_fullinfo ( code : * pcre , extra : * pcre_extra , what : fullinfo_field , where : * mut c_void ) {
117
107
assert ! ( ptr:: is_not_null( code) ) ;
118
108
let rc = native:: pcre_fullinfo ( code, extra, what, where) ;
@@ -121,8 +111,6 @@ pub unsafe fn pcre_fullinfo(code: *pcre, extra: *pcre_extra, what: fullinfo_fiel
121
111
}
122
112
}
123
113
124
- #[ fixed_stack_segment]
125
- #[ inline( never) ]
126
114
pub unsafe fn pcre_refcount ( code : * mut :: detail:: pcre , adjust : c_int ) -> c_int {
127
115
assert ! ( ptr:: is_not_null( code) ) ;
128
116
let curr_refcount = native:: pcre_refcount ( code, 0 ) ;
@@ -134,8 +122,6 @@ pub unsafe fn pcre_refcount(code: *mut ::detail::pcre, adjust: c_int) -> c_int {
134
122
native:: pcre_refcount ( code, adjust)
135
123
}
136
124
137
- #[ fixed_stack_segment]
138
- #[ inline( never) ]
139
125
pub unsafe fn pcre_study ( code : * :: detail:: pcre , options : & EnumSet < :: StudyOption > ) -> * mut :: detail:: pcre_extra {
140
126
assert ! ( ptr:: is_not_null( code) ) ;
141
127
let converted_options = options. iter ( ) . fold ( 0 , |converted_options, option| converted_options | ( option as study_options ) ) ;
@@ -159,8 +145,6 @@ pub unsafe fn pcre_study(code: *::detail::pcre, options: &EnumSet<::StudyOption>
159
145
extra
160
146
}
161
147
162
- #[ fixed_stack_segment]
163
- #[ inline( never) ]
164
148
pub fn pcre_version ( ) -> ~str {
165
149
let version_cstring = unsafe { CString :: new ( native:: pcre_version ( ) , false ) } ;
166
150
version_cstring. as_str ( ) . unwrap ( ) . to_owned ( )
0 commit comments