mirror of https://github.com/ecmwf/eccodes.git
Compilation with C++
This commit is contained in:
parent
03aad6aa3f
commit
5be01c3517
|
@ -1076,7 +1076,7 @@ void grib_math_delete(grib_context* c, grib_math* m);
|
||||||
grib_math* grib_math_new(grib_context* c, const char* formula, int* err);
|
grib_math* grib_math_new(grib_context* c, const char* formula, int* err);
|
||||||
|
|
||||||
/* grib_hash_keys.c */
|
/* grib_hash_keys.c */
|
||||||
const struct grib_keys_hash* grib_keys_hash_get(register const char *str, register size_t len);
|
const struct grib_keys_hash* grib_keys_hash_get(const char *str, size_t len);
|
||||||
grib_itrie* grib_hash_keys_new(grib_context* c, int* count);
|
grib_itrie* grib_hash_keys_new(grib_context* c, int* count);
|
||||||
void grib_hash_keys_delete(grib_itrie* t);
|
void grib_hash_keys_delete(grib_itrie* t);
|
||||||
int grib_hash_keys_get_id(grib_itrie* t, const char* key);
|
int grib_hash_keys_get_id(grib_itrie* t, const char* key);
|
||||||
|
|
|
@ -49,7 +49,7 @@ inline
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
static unsigned int
|
static unsigned int
|
||||||
hash_keys (register const char *str, register size_t len)
|
hash_keys (const char *str, size_t len)
|
||||||
{
|
{
|
||||||
static const unsigned short asso_values[] =
|
static const unsigned short asso_values[] =
|
||||||
{
|
{
|
||||||
|
@ -9396,7 +9396,7 @@ static const struct grib_keys_hash wordlist[] =
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct grib_keys_hash *
|
const struct grib_keys_hash *
|
||||||
grib_keys_hash_get (register const char *str, register size_t len)
|
grib_keys_hash_get (const char *str, size_t len)
|
||||||
{
|
{
|
||||||
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue