|
8 | 8 | unique names and map them to the declarations
|
9 | 9 |
|
10 | 10 | On Windows:
|
11 |
| - ctypes package is used to call UnDecorateSymbolName function from dbghelp.dll |
| 11 | + ctypes package is used to call `UnDecorateSymbolName` function from `dbghelp.dll` |
12 | 12 |
|
13 | 13 | On Linux:
|
14 | 14 | "nm" utility is used.
|
|
21 | 21 | from pygccxml import declarations
|
22 | 22 |
|
23 | 23 | class UNDECORATE_NAME_OPTIONS:
|
24 |
| - """defines few constants for UnDecorateSymbolName function""" |
| 24 | + """defines few constants for `UnDecorateSymbolName` function""" |
25 | 25 |
|
26 | 26 | UNDNAME_COMPLETE = 0x0000 #Enables full undecoration.
|
27 | 27 | UNDNAME_NO_LEADING_UNDERSCORES = 0x0001 #Removes leading underscores from Microsoft extended keywords.
|
@@ -200,12 +200,12 @@ def format_var( self, decl, hint ):
|
200 | 200 |
|
201 | 201 | def format_decl(self, decl, hint=None):
|
202 | 202 | """returns string, which contains full function name formatted exactly as
|
203 |
| - result of dbghelp.UnDecorateSymbolName, with UNDNAME_NO_MS_KEYWORDS | UNDNAME_NO_ACCESS_SPECIFIERS | UNDNAME_NO_ECSU |
| 203 | + result of `dbghelp.UnDecorateSymbolName`, with UNDNAME_NO_MS_KEYWORDS | UNDNAME_NO_ACCESS_SPECIFIERS | UNDNAME_NO_ECSU |
204 | 204 | options.
|
205 | 205 |
|
206 |
| - Different compilers\utilities undecorate/demangle magled string ( unique names ) in a different way. |
207 |
| - hint argument will tell pygccxml how to format declarations, so it couls be mapped later to the blob. |
208 |
| - The valid options are" msvc, nm |
| 206 | + Different compilers\utilities undecorate/demangle mangled string ( unique names ) in a different way. |
| 207 | + `hint` argument will tell pygccxml how to format declarations, so they could be mapped later to the blobs. |
| 208 | + The valid options are: "msvc" and "nm". |
209 | 209 | """
|
210 | 210 | name = None
|
211 | 211 | if hint is None:
|
|
0 commit comments