Converts a header, such as tl.h
, to the format seen in _thorlabs_kst_wrap_basic.py
.
-
struct_convert.py
will parse the original header, looking for structs. It has two startup arguments that can be set in the file:IN_FILENAME
andOUT_FILENAME
. The script will parseIN_FILENAME
and produce a file calledOUT_FILENAME
. -
fn_convert.py
will parse the original header, looking for functions. It has three startup arguments that can be set in the file:IN_FILENAME
,OUT_FILENAME
, andAUTO_DETECT_PREFIX
. The script will parseIN_FILENAME
and produce a file calledOUT_FILENAME
. The script, ifAUTO_DETECT_PREFIX
is set toTrue
, will assume that everything ahead of the first underscore in a function name is a prefix, and will treat them appropriately. This script automatically corrects for function names formatted as eitherfn_name(args)
orfn_name (args)
. -
[DEPRECATED]
strip.py
converts a list of functions to theirSig(...)
versions. This script requires a list of functions in a file such astli_header.txt
.
Update the auto-converter to include the following:
- Enum declarations.
- 'typedef' added to struct declarations.
- Changed
__int32
toint
. - Changed
__int16
toshort
.