@@ -295,7 +295,7 @@ extern "C" {
295
295
// Returns: a newly created context object.
296
296
// In: flags: which parts of the context to initialize.
297
297
#[ no_mangle]
298
- #[ cfg( all( feature = "std" , not( feature = "external_symbols " ) ) ) ]
298
+ #[ cfg( all( feature = "std" , not( feature = "external-symbols " ) ) ) ]
299
299
pub unsafe extern "C" fn rustsecp256k1_v0_1_1_context_create ( flags : c_uint ) -> * mut Context {
300
300
use std:: mem;
301
301
assert ! ( mem:: align_of:: <usize >( ) >= mem:: align_of:: <u8 >( ) ) ;
@@ -312,7 +312,7 @@ pub unsafe extern "C" fn rustsecp256k1_v0_1_1_context_create(flags: c_uint) -> *
312
312
secp256k1_context_preallocated_create ( ptr as * mut c_void , flags)
313
313
}
314
314
315
- #[ cfg( all( feature = "std" , not( feature = "external_symbols " ) ) ) ]
315
+ #[ cfg( all( feature = "std" , not( feature = "external-symbols " ) ) ) ]
316
316
pub unsafe fn secp256k1_context_create ( flags : c_uint ) -> * mut Context {
317
317
rustsecp256k1_v0_1_1_context_create ( flags)
318
318
}
@@ -324,7 +324,7 @@ pub unsafe fn secp256k1_context_create(flags: c_uint) -> *mut Context {
324
324
/// The pointer shouldn't be used after passing to this function, consider it as passing it to `free()`.
325
325
///
326
326
#[ no_mangle]
327
- #[ cfg( all( feature = "std" , not( feature = "external_symbols " ) ) ) ]
327
+ #[ cfg( all( feature = "std" , not( feature = "external-symbols " ) ) ) ]
328
328
pub unsafe extern "C" fn rustsecp256k1_v0_1_1_context_destroy ( ctx : * mut Context ) {
329
329
secp256k1_context_preallocated_destroy ( ctx) ;
330
330
let ctx: * mut usize = ctx as * mut usize ;
@@ -335,7 +335,7 @@ pub unsafe extern "C" fn rustsecp256k1_v0_1_1_context_destroy(ctx: *mut Context)
335
335
let _ = Box :: from_raw ( slice as * mut [ usize ] ) ;
336
336
}
337
337
338
- #[ cfg( all( feature = "std" , not( feature = "external_symbols " ) ) ) ]
338
+ #[ cfg( all( feature = "std" , not( feature = "external-symbols " ) ) ) ]
339
339
pub unsafe fn secp256k1_context_destroy ( ctx : * mut Context ) {
340
340
rustsecp256k1_v0_1_1_context_destroy ( ctx)
341
341
}
@@ -360,7 +360,7 @@ pub unsafe fn secp256k1_context_destroy(ctx: *mut Context) {
360
360
/// See also secp256k1_default_error_callback_fn.
361
361
///
362
362
#[ no_mangle]
363
- #[ cfg( not( feature = "external_symbols " ) ) ]
363
+ #[ cfg( not( feature = "external-symbols " ) ) ]
364
364
pub unsafe extern "C" fn rustsecp256k1_v0_1_1_default_illegal_callback_fn ( message : * const c_char , _data : * mut c_void ) {
365
365
use core:: str;
366
366
let msg_slice = slice:: from_raw_parts ( message as * const u8 , strlen ( message) ) ;
@@ -383,7 +383,7 @@ pub unsafe extern "C" fn rustsecp256k1_v0_1_1_default_illegal_callback_fn(messag
383
383
/// See also secp256k1_default_illegal_callback_fn.
384
384
///
385
385
#[ no_mangle]
386
- #[ cfg( not( feature = "external_symbols " ) ) ]
386
+ #[ cfg( not( feature = "external-symbols " ) ) ]
387
387
pub unsafe extern "C" fn rustsecp256k1_v0_1_1_default_error_callback_fn ( message : * const c_char , _data : * mut c_void ) {
388
388
use core:: str;
389
389
let msg_slice = slice:: from_raw_parts ( message as * const u8 , strlen ( message) ) ;
0 commit comments