Changeset 9407 for trunk/src/riched32/charlist.c
- Timestamp:
- Nov 13, 2002, 1:17:19 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/src/riched32/charlist.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/riched32/charlist.c
r3922 r9407 1 /* $Id: charlist.c,v 1.2 2000-08-02 14:58:40 bird Exp $ */2 1 /* 3 2 * … … 6 5 * Copyright (c) 2000 by Jean-Claude Batista 7 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 8 20 */ 9 21 … … 13 25 #include <ctype.h> 14 26 #include <stdlib.h> 27 15 28 #include "charlist.h" 16 #include "windows.h" 29 #include "windef.h" 30 #include "winbase.h" 31 #include "wine/debug.h" 32 33 WINE_DEFAULT_DEBUG_CHANNEL(richedit); 17 34 18 35 extern HANDLE RICHED32_hHeap; … … 23 40 pNewEntry->pNext = NULL; 24 41 pNewEntry->myChar = myChar; 42 43 TRACE("\n"); 25 44 26 45 if(pCharList->pTail == NULL) … … 40 59 { 41 60 CHARLISTENTRY* pNewEntry = malloc(sizeof(CHARLISTENTRY)); 61 62 TRACE("\n"); 42 63 43 64 pNewEntry->myChar = myChar; … … 63 84 char myChar; 64 85 86 TRACE("\n"); 87 65 88 if(pCharList->nCount == 0) 66 89 return 0; … … 85 108 int CHARLIST_GetNbItems(CHARLIST* pCharList) 86 109 { 110 TRACE("\n"); 111 87 112 return pCharList->nCount; 88 113 } 89 114 90 115 void CHARLIST_FreeList(CHARLIST* pCharList){ 116 TRACE("\n"); 117 91 118 while(pCharList->nCount) 92 119 CHARLIST_Dequeue(pCharList); 93 120 } 94 121 95 /* this function count the number of occurences of a caracter */122 /* this function counts the number of occurrences of a caracter */ 96 123 int CHARLIST_CountChar(CHARLIST* pCharList, char myChar) 97 124 { 98 125 CHARLISTENTRY *pCurrent; 99 126 int nCount = 0; 127 128 TRACE("\n"); 100 129 101 130 for(pCurrent =pCharList->pHead ;pCurrent;pCurrent=pCurrent->pNext) … … 108 137 int CHARLIST_toBuffer(CHARLIST* pCharList, char* pBuffer, int nBufferSize) 109 138 { 139 140 TRACE("\n"); 110 141 111 142 /* we add one to store a NULL caracter */
Note:
See TracChangeset
for help on using the changeset viewer.
