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
d5326a15
Commit
d5326a15
authored
Sep 24, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and use LIBVLC_FORMAT_ARG for gettext functions
parent
c21a111a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
include/vlc_common.h
include/vlc_common.h
+4
-1
No files found.
include/vlc_common.h
View file @
d5326a15
...
...
@@ -59,10 +59,12 @@
/* Format string sanity checks */
#ifdef __GNUC__
# define LIBVLC_FORMAT(x,y) __attribute__ ((format(printf,x,y)))
# define LIBVLC_FORMAT_ARG(x) __attribute__ ((format_arg(x)))
# define LIBVLC_USED __attribute__ ((warn_unused_result))
# define LIBVLC_MALLOC __attribute__ ((malloc))
#else
# define LIBVLC_FORMAT(x,y)
# define LIBVLC_FORMAT_ARG(x)
# define LIBVLC_USED
# define LIBVLC_MALLOC
#endif
...
...
@@ -794,8 +796,9 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
/*****************************************************************************
* I18n stuff
*****************************************************************************/
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_
USED
);
VLC_EXPORT
(
char
*
,
vlc_gettext
,
(
const
char
*
msgid
)
LIBVLC_
FORMAT_ARG
(
1
)
);
LIBVLC_FORMAT_ARG
(
2
)
static
inline
const
char
*
vlc_pgettext
(
const
char
*
ctx
,
const
char
*
id
)
{
const
char
*
tr
=
vlc_gettext
(
id
);
...
...
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