From: Bart Van Assche Date: Mon, 18 Nov 2024 21:08:29 +0000 (-0800) Subject: drd: Reorder functions X-Git-Tag: VALGRIND_3_25_0~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a00e024f62818abdedf17fdf87508b237798c2e3;p=thirdparty%2Fvalgrind.git drd: Reorder functions Reorder two functions such that a forward declaration can be removed. --- diff --git a/drd/drd_clientreq.c b/drd/drd_clientreq.c index 8a462253d..2f30cb794 100644 --- a/drd/drd_clientreq.c +++ b/drd/drd_clientreq.c @@ -46,22 +46,8 @@ 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); +}