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
3781d0d6
Commit
3781d0d6
authored
Jan 04, 2000
by
Bertho Stultiens
Committed by
Alexandre Julliard
Jan 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated labels of resource names must be unique throughout the
generated code.
parent
98c5cd6f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
CHANGES
tools/wrc/CHANGES
+15
-0
wrc.h
tools/wrc/wrc.h
+2
-2
writeres.c
tools/wrc/writeres.c
+6
-11
No files found.
tools/wrc/CHANGES
View file @
3781d0d6
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Version 1.0.18 (28-Dec-1999)
Bertho Stultiens <bertho@akhphd.au.dk>
- Bugfix: The named resources were not named correctly for indirectly
addressable resources, which resulted in an undefined variable. The
previous fix was incomplete (I was probably sleeping while I made it).
---------------------------------------------------------------------------
Version 1.0.17 (20-Dec-1999)
Bertho Stultiens <bertho@akhphd.au.dk>
- Bugfix: Named resources of different types generated the same assembly-
label twice, resulting in a compile failure.
---------------------------------------------------------------------------
Version 1.0.16 (6-Nov-1999)
Version 1.0.16 (6-Nov-1999)
Juergen.Schmied@debitel.net
Juergen.Schmied@debitel.net
...
...
tools/wrc/wrc.h
View file @
3781d0d6
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
#include "wrctypes.h"
#include "wrctypes.h"
#endif
#endif
#define WRC_VERSION "1.0.1
6
"
#define WRC_VERSION "1.0.1
8
"
#define WRC_RELEASEDATE "(
6-Nov
-1999)"
#define WRC_RELEASEDATE "(
28-Dec
-1999)"
#define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
#define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
/* Only used in heavy debugging sessions */
/* Only used in heavy debugging sessions */
...
...
tools/wrc/writeres.c
View file @
3781d0d6
...
@@ -633,10 +633,9 @@ void write_pe_segment(FILE *fp, resource_t *top)
...
@@ -633,10 +633,9 @@ void write_pe_segment(FILE *fp, resource_t *top)
fprintf
(
fp
,
"
\t
.long
\t
%d
\n
"
,
rsc
->
name
->
name
.
i_name
);
fprintf
(
fp
,
"
\t
.long
\t
%d
\n
"
,
rsc
->
name
->
name
.
i_name
);
else
else
{
{
char
*
label
=
prep_nid_for_label
(
rsc
->
name
);
fprintf
(
fp
,
"
\t
.long
\t
(%s%s_name - %s%s) | 0x80000000
\n
"
,
fprintf
(
fp
,
"
\t
.long
\t
(%s_%s_name - %s%s) | 0x80000000
\n
"
,
prefix
,
prefix
,
label
,
rsc
->
c_name
,
prefix
,
prefix
,
_PEResTab
);
_PEResTab
);
}
}
...
@@ -872,10 +871,9 @@ void write_rsc_names(FILE *fp, resource_t *top)
...
@@ -872,10 +871,9 @@ void write_rsc_names(FILE *fp, resource_t *top)
if
(
rsc
->
name
->
type
==
name_str
)
if
(
rsc
->
name
->
type
==
name_str
)
{
{
char
*
name
=
prep_nid_for_label
(
rsc
->
name
);
fprintf
(
fp
,
"%s%s_name:
\n
"
,
fprintf
(
fp
,
"%s_%s_name:
\n
"
,
prefix
,
prefix
,
name
);
rsc
->
c_
name
);
write_name_str
(
fp
,
rsc
->
name
);
write_name_str
(
fp
,
rsc
->
name
);
}
}
}
}
...
@@ -1024,7 +1022,6 @@ void write_s_file(char *outname, resource_t *top)
...
@@ -1024,7 +1022,6 @@ void write_s_file(char *outname, resource_t *top)
{
{
int
type
;
int
type
;
char
*
type_name
=
NULL
;
char
*
type_name
=
NULL
;
char
*
label
;
if
(
!
rsc
->
binres
)
if
(
!
rsc
->
binres
)
continue
;
continue
;
...
@@ -1063,12 +1060,10 @@ void write_s_file(char *outname, resource_t *top)
...
@@ -1063,12 +1060,10 @@ void write_s_file(char *outname, resource_t *top)
fprintf
(
fo
,
"%s%s:
\n
"
,
prefix
,
rsc
->
c_name
);
fprintf
(
fo
,
"%s%s:
\n
"
,
prefix
,
rsc
->
c_name
);
if
(
global
)
if
(
global
)
fprintf
(
fo
,
"
\t
.globl
\t
%s%s
\n
"
,
prefix
,
rsc
->
c_name
);
fprintf
(
fo
,
"
\t
.globl
\t
%s%s
\n
"
,
prefix
,
rsc
->
c_name
);
label
=
prep_nid_for_label
(
rsc
->
name
);
fprintf
(
fo
,
"
\t
.long
\t
%d, %s%s%s, %d, %s%s%s%s, %s%s_data, %d
\n
"
,
fprintf
(
fo
,
"
\t
.long
\t
%d, %s%s%s%s, %d, %s%s%s%s, %s%s_data, %d
\n
"
,
rsc
->
name
->
type
==
name_ord
?
rsc
->
name
->
name
.
i_name
:
0
,
rsc
->
name
->
type
==
name_ord
?
rsc
->
name
->
name
.
i_name
:
0
,
rsc
->
name
->
type
==
name_ord
?
"0"
:
prefix
,
rsc
->
name
->
type
==
name_ord
?
"0"
:
prefix
,
rsc
->
name
->
type
==
name_ord
?
""
:
"_"
,
rsc
->
name
->
type
==
name_ord
?
""
:
rsc
->
c_name
,
rsc
->
name
->
type
==
name_ord
?
""
:
label
,
rsc
->
name
->
type
==
name_ord
?
""
:
"_name"
,
rsc
->
name
->
type
==
name_ord
?
""
:
"_name"
,
type
,
type
,
type
?
"0"
:
prefix
,
type
?
"0"
:
prefix
,
...
...
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