summaryrefslogtreecommitdiff
path: root/byterun/custom.h
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/custom.h')
-rw-r--r--byterun/custom.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/byterun/custom.h b/byterun/custom.h
index 09755485f8..3e8abdd0ec 100644
--- a/byterun/custom.h
+++ b/byterun/custom.h
@@ -30,23 +30,23 @@ struct custom_operations {
};
#define custom_finalize_default NULL
-extern int custom_compare_default(value v1, value v2);
+CAMLextern int custom_compare_default(value v1, value v2);
#define custom_hash_default NULL
-extern void custom_serialize_default(value v, unsigned long * wsize_32,
- unsigned long * wsize_64);
+CAMLextern void custom_serialize_default(value v, unsigned long * wsize_32,
+ unsigned long * wsize_64);
#define custom_deserialize_default NULL
#define Custom_ops_val(v) (*((struct custom_operations **) (v)))
-value alloc_custom(struct custom_operations * ops,
- unsigned long size, /*size in bytes*/
- mlsize_t mem, /*resources consumed*/
- mlsize_t max /*max resources*/);
+CAMLextern value alloc_custom(struct custom_operations * ops,
+ unsigned long size, /*size in bytes*/
+ mlsize_t mem, /*resources consumed*/
+ mlsize_t max /*max resources*/);
-void register_custom_operations(struct custom_operations * ops);
-struct custom_operations * find_custom_operations(char * ident);
-struct custom_operations * final_custom_operations(void (*fn)(value));
+CAMLextern void register_custom_operations(struct custom_operations * ops);
+extern struct custom_operations * find_custom_operations(char * ident);
+extern struct custom_operations * final_custom_operations(void (*fn)(value));
-void init_custom_operations(void);
+extern void init_custom_operations(void);
#endif