Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b62ed687
Commit
b62ed687
authored
Mar 21, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Better names for functions that sanitize input
parent
604fbb31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
configure
configure
+11
-11
No files found.
configure
View file @
b62ed687
...
@@ -477,13 +477,13 @@ sanitize_var_name(){
...
@@ -477,13 +477,13 @@ sanitize_var_name(){
echo
$@
|
sed
's/[^A-Za-z0-9_]/_/g'
echo
$@
|
sed
's/[^A-Za-z0-9_]/_/g'
}
}
set_sa
fe
(){
set_sa
nitized
(){
var
=
$1
var
=
$1
shift
shift
eval
$(
sanitize_var_name
"
$var
"
)
=
'$*'
eval
$(
sanitize_var_name
"
$var
"
)
=
'$*'
}
}
get_sa
fe
(){
get_sa
nitized
(){
eval echo
\$
$(
sanitize_var_name
"
$1
"
)
eval echo
\$
$(
sanitize_var_name
"
$1
"
)
}
}
...
@@ -522,13 +522,13 @@ disable_weak(){
...
@@ -522,13 +522,13 @@ disable_weak(){
set_weak no
$*
set_weak no
$*
}
}
enable_sa
fe
(){
enable_sa
nitized
(){
for
var
;
do
for
var
;
do
enable
$(
echo
"
$var
"
|
sed
's/[^A-Za-z0-9_]/_/g'
)
enable
$(
echo
"
$var
"
|
sed
's/[^A-Za-z0-9_]/_/g'
)
done
done
}
}
disable_sa
fe
(){
disable_sa
nitized
(){
for
var
;
do
for
var
;
do
disable
$(
echo
"
$var
"
|
sed
's/[^A-Za-z0-9_]/_/g'
)
disable
$(
echo
"
$var
"
|
sed
's/[^A-Za-z0-9_]/_/g'
)
done
done
...
@@ -937,8 +937,8 @@ check_header(){
...
@@ -937,8 +937,8 @@ check_header(){
log check_header
"
$@
"
log check_header
"
$@
"
header
=
$1
header
=
$1
shift
shift
disable_sa
fe
$header
disable_sa
nitized
$header
check_cpp
"
$@
"
<<
EOF
&& enable_sa
fe
$header
check_cpp
"
$@
"
<<
EOF
&& enable_sa
nitized
$header
#include <
$header
>
#include <
$header
>
int x;
int x;
EOF
EOF
...
@@ -982,7 +982,7 @@ check_func_headers(){
...
@@ -982,7 +982,7 @@ check_func_headers(){
echo
"long check_
$func
(void) { return (long)
$func
; }"
echo
"long check_
$func
(void) { return (long)
$func
; }"
done
done
echo
"int main(void) { return 0; }"
echo
"int main(void) { return 0; }"
}
| check_ld
"
$@
"
&&
enable
$funcs
&&
enable_sa
fe
$headers
}
| check_ld
"
$@
"
&&
enable
$funcs
&&
enable_sa
nitized
$headers
}
}
check_cpp_condition
(){
check_cpp_condition
(){
...
@@ -1080,8 +1080,8 @@ check_type(){
...
@@ -1080,8 +1080,8 @@ check_type(){
headers
=
$1
headers
=
$1
type
=
$2
type
=
$2
shift
2
shift
2
disable_sa
fe
"
$type
"
disable_sa
nitized
"
$type
"
check_code cc
"
$headers
"
"
$type
v"
"
$@
"
&&
enable_sa
fe
"
$type
"
check_code cc
"
$headers
"
"
$type
v"
"
$@
"
&&
enable_sa
nitized
"
$type
"
}
}
check_struct
(){
check_struct
(){
...
@@ -1090,9 +1090,9 @@ check_struct(){
...
@@ -1090,9 +1090,9 @@ check_struct(){
struct
=
$2
struct
=
$2
member
=
$3
member
=
$3
shift
3
shift
3
disable_sa
fe
"
${
struct
}
_
${
member
}
"
disable_sa
nitized
"
${
struct
}
_
${
member
}
"
check_code cc
"
$headers
"
"const void *p = &((
$struct
*)0)->
$member
"
"
$@
"
&&
check_code cc
"
$headers
"
"const void *p = &((
$struct
*)0)->
$member
"
"
$@
"
&&
enable_sa
fe
"
${
struct
}
_
${
member
}
"
enable_sa
nitized
"
${
struct
}
_
${
member
}
"
}
}
check_builtin
(){
check_builtin
(){
...
...
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