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
0fbe4458
Commit
0fbe4458
authored
Jul 22, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Display a warning in pedantic mode when using memory options in 32-bit resources.
parent
7cb044d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
parser.y
tools/wrc/parser.y
+16
-9
No files found.
tools/wrc/parser.y
View file @
0fbe4458
...
...
@@ -1708,15 +1708,22 @@ loadmemopts
}
;
lamo
:
tPRELOAD
{
$$
=
new_int(WRC_MO_PRELOAD);
}
|
tMOVEABLE
{
$$
=
new_int(WRC_MO_MOVEABLE);
}
|
tDISCARDABLE
{
$$
=
new_int(WRC_MO_DISCARDABLE);
}
|
tPURE
{
$$
=
new_int(WRC_MO_PURE);
}
;
lama
:
tLOADONCALL
{
$$
=
new_int(~WRC_MO_PRELOAD);
}
|
tFIXED
{
$$
=
new_int(~WRC_MO_MOVEABLE);
}
|
tIMPURE
{
$$
=
new_int(~WRC_MO_PURE);
}
lamo
:
tPRELOAD
{
$$
=
new_int(WRC_MO_PRELOAD);
if
(win32
&&
pedantic)
parser_warning("PRELOAD
is
ignored
in
32-bit
mode\n");
}
|
tMOVEABLE
{
$$
=
new_int(WRC_MO_MOVEABLE);
if
(win32
&&
pedantic)
parser_warning("MOVEABLE
is
ignored
in
32-bit
mode\n");
}
|
tDISCARDABLE
{
$$
=
new_int(WRC_MO_DISCARDABLE);
if
(win32
&&
pedantic)
parser_warning("DISCARDABLE
is
ignored
in
32-bit
mode\n");
}
|
tPURE
{
$$
=
new_int(WRC_MO_PURE);
if
(win32
&&
pedantic)
parser_warning("PURE
is
ignored
in
32-bit
mode\n");
}
;
lama
:
tLOADONCALL
{
$$
=
new_int(~WRC_MO_PRELOAD);
if
(win32
&&
pedantic)
parser_warning("LOADONCALL
is
ignored
in
32-bit
mode\n");
}
|
tFIXED
{
$$
=
new_int(~WRC_MO_MOVEABLE);
if
(win32
&&
pedantic)
parser_warning("FIXED
is
ignored
in
32-bit
mode\n");
}
|
tIMPURE
{
$$
=
new_int(~WRC_MO_PURE);
if
(win32
&&
pedantic)
parser_warning("IMPURE
is
ignored
in
32-bit
mode\n");
}
;
/* ------------------------------ Win32 options ------------------------------ */
...
...
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