[gobject-introspection/ebassi/rebased-girffi-exec-fix: 6/8] Fix styling issues from suggestions




commit 3da41e13054dfe162dfa3a3ff750009f4aba745f
Author: Emmanuele Bassi <ebassi gmail com>
Date:   Mon Nov 1 20:54:55 2021 +0000

    Fix styling issues from suggestions

 girepository/girffi.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index 4cf139d0..5bf97437 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -362,7 +362,7 @@ typedef struct {
  * Prepares a callback for ffi invocation.
  *
  * Returns: the ffi_closure or NULL on error. The return value
- *     should be freed by calling g_callable_info_destroy_closure().
+ *   should be freed by calling g_callable_info_destroy_closure().
  */
 ffi_closure *
 g_callable_info_create_closure (GICallableInfo       *callable_info,
@@ -453,8 +453,8 @@ g_callable_info_destroy_closure (GICallableInfo *callable_info,
  *
  * Prepares a callback for ffi invocation. Deprecated
  *
- * Returns: the native address of the closre or NULL on error. The return value
- *     should be freed by calling g_callable_info_free_closure().
+ * Returns: the native address of the closure or `NULL` on error. The return value
+ *   should be freed by calling g_callable_info_free_closure().
  */
 ffi_closure *
 g_callable_info_prepare_closure (GICallableInfo       *callable_info,
@@ -464,7 +464,7 @@ g_callable_info_prepare_closure (GICallableInfo       *callable_info,
 {
   ffi_closure * closure;
 
-  closure = g_callable_info_create_closure(callable_info, cif, callback, user_data);
+  closure = g_callable_info_create_closure (callable_info, cif, callback, user_data);
   if (!closure)
     {
       return NULL;
@@ -491,7 +491,9 @@ g_callable_info_prepare_closure (GICallableInfo       *callable_info,
  * which may cause a segfault because the native address is returned instead
  * of the closure address.
  */
-void g_callable_info_free_closure (GICallableInfo *callable_info, ffi_closure *closure)
+void
+g_callable_info_free_closure (GICallableInfo *callable_info,
+                              ffi_closure    *closure)
 {
   g_warning ("g_callable_info_free_closure is deprecated and leaks memory\n");
 #ifdef LEGACY_GIRFFI_FREE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]