2008-01-28 21:37:16 +00:00
|
|
|
/* source: dalan.h */
|
2016-07-22 06:54:31 +00:00
|
|
|
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
|
2008-01-27 12:00:08 +00:00
|
|
|
/* 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);
|
2020-12-29 15:45:33 +00:00
|
|
|
extern int dalan(const char *line, uint8_t *data, size_t *p, size_t n, char deflt);
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
#endif /* !defined(__dalan_h_included) */
|