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,
|
|
|
|
LIBAB_UNEXPECTED
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum libab_result_e libab_result;
|
|
|
|
|
|
|
|
#endif
|