/*----------------------------------------------------------------------- The Lazy Virtual Machine. Daan Leijen. Copyright 2001, Daan Leijen. All rights reserved. This file is distributed under the terms of the GNU Library General Public License. -----------------------------------------------------------------------*/ /* $Id: bytes.h 177 2002-11-15 16:21:56Z cvs-3 $ */ #ifndef _bytes_ #define _bytes_ #include "mlvalues.h" #include "custom.h" #define Bytes_val(v) (((char**)(Data_custom_val(v)))[0]) #define Void_bytes_val(v) (((void**)(Data_custom_val(v)))[0]) value alloc_bytes( asize_t size ); value bytes_of_string( value s ); struct custom_operations bytes_ops; #endif /* _bytes_ */