[cfe-dev] BlockImplementation.txt

Fariborz Jahanian fjahanian at apple.com
Mon Dec 7 19:52:42 PST 2009


Complete description should be:

struct __block_descriptor {
  unsigned long int reserved;     // NULL
  unsigned long int Block_size;  // sizeof(struct Block_literal_1)

  // optional helper functions
  void *CopyFuncPtr; // When BLOCK_HAS_COPY_DISPOSE is set  
(withCopyDispose true)
  void *DestroyFuncPtr; // When BLOCK_HAS_COPY_DISPOSE is set  
(withCopyDispose true)
}

- Fariborz

On Dec 7, 2009, at 6:55 PM, Zhongxing Xu wrote:

> In BlockImplementation.txt, line 94,
>
> static struct __block_descriptor_1 {
>    unsigned long int reserved;
>    unsigned long int Block_size;
> } __block_descriptor_1 = { 0, sizeof(struct __block_literal_1),
> __block_invoke_1 };
>
> Why there is three initializers while the struct only has two members?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list