BEGIN-STRUCT: foo
...
END-STRUCT

"foo" <c-object> -- allocates in the Factor heap (so C functions  
should not hold on to this after returning)

"foo" <malloc-object> -- allocates in the C heap (so C functions can  
retain a pointer indefinitely, you must free at some point though!)

I'll clarify the documentation regarding this issue.

Slava

On 25-Jan-07, at 10:34 AM, Alex Drummond wrote:

> I was wondering how to allocate a C structure in factor after defining
> it using BEGIN-STRUCT/END-STRUCT.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to