Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
76ed9882
Commit
76ed9882
authored
Dec 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline strsep
parent
e00d4656
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
24 deletions
+17
-24
include/vlc_common.h
include/vlc_common.h
+0
-1
include/vlc_fixups.h
include/vlc_fixups.h
+17
-1
src/extras/libc.c
src/extras/libc.c
+0
-22
No files found.
include/vlc_common.h
View file @
76ed9882
...
...
@@ -740,7 +740,6 @@ VLC_EXPORT( size_t, vlc_strlcpy, ( char *, const char *, size_t ) );
VLC_EXPORT
(
long
long
,
vlc_strtoll
,
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
LIBVLC_USED
);
VLC_EXPORT
(
char
*
,
vlc_strcasestr
,
(
const
char
*
s1
,
const
char
*
s2
)
LIBVLC_USED
);
char
*
vlc_strsep
(
char
**
,
const
char
*
);
#if defined(WIN32) || defined(UNDER_CE)
/* win32, cl and icl support */
...
...
include/vlc_fixups.h
View file @
76ed9882
...
...
@@ -151,7 +151,23 @@ static inline char *strndup (const char *str, size_t max)
#endif
#ifndef HAVE_STRSEP
# define strsep vlc_strsep
static
inline
char
*
vlc_strsep
(
char
**
ppsz_string
,
const
char
*
psz_delimiters
)
{
char
*
psz_string
=
*
ppsz_string
;
if
(
!
psz_string
)
return
NULL
;
char
*
p
=
strpbrk
(
psz_string
,
psz_delimiters
);
if
(
!
p
)
{
*
ppsz_string
=
NULL
;
return
psz_string
;
}
*
p
++
=
'\0'
;
*
ppsz_string
=
p
;
return
psz_string
;
}
#endif
#ifndef HAVE_ATOLL
...
...
src/extras/libc.c
View file @
76ed9882
...
...
@@ -208,28 +208,6 @@ extern size_t vlc_strlcpy (char *tgt, const char *src, size_t bufsize)
#endif
}
/**
* Extract a token from string.
* It is a replacement for strsep if not present.
*/
char
*
vlc_strsep
(
char
**
ppsz_string
,
const
char
*
psz_delimiters
)
{
char
*
psz_string
=
*
ppsz_string
;
if
(
!
psz_string
)
return
NULL
;
char
*
p
=
strpbrk
(
psz_string
,
psz_delimiters
);
if
(
!
p
)
{
*
ppsz_string
=
NULL
;
return
psz_string
;
}
*
p
++
=
'\0'
;
*
ppsz_string
=
p
;
return
psz_string
;
}
/*****************************************************************************
* vlc_*dir_wrapper: wrapper under Windows to return the list of drive letters
* when called with an empty argument or just '\'
...
...
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