mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
7e582ad3f2
The code for handling character constants in datalists in ncgen has some problems. 1. It failed on large constants 2. It did not handle e.g. var = 'a', 'b', ... in the same way that ncgen3 did. 3. The code for generate.c and genchar.c needed some refactoring to make it a little simpler (but not simple).
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/*********************************************************************
|
|
* Copyright 2009, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
*********************************************************************/
|
|
|
|
#ifndef ODOM_H
|
|
#define ODOM_H 1
|
|
|
|
typedef struct Odometer {
|
|
int rank;
|
|
int offset;
|
|
struct Odometer* origin;
|
|
size_t start[NC_MAX_VAR_DIMS];
|
|
size_t count[NC_MAX_VAR_DIMS];
|
|
size_t index[NC_MAX_VAR_DIMS];
|
|
size_t declsize[NC_MAX_VAR_DIMS];
|
|
} Odometer;
|
|
|
|
/*Forward*/
|
|
struct Dimset;
|
|
|
|
/* Odometer operators*/
|
|
extern Odometer* newodometer(struct Dimset*, size_t* startp, size_t* countp);
|
|
extern Odometer* newsubodometer(Odometer*, struct Dimset*, int, int);
|
|
|
|
extern Odometer* newsubodometer(Odometer*, struct Dimset*,
|
|
int start, int stop);
|
|
|
|
extern void odometerfree(Odometer*);
|
|
extern char* odometerprint(Odometer* odom);
|
|
|
|
extern int odometermore(Odometer* odom);
|
|
extern int odometerincr(Odometer* odom);
|
|
extern size_t odometeroffset(Odometer* odom);
|
|
extern size_t* odometerstartvector(Odometer* odom);
|
|
extern size_t* odometercountvector(Odometer* odom);
|
|
|
|
#endif /*ODOM_H*/
|