1 ! (c)2010 Joe Groff bsd license
2 USING: alien.cxx.demangle assocs combinators fry io.pathnames
3 kernel macho sequences ;
6 : library-symbols ( file -- symbols )
8 { "dylib" [ dylib-exports ] }
9 { f [ dylib-exports ] }
12 : c++-library-symbols ( file abi -- symbols )
13 [ library-symbols ] dip
14 [ '[ _ c++-symbol? ] filter ]
15 [ '[ dup _ demangle ] H{ } map>assoc ] bi ;