Commit 691884b9 authored by Alexandre Julliard's avatar Alexandre Julliard

Restore chunk of code lost in previous changes.

parent 8099c2b9
...@@ -312,3 +312,19 @@ foreach my $req (@requests) ...@@ -312,3 +312,19 @@ foreach my $req (@requests)
push @trace_lines, "};\n"; push @trace_lines, "};\n";
REPLACE_IN_FILE( "server/trace.c", @trace_lines ); REPLACE_IN_FILE( "server/trace.c", @trace_lines );
### Output the request handlers list
my @request_lines = ();
foreach my $req (@requests) { push @request_lines, "DECL_HANDLER($req);\n"; }
push @request_lines, "\n#ifdef WANT_REQUEST_HANDLERS\n\n";
push @request_lines, "typedef void (*req_handler)( const void *req, void *reply );\n";
push @request_lines, "static const req_handler req_handlers[REQ_NB_REQUESTS] =\n{\n";
foreach my $req (@requests)
{
push @request_lines, " (req_handler)req_$req,\n";
}
push @request_lines, "};\n#endif /* WANT_REQUEST_HANDLERS */\n";
REPLACE_IN_FILE( "server/request.h", @request_lines );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment