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
4d1e77a4
Commit
4d1e77a4
authored
Nov 29, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: check exported symbols
Against further dynamic linker namespace pollution.
parent
9826be04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
src/Makefile.am
src/Makefile.am
+2
-2
src/check_symbols
src/check_symbols
+28
-0
No files found.
src/Makefile.am
View file @
4d1e77a4
...
...
@@ -536,7 +536,7 @@ check_PROGRAMS = \
test_xmlent
\
test_headers
TESTS
=
$(check_PROGRAMS)
TESTS
=
$(check_PROGRAMS)
check_symbols
test_block_SOURCES
=
test
/block_test.c
test_block_LDADD
=
$(LDADD)
$(LIBS_libvlccore)
...
...
@@ -592,7 +592,7 @@ stamp-revision:
# Unit/regression test
###############################################################################
dist_check_SCRIPTS
=
check_headers
dist_check_SCRIPTS
=
check_headers
check_symbols
check-local
:
for
h
in
`
echo
$(pkginclude_HEADERS)
|
sed
-e
s,
\.\.
/include/,,g
`
;
\
...
...
src/check_symbols
0 → 100755
View file @
4d1e77a4
#! /bin/sh
# Copyright © 2015 Rémi Denis-Courmont
cd
"
$(
dirname
"
$0
"
)
"
||
exit
$?
test
-f
libvlccore.sym
||
exit
1
# DO NOT add new entries here.
# Do make existing ones more specific.
# Do remove existing ones (especially near the end).
echo
"Looking for unprefixed exported symbols..."
cat
libvlccore.sym |
grep
-v
\
-e
'^vlc_'
-e
'^vlm_'
-e
'^libvlc_[A-Z]'
-e
'^VLC_'
\
-e
'^input_'
-e
'^access_'
-e
'^stream_'
-e
'^demux_'
-e
'^decoder_'
\
-e
'^image_'
-e
'^block_'
-e
'^picture_'
-e
'^subpicture_'
\
-e
'^es_format'
-e
'^[asv]out_'
-e
'^spu_'
-e
'^filter_'
-e
'^video_'
\
-e
'^playlist_'
-e
'^services_discovery_'
-e
'^intf_'
\
-e
'^dialog_'
-e
'^update_'
-e
'^addons\?_'
-e
'^fingerprinter_'
\
-e
'^text_style_'
-e
'^text_segment_'
\
-e
'^net_'
-e
'^httpd_'
-e
'^http_auth_'
\
-e
'^config_'
-e
'^module_'
-e
'^var_'
\
-e
'^date_'
-e
'^sdp_'
-e
'^plane_'
\
-e
'^us_'
-e
'^utf8_'
-e
'^xml_'
-e
'^str_format_'
-e
'^GetLang_'
\
-e
'^m[a-z]*$'
-e
'^[A-Z][a-z]*Charset$'
-e
'MD5$'
\
-e
'^NTPtime64$'
-e
'^secstotimestr$'
\
&&
exit
1
echo
"None found."
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