mirror of https://github.com/ecmwf/eccodes.git
Clean up
This commit is contained in:
parent
ad106d77dd
commit
9c7fd259df
|
@ -7,7 +7,6 @@
|
|||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
# label Grib_section_2;
|
||||
# START grib1::section
|
||||
# SECTION 2, Grid description section
|
||||
# Length of section
|
||||
|
|
|
@ -82,7 +82,8 @@ static void init_class(grib_action_class* c)
|
|||
/* END_CLASS_IMP */
|
||||
|
||||
|
||||
grib_action* grib_action_create_gen( grib_context* context, const char* name, const char* op, const long len, grib_arguments* params, grib_arguments* default_value,int flags,const char* name_space,const char* set)
|
||||
grib_action* grib_action_create_gen(grib_context* context, const char* name, const char* op, const long len,
|
||||
grib_arguments* params, grib_arguments* default_value,int flags,const char* name_space,const char* set)
|
||||
{
|
||||
grib_action_gen* a = NULL;
|
||||
grib_action_class* c = grib_action_class_gen;
|
||||
|
@ -104,7 +105,6 @@ grib_action* grib_action_create_gen( grib_context* context, const char* name, co
|
|||
act->set = grib_context_strdup_persistent(context, set);
|
||||
act->default_value = default_value;
|
||||
|
||||
|
||||
return act;
|
||||
}
|
||||
|
||||
|
@ -127,12 +127,10 @@ static void xref( grib_action* act, FILE* f,const char *path)
|
|||
|
||||
fprintf(f,"bless({path=>'%s',size => %ld, name=> '%s', position=> %d, ",path, (long)a->len , act->name,position);
|
||||
|
||||
|
||||
fprintf(f," params=> [");
|
||||
grib_arguments_print(act->context,a->params,NULL);
|
||||
fprintf(f,"], flags=> {");
|
||||
|
||||
|
||||
F(GRIB_ACCESSOR_FLAG_READ_ONLY);
|
||||
F(GRIB_ACCESSOR_FLAG_DUMP);
|
||||
F(GRIB_ACCESSOR_FLAG_EDITION_SPECIFIC);
|
||||
|
@ -149,7 +147,6 @@ static void xref( grib_action* act, FILE* f,const char *path)
|
|||
F(GRIB_ACCESSOR_FLAG_LONG_TYPE);
|
||||
F(GRIB_ACCESSOR_FLAG_DOUBLE_TYPE);
|
||||
|
||||
|
||||
/* make sure all flags are processed */
|
||||
if(flg) { printf("FLG = %ld\n",(long)flg); }
|
||||
Assert(flg == 0);
|
||||
|
@ -157,7 +154,6 @@ static void xref( grib_action* act, FILE* f,const char *path)
|
|||
fprintf(f,"}, defaults=> [");
|
||||
grib_arguments_print(act->context,act->default_value,NULL);
|
||||
|
||||
|
||||
fprintf(f,"]}, 'xref::%s'),\n",act->op);
|
||||
}
|
||||
|
||||
|
@ -178,7 +174,6 @@ static int create_accessor( grib_section* p, grib_action* act, grib_loader *load
|
|||
return GRIB_SUCCESS;
|
||||
else
|
||||
return loader->init_accessor(loader,ga,act->default_value);
|
||||
|
||||
}
|
||||
|
||||
static int notify_change(grib_action* act, grib_accessor * notified, grib_accessor* changed)
|
||||
|
@ -188,7 +183,6 @@ static int notify_change(grib_action* act, grib_accessor * notified, grib_access
|
|||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static void destroy(grib_context* context,grib_action* act)
|
||||
{
|
||||
grib_action_gen* a = ( grib_action_gen*)act;
|
||||
|
@ -202,5 +196,4 @@ static void destroy(grib_context* context,grib_action* act)
|
|||
grib_context_free_persistent(context, act->name_space);
|
||||
if (act->set)
|
||||
grib_context_free_persistent(context, act->set);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue