Look for functions marked MT-unsafe in their man pages. The MT-unsafe functions are listed in id_MTunsafe (and id_MTunsafe_full). That section of code can be regenerated by the external script MT-Unsafe.py
(cfg)
| 315 | |
| 316 | |
| 317 | def check_MTunsafe(cfg): |
| 318 | """ |
| 319 | Look for functions marked MT-unsafe in their man pages. |
| 320 | |
| 321 | The MT-unsafe functions are listed in id_MTunsafe (and id_MTunsafe_full). |
| 322 | That section of code can be regenerated by the external script MT-Unsafe.py |
| 323 | """ |
| 324 | for token in cfg.tokenlist: |
| 325 | if token.str in id_MTunsafe: |
| 326 | reportError(token, 'warning', token.str + ' is MT-unsafe', |
| 327 | 'unsafe-call') |
| 328 | |
| 329 | |
| 330 | if __name__ == '__main__': |
no test coverage detected