Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
cb63940a
Commit
cb63940a
authored
May 24, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline atoll and atof
parent
2b617e77
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
42 deletions
+7
-42
include/vlc_fixups.h
include/vlc_fixups.h
+7
-9
src/extras/libc.c
src/extras/libc.c
+0
-31
src/libvlccore.sym
src/libvlccore.sym
+0
-2
No files found.
include/vlc_fixups.h
View file @
cb63940a
...
@@ -70,24 +70,22 @@ static inline char *strndup (const char *str, size_t max)
...
@@ -70,24 +70,22 @@ static inline char *strndup (const char *str, size_t max)
# define strlcpy vlc_strlcpy
# define strlcpy vlc_strlcpy
#endif
#endif
#ifndef HAVE_ATOF
# define atof vlc_atof
#endif
#ifndef HAVE_STRTOF
#ifndef HAVE_STRTOF
# ifdef HAVE_STRTOD
# define strtof( a, b ) ((float)strtod (a, b))
# define strtof( a, b ) ((float)strtod (a, b))
# endif
#endif
#endif
#ifndef HAVE_ATO
LL
#ifndef HAVE_ATO
F
# define ato
ll vlc_atoll
# define ato
f( str ) (strtod ((str), (char **)NULL, 10))
#endif
#endif
#ifndef HAVE_STRTOLL
#ifndef HAVE_STRTOLL
# define strtoll vlc_strtoll
# define strtoll vlc_strtoll
#endif
#endif
#ifndef HAVE_ATOLL
# define atoll( str ) (strtoll ((str), (char **)NULL, 10))
#endif
#ifndef HAVE_LLDIV
#ifndef HAVE_LLDIV
typedef
struct
{
typedef
struct
{
long
long
quot
;
/* Quotient. */
long
long
quot
;
/* Quotient. */
...
...
src/extras/libc.c
View file @
cb63940a
...
@@ -225,27 +225,6 @@ int vlc_asprintf( char **strp, const char *fmt, ... )
...
@@ -225,27 +225,6 @@ int vlc_asprintf( char **strp, const char *fmt, ... )
}
}
#endif
#endif
/*****************************************************************************
* atof: convert a string to a double.
*****************************************************************************/
#if !defined( HAVE_ATOF )
double
vlc_atof
(
const
char
*
nptr
)
{
double
f_result
;
wchar_t
*
psz_tmp
=
NULL
;
int
i_len
=
strlen
(
nptr
)
+
1
;
psz_tmp
=
malloc
(
i_len
*
sizeof
(
wchar_t
)
);
if
(
!
psz_tmp
)
return
NULL
;
MultiByteToWideChar
(
CP_ACP
,
0
,
nptr
,
-
1
,
psz_tmp
,
i_len
);
f_result
=
wcstod
(
psz_tmp
,
NULL
);
free
(
psz_tmp
);
return
f_result
;
}
#endif
/*****************************************************************************
/*****************************************************************************
* strtoll: convert a string to a 64 bits int.
* strtoll: convert a string to a 64 bits int.
*****************************************************************************/
*****************************************************************************/
...
@@ -318,16 +297,6 @@ int64_t vlc_strtoll( const char *nptr, char **endptr, int base )
...
@@ -318,16 +297,6 @@ int64_t vlc_strtoll( const char *nptr, char **endptr, int base )
}
}
#endif
#endif
/*****************************************************************************
* atoll: convert a string to a 64 bits int.
*****************************************************************************/
#if !defined( HAVE_ATOLL )
int64_t
vlc_atoll
(
const
char
*
nptr
)
{
return
strtoll
(
nptr
,
(
char
**
)
NULL
,
10
);
}
#endif
/**
/**
* Copy a string to a sized buffer. The result is always nul-terminated
* Copy a string to a sized buffer. The result is always nul-terminated
* (contrary to strncpy()).
* (contrary to strncpy()).
...
...
src/libvlccore.sym
View file @
cb63940a
...
@@ -371,8 +371,6 @@ __var_TriggerCallback
...
@@ -371,8 +371,6 @@ __var_TriggerCallback
__var_Type
__var_Type
vlc_alphasort
vlc_alphasort
vlc_asprintf
vlc_asprintf
vlc_atof
vlc_atoll
vlc_b64_decode
vlc_b64_decode
vlc_b64_decode_binary
vlc_b64_decode_binary
vlc_b64_decode_binary_to_buffer
vlc_b64_decode_binary_to_buffer
...
...
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