From 2a8202e74846d191a321cca1202175af9db6107d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 5 Nov 2020 01:45:06 +0100 Subject: Convert to sibs project --- exports.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 exports.py (limited to 'exports.py') diff --git a/exports.py b/exports.py deleted file mode 100755 index c8e97a7..0000000 --- a/exports.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python - -import sys -import re -import json - -expr = re.compile(r"(olm_[^( ]*)\(") - -exports = {'_free', '_malloc'} - -for f in sys.argv[1:]: - with open(f) as fp: - for line in fp: - matches = expr.search(line) - if matches is not None: - exports.add('_%s' % (matches.group(1),)) - -json.dump(sorted(exports), sys.stdout) -- cgit v1.2.3