diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2016-01-01 19:48:04 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2016-01-01 19:48:04 -0500 |
commit | e0d1599c110fe06f73d60cdcd443103888a2b98d (patch) | |
tree | d3759a5ca0bc463c9d059befe7b07ee6410e9bcb /scripts | |
parent | e8d5ff2b654a2bc7ef1c66cde851b52309953c93 (diff) | |
download | pycurl-e0d1599c110fe06f73d60cdcd443103888a2b98d.tar.gz |
Script to find unimplemented symbols
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/missing-symbols | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/missing-symbols b/scripts/missing-symbols new file mode 100755 index 0000000..a7e65ba --- /dev/null +++ b/scripts/missing-symbols @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +import sys, re, subprocess + +def process(siv_path): + with open(siv_path) as f: + for line in f: + if line[0] == ' ': + # comment + continue + line = line.strip() + if line == '': + continue + parts = re.split(r'\s+', line) + if len(parts) >= 4: + # removed symbol, all are very old + continue + try: + subprocess.check_call(['git', 'grep', '-q', parts[0], 'src']) + except subprocess.CalledProcessError: + print('Missing %s (since %s)' % (parts[0], parts[1])) + +process(sys.argv[1]) |