![]() |
![]() |
![]() |
![]() |
![]() |
Utilities
General
Delivered in combination with the Targeting Expert there is an application called taexutil. This application can be used directly from the Targeting Expert Tools menu or on the command line, e.g. in makefiles.
The following utility functions are supported:
Each utility will create a backup file called <inputfile>.bak
DOS to UNIX
This utility can be used to modify ASCII files. It replaces all the found '\r\n' sequences against '\n'.
- Command line:
taexutil D2U <inputfile> <outputfile>
<inputfile> and <outputfile> can be equal but both must be given.UNIX to DOS
This utility can be used to modify ASCII files. It replaces all the found '\n' characters against '\r\n' sequences.
- Command line:
taexutil U2D <inputfile> <outputfile>
<inputfile> and <outputfile> can be equal but both must be given.Indent
The indentation of the given ASCII file will be corrected. This means
- all the preprocessor directives (staring with '#') will be moved into the first column. This is necessary to conform with K&R compilers.
- all the other lines will be indented according to the given blocks in C, i.e. it is controlled by the use of '{' and '}' characters.
- all TAB characters ('\t') will be removed.
- all the SPACE (' ') characters at the end of lines will be removed.
The indent offered by here does not offer the same functionality as indent known from UNIX!
- Command line:
taexutil INDENT <inputfile> <outputfile>
<inputfile> and <outputfile> can be equal but both must be given.Preprocessor
The preprocessor utility should only be used to preprocess generated C files. The following tasks will be processed:
- Copy the SDL to C compilers main header file (ml_typ.h/scttypes.h) beside the output file.
- Put all the lines of the main header file containing #include <...> statements into comments
- Preprocess the selected generated C file by using the default compiler (see The Preference Manager).
- Remove all the empty lines in the preprocessed file.
- Run Indent on the preprocessed file.
- Remove all the comments surrounding #include < ...> in the preprocessed file.
- Remove the private copy of the main header file.
All the files given with #include "..." will be included during the preprocessing.
- Command line:
taexutil PREPRO <inputfile> <outputfile> "<cmd>" <compiler_flag>
- <inputfile> and <outputfile> can be equal but both must be given.
- <cmd> is the command line needed to invoke the preprocessor of the default compiler
- <compiler_flag> is the define to select the target compiler. (Please see Compiler Flag)
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |