Skip to content

Commit c2f5dc4

Browse files
committed
Add argument names to callback function typedefs
1 parent fa6c3f6 commit c2f5dc4

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

mpi.h

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -446,32 +446,30 @@ enum {
446446
MPI_WIN_MODEL = 20005
447447
};
448448

449-
450-
typedef int (MPI_Copy_function)(MPI_Comm, int, void *, void *, void *, int *);
451-
typedef int (MPI_Delete_function)(MPI_Comm, int, void *, void *);
452-
453-
typedef void (MPI_User_function)(void *, void *, int *, MPI_Datatype *);
454-
typedef void (MPI_User_function_c)(void *, void *, MPI_Count *, MPI_Datatype *);
455-
456-
typedef int (MPI_Grequest_cancel_function)(void *, int);
457-
typedef int (MPI_Grequest_free_function)(void *);
458-
typedef int (MPI_Grequest_query_function)(void *, MPI_Status *);
459-
460-
typedef int (MPI_Datarep_conversion_function)(void *, MPI_Datatype, int, void *, MPI_Offset, void *);
461-
typedef int (MPI_Datarep_extent_function)(MPI_Datatype datatype, MPI_Aint *, void *);
462-
typedef int (MPI_Datarep_conversion_function_c)(void *, MPI_Datatype, MPI_Count, void *, MPI_Offset, void *);
463-
464-
typedef int (MPI_Comm_copy_attr_function)(MPI_Comm, int, void *, void *, void *, int *);
465-
typedef int (MPI_Comm_delete_attr_function)(MPI_Comm, int, void *, void *);
466-
typedef int (MPI_Type_copy_attr_function)(MPI_Datatype, int, void *, void *, void *, int *);
467-
typedef int (MPI_Type_delete_attr_function)(MPI_Datatype, int, void *, void *);
468-
typedef int (MPI_Win_copy_attr_function)(MPI_Win, int, void *, void *, void *, int *);
469-
typedef int (MPI_Win_delete_attr_function)(MPI_Win, int, void *, void *);
470-
471-
typedef void (MPI_Comm_errhandler_function)(MPI_Comm *, int *, ...);
472-
typedef void (MPI_File_errhandler_function)(MPI_File *, int *, ...);
473-
typedef void (MPI_Win_errhandler_function)(MPI_Win *, int *, ...);
474-
typedef void (MPI_Session_errhandler_function)(MPI_Session *, int *, ...);
449+
typedef void (MPI_User_function)(void *invec, void *inoutvec, int *len, MPI_Datatype *datatype);
450+
typedef void (MPI_User_function_c)(void *invec, void *inoutvec, MPI_Count *len, MPI_Datatype *datatype);
451+
452+
typedef int (MPI_Grequest_query_function)(void *extra_state, MPI_Status *status);
453+
typedef int (MPI_Grequest_free_function)(void *extra_state);
454+
typedef int (MPI_Grequest_cancel_function)(void *extra_state, int complete);
455+
456+
typedef int (MPI_Copy_function)(MPI_Comm comm, int keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
457+
typedef int (MPI_Delete_function)(MPI_Comm omm, int keyval, void *attribute_val, void *extra_state);
458+
typedef int (MPI_Comm_copy_attr_function)(MPI_Comm comm, int keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
459+
typedef int (MPI_Comm_delete_attr_function)(MPI_Comm comm, int keyval, void *attribute_val, void *extra_state);
460+
typedef int (MPI_Type_copy_attr_function)(MPI_Datatype datatype, int keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
461+
typedef int (MPI_Type_delete_attr_function)(MPI_Datatype datatype, int keyval, void *attribute_val, void *extra_state);
462+
typedef int (MPI_Win_copy_attr_function)(MPI_Win win, int keyval, void *extra_state, void *attribute_val_in, void *attribute_val_out, int *flag);
463+
typedef int (MPI_Win_delete_attr_function)(MPI_Win win, int keyval, void *attribute_val, void *extra_state);
464+
465+
typedef int (MPI_Datarep_extent_function)(MPI_Datatype datatype, MPI_Aint *extent, void *extra_state);
466+
typedef int (MPI_Datarep_conversion_function)(void *userbuf, MPI_Datatype datatype, int count, void *filebuf, MPI_Offset position, void *extra_state);
467+
typedef int (MPI_Datarep_conversion_function_c)(void *userbuf, MPI_Datatype datatype, MPI_Count count, void *filebuf, MPI_Offset position, void *extra_state);
468+
469+
typedef void (MPI_Comm_errhandler_function)(MPI_Comm *comm, int *error_code, ...);
470+
typedef void (MPI_File_errhandler_function)(MPI_File *file, int *error_code, ...);
471+
typedef void (MPI_Win_errhandler_function)(MPI_Win *win, int *error_code, ...);
472+
typedef void (MPI_Session_errhandler_function)(MPI_Session *session, int *error_code, ...);
475473

476474
typedef MPI_Comm_errhandler_function MPI_Comm_errhandler_fn;
477475
typedef MPI_File_errhandler_function MPI_File_errhandler_fn;

0 commit comments

Comments
 (0)