From 13a30bace721867ef10f1ce56b2d6b473ee7f400 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 22 Jun 1999 19:09:55 +0000 Subject: [PATCH] Thou shalt not use C++ comments. --- dlls/comctl32/listview.c | 23 ++++++++++++----------- dlls/comctl32/treeview.c | 5 +++-- ole/typelib.c | 6 +++--- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 0a509fba8a1..de3162c2e63 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4770,31 +4770,32 @@ static LRESULT LISTVIEW_SetColumnWidth(HWND hwnd, INT iCol, INT cx) LRESULT lret; LONG lStyle; - // set column width only if in report mode + /* set column width only if in report mode */ lStyle = GetWindowLongA(hwnd, GWL_STYLE); if ((lStyle & LVS_TYPEMASK) != LVS_REPORT) return (FALSE); - // make sure we can get the listview info + /* make sure we can get the listview info */ if (!(infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0))) return (FALSE); - if (!infoPtr->hwndHeader) // make sure we have a header + if (!infoPtr->hwndHeader) /* make sure we have a header */ return (FALSE); - // FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and - // LVSCV_AUTOSIZE_USEHEADER (-2) + /* FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and + * LVSCV_AUTOSIZE_USEHEADER (-2) + */ if (cx < 0) return (FALSE); hdi.mask = HDI_WIDTH; hdi.cxy = cx; - // call header to update the column change + /* call header to update the column change */ lret = Header_SetItemA(infoPtr->hwndHeader, (WPARAM)iCol, (LPARAM)&hdi); infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd); - InvalidateRect(hwnd, NULL, TRUE); // force redraw of the listview + InvalidateRect(hwnd, NULL, TRUE); /* force redraw of the listview */ return lret; } @@ -5122,7 +5123,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam) return FALSE; nCount = GETITEMCOUNT(infoPtr); - // if there are 0 or 1 items, there is no need to sort + /* if there are 0 or 1 items, there is no need to sort */ if (nCount > 1) { sortList = DPA_Create(nCount); @@ -5130,7 +5131,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam) infoPtr->pfnCompare = (PFNLVCOMPARE)lParam; infoPtr->lParamSort = (LPARAM)wParam; - // append pointers one by one to sortList + /* append pointers one by one to sortList */ for (i = 0; i < nCount; i++) { if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i))) @@ -5138,10 +5139,10 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam) DPA_InsertPtr(sortList, nCount + 1, lpItem); } - // sort the sortList + /* sort the sortList */ DPA_Sort(sortList, LISTVIEW_CallBackCompare, hwnd); - // copy the pointers back + /* copy the pointers back */ for (i = 0; i < nCount; i++) { if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)) && diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index bd239216a48..6dcfa0a7421 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -1145,8 +1145,9 @@ TREEVIEW_GetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam) FIXME(" TVIF_INTEGRAL not supported yet\n"); } - // undocumented: windows ignores TVIF_PARAM and - // always sets lParam + /* undocumented: windows ignores TVIF_PARAM and + * always sets lParam + */ tvItem->lParam=wineItem->lParam; if (tvItem->mask & TVIF_SELECTEDIMAGE) { diff --git a/ole/typelib.c b/ole/typelib.c index 6de2df33767..bd27e9e8466 100644 --- a/ole/typelib.c +++ b/ole/typelib.c @@ -163,7 +163,7 @@ HRESULT WINAPI LoadTypeLib( p=HEAP_strdupWtoA(GetProcessHeap(),0,szFile); res= TLB_ReadTypeLib(p, pptLib); - //XXX need to free p ?? + /* XXX need to free p ?? */ TRACE( typelib, " returns %ld\n",res); @@ -1963,9 +1963,9 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo( LPTYPEINFO iface, pRefType->reference != hRefType; pRefType=pRefType->next) ; if(!pRefType) - return TYPE_E_ELEMENTNOTFOUND; //FIXME : correct? + return TYPE_E_ELEMENTNOTFOUND; /* FIXME : correct? */ pTypeLib=pRefType->pImpTLInfo->pImpTypeLib; - if(pTypeLib) // typelib already loaded + if(pTypeLib) /* typelib already loaded */ result=pTypeLib->lpvtbl->fnGetTypeInfoOfGuid( (LPTYPELIB)pTypeLib, &pRefType->guid, ppTInfo); else{