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