struct cf_journal_item {
struct cf_journal_item *prev;
byte *ptr;
- uns len;
+ uint len;
byte copy[0];
};
}
void
-cf_journal_block(void *ptr, uns len)
+cf_journal_block(void *ptr, uint len)
{
struct cf_context *cc = cf_get_context();
if (!cc->enable_journal)
{
prev = curr->prev;
curr->prev = next;
- for (uns i=0; i<curr->len; i++)
+ for (uint i=0; i<curr->len; i++)
{
byte x = curr->copy[i];
curr->copy[i] = curr->ptr[i];
}
struct cf_journal_item *
-cf_journal_new_transaction(uns new_pool)
+cf_journal_new_transaction(uint new_pool)
{
struct cf_context *cc = cf_get_context();
if (new_pool)
}
void
-cf_journal_commit_transaction(uns new_pool, struct cf_journal_item *oldj)
+cf_journal_commit_transaction(uint new_pool, struct cf_journal_item *oldj)
{
struct cf_context *cc = cf_get_context();
if (new_pool)
}
void
-cf_journal_rollback_transaction(uns new_pool, struct cf_journal_item *oldj)
+cf_journal_rollback_transaction(uint new_pool, struct cf_journal_item *oldj)
{
struct cf_context *cc = cf_get_context();
if (!cc->enable_journal)