Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
cac33018
Commit
cac33018
authored
Jun 09, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Make all the function pointers and thunks static.
parent
7500e0fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
28 deletions
+11
-28
make_opengl
dlls/opengl32/make_opengl
+9
-26
opengl_ext.c
dlls/opengl32/opengl_ext.c
+0
-0
opengl_ext.h
dlls/opengl32/opengl_ext.h
+2
-2
No files found.
dlls/opengl32/make_opengl
View file @
cac33018
...
...
@@ -683,7 +683,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(opengl);
# First, generate the function pointers
foreach
(
sort
keys
%
ext_functions
)
{
my
$func_ref
=
$ext_functions
{
$_
};
print
EXT
ConvertType
(
$func_ref
->
[
1
]),
" (*$ext_prefix$func_ref->[0])( "
;
print
EXT
"static "
,
ConvertType
(
$func_ref
->
[
1
]),
" (*$ext_prefix$func_ref->[0])( "
;
for
(
my
$i
=
0
;
$i
<=
$#
{
@
{
$func_ref
->
[
2
]}};
$i
++
)
{
my
$type
=
ConvertType
(
$func_ref
->
[
2
]
->
[
$i
]
->
[
0
]);
print
EXT
"$type"
;
...
...
@@ -694,32 +694,22 @@ foreach (sort keys %ext_functions) {
}
}
print
EXT
'void '
if
(
$#
{
@
{
$func_ref
->
[
2
]}}
<
0
);
print
EXT
")
= (void *) 0xdeadbeef
;\n"
;
print
EXT
");\n"
;
}
# The
n, the function prototypes
print
EXT
"\n
\n/* The function prototypes */\n
"
;
# The
thunks themselves....
print
EXT
"\n
/* The thunks themselves....*/
"
;
foreach
(
sort
keys
%
ext_functions
)
{
my
$func_ref
=
$ext_functions
{
$_
};
print
EXT
ConvertType
(
$func_ref
->
[
1
]),
" WINAPI wine_$func_ref->[0]( "
;
for
(
my
$i
=
0
;
$i
<=
$#
{
@
{
$func_ref
->
[
2
]}};
$i
++
)
{
my
$type
=
ConvertType
(
$func_ref
->
[
2
]
->
[
$i
]
->
[
0
]);
print
EXT
"$type"
;
if
(
$i
!=
$#
{
@
{
$func_ref
->
[
2
]}})
{
print
EXT
", "
;
}
else
{
print
EXT
" "
;
}
}
print
EXT
'void '
if
(
$#
{
@
{
$func_ref
->
[
2
]}}
<
0
);
print
EXT
");\n"
;
my
$string
=
GenerateThunk
(
$ext_functions
{
$_
},
0
,
$ext_prefix
,
$gen_thread_safe
);
print
EXT
"\nstatic $string"
;
}
# Then the table giving the string <-> function correspondance */
print
EXT
"\n\n/* The table giving the correspondance between names and functions */\n"
;
my
@tmp
=
keys
%
ext_functions
;
print
EXT
"int extension_registry_size = "
,
(
$#tmp
+
1
),
";\n"
;
print
EXT
"OpenGL_extension extension_registry["
,
(
$#tmp
+
1
),
"] = {\n"
;
print
EXT
"
const
int extension_registry_size = "
,
(
$#tmp
+
1
),
";\n"
;
print
EXT
"
const
OpenGL_extension extension_registry["
,
(
$#tmp
+
1
),
"] = {\n"
;
my
$i
=
0
;
foreach
(
sort
keys
%
ext_functions
)
{
my
$func_ref
=
$ext_functions
{
$_
};
...
...
@@ -732,11 +722,4 @@ foreach (sort keys %ext_functions) {
}
print
EXT
"};\n"
;
# And, finally, the thunks themselves....
print
EXT
"\n/* The thunks themselves....*/"
;
foreach
(
sort
keys
%
ext_functions
)
{
my
$string
=
GenerateThunk
(
$ext_functions
{
$_
},
0
,
$ext_prefix
,
$gen_thread_safe
);
print
EXT
"\n$string"
;
}
close
(
EXT
);
dlls/opengl32/opengl_ext.c
View file @
cac33018
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dlls/opengl32/opengl_ext.h
View file @
cac33018
...
...
@@ -70,8 +70,8 @@ typedef struct {
void
**
func_ptr
;
/* where to store the value of glXGetProcAddressARB */
}
OpenGL_extension
;
extern
OpenGL_extension
extension_registry
[];
extern
int
extension_registry_size
;
extern
const
OpenGL_extension
extension_registry
[];
extern
const
int
extension_registry_size
;
const
GLubyte
*
internal_glGetString
(
GLenum
name
);
void
internal_glGetIntegerv
(
GLenum
pname
,
GLint
*
params
);
...
...
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