@@ -482,10 +482,10 @@ CF_CROSS_PLATFORM_EXPORT void __CFURLComponentsDeallocate(CFTypeRef cf);
482482typedef struct {
483483 void * _Nonnull memory ;
484484 size_t capacity ;
485- _Bool onStack ;
485+ bool onStack ;
486486} _ConditionalAllocationBuffer ;
487487
488- static inline _Bool _resizeConditionalAllocationBuffer (_ConditionalAllocationBuffer * _Nonnull buffer , size_t amt ) {
488+ static inline bool _resizeConditionalAllocationBuffer (_ConditionalAllocationBuffer * _Nonnull buffer , size_t amt ) {
489489#if TARGET_OS_MAC
490490 size_t amount = malloc_good_size (amt );
491491#else
@@ -509,7 +509,7 @@ static inline _Bool _resizeConditionalAllocationBuffer(_ConditionalAllocationBuf
509509}
510510
511511#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)) {
513513 _ConditionalAllocationBuffer buffer ;
514514 buffer .capacity = amount ;
515515 buffer .onStack = false;
@@ -520,7 +520,7 @@ static inline _Bool _withStackOrHeapBuffer(size_t amount, void (__attribute__((n
520520 return true;
521521}
522522#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)) {
524524 _ConditionalAllocationBuffer buffer ;
525525#if TARGET_OS_MAC
526526 buffer .capacity = malloc_good_size (amount );
@@ -538,7 +538,7 @@ static inline _Bool _withStackOrHeapBuffer(size_t amount, void (__attribute__((n
538538}
539539#endif
540540
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 )) {
542542 return _withStackOrHeapBuffer (amount , ^(_ConditionalAllocationBuffer * buffer ) {
543543 applier (buffer -> memory , buffer -> capacity , buffer -> onStack );
544544 });
@@ -645,13 +645,13 @@ _stat_with_btime(const char *filename, struct stat *buffer, struct timespec *bti
645645
646646static unsigned int const _CF_renameat2_RENAME_EXCHANGE = 1 << 1 ;
647647#ifdef SYS_renameat2
648- static _Bool const _CFHasRenameat2 = 1 ;
648+ static bool const _CFHasRenameat2 = 1 ;
649649static inline int _CF_renameat2 (int olddirfd , const char * _Nonnull oldpath ,
650650 int newdirfd , const char * _Nonnull newpath , unsigned int flags ) {
651651 return syscall (SYS_renameat2 , olddirfd , oldpath , newdirfd , newpath , flags );
652652}
653653#else
654- static _Bool const _CFHasRenameat2 = 0 ;
654+ static bool const _CFHasRenameat2 = 0 ;
655655static inline int _CF_renameat2 (int olddirfd , const char * _Nonnull oldpath ,
656656 int newdirfd , const char * _Nonnull newpath , unsigned int flags ) {
657657 return ENOSYS ;
0 commit comments