aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-07-24 16:07:15 +0200
committerThomas White <taw@physics.org>2014-09-05 18:12:38 +0200
commit792ced4946f4de585a6b2b12d850b42a3a049874 (patch)
tree874b88567b281a56043a24d151c39cdb605283e8 /libcrystfel/src
parentdc88e805ff86fed82f53b3a8574ddc7c63e3b1dc (diff)
Fussiness
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/events.c20
-rw-r--r--libcrystfel/src/events.h26
2 files changed, 16 insertions, 30 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c
index a6bf9f60..633c9677 100644
--- a/libcrystfel/src/events.c
+++ b/libcrystfel/src/events.c
@@ -149,7 +149,7 @@ int append_event_to_event_list(struct event_list *ev_list, struct event *ev)
}
-struct event* copy_event(struct event *ev)
+struct event *copy_event(struct event *ev)
{
struct event *new_ev;
@@ -182,11 +182,11 @@ struct event* copy_event(struct event *ev)
}
-extern struct event_list *copy_event_list(struct event_list *el)
+struct event_list *copy_event_list(struct event_list *el)
{
int ei;
struct event_list *el_copy;
- struct event ** events_copy;
+ struct event **events_copy;
el_copy = malloc(1);
if ( el_copy == NULL ) {
@@ -349,9 +349,9 @@ char *get_event_string(struct event *ev)
}
-struct event* get_event_from_event_string(char* ev_string)
+struct event *get_event_from_event_string(char *ev_string)
{
- struct event* ev;
+ struct event *ev;
char *ev_sep;
char buf_path[1024];
char buf_dim[1024];
@@ -434,7 +434,7 @@ struct event* get_event_from_event_string(char* ev_string)
}
-int push_path_entry_to_event(struct event *ev, const char * entry)
+int push_path_entry_to_event(struct event *ev, const char *entry)
{
char **new_path_entries;
@@ -528,8 +528,8 @@ int pop_dim_entry_from_event(struct event *ev)
}
-char *event_path_placeholder_subst(const char * entry,
- const char * data)
+char *event_path_placeholder_subst(const char *entry,
+ const char *data)
{
char *ph_loc;
@@ -575,7 +575,7 @@ char *retrieve_full_path(struct event *ev, const char *data)
}
-extern char *partial_event_substitution(struct event *ev, const char *data)
+char *partial_event_substitution(struct event *ev, const char *data)
{
int ei ;
char *return_value;
@@ -656,7 +656,7 @@ static int parse_dim_structure_val(const char *val)
int set_dim_structure_entry(struct dim_structure *hsd, const char *string_dim,
- const char *val_string)
+ const char *val_string)
{
int dim_entry;
diff --git a/libcrystfel/src/events.h b/libcrystfel/src/events.h
index 797df4d2..e6e5d840 100644
--- a/libcrystfel/src/events.h
+++ b/libcrystfel/src/events.h
@@ -70,16 +70,16 @@ struct dim_structure
};
extern struct event *initialize_event();
-extern int push_path_entry_to_event(struct event *ev, const char * entry);
+extern int push_path_entry_to_event(struct event *ev, const char *entry);
extern int pop_path_entry_from_event(struct event *ev);
extern int push_dim_entry_to_event(struct event *ev, int entry);
extern int pop_dim_entry_from_event(struct event *ev);
-extern struct event* copy_event(struct event *ev);
+extern struct event *copy_event(struct event *ev);
extern void free_event(struct event *ev);
-extern char *get_event_string(struct event * ev);
-extern struct event* get_event_from_event_string(char* ev_string);
-extern char *event_path_placeholder_subst(const char * ev_name,
- const char * data);
+extern char *get_event_string(struct event *ev);
+extern struct event *get_event_from_event_string(char *ev_string);
+extern char *event_path_placeholder_subst(const char *ev_name,
+ const char *data);
extern char *partial_event_substitution(struct event *ev, const char *data);
extern char *retrieve_full_path(struct event *ev, const char *data);
@@ -105,18 +105,4 @@ extern int set_dim_structure_entry(struct dim_structure *hsd,
extern void free_dim_structure_entry(struct dim_structure *hsd);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#endif /* EVENTS_H */