Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9f30598b
Commit
9f30598b
authored
Feb 01, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simpler use of HAVE_ASSERT
parent
547ace84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/libvlc.c
src/libvlc.c
+7
-6
No files found.
src/libvlc.c
View file @
9f30598b
...
@@ -42,7 +42,11 @@
...
@@ -42,7 +42,11 @@
#include <stdio.h>
/* sprintf() */
#include <stdio.h>
/* sprintf() */
#include <string.h>
/* strerror() */
#include <string.h>
/* strerror() */
#include <stdlib.h>
/* free() */
#include <stdlib.h>
/* free() */
#include <assert.h>
#ifdef HAVE_ASSERT
# include <assert.h>
#else
# define assert( c ) ((void)0)
#endif
#ifndef WIN32
#ifndef WIN32
# include <netinet/in.h>
/* BSD: struct in_addr */
# include <netinet/in.h>
/* BSD: struct in_addr */
...
@@ -2728,13 +2732,12 @@ char *FromLocale( const char *locale )
...
@@ -2728,13 +2732,12 @@ char *FromLocale( const char *locale )
inb
--
;
inb
--
;
vlc_iconv
(
libvlc
.
from_locale
,
NULL
,
NULL
,
NULL
,
NULL
);
vlc_iconv
(
libvlc
.
from_locale
,
NULL
,
NULL
,
NULL
,
NULL
);
}
}
vlc_mutex_unlock
(
&
libvlc
.
from_locale_lock
);
vlc_mutex_unlock
(
&
libvlc
.
from_locale_lock
);
#ifdef HAVE_ASSERT
assert
(
inb
==
0
);
assert
(
inb
==
0
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
optr
==
'\0'
);
assert
(
*
optr
==
'\0'
);
assert
(
strlen
(
output
)
==
(
size_t
)(
optr
-
output
));
assert
(
strlen
(
output
)
==
(
size_t
)(
optr
-
output
));
#endif
return
realloc
(
output
,
optr
-
output
+
1
);
return
realloc
(
output
,
optr
-
output
+
1
);
}
}
return
(
char
*
)
locale
;
return
(
char
*
)
locale
;
...
@@ -2777,12 +2780,10 @@ char *ToLocale( const char *utf8 )
...
@@ -2777,12 +2780,10 @@ char *ToLocale( const char *utf8 )
}
}
vlc_mutex_unlock
(
&
libvlc
.
to_locale_lock
);
vlc_mutex_unlock
(
&
libvlc
.
to_locale_lock
);
#ifdef HAVE_ASSERT
assert
(
inb
==
0
);
assert
(
inb
==
0
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
iptr
==
'\0'
);
assert
(
*
optr
==
'\0'
);
assert
(
*
optr
==
'\0'
);
assert
(
strlen
(
output
)
==
(
size_t
)(
optr
-
output
));
assert
(
strlen
(
output
)
==
(
size_t
)(
optr
-
output
));
#endif
return
realloc
(
output
,
optr
-
output
+
1
);
return
realloc
(
output
,
optr
-
output
+
1
);
}
}
return
(
char
*
)
utf8
;
return
(
char
*
)
utf8
;
...
...
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