Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Beauzée-Luyssen
flac
Commits
faafa4c8
Commit
faafa4c8
authored
Aug 31, 2018
by
lvqcl
Committed by
Erik de Castro Lopo
Sep 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic changes in lpc_asm.nasm and utf8.c
parent
0897458f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
38 deletions
+30
-38
src/libFLAC/ia32/lpc_asm.nasm
src/libFLAC/ia32/lpc_asm.nasm
+29
-29
src/share/utf8/utf8.c
src/share/utf8/utf8.c
+1
-9
No files found.
src/libFLAC/ia32/lpc_asm.nasm
View file @
faafa4c8
...
...
@@ -637,7 +637,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16_old
sub
esp
,
32
;ASSERT(lag > 0)
;ASSERT(lag <= 1
2
)
;ASSERT(lag <= 1
6
)
;ASSERT(lag <= data_len)
;ASSERT(data_len > 0)
...
...
src/share/utf8/utf8.c
View file @
faafa4c8
...
...
@@ -49,19 +49,15 @@ int utf8_encode(const char *from, char **to)
len
=
MultiByteToWideChar
(
CP_ACP
,
MB_PRECOMPOSED
,
from
,
-
1
,
NULL
,
0
);
if
(
len
==
0
)
break
;
unicode
=
(
wchar_t
*
)
safe_malloc_mul_2op_
((
size_t
)
len
,
sizeof
(
wchar_t
));
if
(
unicode
==
NULL
)
break
;
len
=
MultiByteToWideChar
(
CP_ACP
,
MB_PRECOMPOSED
,
from
,
-
1
,
unicode
,
len
);
if
(
len
==
0
)
break
;
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
unicode
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
len
==
0
)
break
;
utf8
=
(
char
*
)
safe_malloc_mul_2op_
((
size_t
)
len
,
sizeof
(
char
));
if
(
utf8
==
NULL
)
break
;
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
unicode
,
-
1
,
utf8
,
len
,
NULL
,
NULL
);
if
(
len
==
0
)
break
;
...
...
@@ -92,19 +88,15 @@ int utf8_decode(const char *from, char **to)
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
from
,
-
1
,
NULL
,
0
);
if
(
len
==
0
)
break
;
unicode
=
(
wchar_t
*
)
safe_malloc_mul_2op_
((
size_t
)
len
,
sizeof
(
wchar_t
));
if
(
unicode
==
NULL
)
break
;
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
from
,
-
1
,
unicode
,
len
);
if
(
len
==
0
)
break
;
len
=
WideCharToMultiByte
(
CP_ACP
,
WC_COMPOSITECHECK
,
unicode
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
len
==
0
)
break
;
acp
=
(
char
*
)
safe_malloc_mul_2op_
((
size_t
)
len
,
sizeof
(
char
));
if
(
acp
==
NULL
)
break
;
len
=
WideCharToMultiByte
(
CP_ACP
,
WC_COMPOSITECHECK
,
unicode
,
-
1
,
acp
,
len
,
NULL
,
NULL
);
if
(
len
==
0
)
break
;
...
...
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