--- al.c 2002/10/18 08:58:19 1.19
+++ al.c 2002/10/18 09:09:18 1.20
@@ -835,6 +835,17 @@
}
/*
+ * assembly line traversal end
+ *
+ * to free resources allocated/locked during traversal
+ * currently a NOOP
+ */
+al_rc_t al_traverse_end(al_t *al, al_tx_t *tx, int final)
+{
+ return AL_OK;
+}
+
+/*
* full assembly line traversal with callback
*
* traversal is aborted when callback return != AL_OK
@@ -858,6 +869,8 @@
break;
}
+ (void) al_traverse_end(al, &tx, 1);
+
if (rc != AL_ERR_EOF)
return AL_RC(rc);
@@ -892,6 +905,8 @@
}
*lenp = total;
+ (void) al_traverse_end(al, &tx, 1);
+
if (rc != AL_ERR_EOF)
return AL_RC(rc);
@@ -918,6 +933,8 @@
al_append_bytes(tal, AL_CHUNK_PTR(view,0), step);
}
+ (void) al_traverse_end(al, &tx, 1);
+
if (rc != AL_ERR_EOF)
return AL_RC(rc);
|