Skip to content
Snippets Groups Projects
Commit 7db18c88 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Use bool for two-state value.

parent 5469ff06
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
#include "error.h"
#endif
#include <stdbool.h>
#include <stddef.h> /* size_t */
#ifndef CDI_LIMITS_H
......@@ -46,6 +47,7 @@ typedef struct
{
bool isUsed;
bool flag;
bool lvalidrange;
short xyz; /* order of spatial dimensions,
* a permutation of 123 */
int mvarID;
......@@ -62,7 +64,6 @@ typedef struct
int timave;
int nsb; // Number of significant bits
bool missvalused; // true if missval is defined
bool lvalidrange;
double missval;
double validrange[2];
levinfo_t *levinfo;
......
......@@ -14,6 +14,7 @@ vlistvarInitEntry(int vlistID, int varID)
{
vlist_t *vlistptr = vlist_to_pointer(vlistID);
vlistptr->vars[varID].lvalidrange = false;
vlistptr->vars[varID].fvarID = varID;
vlistptr->vars[varID].mvarID = varID;
vlistptr->vars[varID].flag = 0;
......@@ -39,7 +40,6 @@ vlistvarInitEntry(int vlistID, int varID)
for (int i = 0; i < MAX_KEYS; ++i) vlistptr->vars[varID].keys.value[i].length = 0;
vlistptr->vars[varID].atts.nalloc = MAX_ATTRIBUTES;
vlistptr->vars[varID].atts.nelems = 0;
vlistptr->vars[varID].lvalidrange = false;
vlistptr->vars[varID].validrange[0] = VALIDMISS;
vlistptr->vars[varID].validrange[1] = VALIDMISS;
vlistptr->vars[varID].iorank = CDI_UNDEFID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment