2018-02-10 16:01:01 -08:00
|
|
|
#ifndef LIBABACUS_UTIL_H
|
|
|
|
#define LIBABACUS_UTIL_H
|
|
|
|
|
|
|
|
#include "libds.h"
|
|
|
|
#include "liblex.h"
|
2018-02-11 22:32:42 -08:00
|
|
|
#include "result.h"
|
2018-02-10 16:01:01 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts a result code from liblex to libabacus.
|
|
|
|
* @param to_convert the code to convert.
|
|
|
|
* @return the libabacus equivalent of the error code.
|
|
|
|
*/
|
2018-02-11 21:09:41 -08:00
|
|
|
libab_result libab_convert_lex_result(liblex_result to_convert);
|
2018-02-10 16:01:01 -08:00
|
|
|
/**
|
|
|
|
* Converts a result code from libds to libabacus.
|
|
|
|
* @param to_convert the code to convert.
|
|
|
|
* @return the libabacus equivalent of the error code.
|
|
|
|
*/
|
2018-02-11 21:09:41 -08:00
|
|
|
libab_result libab_convert_ds_result(libds_result to_convert);
|
2018-02-10 16:01:01 -08:00
|
|
|
|
|
|
|
#endif
|