From 8f266b47031568a05268bb6663c150de3a1b2317 Mon Sep 17 00:00:00 2001 From: goodale Date: Mon, 17 May 2004 12:40:46 +0000 Subject: Untabified. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPDExtra/trunk@58 61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1 --- src/HTTPD_FileList.h | 6 ++--- src/PtrList.h | 70 ++++++++++++++++++++++++++-------------------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/HTTPD_FileList.h b/src/HTTPD_FileList.h index fc3e5fc..7230b2a 100644 --- a/src/HTTPD_FileList.h +++ b/src/HTTPD_FileList.h @@ -36,9 +36,9 @@ void HTTPD_FileList_Append( FileList *, httpFileItem * item ); httpFileItem * HTTPD_FileList_Item( const FileList *, size_t index ); typedef int (*HTTPD_FileListSortComparison)( const httpFileItem *, - const httpFileItem * ); -int HTTPD_FileListCompare_Var_Thorn_Slice( const httpFileItem *, - const httpFileItem * ); + const httpFileItem * ); +int HTTPD_FileListCompare_Var_Thorn_Slice( const httpFileItem *, + const httpFileItem * ); void HTTPD_FileList_SortAccordingTo( FileList *, HTTPD_FileListSortComparison comparison ); diff --git a/src/PtrList.h b/src/PtrList.h index 60f3faf..4081a20 100644 --- a/src/PtrList.h +++ b/src/PtrList.h @@ -11,41 +11,41 @@ typedef struct PtrList_tag PtrList; extern "C" { #endif - /* Creation and deletion */ -PtrList * List_New( void ); -PtrList * List_NewWithPageSize( size_t pagesize ); -PtrList * List_MakeCopy( const PtrList * other ); -void List_Delete( PtrList * ); - /* Counts the items */ -size_t List_NumberOfItems( const PtrList * ); - /* Item accessors */ -void * List_Item( const PtrList *, size_t index ); -void List_SetItem( PtrList *, size_t index, void * ptr ); - /* List manipulation */ -void List_Append( PtrList *, void * item ); -void List_Insert( PtrList *, size_t index, void * item ); -void * List_RemoveItem( PtrList *, size_t index ); -void List_SwapItems( PtrList *, size_t a_index, size_t b_index ); - /* Actions on pointer of particular value */ -void List_Remove( PtrList *, void * item ); -PLBOOL List_GetIndexOf( const PtrList *, const void * item, - size_t * index ); - /* Remove all items from list */ -void List_Empty( PtrList * list ); - /* Copy another list */ -void List_CopyList( PtrList * list, const PtrList * other ); - /* Special freeing utility */ -void List_FreeItemsInListAndEmpty( PtrList * ); - /* Sort and Search */ -typedef int (*ListSortComparison)( const void *, const void * ); - -void List_SortAccordingTo( PtrList *, ListSortComparison ); - -typedef PLBOOL (*ListCondition)( const void * ); - -void * List_FirstItemSuchThat( const PtrList *, ListCondition ); -PLBOOL List_FindFirstIndexSuchThat( const PtrList *, - ListCondition condition, size_t * index ); + /* Creation and deletion */ +PtrList * List_New( void ); +PtrList * List_NewWithPageSize( size_t pagesize ); +PtrList * List_MakeCopy( const PtrList * other ); +void List_Delete( PtrList * ); + /* Counts the items */ +size_t List_NumberOfItems( const PtrList * ); + /* Item accessors */ +void * List_Item( const PtrList *, size_t index ); +void List_SetItem( PtrList *, size_t index, void * ptr ); + /* List manipulation */ +void List_Append( PtrList *, void * item ); +void List_Insert( PtrList *, size_t index, void * item ); +void * List_RemoveItem( PtrList *, size_t index ); +void List_SwapItems( PtrList *, size_t a_index, size_t b_index ); + /* Actions on pointer of particular value */ +void List_Remove( PtrList *, void * item ); +PLBOOL List_GetIndexOf( const PtrList *, const void * item, + size_t * index ); + /* Remove all items from list */ +void List_Empty( PtrList * list ); + /* Copy another list */ +void List_CopyList( PtrList * list, const PtrList * other ); + /* Special freeing utility */ +void List_FreeItemsInListAndEmpty( PtrList * ); + /* Sort and Search */ +typedef int (*ListSortComparison)( const void *, const void * ); + +void List_SortAccordingTo( PtrList *, ListSortComparison ); + +typedef PLBOOL (*ListCondition)( const void * ); + +void * List_FirstItemSuchThat( const PtrList *, ListCondition ); +PLBOOL List_FindFirstIndexSuchThat( const PtrList *, + ListCondition condition, size_t * index ); #ifdef __cplusplus } #endif -- cgit v1.2.3