mark ffi_prep_closure as deprecated
authorTom Tromey <tom@tromey.com>
Sat, 7 Nov 2015 18:45:04 +0000 (11:45 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 7 Nov 2015 19:04:24 +0000 (12:04 -0700)
include/ffi.h.in

index c43d52f..b07ca85 100644 (file)
@@ -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*,