Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/include/block_abi.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define GET_BLOCK_FUNCTION(x) \ | #define GET_BLOCK_FUNCTION(x) \ | ||||
(((struct {\ | (((struct {\ | ||||
void *isa;\ | void *isa;\ | ||||
int flags;\ | int flags;\ | ||||
int reserved;\ | int reserved;\ | ||||
void (*invoke)(void *, ...);\ | void (*invoke)(void *, ...);\ | ||||
}*)(void*)x)->invoke) | }*)(void*)x)->invoke) | ||||
/* | |||||
* _Block_copy() and _Block_release() are provided by libBlocksRuntime. | |||||
*/ | |||||
__attribute__((__weak__)) void *_Block_copy(void *); | |||||
__attribute__((__weak__)) void _Block_release(void *); | |||||
pfg: buildworld fails with:
...
===> lib/libc_nonshared (obj,depend,all,install)
In file included… |
buildworld fails with:
...
> lib/libc_nonshared (obj,depend,all,install)
In file included from /scratch/tmp/pfg/head/lib/libc/stdlib/qsort_r.c:7:
/scratch/tmp/pfg/head/lib/libc/include/block_abi.h:68: error: expected '=', ',', ';', 'asm' or 'attribute' before 'void'
/scratch/tmp/pfg/head/lib/libc/include/block_abi.h:69: error: expected '=', ',', ';', 'asm' or 'attribute' before 'void'
...