mk-symfiles.sh improvent

to filter out #defines as intended.
Thanks Zero King
This commit is contained in:
Willem Toorop 2019-01-07 11:33:21 +01:00
parent 014ac3d368
commit a4020a6841
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
* 2019-01-??: Version 1.5.1
* Issue #415: Filter out #defines etc. when creating
symbols file. Thanks Zero King
* 2018-12-21: Version 1.5.0
* RFE getdnsapi/stubby#121 log re-instantiating TLS
upstreams (because they reached tls_backoff_time) at

View File

@ -1,7 +1,7 @@
* if
getdns_address
getdns_address_sync
getdns_cancel_callback
getdns_context_
getdns_context_config
getdns_context_create
getdns_context_create_with_extended_memory_functions

View File

@ -3,7 +3,7 @@
write_symbols() {
OUTPUT=$1
shift
grep 'getdns_[0-9a-zA-Z_]*(' $* | grep -v '^#' | grep -v 'INLINE' | grep -v 'getdns_extra\.h\.in: \* if' \
grep -h 'getdns_[0-9a-zA-Z_]*(' $* | grep -v '^#' | grep -v 'INLINE' | grep -v 'getdns_extra\.h\.in: \* if' \
| sed -e 's/(.*$//g' -e 's/^.*getdns_/getdns_/g' | LC_ALL=C sort | uniq > $OUTPUT
}