LDTOH - convert or distill C source files to structure templates.

Usage:

ldtoh csrcfil [options]*
Define=value
Include=catalog
Language=lang (C|Yaa|Pl6)
Tag=name
Undefine=value

Where:

csrcfil
is a source code file containing C "typedef" type definitions for structures and unions.
Define=value
is passed to the preprocessor (CPP) to #define a manifest value before processing the C code. The command line may specify any number of Define= entries.
Include=catalog
searches the specified catalog or subcatalog for quoted #include files (if necessary). If multiple Include= options are specified, they are searched in the order specified on the command line.
Language=lang
specifies the language to be used in the output file. Possible values for "lang" are:
C
the C programming language. This is the default.
Yaa
the YAA assembler language.
Pl6
the PL6 programming language.
Tag=name
is the name of a specific structure or union that you want to process. This also processes any structures or unions referenced by the named structure/union. You may specify any number of Tag= options on the command line. If you do not specify any Tag= options, the default is to process all structures and unions defined in the source file.
Undefine=value
is passed to the preprocessor (CPP) to force a manifest constant to be #undefined.

Description:

The "ldtoh" program can convert C structure and union types definitions into equivalent definitions in the output programming language.

If the output language is C, "ldtoh" produces a "distilled" form of output that contains all the relevant information obtained from #include files. This distilled output may be used later for faster processing into YAA or PL6, because "ldtoh" doesn't have to look up all the #include files the second time.

Copyright © 1996, Thinkage Ltd.