Ignore:
Timestamp:
Nov 13, 2002, 1:17:19 PM (23 years ago)
Author:
sandervl
Message:

Wine resync

File:
1 edited

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 $ */
    21/*
    32 *
     
    65 *  Copyright (c) 2000 by Jean-Claude Batista
    76 *
     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
    820 */
    921
     
    1325#include <ctype.h>
    1426#include <stdlib.h>
     27
    1528#include "charlist.h"
    16 #include "windows.h"
     29#include "windef.h"
     30#include "winbase.h"
     31#include "wine/debug.h"
     32
     33WINE_DEFAULT_DEBUG_CHANNEL(richedit);
    1734
    1835extern HANDLE RICHED32_hHeap;
     
    2340    pNewEntry->pNext = NULL;
    2441    pNewEntry->myChar = myChar;
     42
     43    TRACE("\n");
    2544
    2645    if(pCharList->pTail == NULL)
     
    4059{
    4160    CHARLISTENTRY* pNewEntry = malloc(sizeof(CHARLISTENTRY));
     61
     62    TRACE("\n");
    4263
    4364    pNewEntry->myChar = myChar;
     
    6384    char myChar;
    6485
     86    TRACE("\n");
     87
    6588    if(pCharList->nCount == 0)
    6689      return 0;
     
    85108int CHARLIST_GetNbItems(CHARLIST* pCharList)
    86109{
     110    TRACE("\n");
     111
    87112    return pCharList->nCount;
    88113}
    89114
    90115void CHARLIST_FreeList(CHARLIST* pCharList){
     116    TRACE("\n");
     117
    91118    while(pCharList->nCount)
    92119        CHARLIST_Dequeue(pCharList);
    93120}
    94121
    95 /* this function count the number of occurences of a caracter */
     122/* this function counts the number of occurrences of a caracter */
    96123int CHARLIST_CountChar(CHARLIST* pCharList, char myChar)
    97124{
    98125    CHARLISTENTRY *pCurrent;
    99126    int nCount = 0;
     127
     128    TRACE("\n");
    100129
    101130    for(pCurrent =pCharList->pHead ;pCurrent;pCurrent=pCurrent->pNext)
     
    108137int CHARLIST_toBuffer(CHARLIST* pCharList, char* pBuffer, int nBufferSize)
    109138{
     139
     140   TRACE("\n");
    110141
    111142   /* we add one to store a NULL caracter */
Note: See TracChangeset for help on using the changeset viewer.