IBM
Contents Index Previous Next



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:

Note:

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'.

UNIX to DOS

This utility can be used to modify ASCII files. It replaces all the found '\n' characters against '\r\n' sequences.

Indent

The indentation of the given ASCII file will be corrected. This means

Caution!

The indent offered by here does not offer the same functionality as indent known from UNIX!

Preprocessor

Note:

The main intention of the preprocessor given here is not to get an easy to read source file. Instead it is to get a preprocessed file that can be compiled by a target compiler (e.g. Keil, Tasking,...) because long macros are not supported by some target compilers.

The preprocessor utility should only be used to preprocess generated C files. The following tasks will be processed:

  1. Copy the SDL to C compilers main header file (ml_typ.h/scttypes.h) beside the output file.
  2. Put all the lines of the main header file containing #include <...> statements into comments
  3. Preprocess the selected generated C file by using the default compiler (see The Preference Manager).
  4. Remove all the empty lines in the preprocessed file.
  5. Run Indent on the preprocessed file.
  6. Remove all the comments surrounding #include < ...> in the preprocessed file.
  7. Remove the private copy of the main header file.

Note:

All the files given with #include "..." will be included during the preprocessing.


http://www.ibm.com/rational
Contents Index Previous Next