File: dalan.h

package info (click to toggle)
socat 1.7.3.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 3,888 kB
  • sloc: ansic: 28,032; sh: 11,782; makefile: 146
file content (30 lines) | stat: -rw-r--r-- 980 bytes parent folder | download
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
/* source: dalan.h */
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
/* Published under the GNU General Public License V.2, see file COPYING */

#ifndef __dalan_h_included
#define __dalan_h_included 1

#include "mytypes.h"

/* machine properties and command line options */
struct dalan_opts_s {
  int c_int;		/* natural int size / C int size */
  int c_short;		/* C short size */
  int c_long;		/* C long size */
  int c_char;		/* C char size */
  int c_float;		/* C float size */
  int c_double;		/* C double size */
  int maxalign;		/* maximal alignment (double after char) */
  int minalign;		/* minimal alignment (char after char) */
  int byteorder;	/* 0: Motorola, network, big endian; 1: Intel, little
			   endian */
} ;

extern struct dalan_opts_s dalan_opts;

extern void dalan_init(void);
extern struct dalan_opts_s *dalan_props(void);
extern int dalan(const char *line, char *data, size_t *p, size_t n);

#endif /* !defined(__dalan_h_included) */