summaryrefslogtreecommitdiff
path: root/support/dktools/dkct.h
blob: 890048290be80995be7f97152e22aed0caa64666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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