Work on memfs

This commit is contained in:
Baudouin Raoult 2016-06-18 18:01:59 +01:00
parent dc378c3fdb
commit 8d6f29c7c1
3 changed files with 10 additions and 8 deletions

View File

@ -98,4 +98,13 @@
#cmakedefine HAVE_MEMFS #cmakedefine HAVE_MEMFS
#ifdef HAVE_MEMFS
#undef ECCODES_DEFINITION_PATH
#define ECCODES_DEFINITION_PATH "/MEMFS/definitions"
#undef ECCODES_SAMPLES_PATH
#define ECCODES_SAMPLES_PATH "/MEMFS/samples"
#undef ECCODES_IFS_SAMPLES_PATH
#define ECCODES_IFS_SAMPLES_PATH "/MEMFS/ifs_samples"
#endif
#endif /* eccodes_config_h */ #endif /* eccodes_config_h */

View File

@ -166,7 +166,7 @@ for n in NAMES:
""" % (n,), file=g) """ % (n,), file=g)
print(""" print("""
/*printf("%s ===> %s\\n", path, start);*/ /* printf("%s ===> %s\\n", path, start); */
if(start == NULL) { if(start == NULL) {
return NULL; return NULL;
} }

View File

@ -416,13 +416,6 @@ grib_context* grib_context_get_default()
default_grib_context.log_stream=stdout; default_grib_context.log_stream=stdout;
} }
#ifdef HAVE_MEMFS
if(!default_grib_context.grib_samples_path)
default_grib_context.grib_samples_path = "<memfs>";
if(!default_grib_context.grib_definition_files_path)
default_grib_context.grib_definition_files_path = "<memfs>";
#endif
#ifdef ECCODES_SAMPLES_PATH #ifdef ECCODES_SAMPLES_PATH
if(!default_grib_context.grib_samples_path) if(!default_grib_context.grib_samples_path)
default_grib_context.grib_samples_path = ECCODES_SAMPLES_PATH ; default_grib_context.grib_samples_path = ECCODES_SAMPLES_PATH ;