Displaying 2 results from an estimated 2 matches for "libnbd_have_nbd_close".
2019 Jun 03
1
[libnbd PATCH] generator: Add #define witnesses for all API
...;#define LIBNBD_%-30s %d\n" n i) constants;
pr "\n";
pr "extern struct nbd_handle *nbd_create (void);\n";
+ pr "#define LIBNBD_HAVE_NBD_CREATE 1\n";
+ pr "\n";
pr "extern void nbd_close (struct nbd_handle *h);\n";
+ pr "#define LIBNBD_HAVE_NBD_CLOSE 1\n";
+ pr "\n";
pr "extern const char *nbd_get_error (void);\n";
+ pr "#define LIBNBD_HAVE_NBD_GET_ERROR 1\n";
+ pr "\n";
pr "extern int nbd_get_errno (void);\n";
+ pr "#define LIBNBD_HAVE_NBD_GET_ERRNO 1\n";
+ pr "\n...
2023 Feb 15
2
[libnbd PATCH v3 02/29] generator/C.ml: use space consistently in func. and func.-like macro calls
..." __attribute__((__malloc__, __malloc__(fn, 1)))\n";
+ pr " __attribute__ ((__malloc__, __malloc__ (fn, 1)))\n";
pr "#else\n";
pr "#define LIBNBD_ATTRIBUTE_ALLOC_DEALLOC(fn)\n";
pr "#endif\n";
@@ -454,7 +454,7 @@ let
pr "#define LIBNBD_HAVE_NBD_CLOSE 1\n";
pr "\n";
pr "extern struct nbd_handle *nbd_create (void)\n";
- pr " LIBNBD_ATTRIBUTE_ALLOC_DEALLOC(nbd_close);\n";
+ pr " LIBNBD_ATTRIBUTE_ALLOC_DEALLOC (nbd_close);\n";
pr "#define LIBNBD_HAVE_NBD_CREATE 1\n";
pr &quo...