Version 1.8.0.0
[socat.git] / xio-streams.h
blob89d976f3779b49b15f258bbaddd7e03b3e2f209f
1 /* source: xio-streams.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 /* when including this file select one part that you need by defining the
6 appropriate CPP define:
8 (none): standard define, variable, and function declarations
9 ENABLE_OPTCODE: option codes for use in enum e_optcode
10 ENABLE_OFUNC: option functions for use in enum e_func
13 #ifdef ENABLE_OPTCODE
15 #if 0
16 enum { /* make syntax feature of editors cooperative */
17 #endif
18 OPT_STREAMS_I_POP_ALL, /* with POSIX STREAMS */
19 OPT_STREAMS_I_PUSH, /* with POSIX STREAMS */
20 #if 0
21 } ;
22 #endif
24 #elif defined(ENABLE_OFUNC)
26 #if 0
27 enum { /* make syntax feature of editors cooperative */
28 #endif
29 OFUNC_STREAMS_I_POP_ALL,
30 OFUNC_STREAMS_I_PUSH,
31 #if 0
32 } ;
33 #endif
35 #else /* normal declarations */
37 extern const struct optdesc opt_streams_i_pop_all;
38 extern const struct optdesc opt_streams_i_push;
40 #endif