Skip to content

Commit b02910c

Browse files
committed
make python 3.x compatible. Still works with python 2.6 and python 2.7.
1 parent 09f3bf0 commit b02910c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+12677
-12664
lines changed

pygccxml/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
2727
"""
2828

29-
import pygccxml.declarations as declarations
30-
import pygccxml.parser as parser
31-
import pygccxml.utils as utils
29+
from . import declarations
30+
from . import parser
31+
from . import utils
3232

3333
#TODO:
3434
# 1. Add "explicit" property for constructors

pygccxml/binary_parsers/__init__.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
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

Comments
 (0)