File: xio-streams.h

package info (click to toggle)
socat 1.7.1.3-1.4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,752 kB
  • sloc: ansic: 25,895; sh: 9,539; makefile: 140
file content (40 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (5)
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
/* source: xio-streams.h */
/* Copyright Gerhard Rieger 2008 */
/* Published under the GNU General Public License V.2, see file COPYING */

/* when including this file select one part that you need by defining the
   appropriate CPP define: 

   (none): standard define, variable, and function declarations
   ENABLE_OPTCODE: option codes for use in enum e_optcode
   ENABLE_OFUNC: option functions for use in enum e_func
*/

#ifdef ENABLE_OPTCODE

#if 0
enum {	/* make syntax feature of editors cooperative */
#endif
   OPT_STREAMS_I_POP_ALL,	/* with POSIX STREAMS */
   OPT_STREAMS_I_PUSH,	/* with POSIX STREAMS */
#if 0
} ;
#endif

#elif defined(ENABLE_OFUNC)

#if 0
enum {	/* make syntax feature of editors cooperative */
#endif
   OFUNC_STREAMS_I_POP_ALL,
   OFUNC_STREAMS_I_PUSH,
#if 0
} ;
#endif

#else	/* normal declarations */

extern const struct optdesc opt_streams_i_pop_all;
extern const struct optdesc opt_streams_i_push;

#endif