|
1 |
| -# Copyright 2004-2008 Roman Yakovenko. |
2 |
| -# Distributed under the Boost Software License, Version 1.0. (See |
3 |
| -# accompanying file LICENSE_1_0.txt or copy at |
4 |
| -# http://www.boost.org/LICENSE_1_0.txt) |
5 |
| - |
6 |
| -""" |
7 |
| -contains classes that allows to extract different information from binary files |
8 |
| -( .map, .dll, .so ) and integrate it with existing declarations tree |
9 |
| -
|
10 |
| -The main function of this package is :func:`pygccxml.binary_parsers.parsers.merge_information`. |
11 |
| -""" |
12 |
| - |
13 |
| -import undname |
14 |
| -from parsers import merge_information |
15 |
| - |
16 |
| -def undecorate_blob( blob ): |
17 |
| - """returns undecorated\unmangled string, created from blob(exported symbol name)""" |
18 |
| - return undname.undname_creator_t().undecorate_blob( blob ) |
19 |
| - |
20 |
| -def format_decl( decl, hint=None ): |
21 |
| - """ |
22 |
| - returns string, that represents formatted declaration, according to some rules |
23 |
| - :param hint: valid values are: "msvc" and "nm" |
24 |
| - """ |
25 |
| - return undname.undname_creator_t().format_decl( decl, hint=hint ) |
| 1 | +# Copyright 2004-2008 Roman Yakovenko. |
| 2 | +# Distributed under the Boost Software License, Version 1.0. (See |
| 3 | +# accompanying file LICENSE_1_0.txt or copy at |
| 4 | +# http://www.boost.org/LICENSE_1_0.txt) |
| 5 | + |
| 6 | +""" |
| 7 | +contains classes that allows to extract different information from binary files |
| 8 | +( .map, .dll, .so ) and integrate it with existing declarations tree |
| 9 | +
|
| 10 | +The main function of this package is :func:`pygccxml.binary_parsers.parsers.merge_information`. |
| 11 | +""" |
| 12 | + |
| 13 | +from .undname import undname_creator_t |
| 14 | +from .parsers import merge_information |
| 15 | + |
| 16 | +def undecorate_blob( blob ): |
| 17 | + """returns undecorated/unmangled string, created from blob(exported symbol name)""" |
| 18 | + return undname_creator_t().undecorate_blob( blob ) |
| 19 | + |
| 20 | +def format_decl( decl, hint=None ): |
| 21 | + """ |
| 22 | + returns string, that represents formatted declaration, according to some rules |
| 23 | + :param hint: valid values are: "msvc" and "nm" |
| 24 | + """ |
| 25 | + return undname_creator_t().format_decl( decl, hint=hint ) |
0 commit comments