src/biu/qrng/gsl_errno.h File Reference
#include <stdio.h>
#include <errno.h>
#include "biu/qrng/gsl_types.h"
Include dependency graph for gsl_errno.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | __BEGIN_DECLS |
#define | __END_DECLS |
#define | GSL_ERROR(reason, gsl_errno) |
#define | GSL_ERROR_NULL(reason, gsl_errno) GSL_ERROR_VAL(reason, gsl_errno, 0) |
#define | GSL_ERROR_SELECT_2(a, b) ((a) != GSL_SUCCESS ? (a) : ((b) != GSL_SUCCESS ? (b) : GSL_SUCCESS)) |
#define | GSL_ERROR_SELECT_3(a, b, c) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_2(b,c)) |
#define | GSL_ERROR_SELECT_4(a, b, c, d) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_3(b,c,d)) |
#define | GSL_ERROR_SELECT_5(a, b, c, d, e) ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_4(b,c,d,e)) |
#define | GSL_ERROR_VAL(reason, gsl_errno, value) |
#define | GSL_ERROR_VOID(reason, gsl_errno) |
#define | GSL_STATUS_UPDATE(sp, s) do { if ((s) != GSL_SUCCESS) *(sp) = (s);} while(0) |
Typedefs | |
typedef void | gsl_error_handler_t (const char *reason, const char *file, int line, int gsl_errno) |
typedef void | gsl_stream_handler_t (const char *label, const char *file, int line, const char *reason) |
Enumerations | |
enum | { GSL_SUCCESS = 0, GSL_FAILURE = -1, GSL_CONTINUE = -2, GSL_EDOM = 1, GSL_ERANGE = 2, GSL_EFAULT = 3, GSL_EINVAL = 4, GSL_EFAILED = 5, GSL_EFACTOR = 6, GSL_ESANITY = 7, GSL_ENOMEM = 8, GSL_EBADFUNC = 9, GSL_ERUNAWAY = 10, GSL_EMAXITER = 11, GSL_EZERODIV = 12, GSL_EBADTOL = 13, GSL_ETOL = 14, GSL_EUNDRFLW = 15, GSL_EOVRFLW = 16, GSL_ELOSS = 17, GSL_EROUND = 18, GSL_EBADLEN = 19, GSL_ENOTSQR = 20, GSL_ESING = 21, GSL_EDIVERGE = 22, GSL_EUNSUP = 23, GSL_EUNIMPL = 24, GSL_ECACHE = 25, GSL_ETABLE = 26, GSL_ENOPROG = 27, GSL_ENOPROGJ = 28, GSL_ETOLF = 29, GSL_ETOLX = 30, GSL_ETOLG = 31, GSL_EOF = 32 } |
Functions | |
void | gsl_error (const char *reason, const char *file, int line, int gsl_errno) |
gsl_error_handler_t * | gsl_set_error_handler (gsl_error_handler_t *new_handler) |
gsl_error_handler_t * | gsl_set_error_handler_off (void) |
FILE * | gsl_set_stream (FILE *new_stream) |
gsl_stream_handler_t * | gsl_set_stream_handler (gsl_stream_handler_t *new_handler) |
void | gsl_stream_printf (const char *label, const char *file, int line, const char *reason) |
const char * | gsl_strerror (const int gsl_errno) |
Define Documentation
#define __BEGIN_DECLS |
Definition at line 33 of file gsl_errno.h.
#define __END_DECLS |
Definition at line 34 of file gsl_errno.h.
#define GSL_ERROR | ( | reason, | |||
gsl_errno | ) |
Value:
do { \ gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ return gsl_errno ; \ } while (0)
Definition at line 104 of file gsl_errno.h.
#define GSL_ERROR_NULL | ( | reason, | |||
gsl_errno | ) | GSL_ERROR_VAL(reason, gsl_errno, 0) |
Definition at line 129 of file gsl_errno.h.
#define GSL_ERROR_SELECT_2 | ( | a, | |||
b | ) | ((a) != GSL_SUCCESS ? (a) : ((b) != GSL_SUCCESS ? (b) : GSL_SUCCESS)) |
Definition at line 145 of file gsl_errno.h.
#define GSL_ERROR_SELECT_3 | ( | a, | |||
b, | |||||
c | ) | ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_2(b,c)) |
Definition at line 146 of file gsl_errno.h.
#define GSL_ERROR_SELECT_4 | ( | a, | |||
b, | |||||
c, | |||||
d | ) | ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_3(b,c,d)) |
Definition at line 147 of file gsl_errno.h.
#define GSL_ERROR_SELECT_5 | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e | ) | ((a) != GSL_SUCCESS ? (a) : GSL_ERROR_SELECT_4(b,c,d,e)) |
Definition at line 148 of file gsl_errno.h.
#define GSL_ERROR_VAL | ( | reason, | |||
gsl_errno, | |||||
value | ) |
Value:
do { \ gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ return value ; \ } while (0)
Definition at line 112 of file gsl_errno.h.
#define GSL_ERROR_VOID | ( | reason, | |||
gsl_errno | ) |
Value:
do { \ gsl_error (reason, __FILE__, __LINE__, gsl_errno) ; \ return ; \ } while (0)
Definition at line 121 of file gsl_errno.h.
#define GSL_STATUS_UPDATE | ( | sp, | |||
s | ) | do { if ((s) != GSL_SUCCESS) *(sp) = (s);} while(0) |
Definition at line 150 of file gsl_errno.h.
Typedef Documentation
typedef void gsl_error_handler_t(const char *reason, const char *file, int line, int gsl_errno) |
Definition at line 85 of file gsl_errno.h.
typedef void gsl_stream_handler_t(const char *label, const char *file, int line, const char *reason) |
Definition at line 88 of file gsl_errno.h.
Enumeration Type Documentation
anonymous enum |
- Enumerator:
Definition at line 39 of file gsl_errno.h.
Function Documentation
void gsl_error | ( | const char * | reason, | |
const char * | file, | |||
int | line, | |||
int | gsl_errno | |||
) |
gsl_error_handler_t* gsl_set_error_handler | ( | gsl_error_handler_t * | new_handler | ) |
gsl_error_handler_t* gsl_set_error_handler_off | ( | void | ) |
FILE* gsl_set_stream | ( | FILE * | new_stream | ) |
gsl_stream_handler_t* gsl_set_stream_handler | ( | gsl_stream_handler_t * | new_handler | ) |
void gsl_stream_printf | ( | const char * | label, | |
const char * | file, | |||
int | line, | |||
const char * | reason | |||
) |
const char* gsl_strerror | ( | const int | gsl_errno | ) |