Index: ossp-pkg/sio/al.c RCS File: /v/ossp/cvs/ossp-pkg/sio/Attic/al.c,v rcsdiff -q -kk '-r1.17' '-r1.18' -u '/v/ossp/cvs/ossp-pkg/sio/Attic/al.c,v' 2>/dev/null --- al.c 2002/10/17 14:16:51 1.17 +++ al.c 2002/10/17 15:02:49 1.18 @@ -1,5 +1,5 @@ /* -** OSSP al -- Assembly Lists +** OSSP al -- Assembly Line ** Copyright (c) 2002 The OSSP Project ** Copyright (c) 2002 Cable & Wireless Deutschland ** Copyright (c) 2002 Ralf S. Engelschall @@ -26,7 +26,7 @@ ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** -** al.c: assembly lists library implementation +** al.c: assembly line library implementation */ #include @@ -498,7 +498,7 @@ /****************************************************************************/ /* - * allocate an empty assembly list + * allocate an empty assembly line * dispose all chunks and all allocated backing store */ al_rc_t al_create(al_t **alp) @@ -509,7 +509,7 @@ if (alp == NULL) return AL_RC(AL_ERR_ARG); - /* allocate and initialize new assembly list object */ + /* allocate and initialize new assembly line object */ /* XXX - what malloc ? */ if ((al = (al_t *)malloc(sizeof(al_t))) == NULL) return AL_RC(AL_ERR_MEM); @@ -681,7 +681,7 @@ } /* - * this is the central function to manipulate assembly lists + * this is the central function to manipulate assembly line * * cut arbitrary spans from list into a destination buffer (or drop it) * insert (destructive move) content from another list into the cut @@ -873,7 +873,7 @@ } /* - * list traversal requires a context. It needs to be + * assembly line traversal requires a context. It needs to be * malloced to keep its inner structure private */ al_rc_t al_txalloc(al_t *al, al_tx_t **txp) @@ -898,7 +898,7 @@ } /* - * initiate list traversal + * initiate assembly line traversal * * - do initial seek, fail if position does not exist * - save traversal parameters @@ -919,9 +919,9 @@ } /* - * list traversal step + * assembly line traversal step * - * return EOF if at end of list + * return EOF if at end of assembly line * clip view chunk to traversal bounds * advance chunk cursor according to traversal direction */ @@ -966,7 +966,7 @@ } /* - * full list traversal with callback + * full assembly line traversal with callback * * traversal is aborted when callback return != AL_OK * reaching EOF (and also aborting with AL_ERR_EOF) is not an error @@ -996,7 +996,7 @@ } /* - * full list traversal with data copy to linear buffer + * full assembly line traversal with data copy to linear buffer * * returns actual number of bytes copied * @@ -1030,7 +1030,7 @@ } /* - * full list traversal with data copy to target assembly list + * full assembly line traversal with data copy to target assembly line * * traversal context is kept on stack (XXX ?) */ @@ -1058,7 +1058,7 @@ /* * relay macros to caller * - * al_bytes - total number of bytes in list + * al_bytes - total number of bytes in assembly line * al_chunk_len - number of bytes in chunk * al_chunk_span - clip interval (off,off+n( against chunk length * al_chunk_ptr - return memory pointer to byte within chunk Index: ossp-pkg/sio/al.h RCS File: /v/ossp/cvs/ossp-pkg/sio/Attic/al.h,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/sio/Attic/al.h,v' 2>/dev/null --- al.h 2002/10/17 14:17:33 1.8 +++ al.h 2002/10/17 15:02:49 1.9 @@ -1,5 +1,5 @@ /* -** OSSP al -- Assembly Lists +** OSSP al -- Assembly Line ** Copyright (c) 2002 The OSSP Project ** Copyright (c) 2002 Cable & Wireless Deutschland ** Copyright (c) 2002 Ralf S. Engelschall @@ -26,7 +26,7 @@ ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** -** al.h: assembly lists public API definition +** al.h: assembly line public API definition */ #ifndef __AL_H__ Index: ossp-pkg/sio/al.pod RCS File: /v/ossp/cvs/ossp-pkg/sio/Attic/al.pod,v rcsdiff -q -kk '-r1.7' '-r1.8' -u '/v/ossp/cvs/ossp-pkg/sio/Attic/al.pod,v' 2>/dev/null --- al.pod 2002/10/17 14:57:44 1.7 +++ al.pod 2002/10/17 15:02:49 1.8 @@ -1,5 +1,5 @@ ## -## OSSP al - Assembly Lists +## OSSP al - Assembly Line ## Copyright (c) 2002 The OSSP Project ## Copyright (c) 2002 Cable & Wireless Deutschland ## Copyright (c) 2002 Ralf S. Engelschall @@ -26,14 +26,14 @@ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## -## al.pod: assembly lists library manual page +## al.pod: assembly line library manual page ## =pod =head1 NAME -B - Assembly Lists +B - Assembly Line =head1 VERSION @@ -51,7 +51,7 @@ al_td_t, al_chunk_t. -=item B: +=item B: al_create, al_destroy, @@ -114,7 +114,7 @@ AL_ERR_EOF End Of Communication AL_ERR_INT Internal Error -=item B (Assembly List Type) +=item B (Assembly Line Type) This is an opaque data type representing a data buffer. Only pointers to this abstract data type are used in the API. @@ -130,8 +130,8 @@ This is an exported enumerated integer type with the following possible values: - AL_FORWARD traverse list from beginning to end - AL_BACKWARD traverse list from end to beginning + AL_FORWARD traverse assembly line from beginning to end + AL_BACKWARD traverse assembly line from end to beginning =item B (Chunk Type) @@ -153,34 +153,34 @@ prefix C and receives a C (or C) object on which it operates as its first argument. -=head2 Assembly List Operations +=head2 Assembly Line Operations =over 4 =item al_rc_t B(al_t **I); -Create an assembly list abstraction object. +Create an assembly line abstraction object. The object is stored in I on success. Example: C =item al_rc_t B(al_t *I); -Destroy an assembly list abstraction object. +Destroy an assembly line abstraction object. The object I is invalid after this call succeeded. Example: C =item al_rc_t B(al_t *I, const char *I, size_t I); -Append I bytes from a storage array at I to the assembly list. The +Append I bytes from a storage array at I to the assembly line. The bytes are copied, memory is allocated as necessary. Example: C =item al_rc_t B(al_t *I, const char *I, size_t I); -Prepend I bytes from a storage array at I to the assembly list. The +Prepend I bytes from a storage array at I to the assembly line. The bytes are copied, memory is allocated as necessary. Example: C @@ -188,10 +188,10 @@ =item al_rc_t B(al_t *I, char *I

, size_t I); Attach the storage array starting at I

with size I at the end of -the assembly list. Its content becomes part of the assembly list -and is subject to assembly list operations. The storage array must stay -in scope for the whole life time of the assembly list, there is no way -to detach it from the assembly list. +the assembly line. Its content becomes part of the assembly line +and is subject to assembly line operations. The storage array must stay +in scope for the whole life time of the assembly line, there is no way +to detach it from the assembly line. Example: C @@ -201,21 +201,21 @@ B. I and I are byte counts that define a span of bytes within the -source assembly list I. These bytes are moved to the target list -I while the content of the new list I is moved to the source +source assembly line I. These bytes are moved to the target assembly line +I while the content of the new assembly line I is moved to the source to replace the selected span. There are two deviations from the Perl operator to avoid copying: -The move to the target list I appends the data to its end. -The move from the new list I removes the data from its origin. +The move to the target assembly line I appends the data to its end. +The move from the new assembly line I removes the data from its origin. -The target list I may be B, the data bytes that would +The target assembly line I may be B, the data bytes that would be moved to the target are then discarded. This avoids creation and destruction of a dummy target. -The new list I may be B, then nothing is inserted into -the source. This avoids creation and destruction of an empty list. +The new assembly line I may be B, then nothing is inserted into +the source. This avoids creation and destruction of an empty assembly line. Examples: @@ -254,7 +254,7 @@ =item size_t B(const al_t *I); -Returns the number of bytes stored in the assembly list. +Returns the number of bytes stored in the assembly line. Example: C @@ -278,25 +278,25 @@ =item al_rc_t B(al_t *I, size_t I, size_t I, al_td_t I

, al_tx_t *I); -Start traversing the assembly list I beginning at byte offset I +Start traversing the assembly line I beginning at byte offset I for up to I bytes in direction I. The state of the traversal is stored in the supplied context I. -This function fails when the offset is outside the assembly list bounds. +This function fails when the offset is outside the assembly line bounds. =item al_rc_t B(al_t *I, al_tx_t *I, al_chunk_t **I); -Complete a traversal step on the assembly list I using the initialized +Complete a traversal step on the assembly line I using the initialized context I. In each step a chunk descriptor is filled and stored in I. All bytes of the chunk are guaranteed to be stored in a flat array and can be accessed through the chunk operations described below. The function returns AL_ERR_EOF when it passes the end (or beginning -in case of backward traversal) of the list. +in case of backward traversal) of the assembly line. =item al_rc_t B(al_t *I, size_t I, size_t I, al_td_t I, al_rc_t (*I)(al_chunk_t *, void *), void *u); -B is a wrapper function that does a full list traversal in +B is a wrapper function that does a full assembly line traversal in a single call. In every step a chunk descriptor is passed to the callback function I together with a user supplied pointer I. When the callback function returns AL_OK the traversal continues, when it returns @@ -313,10 +313,10 @@ =item al_rc_t B(al_t *I, size_t I, size_t I, char *I, size_t *I); I and I are byte counts that define a span of bytes with the -assembly list I. These bytes are copied to the storage array I +assembly line I. These bytes are copied to the storage array I which must be sized appropriately. I must be a valid offset, I must be positive but may exceed -the size of the assembly list. +the size of the assembly line. The actual number of bytes that is copied to the destination is stored in I. @@ -331,10 +331,10 @@ =item al_rc_t B(al_t *I, size_t I, size_t I, al_t *I and I are byte counts that define a span of bytes within the -assembly list I. These bytes are appended to the target list I, +assembly line I. These bytes are appended to the target assembly line I, memory is allocated as necessary. I must be a valid offset, I must be positive but may exceed -the size of the assembly list. +the size of the assembly line. Example: Index: ossp-pkg/sio/al_test.c RCS File: /v/ossp/cvs/ossp-pkg/sio/Attic/al_test.c,v rcsdiff -q -kk '-r1.7' '-r1.8' -u '/v/ossp/cvs/ossp-pkg/sio/Attic/al_test.c,v' 2>/dev/null --- al_test.c 2002/10/16 14:20:48 1.7 +++ al_test.c 2002/10/17 15:02:49 1.8 @@ -1,5 +1,5 @@ /* -** OSSP al -- Assembly Lists +** OSSP al -- Assembly Line ** Copyright (c) 2002 The OSSP Project ** Copyright (c) 2002 Cable & Wireless Deutschland ** Copyright (c) 2002 Ralf S. Engelschall @@ -26,7 +26,7 @@ ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** -** al_test.c: assembly lists library, minimal test suite +** al_test.c: assembly line library, minimal test suite */ #include