diff options
author | Thomas White <taw@physics.org> | 2021-03-22 14:20:38 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-22 14:20:38 +0100 |
commit | cf4edf303603635833e7fe8d9efa216b35733c3f (patch) | |
tree | c95128354be21e0a449d53b728132fc4f7ee6c3a /tests/evparse7.c | |
parent | 214564b240fd2f54203bec72551af130ca3b4a92 (diff) |
Allow HDF5 path substitution when there are too many placeholder values
This allows, for example, masks which have fewer % signs in their HDF5
locations than the main data.
Diffstat (limited to 'tests/evparse7.c')
-rw-r--r-- | tests/evparse7.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/evparse7.c b/tests/evparse7.c index 26f2dc41..5817ce8e 100644 --- a/tests/evparse7.c +++ b/tests/evparse7.c @@ -3,11 +3,11 @@ * * Check that event string parsing works * - * Copyright © 2020 Deutsches Elektronen-Synchrotron DESY, - * a research centre of the Helmholtz Association. + * Copyright © 2020-2021 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. * * Authors: - * 2020 Thomas White <taw@physics.org> + * 2020-2021 Thomas White <taw@physics.org> * * This file is part of CrystFEL. * @@ -30,14 +30,14 @@ #include <string.h> #include <stdarg.h> -extern char *substitute_path(const char *ev, const char *pattern); +extern char *substitute_path(const char *ev, const char *pattern, int skip_ok); int main(int argc, char *argv[]) { char *subs; subs = substitute_path("cc/data123/bb//234/59", - "/data/%/test/%/%"); + "/data/%/test/%/%", 0); if ( subs == NULL ) { printf("substitute_path() failed\n"); |