#include "history.h"
#include "str.h"
-#include "system/error.h"
#include "system/lt.h"
#include "system/nth_alloc.h"
nth_alloc(sizeof(History)),
free);
if (history == NULL) {
- throw_error(ERROR_TYPE_LIBC);
RETURN_LT(lt, NULL);
}
history->lt = lt;
history->buffer = PUSH_LT(lt, nth_calloc(capacity, sizeof(char*)), free);
if (history->buffer == NULL) {
- throw_error(ERROR_TYPE_LIBC);
RETURN_LT(lt, NULL);
}