mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
ce290d3459
The DAP code compiles constraints into an internal tree form. When it goes to fetch data, it converts that tree form into a string suitable for use in a url. The tree->string code was using '<' when it should be using '<=' and vice versa. The fix is to make sure the right operator is used.
32 lines
800 B
C
32 lines
800 B
C
/*********************************************************************
|
|
* Copyright 1993, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
*********************************************************************/
|
|
/* $Header$ */
|
|
|
|
#ifndef CECONSTRAINTS_H
|
|
#define CECONSTRAINTS_H
|
|
|
|
#ifndef NC_MAX_VAR_DIMS
|
|
#define NC_MAX_VAR_DIMS 1024
|
|
#endif
|
|
|
|
typedef enum CEops {
|
|
CEO_NIL=0,CEO_EQ=1,CEO_NEQ=2,CEO_GE=3,CEO_GT=4,CEO_LE=5,CEO_LT=6,CEO_RE=7
|
|
} CEops;
|
|
|
|
/* Must match CEops */
|
|
#define OPSTRINGS {"?","=","!=",">=",">","<=","<","=~"}
|
|
|
|
typedef enum CEsort {
|
|
CES_NIL=0,
|
|
CES_STR=8,CES_INT=9,CES_FLOAT=10,
|
|
CES_VAR=11,CES_FCN=12,CES_CONST=13,
|
|
CES_SELECT=14, CES_PROJECT=15,
|
|
CES_SEGMENT=16, CES_CONSTRAINT=17,
|
|
CES_VALUE=18, CES_SLICE=19
|
|
} CEsort;
|
|
|
|
#endif /*CECONSTRAINTS_H*/
|
|
|