@@ -218,7 +218,7 @@ macro_rules! e {
218
218
/// purpose is to calculate the correct enum values.
219
219
///
220
220
/// See <https://github.com/rust-lang/libc/issues/4419> for more.
221
- // FIXME(ctest): ctest doesn't like `?` kleenes, `literal` fragments, `$crate`, or `@ `. See inline
221
+ // FIXME(ctest): ctest doesn't like `?` kleenes, `literal` fragments, or `$crate `. See inline
222
222
// comments for what eventually should be fixed.
223
223
macro_rules! c_enum {
224
224
(
@@ -227,13 +227,13 @@ macro_rules! c_enum {
227
227
$( $variant: ident $( = $value: tt /* literal */ ) * /* ? */ , ) +
228
228
}
229
229
) => {
230
- pub type $ty_name = c_enum!( __ty $( $repr) * ) ;
231
- c_enum!( __one ; $ty_name; 0 ; $( $variant $( = $value) * , ) +) ;
230
+ pub type $ty_name = c_enum!( @ty $( $repr) * ) ;
231
+ c_enum!( @one ; $ty_name; 0 ; $( $variant $( = $value) * , ) +) ;
232
232
} ;
233
233
// Matcher for a single variant
234
- ( __one /* @one */ ; $_ty_name: ident; $_idx: expr; ) => { } ;
234
+ ( @one; $_ty_name: ident; $_idx: expr; ) => { } ;
235
235
(
236
- __one /* @one */ ; $ty_name: ident; $default_val: expr;
236
+ @one; $ty_name: ident; $default_val: expr;
237
237
$variant: ident $( = $value: tt /* literal */ ) * /* ? */ ,
238
238
$( $tail: tt) *
239
239
) => {
@@ -246,12 +246,12 @@ macro_rules! c_enum {
246
246
247
247
// The next value is always one more than the previous value, unless
248
248
// set explicitly.
249
- c_enum!( __one ; $ty_name; $variant + 1 ; $( $tail) * ) ;
249
+ c_enum!( @one ; $ty_name; $variant + 1 ; $( $tail) * ) ;
250
250
} ;
251
251
252
252
// Use a specific type if provided, otherwise default to `c_uint`
253
- ( __ty /* @ty */ $repr: ty) => { $repr } ;
254
- ( __ty /* @ty */ ) => { /* $crate:: */ c_uint } ;
253
+ ( @ty $repr: ty) => { $repr } ;
254
+ ( @ty) => { /* $crate:: */ c_uint } ;
255
255
}
256
256
257
257
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
0 commit comments