Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
0c2c71bc
Commit
0c2c71bc
authored
21 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Resource names don't need a case-sensitive comparison; this avoids
depending on libwine_unicode.
parent
b39c3545
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/winebuild/Makefile.in
+1
-1
1 addition, 1 deletion
tools/winebuild/Makefile.in
tools/winebuild/res32.c
+14
-2
14 additions, 2 deletions
tools/winebuild/res32.c
with
15 additions
and
3 deletions
tools/winebuild/Makefile.in
+
1
−
1
View file @
0c2c71bc
...
...
@@ -23,7 +23,7 @@ all: $(PROGRAMS) winebuild.man
@MAKE_RULES@
winebuild$(EXEEXT)
:
$(OBJS)
$(
CC
)
$(
CFLAGS
)
-o
$@
$(
OBJS
)
$(
LIBUNICODE
)
$(
LIBPORT
)
$(
LDFLAGS
)
$(
CC
)
$(
CFLAGS
)
-o
$@
$(
OBJS
)
$(
LIBPORT
)
$(
LDFLAGS
)
winebuild.man
:
winebuild.man.in
sed
-e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
$(
SRCDIR
)
/winebuild.man.in
>
$@
||
$(
RM
)
$@
...
...
This diff is collapsed.
Click to expand it.
tools/winebuild/res32.c
+
14
−
2
View file @
0c2c71bc
...
...
@@ -37,7 +37,6 @@
#endif
#include
"winbase.h"
#include
"wine/unicode.h"
#include
"build.h"
/* Unicode string or integer id */
...
...
@@ -92,6 +91,19 @@ inline static struct resource *add_resource(void)
return
&
resources
[
nb_resources
++
];
}
static
inline
unsigned
int
strlenW
(
const
WCHAR
*
str
)
{
const
WCHAR
*
s
=
str
;
while
(
*
s
)
s
++
;
return
s
-
str
;
}
static
inline
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
static
struct
res_name
*
add_name
(
struct
res_type
*
type
,
const
struct
resource
*
res
)
{
struct
res_name
*
name
;
...
...
@@ -232,7 +244,7 @@ static int cmp_string( const struct string_id *str1, const struct string_id *str
return
1
;
/* an id compares larger than a string */
}
if
(
!
str2
->
str
)
return
-
1
;
return
strcmp
i
W
(
str1
->
str
,
str2
->
str
);
return
strcmpW
(
str1
->
str
,
str2
->
str
);
}
/* compare two resources for sorting the resource directory */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment