Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
49151c07
Commit
49151c07
authored
Mar 03, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wince: try to save up a bit on memory usage.
parent
75d3f2b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
modules/gui/wince/wince.cpp
modules/gui/wince/wince.cpp
+4
-0
modules/gui/wince/wince.h
modules/gui/wince/wince.h
+8
-8
No files found.
modules/gui/wince/wince.cpp
View file @
49151c07
...
...
@@ -74,6 +74,10 @@ DllMain( HANDLE hModule, DWORD fdwReason, LPVOID lpReserved )
}
#endif
/* Global variables used by _TOMB() / _FROMB() */
wchar_t
pwsz_mbtow_wince
[
2048
];
char
psz_wtomb_wince
[
2048
];
/*****************************************************************************
* Open: initialize interface
*****************************************************************************/
...
...
modules/gui/wince/wince.h
View file @
49151c07
...
...
@@ -503,19 +503,19 @@ protected:
* A small helper function for utf8 <-> unicode conversions
*****************************************************************************/
#ifdef UNICODE
static
wchar_t
pwsz_mbtow
[
2048
];
static
char
psz_wtomb
[
2048
];
extern
wchar_t
pwsz_mbtow_wince
[
2048
];
extern
char
psz_wtomb_wince
[
2048
];
static
inline
wchar_t
*
_FROMMB
(
const
char
*
psz_in
)
{
mbstowcs
(
pwsz_mbtow
,
psz_in
,
2048
);
pwsz_mbtow
[
2048
-
1
]
=
0
;
return
pwsz_mbtow
;
mbstowcs
(
pwsz_mbtow
_wince
,
psz_in
,
2048
);
pwsz_mbtow
_wince
[
2048
-
1
]
=
0
;
return
pwsz_mbtow
_wince
;
}
static
inline
char
*
_TOMB
(
const
wchar_t
*
pwsz_in
)
{
wcstombs
(
psz_wtomb
,
pwsz_in
,
2048
);
psz_wtomb
[
2048
-
1
]
=
0
;
return
psz_wtomb
;
wcstombs
(
psz_wtomb
_wince
,
pwsz_in
,
2048
);
psz_wtomb
_wince
[
2048
-
1
]
=
0
;
return
psz_wtomb
_wince
;
}
#else
# define _FROMMB(a) a
...
...
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