diff options
Diffstat (limited to 'byterun/intext.h')
-rw-r--r-- | byterun/intext.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/byterun/intext.h b/byterun/intext.h index 6326b97f3..b757d1718 100644 --- a/byterun/intext.h +++ b/byterun/intext.h @@ -83,12 +83,12 @@ void caml_output_val (struct channel * chan, value v, value flags); CAMLextern void caml_output_value_to_malloc(value v, value flags, /*out*/ char ** buf, - /*out*/ long * len); + /*out*/ intnat * len); /* Output [v] with flags [flags] to a memory buffer allocated with malloc. On return, [*buf] points to the buffer and [*len] contains the number of bytes in buffer. */ -CAMLextern long caml_output_value_to_block(value v, value flags, - char * data, long len); +CAMLextern intnat caml_output_value_to_block(value v, value flags, + char * data, intnat len); /* Output [v] with flags [flags] to a user-provided memory buffer. [data] points to the start of this buffer, and [len] is its size in bytes. Return the number of bytes actually written in buffer. @@ -99,15 +99,15 @@ value caml_input_val (struct channel * chan); /* Read a structured value from the channel [chan]. */ /* </private> */ -CAMLextern value caml_input_val_from_string (value str, long ofs); +CAMLextern value caml_input_val_from_string (value str, intnat ofs); /* Read a structured value from the Caml string [str], starting at offset [ofs]. */ -CAMLextern value caml_input_value_from_malloc(char * data, long ofs); +CAMLextern value caml_input_value_from_malloc(char * data, intnat ofs); /* Read a structured value from a malloced buffer. [data] points to the beginning of the buffer, and [ofs] is the offset of the beginning of the externed data in this buffer. The buffer is deallocated with [free] on return, or if an exception is raised. */ -CAMLextern value caml_input_value_from_block(char * data, long len); +CAMLextern value caml_input_value_from_block(char * data, intnat len); /* Read a structured value from a user-provided buffer. [data] points to the beginning of the externed data in this buffer, and [len] is the length in bytes of valid data in this buffer. @@ -121,11 +121,11 @@ CAMLextern void caml_serialize_int_4(int32 i); CAMLextern void caml_serialize_int_8(int64 i); CAMLextern void caml_serialize_float_4(float f); CAMLextern void caml_serialize_float_8(double f); -CAMLextern void caml_serialize_block_1(void * data, long len); -CAMLextern void caml_serialize_block_2(void * data, long len); -CAMLextern void caml_serialize_block_4(void * data, long len); -CAMLextern void caml_serialize_block_8(void * data, long len); -CAMLextern void caml_serialize_block_float_8(void * data, long len); +CAMLextern void caml_serialize_block_1(void * data, intnat len); +CAMLextern void caml_serialize_block_2(void * data, intnat len); +CAMLextern void caml_serialize_block_4(void * data, intnat len); +CAMLextern void caml_serialize_block_8(void * data, intnat len); +CAMLextern void caml_serialize_block_float_8(void * data, intnat len); CAMLextern int caml_deserialize_uint_1(void); CAMLextern int caml_deserialize_sint_1(void); @@ -137,11 +137,11 @@ CAMLextern uint64 caml_deserialize_uint_8(void); CAMLextern int64 caml_deserialize_sint_8(void); CAMLextern float caml_deserialize_float_4(void); CAMLextern double caml_deserialize_float_8(void); -CAMLextern void caml_deserialize_block_1(void * data, long len); -CAMLextern void caml_deserialize_block_2(void * data, long len); -CAMLextern void caml_deserialize_block_4(void * data, long len); -CAMLextern void caml_deserialize_block_8(void * data, long len); -CAMLextern void caml_deserialize_block_float_8(void * data, long len); +CAMLextern void caml_deserialize_block_1(void * data, intnat len); +CAMLextern void caml_deserialize_block_2(void * data, intnat len); +CAMLextern void caml_deserialize_block_4(void * data, intnat len); +CAMLextern void caml_deserialize_block_8(void * data, intnat len); +CAMLextern void caml_deserialize_block_float_8(void * data, intnat len); CAMLextern void caml_deserialize_error(char * msg); /* <private> */ |