1 /*
2 Copyright 2011-2020, Dirk Krause. All rights reserved.
3 SPDX-License-Identifier:	BSD-3-Clause
4 */
5 
6 #ifndef DKCT_H_INCLUDED
7 #define DKCT_H_INCLUDED 1
8 
9 #define	DKCT_STYLE_GCC		0
10 
11 
12 #include <libdk3c/dk3all.h>
13 #include <dkwt/dkt.h>
14 #if 0
15 #include <libdk3c/dkt-version.h>
16 #endif
17 #include <libdk4base/dk4vers.h>
18 
19 /**	Option set for dkct.
20  * 	The configuration dialog of dkwxtrace must set this.
21  */
22 typedef struct {
23   int		deb;	/**< Debug: 0=no debug, 1=file, 2=stdout. */
24   int		deben;	/**< Flag: Debugging enabled. */
25   int		lnn;	/**< Show line numbers. */
26   int		mak;	/**< Make mode. */
27   int		sty;	/**< Style for Output to stdout (DKCT_STYLE_xxx). */
28   int		bw;	/**< Box width. */
29   int		tkw;	/**< Flag: Add trace keyword. */
30   int		ts;	/**< Flag: Print timestamp. */
31   int		win;	/**< Flag: Add support for Windows wide chars. */
32   int		port;	/**< Flag: Produce portable output (implies win). */
33   int		tip;	/**< Flag: trace include printed. */
34   int		nowarn;	/**< Flag: Do not write warning at start of file. */
35   char		spls;	/**< Splint special character. */
36 } DKCT_OPTION_SET;
37 
38 
39 
40 /**	Job structure for dkct.
41 */
42 typedef struct {
43   DKCT_OPTION_SET	dkcto;	/**< Conversion options. */
44   dk3_app_t		*app;	/**< Application. */
45   dkChar const * const	*msg;	/**< Localized texts. */
46   dkChar const * const	*nlc;	/**< Non-localized keywords. */
47   dk3_option_set_t	*opt;	/**< Command line options. */
48   dkChar const		*sCwd;	/**< Current working directory. */
49   int			 exval;	/**< Exit status code. */
50   int			 cmd;	/**< Command. */
51   int			 curdi;	/**< Flag: Processing the current directory. */
52 } DKCT_J;
53 
54 
55 
56 #include <dkct/dkct-tr.h>
57 #include <dkct/dkct-to.h>
58 #include <dkct/dkct-gui.h>
59 #include <dkct/dkct-str.h>
60 
61 
62 
63 /**	Buffer size for input lines.
64 */
65 #define	DKCT_LINE_SIZE	4096
66 
67 
68 #endif
69 
70