Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2a35d9a4
Commit
2a35d9a4
authored
Feb 03, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opencl: Rename cl_{enums,types} to header_{enums,types}.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d6ea38f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
make_opencl
dlls/opencl/make_opencl
+9
-9
No files found.
dlls/opencl/make_opencl
View file @
2a35d9a4
...
...
@@ -297,8 +297,8 @@ sub generate_spec_entry($$)
}
my
%
core_functions
;
my
%
cl
_enums
;
my
(
%
cl_types
,
@cl
_types
);
# also use an array to preserve declaration order
my
%
header
_enums
;
my
(
%
header_types
,
@header
_types
);
# also use an array to preserve declaration order
# some functions need a hand-written wrapper
sub
needs_pe_wrapper
($)
...
...
@@ -440,13 +440,13 @@ sub parse_file($)
}
foreach
my
$enum
(
$feature
->
findnodes
(
"./require/enum"
))
{
$
cl
_enums
{
$enum
->
{
name
}}
=
$enums
{
$enum
->
{
name
}};
$
header
_enums
{
$enum
->
{
name
}}
=
$enums
{
$enum
->
{
name
}};
}
foreach
my
$type
(
$feature
->
findnodes
(
"./require/type"
))
{
next
unless
$types
{
$type
->
{
name
}};
push
@
cl_types
,
$type
->
{
name
}
unless
$cl
_types
{
$type
->
{
name
}};
$
cl
_types
{
$type
->
{
name
}}
=
$types
{
$type
->
{
name
}};
push
@
header_types
,
$type
->
{
name
}
unless
$header
_types
{
$type
->
{
name
}};
$
header
_types
{
$type
->
{
name
}}
=
$types
{
$type
->
{
name
}};
}
}
...
...
@@ -588,9 +588,9 @@ typedef uint64_t DECLSPEC_ALIGN(8) cl_ulong;
END
;
foreach
(
@
cl
_types
)
foreach
(
@
header
_types
)
{
my
$type
=
$
cl
_types
{
$_
};
my
$type
=
$
header
_types
{
$_
};
if
(
$type
->
{
category
}
eq
"define"
)
{
print
TYPES
$type
->
textContent
()
.
"\n"
;
...
...
@@ -603,9 +603,9 @@ foreach (@cl_types)
print
TYPES
"\n"
;
foreach
(
sort
keys
%
cl
_enums
)
foreach
(
sort
keys
%
header
_enums
)
{
printf
TYPES
"#define %s %s\n"
,
$_
,
$
cl
_enums
{
$_
};
printf
TYPES
"#define %s %s\n"
,
$_
,
$
header
_enums
{
$_
};
}
close
(
TYPES
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment