Commit 3dae6959 authored by Wesley Bland's avatar Wesley Bland Committed by Huiwei Lu
Browse files

Move mpir_errflag_t to mpitypedefs.h



Having mpir_errflag_t defined in mpiimpl.h causes a problem if it needs
to be used in some other headers. This moves the definition to
mpitypedefs.h so it can be used elsewhere.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent 6556f351
......@@ -720,14 +720,6 @@ extern MPID_Errhandler MPID_Errhandler_direct[];
} while (0)
/* ------------------------------------------------------------------------- */
/* Define a typedef for the errflag value used by many internal functions.
* If an error needs to be returned, these values can be used to signal such.
* More details can be found further down in the code with the bitmasking logic */
typedef enum {MPIR_ERR_NONE = MPI_SUCCESS,
MPIR_ERR_PROC_FAILED = MPIX_ERR_PROC_FAILED,
MPIR_ERR_OTHER = MPI_ERR_OTHER}
mpir_errflag_t;
/* ------------------------------------------------------------------------- */
/* Keyvals and attributes */
/*TKyOverview.tex
......
......@@ -68,6 +68,14 @@ typedef uint16_t MPIR_Context_id_t;
typedef MPIU_SIZE_T MPIU_Size_t;
/* Define a typedef for the errflag value used by many internal functions.
* If an error needs to be returned, these values can be used to signal such.
* More details can be found further down in the code with the bitmasking logic */
typedef enum {MPIR_ERR_NONE = MPI_SUCCESS,
MPIR_ERR_PROC_FAILED = MPIX_ERR_PROC_FAILED,
MPIR_ERR_OTHER = MPI_ERR_OTHER}
mpir_errflag_t;
/* Use the MPIU_PtrToXXX macros to convert pointers to and from integer types */
/* The Microsoft compiler will not allow casting of different sized types
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment