source: trunk/essentials/dev-lang/python/Tools/scripts/nm2def.py@ 3226

Last change on this file since 3226 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 2.4 KB
Line 
1#! /usr/bin/env python
2"""nm2def.py
3
4Helpers to extract symbols from Unix libs and auto-generate
5Windows definition files from them. Depends on nm(1). Tested
6on Linux and Solaris only (-p option to nm is for Solaris only).
7
8By Marc-Andre Lemburg, Aug 1998.
9
10Additional notes: the output of nm is supposed to look like this:
11
12acceler.o:
13000001fd T PyGrammar_AddAccelerators
14 U PyGrammar_FindDFA
1500000237 T PyGrammar_RemoveAccelerators
16 U _IO_stderr_
17 U exit
18 U fprintf
19 U free
20 U malloc
21 U printf
22
23grammar1.o:
2400000000 T PyGrammar_FindDFA
2500000034 T PyGrammar_LabelRepr
26 U _PyParser_TokenNames