Return a C name usable for an exported definition. This is like private_name(), but the output only depends on the 'fullname' argument, so the names are distinct across multiple builds.
(fullname: str)
| 91 | |
| 92 | |
| 93 | def exported_name(fullname: str) -> str: |
| 94 | """Return a C name usable for an exported definition. |
| 95 | |
| 96 | This is like private_name(), but the output only depends on the |
| 97 | 'fullname' argument, so the names are distinct across multiple |
| 98 | builds. |
| 99 | """ |
| 100 | # TODO: Support unicode |
| 101 | return fullname.replace("___", "___3_").replace(".", "___") |
| 102 | |
| 103 | |
| 104 | def make_module_translation_map(names: list[str]) -> dict[str, str]: |
searching dependent graphs…