Skip to content
Snippets Groups Projects
Commit 782e96b9 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

opengl32: Declare input pointers as const in function prototypes.

parent 6a8ded43
Branches
Tags
No related merge requests found
......@@ -617,7 +617,7 @@ while (my $line = <REGISTRY>) {
} elsif ($line =~ /^\t*category/) {
($category) = ($line =~ /^\t*category\s*([\w-]*)/);
} elsif ($line =~ /^\t*param/) {
my ($name, $base_type, $ext) = ($line =~ /\t*param\s*(\w*)\s*(\w*) (.*)/);
my ($name, $base_type, $dir, $ext) = ($line =~ /\t*param\s*(\w*)\s*(\w*) (in|out)\s+(.*)/);
my $ptr = 0;
unless (defined($name)) {
chomp $line;
......@@ -644,7 +644,8 @@ while (my $line = <REGISTRY>) {
die "Unsupported return type in function $funcname for type $base_type (line $line)\n";
}
if ($ptr) {
$type = "$type*";
$type .= "*";
$type = "const $type" if $dir eq "in";
}
$arg_types{$name} = $type;
......
This diff is collapsed.
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment