From: Gabriel Corona Date: Fri, 27 May 2016 13:42:59 +0000 (+0200) Subject: Name parameters in function declarations X-Git-Tag: v3_14~1136^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/546888e0918a3cda4cd2ffb5786f67dda3883a81 Name parameters in function declarations --- diff --git a/src/simix/ContextRaw.cpp b/src/simix/ContextRaw.cpp index 10330cbd09..4a34afa30f 100644 --- a/src/simix/ContextRaw.cpp +++ b/src/simix/ContextRaw.cpp @@ -61,7 +61,7 @@ public: RawContextFactory(); ~RawContextFactory() override; RawContext* create_context(std::function code, - void_pfn_smxprocess_t, smx_process_t process) override; + void_pfn_smxprocess_t cleanup, smx_process_t process) override; void run_all() override; private: void run_all_adaptative(); diff --git a/src/simix/ContextUnix.cpp b/src/simix/ContextUnix.cpp index ebdd9b075a..922631f445 100644 --- a/src/simix/ContextUnix.cpp +++ b/src/simix/ContextUnix.cpp @@ -116,7 +116,7 @@ public: UContextFactory(); ~UContextFactory() override; Context* create_context(std::function code, - void_pfn_smxprocess_t, smx_process_t process) override; + void_pfn_smxprocess_t cleanup, smx_process_t process) override; void run_all() override; }; diff --git a/src/simix/popping_private.h b/src/simix/popping_private.h index 93f0bfee5e..e8e76b7196 100644 --- a/src/simix/popping_private.h +++ b/src/simix/popping_private.h @@ -55,9 +55,9 @@ typedef struct s_smx_simcall { /******************************** General *************************************/ -XBT_PRIVATE void SIMIX_simcall_answer(smx_simcall_t); -XBT_PRIVATE void SIMIX_simcall_handle(smx_simcall_t, int); -XBT_PRIVATE void SIMIX_simcall_exit(smx_synchro_t); +XBT_PRIVATE void SIMIX_simcall_answer(smx_simcall_t simcall); +XBT_PRIVATE void SIMIX_simcall_handle(smx_simcall_t simcall, int value); +XBT_PRIVATE void SIMIX_simcall_exit(smx_synchro_t synchro); XBT_PRIVATE const char *SIMIX_simcall_name(e_smx_simcall_t kind); XBT_PRIVATE void SIMIX_run_kernel(std::function const* code); diff --git a/src/simix/smx_network_private.h b/src/simix/smx_network_private.h index 55fc6990fa..6eaa039956 100644 --- a/src/simix/smx_network_private.h +++ b/src/simix/smx_network_private.h @@ -30,7 +30,7 @@ XBT_PRIVATE void SIMIX_mbox_remove(smx_mailbox_t mbox, smx_synchro_t comm); XBT_PRIVATE void SIMIX_mbox_set_receiver(smx_mailbox_t mbox, smx_process_t proc); XBT_PRIVATE smx_synchro_t SIMIX_comm_irecv(smx_process_t dst_proc, smx_mailbox_t mbox, void *dst_buff, size_t *dst_buff_size, - int (*)(void *, void *, smx_synchro_t), + int (*match_fun)(void *, void *, smx_synchro_t), void (*copy_data_fun)(smx_synchro_t, void*, size_t), void *data, double rate); XBT_PRIVATE smx_synchro_t SIMIX_comm_iprobe(smx_process_t dst_proc, smx_mailbox_t mbox, int type, int src, diff --git a/src/simix/smx_process_private.h b/src/simix/smx_process_private.h index 7f6172dd80..da6cf695fd 100644 --- a/src/simix/smx_process_private.h +++ b/src/simix/smx_process_private.h @@ -119,8 +119,8 @@ XBT_PRIVATE void SIMIX_process_sleep_destroy(smx_synchro_t synchro); XBT_PRIVATE void SIMIX_process_auto_restart_set(smx_process_t process, int auto_restart); XBT_PRIVATE smx_process_t SIMIX_process_restart(smx_process_t process, smx_process_t issuer); -void SIMIX_segment_index_set(smx_process_t, int); -extern void (*SMPI_switch_data_segment)(int); +void SIMIX_segment_index_set(smx_process_t process, int segment_index); +extern void (*SMPI_switch_data_segment)(int dest); SG_END_DECL()