Compiler warnings

This commit is contained in:
shahramn 2024-08-30 15:27:35 +01:00
parent 67cb699e08
commit 1f8206a111
45 changed files with 342 additions and 421 deletions

View File

@ -17,20 +17,17 @@ MEMBERS
extern grib_action_class* SUPER;
static grib_action_class _grib_action_class_NAME = {
&SUPER, /* super */
"action_class_NAME", /* name */
sizeof(grib_action_NAME), /* size */
0, /* inited */
&SUPER, /* super */
"action_class_NAME", /* name */
sizeof(grib_action_NAME), /* size */
0, /* inited */
&init_class, /* init_class */
&init, /* init */
&init, /* init */
&destroy, /* destroy */
&dump, /* dump */
&xref, /* xref */
&create_accessor, /* create_accessor*/
&notify_change, /* notify_change */
&dump, /* dump */
&xref, /* xref */
&create_accessor, /* create_accessor */
&notify_change, /* notify_change */
&reparse, /* reparse */
&execute, /* execute */
};

View File

@ -49,20 +49,17 @@ typedef struct grib_action_alias {
static grib_action_class _grib_action_class_alias = {
0, /* super */
"action_class_alias", /* name */
sizeof(grib_action_alias), /* size */
0, /* inited */
0, /* super */
"action_class_alias", /* name */
sizeof(grib_action_alias), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -49,20 +49,17 @@ typedef struct grib_action_assert {
static grib_action_class _grib_action_class_assert = {
0, /* super */
"action_class_assert", /* name */
sizeof(grib_action_assert), /* size */
0, /* inited */
0, /* super */
"action_class_assert", /* name */
sizeof(grib_action_assert), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
&notify_change, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
&notify_change, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -43,20 +43,17 @@ typedef struct grib_action_close {
static grib_action_class _grib_action_class_close = {
0, /* super */
"action_class_close", /* name */
sizeof(grib_action_close), /* size */
0, /* inited */
0, /* super */
"action_class_close", /* name */
sizeof(grib_action_close), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -60,20 +60,17 @@ typedef struct grib_action_concept {
extern grib_action_class* grib_action_class_gen;
static grib_action_class _grib_action_class_concept = {
&grib_action_class_gen, /* super */
"action_class_concept", /* name */
sizeof(grib_action_concept), /* size */
0, /* inited */
&grib_action_class_gen, /* super */
"action_class_concept", /* name */
sizeof(grib_action_concept), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -54,20 +54,17 @@ typedef struct grib_action_gen {
static grib_action_class _grib_action_class_gen = {
0, /* super */
"action_class_gen", /* name */
sizeof(grib_action_gen), /* size */
0, /* inited */
0, /* super */
"action_class_gen", /* name */
sizeof(grib_action_gen), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
&notify_change, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
&notify_change, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -61,20 +61,17 @@ typedef struct grib_action_hash_array {
extern grib_action_class* grib_action_class_gen;
static grib_action_class _grib_action_class_hash_array = {
&grib_action_class_gen, /* super */
"action_class_hash_array", /* name */
sizeof(grib_action_hash_array), /* size */
0, /* inited */
&grib_action_class_gen, /* super */
"action_class_hash_array", /* name */
sizeof(grib_action_hash_array), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -61,20 +61,17 @@ typedef struct grib_action_if {
extern grib_action_class* grib_action_class_section;
static grib_action_class _grib_action_class_if = {
&grib_action_class_section, /* super */
"action_class_if", /* name */
sizeof(grib_action_if), /* size */
0, /* inited */
&grib_action_class_section, /* super */
"action_class_if", /* name */
sizeof(grib_action_if), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
&reparse, /* reparse */
&execute, /* execute */
};

View File

@ -56,20 +56,17 @@ typedef struct grib_action_list {
extern grib_action_class* grib_action_class_section;
static grib_action_class _grib_action_class_list = {
&grib_action_class_section, /* super */
"action_class_list", /* name */
sizeof(grib_action_list), /* size */
0, /* inited */
&grib_action_class_section, /* super */
"action_class_list", /* name */
sizeof(grib_action_list), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
&reparse, /* reparse */
0, /* execute */
};

View File

@ -51,20 +51,17 @@ typedef struct grib_action_meta {
extern grib_action_class* grib_action_class_gen;
static grib_action_class _grib_action_class_meta = {
&grib_action_class_gen, /* super */
"action_class_meta", /* name */
sizeof(grib_action_meta), /* size */
0, /* inited */
&grib_action_class_gen, /* super */
"action_class_meta", /* name */
sizeof(grib_action_meta), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
0, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -49,20 +49,17 @@ typedef struct grib_action_modify {
static grib_action_class _grib_action_class_modify = {
0, /* super */
"action_class_modify", /* name */
sizeof(grib_action_modify), /* size */
0, /* inited */
0, /* super */
"action_class_modify", /* name */
sizeof(grib_action_modify), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -44,20 +44,17 @@ typedef struct grib_action_noop {
static grib_action_class _grib_action_class_noop = {
0, /* super */
"action_class_noop", /* name */
sizeof(grib_action_noop), /* size */
0, /* inited */
0, /* super */
"action_class_noop", /* name */
sizeof(grib_action_noop), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -48,20 +48,17 @@ typedef struct grib_action_print {
static grib_action_class _grib_action_class_print = {
0, /* super */
"action_class_print", /* name */
sizeof(grib_action_print), /* size */
0, /* inited */
0, /* super */
"action_class_print", /* name */
sizeof(grib_action_print), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -49,20 +49,17 @@ typedef struct grib_action_remove {
static grib_action_class _grib_action_class_remove = {
0, /* super */
"action_class_remove", /* name */
sizeof(grib_action_remove), /* size */
0, /* inited */
0, /* super */
"action_class_remove", /* name */
sizeof(grib_action_remove), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -51,20 +51,17 @@ typedef struct grib_action_rename {
static grib_action_class _grib_action_class_rename = {
0, /* super */
"action_class_rename", /* name */
sizeof(grib_action_rename), /* size */
0, /* inited */
0, /* super */
"action_class_rename", /* name */
sizeof(grib_action_rename), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -44,20 +44,17 @@ typedef struct grib_action_section {
static grib_action_class _grib_action_class_section = {
0, /* super */
"action_class_section", /* name */
sizeof(grib_action_section), /* size */
0, /* inited */
0, /* super */
"action_class_section", /* name */
sizeof(grib_action_section), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
0, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
&notify_change, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
&notify_change, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -49,20 +49,17 @@ typedef struct grib_action_set {
static grib_action_class _grib_action_class_set = {
0, /* super */
"action_class_set", /* name */
sizeof(grib_action_set), /* size */
0, /* inited */
0, /* super */
"action_class_set", /* name */
sizeof(grib_action_set), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -47,20 +47,17 @@ typedef struct grib_action_set_darray {
static grib_action_class _grib_action_class_set_darray = {
0, /* super */
"action_class_set_darray", /* name */
sizeof(grib_action_set_darray), /* size */
0, /* inited */
0, /* super */
"action_class_set_darray", /* name */
sizeof(grib_action_set_darray), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -45,20 +45,17 @@ typedef struct grib_action_set_missing {
static grib_action_class _grib_action_class_set_missing = {
0, /* super */
"action_class_set_missing", /* name */
sizeof(grib_action_set_missing), /* size */
0, /* inited */
0, /* super */
"action_class_set_missing", /* name */
sizeof(grib_action_set_missing), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -47,20 +47,17 @@ typedef struct grib_action_set_sarray {
static grib_action_class _grib_action_class_set_sarray = {
0, /* super */
"action_class_set_sarray", /* name */
sizeof(grib_action_set_sarray), /* size */
0, /* inited */
0, /* super */
"action_class_set_sarray", /* name */
sizeof(grib_action_set_sarray), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -51,20 +51,17 @@ typedef struct grib_action_switch {
extern grib_action_class* grib_action_class_section;
static grib_action_class _grib_action_class_switch = {
&grib_action_class_section, /* super */
"action_class_switch", /* name */
sizeof(grib_action_switch), /* size */
0, /* inited */
&grib_action_class_section, /* super */
"action_class_switch", /* name */
sizeof(grib_action_switch), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -57,20 +57,17 @@ typedef struct grib_action_template {
extern grib_action_class* grib_action_class_section;
static grib_action_class _grib_action_class_template = {
&grib_action_class_section, /* super */
"action_class_template", /* name */
sizeof(grib_action_template), /* size */
0, /* inited */
&grib_action_class_section, /* super */
"action_class_template", /* name */
sizeof(grib_action_template), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
0, /* notify_change */
&reparse, /* reparse */
0, /* execute */
};

View File

@ -52,20 +52,17 @@ typedef struct grib_action_transient_darray {
extern grib_action_class* grib_action_class_gen;
static grib_action_class _grib_action_class_transient_darray = {
&grib_action_class_gen, /* super */
"action_class_transient_darray", /* name */
sizeof(grib_action_transient_darray), /* size */
0, /* inited */
&grib_action_class_gen, /* super */
"action_class_transient_darray", /* name */
sizeof(grib_action_transient_darray), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
&dump, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -48,20 +48,17 @@ typedef struct grib_action_variable {
extern grib_action_class* grib_action_class_gen;
static grib_action_class _grib_action_class_variable = {
&grib_action_class_gen, /* super */
"action_class_variable", /* name */
sizeof(grib_action_variable), /* size */
0, /* inited */
&grib_action_class_gen, /* super */
"action_class_variable", /* name */
sizeof(grib_action_variable), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
0, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -53,20 +53,17 @@ typedef struct grib_action_when {
static grib_action_class _grib_action_class_when = {
0, /* super */
"action_class_when", /* name */
sizeof(grib_action_when), /* size */
0, /* inited */
0, /* super */
"action_class_when", /* name */
sizeof(grib_action_when), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor*/
&notify_change, /* notify_change */
&dump, /* dump */
0, /* xref */
&create_accessor, /* create_accessor */
&notify_change, /* notify_change */
0, /* reparse */
0, /* execute */
};

View File

@ -47,20 +47,17 @@ typedef struct grib_action_write {
static grib_action_class _grib_action_class_write = {
0, /* super */
"action_class_write", /* name */
sizeof(grib_action_write), /* size */
0, /* inited */
0, /* super */
"action_class_write", /* name */
sizeof(grib_action_write), /* size */
0, /* inited */
&init_class, /* init_class */
0, /* init */
0, /* init */
&destroy, /* destroy */
0, /* dump */
0, /* xref */
0, /* create_accessor*/
0, /* notify_change */
0, /* dump */
0, /* xref */
0, /* create_accessor */
0, /* notify_change */
0, /* reparse */
&execute, /* execute */
};

View File

@ -2,7 +2,7 @@ typedef const char* string; /* to keep make_class.pl happy */
static void init(grib_expression* e);
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -18,12 +18,12 @@ typedef struct grib_expression_NAME{
extern grib_expression_class* SUPER;
static grib_expression_class _grib_expression_class_NAME = {
&SUPER, /* super */
"NAME", /* name */
sizeof(grib_expression_NAME),/* size of instance */
&SUPER, /* super */
"NAME", /* name */
sizeof(grib_expression_NAME),/* size of instance */
0, /* inited */
&init, /* constructor */
&destroy, /* destructor */
&init, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -74,7 +74,7 @@ static struct table_entry table[] = {
grib_section* grib_create_root_section(const grib_context* context, grib_handle* h)
{
char* fpath = 0;
const char* fpath = 0;
grib_section* s = (grib_section*)grib_context_malloc_clear(context, sizeof(grib_section));
GRIB_MUTEX_INIT_ONCE(&once, &init_mutex);

View File

@ -661,20 +661,19 @@ static int init_definition_files_dir(grib_context* c)
}
else {
/* Definitions path contains multiple directories */
char* dir = NULL;
dir = strtok_r(path, ECC_PATH_DELIMITER_STR, &lasts);
const char* dir = strtok_r(path, ECC_PATH_DELIMITER_STR, &lasts);
while (dir != NULL) {
if (next) {
next->next = (grib_string_list*)grib_context_malloc_clear_persistent(c, sizeof(grib_string_list));
next = next->next;
next = next->next;
}
else {
c->grib_definition_files_dir = (grib_string_list*)grib_context_malloc_clear_persistent(c, sizeof(grib_string_list));
next = c->grib_definition_files_dir;
next = c->grib_definition_files_dir;
}
next->value = codes_resolve_path(c, dir);
dir = strtok_r(NULL, ECC_PATH_DELIMITER_STR, &lasts);
dir = strtok_r(NULL, ECC_PATH_DELIMITER_STR, &lasts);
}
}
@ -1233,7 +1232,7 @@ void codes_assertion_failed(const char* message, const char* file, int line)
/* Default behaviour is to abort
* unless user has supplied his own assertion routine */
if (assertion == NULL) {
grib_context* c = grib_context_get_default();
const grib_context* c = grib_context_get_default();
fprintf(stderr, "ecCodes assertion failed: `%s' in %s:%d\n", message, file, line);
if (!c->no_abort) {
abort();

View File

@ -42,7 +42,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*, FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -60,12 +60,12 @@ typedef struct grib_expression_accessor{
static grib_expression_class _grib_expression_class_accessor = {
0, /* super */
"accessor", /* name */
sizeof(grib_expression_accessor),/* size of instance */
0, /* super */
"accessor", /* name */
sizeof(grib_expression_accessor),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -42,7 +42,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*, FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -60,12 +60,12 @@ typedef struct grib_expression_binop{
static grib_expression_class _grib_expression_class_binop = {
0, /* super */
"binop", /* name */
sizeof(grib_expression_binop),/* size of instance */
0, /* super */
"binop", /* name */
sizeof(grib_expression_binop),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -38,7 +38,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*, FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -52,12 +52,12 @@ typedef struct grib_expression_double{
static grib_expression_class _grib_expression_class_double = {
0, /* super */
"double", /* name */
sizeof(grib_expression_double),/* size of instance */
0, /* super */
"double", /* name */
sizeof(grib_expression_double),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -38,7 +38,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -52,12 +52,12 @@ typedef struct grib_expression_functor{
static grib_expression_class _grib_expression_class_functor = {
0, /* super */
"functor", /* name */
sizeof(grib_expression_functor),/* size of instance */
0, /* super */
"functor", /* name */
sizeof(grib_expression_functor),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -39,7 +39,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -56,12 +56,12 @@ typedef struct grib_expression_is_in_dict{
static grib_expression_class _grib_expression_class_is_in_dict = {
0, /* super */
"is_in_dict", /* name */
sizeof(grib_expression_is_in_dict),/* size of instance */
0, /* super */
"is_in_dict", /* name */
sizeof(grib_expression_is_in_dict),/* size of instance */
0, /* inited */
0, /* constructor */
0, /* destructor */
0, /* constructor */
0, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -41,7 +41,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -58,12 +58,12 @@ typedef struct grib_expression_is_in_list{
static grib_expression_class _grib_expression_class_is_in_list = {
0, /* super */
"is_in_list", /* name */
sizeof(grib_expression_is_in_list),/* size of instance */
0, /* super */
"is_in_list", /* name */
sizeof(grib_expression_is_in_list),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -42,7 +42,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*, FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -60,12 +60,12 @@ typedef struct grib_expression_is_integer{
static grib_expression_class _grib_expression_class_is_integer = {
0, /* super */
"is_integer", /* name */
sizeof(grib_expression_is_integer),/* size of instance */
0, /* super */
"is_integer", /* name */
sizeof(grib_expression_is_integer),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -42,7 +42,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -60,12 +60,12 @@ typedef struct grib_expression_length{
static grib_expression_class _grib_expression_class_length = {
0, /* super */
"length", /* name */
sizeof(grib_expression_length),/* size of instance */
0, /* super */
"length", /* name */
sizeof(grib_expression_length),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -39,7 +39,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*, FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -54,12 +54,12 @@ typedef struct grib_expression_logical_and{
static grib_expression_class _grib_expression_class_logical_and = {
0, /* super */
"logical_and", /* name */
sizeof(grib_expression_logical_and),/* size of instance */
0, /* super */
"logical_and", /* name */
sizeof(grib_expression_logical_and),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -39,7 +39,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -54,12 +54,12 @@ typedef struct grib_expression_logical_or{
static grib_expression_class _grib_expression_class_logical_or = {
0, /* super */
"logical_or", /* name */
sizeof(grib_expression_logical_or),/* size of instance */
0, /* super */
"logical_or", /* name */
sizeof(grib_expression_logical_or),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -38,7 +38,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -52,12 +52,12 @@ typedef struct grib_expression_long{
static grib_expression_class _grib_expression_class_long = {
0, /* super */
"long", /* name */
sizeof(grib_expression_long),/* size of instance */
0, /* super */
"long", /* name */
sizeof(grib_expression_long),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -37,7 +37,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static string evaluate_string(grib_expression*,grib_handle*,char*,size_t*,int*);
@ -50,12 +50,12 @@ typedef struct grib_expression_string{
static grib_expression_class _grib_expression_class_string = {
0, /* super */
"string", /* name */
sizeof(grib_expression_string),/* size of instance */
0, /* super */
"string", /* name */
sizeof(grib_expression_string),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -40,7 +40,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -56,12 +56,12 @@ typedef struct grib_expression_string_compare{
static grib_expression_class _grib_expression_class_string_compare = {
0, /* super */
"string_compare", /* name */
sizeof(grib_expression_string_compare),/* size of instance */
0, /* super */
"string_compare", /* name */
sizeof(grib_expression_string_compare),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -37,7 +37,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static string evaluate_string(grib_expression*,grib_handle*,char*,size_t*,int*);
@ -50,12 +50,12 @@ typedef struct grib_expression_sub_string{
static grib_expression_class _grib_expression_class_sub_string = {
0, /* super */
"sub_string", /* name */
sizeof(grib_expression_sub_string),/* size of instance */
0, /* super */
"sub_string", /* name */
sizeof(grib_expression_sub_string),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -37,7 +37,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static int native_type(grib_expression*,grib_handle*);
static int evaluate_long(grib_expression*,grib_handle*,long*);
@ -50,12 +50,12 @@ typedef struct grib_expression_true{
static grib_expression_class _grib_expression_class_true = {
0, /* super */
"true", /* name */
sizeof(grib_expression_true),/* size of instance */
0, /* super */
"true", /* name */
sizeof(grib_expression_true),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,

View File

@ -41,7 +41,7 @@ or edit "expression.class" and rerun ./make_class.pl
typedef const char* string; /* to keep make_class.pl happy */
static void destroy(grib_context*,grib_expression* e);
static void print(grib_context*,grib_expression*,grib_handle*,FILE*);
static void print(grib_context*, grib_expression*, grib_handle*, FILE*);
static void add_dependency(grib_expression* e, grib_accessor* observer);
static string get_name(grib_expression* e);
static int native_type(grib_expression*,grib_handle*);
@ -58,12 +58,12 @@ typedef struct grib_expression_unop{
static grib_expression_class _grib_expression_class_unop = {
0, /* super */
"unop", /* name */
sizeof(grib_expression_unop),/* size of instance */
0, /* super */
"unop", /* name */
sizeof(grib_expression_unop),/* size of instance */
0, /* inited */
0, /* constructor */
&destroy, /* destructor */
0, /* constructor */
&destroy, /* destructor */
&print,
&add_dependency,
&native_type,