annotate osdep/strsep.h @ 31798:2d9044967a46

Add 'z' length modifier to %d printf format specifiers for size_t arguments. This silences the following warnings on OS X with gcc 4.2.1: libmpdemux/muxer_mpeg.c:1660: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' libmpdemux/muxer_mpeg.c:1784: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' libmpdemux/muxer_mpeg.c:1873: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' libmpdemux/muxer_mpeg.c:1930: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' libmpdemux/muxer_mpeg.c:2362: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
author diego
date Sat, 31 Jul 2010 16:05:19 +0000
parents 7f7591482564
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30313
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
1 /*
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
2 * strsep implementation for systems that do not have it in libc
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
3 *
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
4 * This file is part of MPlayer.
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
5 *
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
6 * MPlayer is free software; you can redistribute it and/or modify
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
9 * (at your option) any later version.
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
10 *
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
11 * MPlayer is distributed in the hope that it will be useful,
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
14 * GNU General Public License for more details.
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
15 *
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License along
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
19 */
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
20 #ifndef MPLAYER_STRSEP_H
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
21 #define MPLAYER_STRSEP_H
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
22
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
23 #include <string.h>
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
24 #include "config.h"
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
25
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
26 #ifndef HAVE_STRSEP
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
27 char *strsep(char **stringp, const char *delim);
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
28 #endif
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
29
7f7591482564 Add a proper header for our strsep implementation so strsep will
reimar
parents:
diff changeset
30 #endif /* MPLAYER_STRSEP_H */