#!/bin/ksh
# XXX: speed this crunker up!
# get a list of candidate symbols to export
dumpbin /symbols $* | \
sed -e '/SECT.* notype () *External *|/!d' \
-e 's/^.* | \([^( ]*\).*$/ \1/' \
-e '/^ __/d' \
-e 's/^ _\([^@]*\)$/ \1/'\
-e '/_DllMain@12/d' \
-e '/AEPAXI@Z$/d' |\
sort -u \
>$TMPDIR/symbols.$$
# line by line comments on the sed:
# select lines that define functions
# extract the symbol name
# exporting initial double _ bad; they're supposed to be the compiler's
# can't export the DllMain
# don't export 'scalar deleting destructor's, no don't ask me.
# don't export already __declspec(dllexport) symbols
dumpbin /directives $* |\
sed -e '/-export:/!d' \
-e 's/.*-export:/ /' \
>$TMPDIR/exports.$$
# remove exports.$$ from symbols.$$
cat $TMPDIR/symbols.$$ $TMPDIR/exports.$$ $TMPDIR/exports.$$ |\
sort |\
uniq -u
#rm -f $TMPDIR/exports.$$
#rm -f $TMPDIR/symbols.$$
# |
Change |
User |
Description |
Committed |
|
#1
|
632 |
matt_bruce |
initial check in of BhbJam submitted for approval on Jan-11-2001 |
|
|