Skip to content

Commit b8ef357

Browse files
Remove #[fixed_stack_segment] attributes
Fixes warnings "obsolete attribute: Remove it"
1 parent 50ad8c7 commit b8ef357

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/pcre/detail/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ pub static PCRE_INFO_REQUIREDCHARFLAGS: fullinfo_field = 22;
5252
pub static PCRE_INFO_MATCHLIMIT: fullinfo_field = 23;
5353
pub static PCRE_INFO_RECURSIONLIMIT: fullinfo_field = 24;
5454

55-
#[fixed_stack_segment]
56-
#[inline(never)]
5755
pub unsafe fn pcre_compile(pattern: *c_char, options: ::options, tableptr: *c_uchar) -> Result<*mut pcre, (Option<~str>, c_int)> {
5856
assert!(ptr::is_not_null(pattern));
5957
let mut err: *c_char = ptr::null();
@@ -84,8 +82,6 @@ pub unsafe fn pcre_compile(pattern: *c_char, options: ::options, tableptr: *c_uc
8482
}
8583
}
8684

87-
#[fixed_stack_segment]
88-
#[inline(never)]
8985
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 {
9086
assert!(ptr::is_not_null(code));
9187
assert!(ovecsize >= 0 && ovecsize % 3 == 0);
@@ -99,20 +95,14 @@ pub unsafe fn pcre_exec(code: *pcre, extra: *pcre_extra, subject: *c_char, lengt
9995
rc
10096
}
10197

102-
#[fixed_stack_segment]
103-
#[inline(never)]
10498
pub unsafe fn pcre_free(ptr: *mut c_void) {
10599
native::pcre_free(ptr);
106100
}
107101

108-
#[fixed_stack_segment]
109-
#[inline(never)]
110102
pub unsafe fn pcre_free_study(extra: *mut pcre_extra) {
111103
native::pcre_free_study(extra);
112104
}
113105

114-
#[fixed_stack_segment]
115-
#[inline(never)]
116106
pub unsafe fn pcre_fullinfo(code: *pcre, extra: *pcre_extra, what: fullinfo_field, where: *mut c_void) {
117107
assert!(ptr::is_not_null(code));
118108
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
121111
}
122112
}
123113

124-
#[fixed_stack_segment]
125-
#[inline(never)]
126114
pub unsafe fn pcre_refcount(code: *mut ::detail::pcre, adjust: c_int) -> c_int {
127115
assert!(ptr::is_not_null(code));
128116
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 {
134122
native::pcre_refcount(code, adjust)
135123
}
136124

137-
#[fixed_stack_segment]
138-
#[inline(never)]
139125
pub unsafe fn pcre_study(code: *::detail::pcre, options: &EnumSet<::StudyOption>) -> *mut ::detail::pcre_extra {
140126
assert!(ptr::is_not_null(code));
141127
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>
159145
extra
160146
}
161147

162-
#[fixed_stack_segment]
163-
#[inline(never)]
164148
pub fn pcre_version() -> ~str {
165149
let version_cstring = unsafe { CString::new(native::pcre_version(), false) };
166150
version_cstring.as_str().unwrap().to_owned()

src/pcre/pkg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ extern \\{
122122
fn pcre_version() -> *c_char;
123123
\\}
124124
125-
\\#[fixed_stack_segment]
126-
\\#[inline(never)]
127125
fn main () \\{
128126
unsafe \\{
129127
let version_cstring = CString::new(pcre_version(), false);

0 commit comments

Comments
 (0)