PATCH: tools/make_requests (was: PATCH: server/trace.c cleanup)
Gerald Pfeifer
gerald at pfeifer.com
Tue Sep 30 13:01:35 CDT 2003
On Tue, 30 Sep 2003, Alexandre Julliard wrote:
> That code is generated, there's no point in fixing it. You need to
> change tools/make_requests.
Here we go. ;-)
(I never had a look at this script before, and it's not documented too
much, but it seems I found the right place to patch nevertheless, and
the script definitely seems nice.)
Gerald
ChangeLog:
Properly handle time_t in DO_DUMP_FUNC.
Index: make_requests
===================================================================
RCS file: /home/wine/wine/tools/make_requests,v
retrieving revision 1.36
diff -u -3 -p -r1.36 make_requests
--- make_requests 2 Apr 2003 22:48:59 -0000 1.36
+++ make_requests 30 Sep 2003 17:57:53 -0000
@@ -269,6 +269,9 @@ sub DO_DUMP_FUNC
push @trace_lines, " fprintf( stderr, \" $var=$formats{$type}";
push @trace_lines, "," if ($#_ > 0);
push @trace_lines, "\", ";
+ # In the case of time_t we need to cast the parameter to
+ # long to match the associated "%ld" printf modifier.
+ push @trace_lines, "(long)" if( $type eq "time_t" );
push @trace_lines, "req->$var );\n";
}
}
More information about the wine-devel
mailing list