2018-02-11 21:52:28 -08:00
|
|
|
#ifndef LIBABACUS_RESULT_H
|
|
|
|
#define LIBABACUS_RESULT_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An enum that represents the outcomes of
|
|
|
|
* libabacus functions that can fail.
|
|
|
|
*/
|
|
|
|
enum libab_result_e {
|
|
|
|
LIBAB_SUCCESS,
|
|
|
|
LIBAB_MALLOC,
|
|
|
|
LIBAB_BAD_PATTERN,
|
|
|
|
LIBAB_FAILED_MATCH,
|
2018-04-17 12:55:30 -07:00
|
|
|
LIBAB_UNKNOWN_TYPE,
|
|
|
|
LIBAB_BAD_TYPE,
|
2018-02-11 21:52:28 -08:00
|
|
|
LIBAB_EOF,
|
2018-05-22 13:03:14 -07:00
|
|
|
LIBAB_UNEXPECTED,
|
|
|
|
LIBAB_AMBIGOUS_TYPE,
|
2018-05-22 15:21:10 -07:00
|
|
|
LIBAB_MISMATCHED_TYPE,
|
|
|
|
LIBAB_BAD_CALL,
|
|
|
|
LIBAB_AMBIGOUS_CALL
|
2018-02-11 21:52:28 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum libab_result_e libab_result;
|
|
|
|
|
|
|
|
#endif
|