diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/dkct.h |
Initial commit
Diffstat (limited to 'support/dktools/dkct.h')
-rw-r--r-- | support/dktools/dkct.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/support/dktools/dkct.h b/support/dktools/dkct.h new file mode 100644 index 0000000000..890048290b --- /dev/null +++ b/support/dktools/dkct.h @@ -0,0 +1,64 @@ + +#ifndef DKCT_H_INCLUDED +#define DKCT_H_INCLUDED 1 + +#define DKCT_STYLE_GCC 0 + + +#include "dk3all.h" +#include "dkt.h" +#if 0 +#include "dkt-version.h" +#endif +#include "dk4vers.h" + +/** Option set for dkct. + * The configuration dialog of dkwxtrace must set this. + */ +typedef struct { + int deb; /**< Debug: 0=no debug, 1=file, 2=stdout. */ + int deben; /**< Flag: Debugging enabled. */ + int lnn; /**< Show line numbers. */ + int mak; /**< Make mode. */ + int sty; /**< Style for Output to stdout (DKCT_STYLE_xxx). */ + int bw; /**< Box width. */ + int tkw; /**< Flag: Add trace keyword. */ + int ts; /**< Flag: Print timestamp. */ + int win; /**< Flag: Add support for Windows wide chars. */ + int port; /**< Flag: Produce portable output (implies win). */ + int tip; /**< Flag: trace include printed. */ + char spls; /**< Splint special character. */ +} DKCT_OPTION_SET; + + + +/** Job structure for dkct. +*/ +typedef struct { + DKCT_OPTION_SET dkcto; /**< Conversion options. */ + dk3_app_t *app; /**< Application. */ + dkChar const * const *msg; /**< Localized texts. */ + dkChar const * const *nlc; /**< Non-localized keywords. */ + dk3_option_set_t *opt; /**< Command line options. */ + dkChar const *sCwd; /**< Current working directory. */ + int exval; /**< Exit status code. */ + int cmd; /**< Command. */ + int curdi; /**< Flag: Processing the current directory. */ +} DKCT_J; + + + +#include "dkct-tr.h" +#include "dkct-to.h" +#include "dkct-gui.h" +#include "dkct-str.h" + + + +/** Buffer size for input lines. +*/ +#define DKCT_LINE_SIZE 4096 + + +#endif + |