getdata.h | getdata.h | |||
---|---|---|---|---|
/* src/getdata.h. Generated from getdata.ah by configure. */ | /* src/getdata.h. Generated from getdata.ah by configure. */ | |||
/* Copyright (C) 2002-2005 C. Barth Netterfield | /* Copyright (C) 2002-2005 C. Barth Netterfield | |||
* Copyright (C) 2003-2005 Theodore Kisner | * Copyright (C) 2003-2005 Theodore Kisner | |||
* Copyright (C) 2005-2012 D. V. Wiebe | * Copyright (C) 2005-2013 D. V. Wiebe | |||
* | * | |||
************************************************************************** * | ************************************************************************** * | |||
* | * | |||
* This file is part of the GetData project. | * This file is part of the GetData project. | |||
* | * | |||
* GetData is free software; you can redistribute it and/or modify it under | * GetData is free software; you can redistribute it and/or modify it under | |||
* the terms of the GNU Lesser General Public License as published by the | * the terms of the GNU Lesser General Public License as published by the | |||
* Free Software Foundation; either version 2.1 of the License, or (at your | * Free Software Foundation; either version 2.1 of the License, or (at your | |||
* option) any later version. | * option) any later version. | |||
* | * | |||
skipping to change at line 298 | skipping to change at line 298 | |||
/* Deprecated types */ | /* Deprecated types */ | |||
typedef int gd_bit_t; | typedef int gd_bit_t; | |||
typedef unsigned int gd_spf_t; | typedef unsigned int gd_spf_t; | |||
/* Data types -- No valid type may set 0x40 */ | /* Data types -- No valid type may set 0x40 */ | |||
#define GD_SIZE8 0x001 | #define GD_SIZE8 0x001 | |||
#define GD_SIZE16 0x002 | #define GD_SIZE16 0x002 | |||
#define GD_SIZE32 0x004 | #define GD_SIZE32 0x004 | |||
#define GD_SIZE64 0x008 | #define GD_SIZE64 0x008 | |||
#define GD_SIZE128 0x010 | #define GD_SIZE128 0x010 | |||
#define GD_SIZE(x) (x & 0x01f) | #define GD_SIZE(x) ((x) & 0x01f) | |||
#define GD_SIGNED 0x020 | #define GD_SIGNED 0x020 | |||
#define GD_IEEE754 0x080 | #define GD_IEEE754 0x080 | |||
#define GD_COMPLEX 0x100 | #define GD_COMPLEX 0x100 | |||
typedef enum { | typedef enum { | |||
GD_NULL = 0, | GD_NULL = 0, | |||
GD_UNKNOWN = 0xfa0, /* GD_SIZE(GD_UNKNOWN) MUST evaluate to zero */ | GD_UNKNOWN = 0xfa0, /* GD_SIZE(GD_UNKNOWN) MUST evaluate to zero */ | |||
GD_UINT8 = GD_SIZE8, | GD_UINT8 = GD_SIZE8, | |||
GD_INT8 = GD_SIZE8 | GD_SIGNED, | GD_INT8 = GD_SIZE8 | GD_SIGNED, | |||
skipping to change at line 337 | skipping to change at line 337 | |||
GD_WINDOP_EQ, | GD_WINDOP_EQ, | |||
GD_WINDOP_GE, | GD_WINDOP_GE, | |||
GD_WINDOP_GT, | GD_WINDOP_GT, | |||
GD_WINDOP_LE, | GD_WINDOP_LE, | |||
GD_WINDOP_LT, | GD_WINDOP_LT, | |||
GD_WINDOP_NE, | GD_WINDOP_NE, | |||
GD_WINDOP_SET, | GD_WINDOP_SET, | |||
GD_WINDOP_CLR | GD_WINDOP_CLR | |||
} gd_windop_t; | } gd_windop_t; | |||
struct _gd_private_entry; | struct gd_private_entry_; | |||
typedef union { | typedef union { | |||
gd_int64_t i; | gd_int64_t i; | |||
gd_uint64_t u; | gd_uint64_t u; | |||
double r; | double r; | |||
} gd_triplet_t; | } gd_triplet_t; | |||
/* ANSI C does not permit anonymous structs/unions */ | /* ANSI C does not permit anonymous structs/unions */ | |||
#ifdef GD_C89_API | #ifdef GD_C89_API | |||
# define GD_ANON(x) x | # define GD_ANON(x) x | |||
#else | #else | |||
# define GD_ANON(x) | # define GD_ANON(x) | |||
#endif | #endif | |||
/* Unified entry struct */ | /* Unified entry struct */ | |||
struct _gd_unified_entry { | struct gd_unified_entry_ { | |||
char *field; | char *field; | |||
gd_entype_t field_type; | gd_entype_t field_type; | |||
char *in_fields[GD_MAX_LINCOM]; | char *in_fields[GD_MAX_LINCOM]; | |||
char *scalar[GD_MAX_POLYORD + 1]; | char *scalar[GD_MAX_POLYORD + 1]; | |||
int scalar_ind[GD_MAX_POLYORD + 1]; | int scalar_ind[GD_MAX_POLYORD + 1]; | |||
int fragment_index; | int fragment_index; | |||
int comp_scal; | int comp_scal; | |||
int hidden; | int hidden; | |||
union { | union { | |||
struct { /* RAW */ | struct { /* RAW */ | |||
skipping to change at line 406 | skipping to change at line 406 | |||
struct { /* MPLEX */ | struct { /* MPLEX */ | |||
int count_val; | int count_val; | |||
int count_max; | int count_max; | |||
} GD_ANON(mplex); | } GD_ANON(mplex); | |||
struct { /* CONST */ | struct { /* CONST */ | |||
gd_type_t const_type; | gd_type_t const_type; | |||
size_t array_len; | size_t array_len; | |||
} GD_ANON(scalar); | } GD_ANON(scalar); | |||
} GD_ANON(u); | } GD_ANON(u); | |||
struct _gd_private_entry *e; | struct gd_private_entry_ *e; | |||
}; | }; | |||
typedef struct _gd_unified_entry gd_entry_t; | typedef struct gd_unified_entry_ gd_entry_t; | |||
/* The dirifle object */ | /* The dirifle object */ | |||
typedef struct _GD_DIRFILE DIRFILE; | typedef struct gd_dirfile_ DIRFILE; | |||
/* Parser callback objects */ | /* Parser callback objects */ | |||
struct _gd_callback_data { | struct gd_callback_data_ { | |||
const DIRFILE *dirfile; | const DIRFILE *dirfile; | |||
int suberror; | int suberror; | |||
int linenum; | int linenum; | |||
const char *filename; | const char *filename; | |||
char *line; | char *line; | |||
size_t buflen; | size_t buflen; | |||
}; | }; | |||
/* the carray list object */ | /* the carray list object */ | |||
struct _gd_carray_data { | struct gd_carray_data_ { | |||
size_t n; | size_t n; | |||
void *d; | void *d; | |||
}; | }; | |||
typedef struct _gd_carray_data gd_carray_t; | typedef struct gd_carray_data_ gd_carray_t; | |||
typedef struct _gd_callback_data gd_parser_data_t; | typedef struct gd_callback_data_ gd_parser_data_t; | |||
typedef int (*gd_parser_callback_t)(gd_parser_data_t*, void*); | typedef int (*gd_parser_callback_t)(gd_parser_data_t*, void*); | |||
/* dirfile_flags --- 0xF0000000 are reserved */ | /* dirfile_flags --- 0xF0000000 are reserved */ | |||
#define GD_ACCMODE 0x00000001 /* mask */ | #define GD_ACCMODE 0x00000001 /* mask */ | |||
#define GD_RDONLY 0x00000000 /* open read only */ | #define GD_RDONLY 0x00000000 /* open read only */ | |||
#define GD_RDWR 0x00000001 /* open read/write */ | #define GD_RDWR 0x00000001 /* open read/write */ | |||
#define GD_FORCE_ENDIAN 0x00000002 /* override endianness */ | #define GD_FORCE_ENDIAN 0x00000002 /* override endianness */ | |||
#define GD_BIG_ENDIAN 0x00000004 /* assume big-endian raw data */ | #define GD_BIG_ENDIAN 0x00000004 /* assume big-endian raw data */ | |||
End of changes. 11 change blocks. | ||||
11 lines changed or deleted | 11 lines changed or added | |||