Commit ff33ddd1abe72b6d02d2769c0379b06eb7dbb931

Tom Tromey 2015-11-07T11:45:04

mark ffi_prep_closure as deprecated

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/ffi.h.in b/include/ffi.h.in
index c43d52f..b07ca85 100644
--- a/include/ffi.h.in
+++ b/include/ffi.h.in
@@ -337,7 +337,8 @@ ffi_status
 ffi_prep_closure (ffi_closure*,
 		  ffi_cif *,
 		  void (*fun)(ffi_cif*,void*,void**,void*),
-		  void *user_data);
+		  void *user_data)
+  __attribute__((deprecated ("use ffi_prep_closure_loc instead")));
 
 ffi_status
 ffi_prep_closure_loc (ffi_closure*,