diff options
author | Thomas White <taw@physics.org> | 2020-07-30 10:16:37 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-30 10:17:12 +0200 |
commit | e14e413957b0c1e357167f43f129a6ef39ef5051 (patch) | |
tree | c26d0a6235091010138a9313bf2cfb8924903610 /libcrystfel/src/reflist.c | |
parent | f9a6d5ea442e074d1e61585b572837f80e2ddac9 (diff) |
Eliminate duplicate symbols
This makes searching easier, and also permits Meson's unity build mode.
Diffstat (limited to 'libcrystfel/src/reflist.c')
-rw-r--r-- | libcrystfel/src/reflist.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c index df8f24fc..d8741a2f 100644 --- a/libcrystfel/src/reflist.c +++ b/libcrystfel/src/reflist.c @@ -882,8 +882,11 @@ static Reflection *insert_node(Reflection *refl, Reflection *new) } -static void add_to_list(RefList *list, Reflection *new, - signed int h, signed int k, signed int l) +static void add_refl_to_list_real(RefList *list, + Reflection *new, + signed int h, + signed int k, + signed int l) { Reflection *f; @@ -929,7 +932,7 @@ Reflection *add_refl(RefList *list, signed int h, signed int k, signed int l) new = new_node(SERIAL(h, k, l)); if ( new == NULL ) return NULL; - add_to_list(list, new, h, k, l); + add_refl_to_list_real(list, new, h, k, l); return new; } @@ -948,7 +951,7 @@ void add_refl_to_list(Reflection *refl, RefList *list) get_indices(refl, &h, &k, &l); - add_to_list(list, refl, h, k, l); + add_refl_to_list_real(list, refl, h, k, l); } |