From: compudj Date: Sat, 14 Aug 2004 21:15:52 +0000 (+0000) Subject: make inline correct -> must be static X-Git-Tag: v0.12.20~2729 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=04cd9a1e94f33a731da0871ab6c4edb3db37cc4d;p=lttv.git make inline correct -> must be static git-svn-id: http://ltt.polymtl.ca/svn@760 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/hook.h b/ltt/branches/poly/lttv/lttv/hook.h index 502ac5c8..77a5dd5f 100644 --- a/ltt/branches/poly/lttv/lttv/hook.h +++ b/ltt/branches/poly/lttv/lttv/hook.h @@ -144,7 +144,7 @@ unsigned lttv_hooks_by_id_max_id(LttvHooksById *h); /* Get the list of hooks for an id, NULL if none exists */ -inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id) +static inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id) { LttvHooks *ret; if(id < h->len) ret = h->pdata[id]; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h index 03cef7e7..f828c5d9 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/cfv.h @@ -34,13 +34,13 @@ guicontrolflow_destructor_full(ControlFlowData *control_flow_data); void guicontrolflow_destructor(ControlFlowData *control_flow_data); -inline GtkWidget *guicontrolflow_get_widget( +static inline GtkWidget *guicontrolflow_get_widget( ControlFlowData *control_flow_data) { return control_flow_data->top_widget ; } -inline ProcessList *guicontrolflow_get_process_list +static inline ProcessList *guicontrolflow_get_process_list (ControlFlowData *control_flow_data) { return control_flow_data->process_list ; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h index 02dd33e4..ce058111 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h @@ -157,7 +157,7 @@ tree_row_activated(GtkTreeModel *treemodel, * * Convert from window pixel and time interval to an absolute time. */ -inline void convert_pixels_to_time( +static inline void convert_pixels_to_time( gint width, guint x, TimeWindow time_window, @@ -172,7 +172,7 @@ inline void convert_pixels_to_time( } -inline void convert_time_to_pixels( +static inline void convert_time_to_pixels( TimeWindow time_window, LttTime time, int width, diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index 1a4f743e..f0c8fbdd 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -113,7 +113,7 @@ int processlist_remove(ProcessList *process_list, guint pid, guint cpu, LttTime *birth, guint trace_num); -inline guint processlist_get_height(ProcessList *process_list) +static inline guint processlist_get_height(ProcessList *process_list) { return get_cell_height(process_list, (GtkTreeView*)process_list->process_list_widget) @@ -121,7 +121,7 @@ inline guint processlist_get_height(ProcessList *process_list) } -inline HashedProcessData *processlist_get_process_data( +static inline HashedProcessData *processlist_get_process_data( ProcessList *process_list, guint pid, guint cpu, LttTime *birth, guint trace_num) { @@ -143,7 +143,7 @@ inline HashedProcessData *processlist_get_process_data( } -inline gint processlist_get_pixels_from_data( ProcessList *process_list, +static inline gint processlist_get_pixels_from_data( ProcessList *process_list, HashedProcessData *hashed_process_data, guint *y, guint *height) diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index 157ed164..1caf6a40 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -666,7 +666,7 @@ void lttvwindow_events_request_remove_all(Tab *tab, * @return time window. */ -inline TimeWindow lttvwindow_get_time_window(Tab *tab) +static inline TimeWindow lttvwindow_get_time_window(Tab *tab) { return tab->time_window; }