]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd: Reorder functions
authorBart Van Assche <bvanassche@acm.org>
Mon, 18 Nov 2024 21:08:29 +0000 (13:08 -0800)
committerBart Van Assche <bvanassche@acm.org>
Mon, 18 Nov 2024 21:24:02 +0000 (13:24 -0800)
Reorder two functions such that a forward declaration can be removed.

drd/drd_clientreq.c

index 8a462253df97a7b47a1f0ffe98806a3c07186e33..2f30cb794da0e3e57c662027e8b0d99dae324984 100644 (file)
 Bool DRD_(g_free_is_write);
 
 
-/* Local function declarations. */
-
-static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret);
-
-
 /* Function definitions. */
 
-/**
- * Tell the Valgrind core the address of the DRD function that processes
- * client requests. Must be called before any client code is run.
- */
-void DRD_(clientreq_init)(void)
-{
-   VG_(needs_client_requests)(handle_client_request);
-}
-
 /**
  * DRD's handler for Valgrind client requests. The code below handles both
  * DRD's public and tool-internal client requests.
@@ -636,3 +622,12 @@ static Bool handle_client_request(ThreadId vg_tid, UWord* arg, UWord* ret)
    *ret = result;
    return True;
 }
+
+/**
+ * Tell the Valgrind core the address of the DRD function that processes
+ * client requests. Must be called before any client code is run.
+ */
+void DRD_(clientreq_init)(void)
+{
+   VG_(needs_client_requests)(handle_client_request);
+}