comparison include/urweb.h @ 1131:94e83c5533d2

Handling errors during commit
author Adam Chlipala <adamc@hcoop.net>
date Tue, 26 Jan 2010 14:59:19 -0500
parents e1cf925e2074
children b7118ffd32ae
comparison
equal deleted inserted replaced
1130:67d875c8ac71 1131:94e83c5533d2
40 void uw_commit(uw_context); 40 void uw_commit(uw_context);
41 int uw_rollback(uw_context); 41 int uw_rollback(uw_context);
42 42
43 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...); 43 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...);
44 char *uw_error_message(uw_context); 44 char *uw_error_message(uw_context);
45 void uw_set_error_message(uw_context, const char *); 45 void uw_set_error_message(uw_context, const char *fmt, ...);
46 int uw_has_error(uw_context);
46 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg); 47 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg);
47 void uw_pop_cleanup(uw_context); 48 void uw_pop_cleanup(uw_context);
48 49
49 void *uw_malloc(uw_context, size_t); 50 void *uw_malloc(uw_context, size_t);
50 void uw_begin_region(uw_context); 51 void uw_begin_region(uw_context);