ᦀO
d dl Z d dlZd dlZdZdZd eej dd z ZddgZdez Z e j
d ez e j Z e j
d
ez e j Z
d Zdddez gd
fdZd Zej fdZedk r] e \ ZZeej Zn eed Ze ee gz Z eed Z ee \ ZZ eeee e dS dS ) Na This module generates a DEF file from the symbols in
an MSVC-compiled DLL import library. It correctly discriminates between
data and functions. The data is collected from the output of the program
nm(1).
Usage:
python lib2def.py [libname.lib] [output.def]
or
python lib2def.py [libname.lib] > output.def
libname.lib defaults to python