MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/local/ssl/lib/python2.4/Tools/scripts/nm2def.pyc
mņ
‚=5Dc@s±dZdkZdkZdkZdeid dZdeideiddZd	Zedd
„Zd„Z	dZ
fZed„Zd„Z
edjoe
ƒndS(sEnm2def.py

Helpers to extract symbols from Unix libs and auto-generate
Windows definition files from them. Depends on nm(1). Tested
on Linux and Solaris only (-p option to nm is for Solaris only).

By Marc-Andre Lemburg, Aug 1998.

Additional notes: the output of nm is supposed to look like this:

acceler.o:
000001fd T PyGrammar_AddAccelerators
         U PyGrammar_FindDFA
00000237 T PyGrammar_RemoveAccelerators
         U _IO_stderr_
         U exit
         U fprintf
         U free
         U malloc
         U printf

grammar1.o:
00000000 T PyGrammar_FindDFA
00000034 T PyGrammar_LabelRepr
         U _PyParser_TokenNames
         U abort
         U printf
         U sprintf

...

Even if this isn't the default output of your nm, there is generally an
option to produce this format (since it is the original v7 Unix format).

Nt	libpythonis.atPythoniis.dllsnm -p -g %stTtCtDcCsŪtit|ƒiƒ}g}|D]}||iƒq$~}h}xŽ|D]†}	t|	ƒdjp
d|	joqMn|	iƒ}t|ƒdjoqMn|\}}}
||joqMn||f||
<qMW|S(Nit:i(tostpopentNMtlibt	readlinestlinest_[1]tststriptsymbolstlinetlentsplittitemstaddressttypetnamettypes(R	RRRRRRR
RRR((t*/usr/lib/python2.4/Tools/scripts/nm2def.pyR+s' 
cCs”g}g}xS|iƒD]E\}\}}|djo|id|ƒq|id|ƒqW|iƒ|idƒ|iƒdi	|ƒddi	|ƒS(NRRs	ts DATA
s
(RR(
tdatatcodeRRRtaddrRtappendtsorttjoin(RRRRRR((Rtexport_list<s




sEXPORTS
%s
cCsYxR|iƒD]D}|d djp|d djoq
||jo||=q
q
WdS(NitPyit_Py(RtkeysRtspecials(RR$R((Rt
filter_PythonUs
"
cCsJttƒ}t|ƒt|ƒ}ti}|i	t
|ƒ|iƒdS(N(Rt	PYTHONLIBR
R%R texportstsyststdouttftwritetDEF_TEMPLATEtclose(R'R*R
((Rtmain]s
	t__main__(RRR(t__doc__RtreR(tversionR&tPC_PYTHONLIBRRR R,tSPECIALSR%R.t__name__(RRR4R R%R(R1R,R&R.RR3((Rt?$s