Commit 1616b4aa authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

taxis_t: added name and longname

parent b02bc0e8
......@@ -32,6 +32,9 @@ char *strdup(const char *s);
#endif
#ifndef _CDI_H
# include "cdi.h"
#endif
#ifndef _ERROR_H
# include "error.h"
#endif
......
......@@ -107,21 +107,23 @@ void taxis_defaults(void)
static
void taxisDefaultValue ( taxis_t *taxisptr )
{
taxisptr->self = CDI_UNDEFID;
taxisptr->used = FALSE;
taxisptr->type = DefaultTimeType;
taxisptr->vdate = 0;
taxisptr->vtime = 0;
taxisptr->rdate = CDI_UNDEFID;
taxisptr->rtime = 0;
taxisptr->calendar = cdiDefaultCalendar;
taxisptr->unit = DefaultTimeUnit;
taxisptr->numavg = 0;
taxisptr->has_bounds = FALSE;
taxisptr->vdate_lb = 0;
taxisptr->vtime_lb = 0;
taxisptr->vdate_ub = 0;
taxisptr->vtime_ub = 0;
taxisptr->self = CDI_UNDEFID;
taxisptr->used = FALSE;
taxisptr->type = DefaultTimeType;
taxisptr->vdate = 0;
taxisptr->vtime = 0;
taxisptr->rdate = CDI_UNDEFID;
taxisptr->rtime = 0;
taxisptr->calendar = cdiDefaultCalendar;
taxisptr->unit = DefaultTimeUnit;
taxisptr->numavg = 0;
taxisptr->has_bounds = FALSE;
taxisptr->vdate_lb = 0;
taxisptr->vtime_lb = 0;
taxisptr->vdate_ub = 0;
taxisptr->vtime_ub = 0;
taxisptr->name[0] = 0;
taxisptr->longname[0] = 0;
}
static
......@@ -1218,6 +1220,9 @@ void ptaxisCopy(taxis_t *dest, taxis_t *source)
dest->vdate_ub = source->vdate_ub;
dest->vtime_ub = source->vtime_ub;
strcpy(dest->name, source->name);
strcpy(dest->longname, source->longname);
reshUnlock ();
}
......
......@@ -20,6 +20,8 @@ typedef struct {
int vtime_lb; /* lower bounds of vtime */
int vdate_ub; /* upper bounds of vdate */
int vtime_ub; /* upper bounds of vtime */
char name[CDI_MAX_NAME];
char longname[CDI_MAX_NAME];
}
taxis_t;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment