@@ -484,10 +484,10 @@ CF_CROSS_PLATFORM_EXPORT void __CFURLComponentsDeallocate(CFTypeRef cf);
484
484
typedef struct {
485
485
void * _Nonnull memory ;
486
486
size_t capacity ;
487
- _Bool onStack ;
487
+ bool onStack ;
488
488
} _ConditionalAllocationBuffer ;
489
489
490
- static inline _Bool _resizeConditionalAllocationBuffer (_ConditionalAllocationBuffer * _Nonnull buffer , size_t amt ) {
490
+ static inline bool _resizeConditionalAllocationBuffer (_ConditionalAllocationBuffer * _Nonnull buffer , size_t amt ) {
491
491
#if TARGET_OS_MAC
492
492
size_t amount = malloc_good_size (amt );
493
493
#else
@@ -511,7 +511,7 @@ static inline _Bool _resizeConditionalAllocationBuffer(_ConditionalAllocationBuf
511
511
}
512
512
513
513
#if TARGET_OS_WASI
514
- static inline _Bool _withStackOrHeapBuffer (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(_ConditionalAllocationBuffer * _Nonnull)) {
514
+ static inline bool _withStackOrHeapBuffer (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(_ConditionalAllocationBuffer * _Nonnull)) {
515
515
_ConditionalAllocationBuffer buffer ;
516
516
buffer .capacity = amount ;
517
517
buffer .onStack = false;
@@ -522,7 +522,7 @@ static inline _Bool _withStackOrHeapBuffer(size_t amount, void (__attribute__((n
522
522
return true;
523
523
}
524
524
#else
525
- static inline _Bool _withStackOrHeapBuffer (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(_ConditionalAllocationBuffer * _Nonnull)) {
525
+ static inline bool _withStackOrHeapBuffer (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(_ConditionalAllocationBuffer * _Nonnull)) {
526
526
_ConditionalAllocationBuffer buffer ;
527
527
#if TARGET_OS_MAC
528
528
buffer .capacity = malloc_good_size (amount );
@@ -540,7 +540,7 @@ static inline _Bool _withStackOrHeapBuffer(size_t amount, void (__attribute__((n
540
540
}
541
541
#endif
542
542
543
- static inline _Bool _withStackOrHeapBufferWithResultInArguments (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(void * _Nonnull memory , size_t capacity , _Bool onStack )) {
543
+ static inline bool _withStackOrHeapBufferWithResultInArguments (size_t amount , void (__attribute__((noescape )) ^ _Nonnull applier )(void * _Nonnull memory , size_t capacity , bool onStack )) {
544
544
return _withStackOrHeapBuffer (amount , ^(_ConditionalAllocationBuffer * buffer ) {
545
545
applier (buffer -> memory , buffer -> capacity , buffer -> onStack );
546
546
});
@@ -647,13 +647,13 @@ _stat_with_btime(const char *filename, struct stat *buffer, struct timespec *bti
647
647
648
648
static unsigned int const _CF_renameat2_RENAME_EXCHANGE = 1 << 1 ;
649
649
#ifdef SYS_renameat2
650
- static _Bool const _CFHasRenameat2 = 1 ;
650
+ static bool const _CFHasRenameat2 = 1 ;
651
651
static inline int _CF_renameat2 (int olddirfd , const char * _Nonnull oldpath ,
652
652
int newdirfd , const char * _Nonnull newpath , unsigned int flags ) {
653
653
return syscall (SYS_renameat2 , olddirfd , oldpath , newdirfd , newpath , flags );
654
654
}
655
655
#else
656
- static _Bool const _CFHasRenameat2 = 0 ;
656
+ static bool const _CFHasRenameat2 = 0 ;
657
657
static inline int _CF_renameat2 (int olddirfd , const char * _Nonnull oldpath ,
658
658
int newdirfd , const char * _Nonnull newpath , unsigned int flags ) {
659
659
return ENOSYS ;
0 commit comments