| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( _LIBCSPLIT_INTERNAL_ERROR_H ) |
| 23 |
#define _LIBCSPLIT_INTERNAL_ERROR_H |
| 24 |
|
| 25 |
#include <common.h> |
| 26 |
#include <file_stream.h> |
| 27 |
#include <types.h> |
| 28 |
|
| 29 |
#if !defined( HAVE_LOCAL_LIBCSPLIT ) |
| 30 |
#include <libcsplit/error.h> |
| 31 |
#endif |
| 32 |
|
| 33 |
#include "libcsplit_extern.h" |
| 34 |
|
| 35 |
#if defined( __cplusplus ) |
| 36 |
extern "C" { |
| 37 |
#endif |
| 38 |
|
| 39 |
#if !defined( HAVE_LOCAL_LIBCSPLIT ) |
| 40 |
|
| 41 |
LIBCSPLIT_EXTERN \ |
| 42 |
void libcsplit_error_free( |
| 43 |
libcsplit_error_t **error ); |
| 44 |
|
| 45 |
LIBCSPLIT_EXTERN \ |
| 46 |
int libcsplit_error_fprint( |
| 47 |
libcsplit_error_t *error, |
| 48 |
FILE *stream ); |
| 49 |
|
| 50 |
LIBCSPLIT_EXTERN \ |
| 51 |
int libcsplit_error_sprint( |
| 52 |
libcsplit_error_t *error, |
| 53 |
char *string, |
| 54 |
size_t size ); |
| 55 |
|
| 56 |
LIBCSPLIT_EXTERN \ |
| 57 |
int libcsplit_error_backtrace_fprint( |
| 58 |
libcsplit_error_t *error, |
| 59 |
FILE *stream ); |
| 60 |
|
| 61 |
LIBCSPLIT_EXTERN \ |
| 62 |
int libcsplit_error_backtrace_sprint( |
| 63 |
libcsplit_error_t *error, |
| 64 |
char *string, |
| 65 |
size_t size ); |
| 66 |
|
| 67 |
#endif |
| 68 |
|
| 69 |
#if defined( __cplusplus ) |
| 70 |
} |
| 71 |
#endif |
| 72 |
|
| 73 |
#endif |
| 74 |
|