ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
June 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
23 participants
435 discussions
Start a n
N
ew thread
[pschweitzer] 34036: Miscellaneous NTFS patch: - Filled FCB structures with more informations - Added them to linked list - Set mounted volume to FILE_DEVICE_DISK_FILE_SYSTEM - Various code cleanup
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Fri Jun 20 13:40:57 2008 New Revision: 34036 URL:
http://svn.reactos.org/svn/reactos?rev=34036&view=rev
Log: Miscellaneous NTFS patch: - Filled FCB structures with more informations - Added them to linked list - Set mounted volume to FILE_DEVICE_DISK_FILE_SYSTEM - Various code cleanup Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c trunk/reactos/drivers/filesystems/ntfs/fsctl.c trunk/reactos/drivers/filesystems/ntfs/ntfs.h Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Fri Jun 20 13:40:57 2008 @@ -68,7 +68,7 @@ PNTFS_FCB -NtfsCreateFCB(PCWSTR FileName) +NtfsCreateFCB(PCWSTR FileName, PNTFS_VCB Vcb) { PNTFS_FCB Fcb; @@ -77,6 +77,8 @@ Fcb->Identifier.Type = NTFS_TYPE_FCB; Fcb->Identifier.Size = sizeof(NTFS_TYPE_FCB); + + Fcb->Vcb = Vcb; if (FileName) { @@ -92,6 +94,10 @@ } ExInitializeResourceLite(&Fcb->MainResource); + + Fcb->RFCB.Resource = &(Fcb->MainResource); + + InsertTailList(&(Vcb->FcbListHead), &(Fcb->FcbListEntry)); return(Fcb); } @@ -155,7 +161,7 @@ if (Fcb->RefCount <= 0 && !NtfsFCBIsDirectory(Fcb)) { RemoveEntryList(&Fcb->FcbListEntry); - CcUninitializeCacheMap (Fcb->FileObject, NULL, NULL); + CcUninitializeCacheMap(Fcb->FileObject, NULL, NULL); NtfsDestroyFCB(Fcb); } KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql); @@ -169,7 +175,7 @@ KIRQL oldIrql; KeAcquireSpinLock(&Vcb->FcbListLock, &oldIrql); - Fcb->DevExt = Vcb; + Fcb->Vcb = Vcb; InsertTailList(&Vcb->FcbListHead, &Fcb->FcbListEntry); KeReleaseSpinLock(&Vcb->FcbListLock, oldIrql); } @@ -242,7 +248,7 @@ FileObject->FsContext2 = newCCB; newCCB->PtrFileObject = FileObject; Fcb->FileObject = FileObject; - Fcb->DevExt = Vcb; + Fcb->Vcb = Vcb; Status = STATUS_SUCCESS; CcInitializeCacheMap(FileObject, @@ -263,7 +269,7 @@ { PNTFS_FCB Fcb; - Fcb = NtfsCreateFCB(L"\\"); + Fcb = NtfsCreateFCB(L"\\", Vcb); // memset(Fcb->entry.Filename, ' ', 11); @@ -371,7 +377,7 @@ wcscat(pathName, entryName); } - rcFCB = NtfsCreateFCB(pathName); + rcFCB = NtfsCreateFCB(pathName, Vcb); memcpy(&rcFCB->Entry, Record, sizeof(DIR_RECORD)); Size = rcFCB->Entry.DataLengthL; @@ -411,7 +417,7 @@ FileObject->FsContext = Fcb; FileObject->FsContext2 = newCCB; newCCB->PtrFileObject = FileObject; - Fcb->DevExt = Vcb; + Fcb->Vcb = Vcb; if (!(Fcb->Flags & FCB_CACHE_INITIALIZED)) { Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Fri Jun 20 13:40:57 2008 @@ -190,7 +190,7 @@ DPRINT("BytesPerSector: %lu\n", DiskGeometry.BytesPerSector); BootSector = ExAllocatePoolWithTag(NonPagedPool, - DiskGeometry.BytesPerSector, TAG_NTFS); + DiskGeometry.BytesPerSector, TAG_NTFS); if (BootSector == NULL) { return(STATUS_INSUFFICIENT_RESOURCES); @@ -235,7 +235,7 @@ ExFreePool(BootSector); MftRecord = ExAllocatePoolWithTag(NonPagedPool, - NtfsInfo->BytesPerFileRecord, TAG_NTFS); + NtfsInfo->BytesPerFileRecord, TAG_NTFS); if (MftRecord == NULL) { return STATUS_INSUFFICIENT_RESOURCES; @@ -347,8 +347,7 @@ Status = IoCreateDevice(NtfsGlobalData->DriverObject, sizeof(DEVICE_EXTENSION), NULL, - FILE_DEVICE_FILE_SYSTEM, -// FILE_DEVICE_DISK_FILE_SYSTEM, + FILE_DEVICE_DISK_FILE_SYSTEM, 0, FALSE, &NewDeviceObject); @@ -380,7 +379,7 @@ Vcb->StorageDevice); - Fcb = NtfsCreateFCB(NULL); + Fcb = NtfsCreateFCB(NULL, Vcb); if (Fcb == NULL) { Status = STATUS_INSUFFICIENT_RESOURCES; @@ -407,7 +406,7 @@ Vcb->StreamFileObject->Vpb = Vcb->Vpb; Ccb->PtrFileObject = Vcb->StreamFileObject; Fcb->FileObject = Vcb->StreamFileObject; - Fcb->DevExt = (PDEVICE_EXTENSION)Vcb->StorageDevice; + Fcb->Vcb = (PDEVICE_EXTENSION)Vcb->StorageDevice; Fcb->Flags = FCB_IS_VOLUME_STREAM; @@ -425,7 +424,6 @@ Fcb); ExInitializeResourceLite(&Vcb->DirResource); -// ExInitializeResourceLite(&DeviceExt->FatResource); KeInitializeSpinLock(&Vcb->FcbListLock); InitializeListHead(&Vcb->FcbListHead); Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Fri Jun 20 13:40:57 2008 @@ -130,7 +130,7 @@ SECTION_OBJECT_POINTERS SectionObjectPointers; PFILE_OBJECT FileObject; - PDEVICE_EXTENSION DevExt; + PNTFS_VCB Vcb; WCHAR *ObjectName; /* point on filename (250 chars max) in PathName */ WCHAR PathName[MAX_PATH]; /* path+filename 260 max */ @@ -428,7 +428,7 @@ /* fcb.c */ PNTFS_FCB -NtfsCreateFCB(PCWSTR FileName); +NtfsCreateFCB(PCWSTR FileName, PNTFS_VCB Vcb); VOID NtfsDestroyFCB(PNTFS_FCB Fcb);
16 years, 6 months
1
0
0
0
[gedmurphy] 34035: Don't forget to free the parent nodes
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Fri Jun 20 06:39:31 2008 New Revision: 34035 URL:
http://svn.reactos.org/svn/reactos?rev=34035&view=rev
Log: Don't forget to free the parent nodes Modified: trunk/rostests/winetests/GUI/browsewnd.c Modified: trunk/rostests/winetests/GUI/browsewnd.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/browsewnd.c…
============================================================================== --- trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] Fri Jun 20 06:39:31 2008 @@ -140,6 +140,8 @@ while (NodeHasChild(pInfo, hItem)) { HTREEITEM hChildItem; + + FreeItemTag(pInfo, hItem); hChildItem = TreeView_GetChild(pInfo->hBrowseTV, hItem);
16 years, 6 months
1
0
0
0
[gedmurphy] 34034: Save the select test info on close. The browse dialog now lists all winetest dlls and allows selection of either all tests in all dlls, all tests within a dll, or the option to choose individual tests. (rewuires a modified winetest framework)
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Fri Jun 20 06:20:26 2008 New Revision: 34034 URL:
http://svn.reactos.org/svn/reactos?rev=34034&view=rev
Log: Save the select test info on close. The browse dialog now lists all winetest dlls and allows selection of either all tests in all dlls, all tests within a dll, or the option to choose individual tests. (rewuires a modified winetest framework) Modified: trunk/rostests/winetests/GUI/browsewnd.c trunk/rostests/winetests/GUI/lang/en-US.rc trunk/rostests/winetests/GUI/misc.c trunk/rostests/winetests/GUI/precomp.h Modified: trunk/rostests/winetests/GUI/browsewnd.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/browsewnd.c…
============================================================================== --- trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] Fri Jun 20 06:20:26 2008 @@ -88,8 +88,6 @@ { if (!(findFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { - //MessageBoxW(NULL, findFileData.cFileName, NULL, 0); - /* set the path */ wcscpy(ptr, szDllPath); @@ -124,11 +122,9 @@ HTREEITEM hItem) { TV_ITEM tvItem; - WCHAR buf[256]; tvItem.hItem = hItem; - tvItem.mask = TVIF_PARAM | TVIF_TEXT; - tvItem.pszText = buf; + tvItem.mask = TVIF_PARAM; (void)TreeView_GetItem(pInfo->hBrowseTV, &tvItem); @@ -217,8 +213,10 @@ sizeof(TEST_ITEM)); if (pItem) { - wcsncpy(pItem->szSelectedDll, lpDll, MAX_PATH); - wcsncpy(pItem->szRunString, lpRun, MAX_RUN_CMD); + if (lpDll) + wcsncpy(pItem->szSelectedDll, lpDll, MAX_PATH); + if (lpRun) + wcsncpy(pItem->szRunString, lpRun, MAX_RUN_CMD); } return pItem; @@ -229,6 +227,7 @@ { HTREEITEM hRoot; HIMAGELIST hImgList; + PTEST_ITEM pTestItem; DLLNAME GetTestName; MODULES GetModulesInTest; HMODULE hDll; @@ -250,11 +249,13 @@ hImgList, TVSIL_NORMAL); + pTestItem = BuildTestItemData(L"", L"Full"); + /* insert the root item into the tree */ hRoot = InsertIntoTreeView(pInfo->hBrowseTV, NULL, L"Full", - 0, + pTestItem, IL_MAIN, HAS_CHILD); @@ -272,7 +273,6 @@ LPSTR lpModules, ptr; LPWSTR lpModW; INT numMods; - PTEST_ITEM pTestItem; lpTestName = GetTestName(); @@ -383,14 +383,43 @@ case WM_COMMAND: { - if ((LOWORD(wParam) == IDOK) || (LOWORD(wParam) == IDCANCEL)) + switch (LOWORD(wParam)) { - HeapFree(GetProcessHeap(), 0, pInfo->lpDllList); - pInfo->lpDllList = NULL; - - EndDialog(hDlg, - LOWORD(wParam)); - return TRUE; + case IDOK: + { + TV_ITEM tvItem; + + tvItem.hItem = TreeView_GetSelection(pInfo->hBrowseTV); + tvItem.mask = TVIF_PARAM; + + if (TreeView_GetItem(pInfo->hBrowseTV, &tvItem)) + { + PTEST_ITEM pItem; + + pItem = (PTEST_ITEM)tvItem.lParam; + if (pItem) + CopyMemory(&pInfo->SelectedTest, pItem, sizeof(TEST_ITEM)); + + EndDialog(hDlg, + LOWORD(wParam)); + } + else + { + DisplayMessage(L"Please select an item"); + } + + break; + } + + case IDCANCEL: + { + HeapFree(GetProcessHeap(), 0, pInfo->lpDllList); + pInfo->lpDllList = NULL; + + EndDialog(hDlg, + LOWORD(wParam)); + return TRUE; + } } break; Modified: trunk/rostests/winetests/GUI/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/lang/en-US.…
============================================================================== --- trunk/rostests/winetests/GUI/lang/en-US.rc [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/lang/en-US.rc [iso-8859-1] Fri Jun 20 06:20:26 2008 @@ -29,7 +29,7 @@ CAPTION "Test hierarchy" FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN - PUSHBUTTON "Select", IDC_SELECT, 202, 7, 50, 14 + PUSHBUTTON "Select", IDOK, 202, 7, 50, 14 + PUSHBUTTON "Close", IDCANCEL, 202, 34, 50, 14 CONTROL "", IDC_TREEVIEW, "SysTreeView32", WS_BORDER | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT, 7, 7, 189, 236 - PUSHBUTTON "Close", IDOK, 202, 34, 50, 14 END Modified: trunk/rostests/winetests/GUI/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/misc.c?rev=…
============================================================================== --- trunk/rostests/winetests/GUI/misc.c [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/misc.c [iso-8859-1] Fri Jun 20 06:20:26 2008 @@ -208,7 +208,7 @@ LocalFree(lpMsgBuf); } -VOID DisplayString(LPWSTR lpMsg) +VOID DisplayMessage(LPWSTR lpMsg) { MessageBoxW(NULL, lpMsg, L"Note!", MB_ICONEXCLAMATION|MB_OK); } Modified: trunk/rostests/winetests/GUI/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/precomp.h?r…
============================================================================== --- trunk/rostests/winetests/GUI/precomp.h [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/precomp.h [iso-8859-1] Fri Jun 20 06:20:26 2008 @@ -32,7 +32,7 @@ LPWSTR lpDllList; INT numDlls; - PTEST_ITEM SelectedTest; + TEST_ITEM SelectedTest; } MAIN_WND_INFO, *PMAIN_WND_INFO; @@ -46,7 +46,7 @@ /* misc.c */ HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height); -VOID DisplayString(LPWSTR lpMsg); +VOID DisplayMessage(LPWSTR lpMsg); VOID DisplayError(INT err); DWORD AnsiToUnicode(LPCSTR lpSrcStr, LPWSTR *lpDstStr);
16 years, 6 months
1
0
0
0
[gedmurphy] 34033: - build up test data for each node in the treeview and tag it - traverse the tree recursively and free all data on close
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Fri Jun 20 03:21:49 2008 New Revision: 34033 URL:
http://svn.reactos.org/svn/reactos?rev=34033&view=rev
Log: - build up test data for each node in the treeview and tag it - traverse the tree recursively and free all data on close Modified: trunk/rostests/winetests/GUI/browsewnd.c trunk/rostests/winetests/GUI/precomp.h Modified: trunk/rostests/winetests/GUI/browsewnd.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/browsewnd.c…
============================================================================== --- trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/browsewnd.c [iso-8859-1] Fri Jun 20 03:21:49 2008 @@ -13,6 +13,9 @@ #define IL_MAIN 0 #define IL_TEST 1 +#define HAS_NO_CHILD 0 +#define HAS_CHILD 1 + typedef wchar_t *(__cdecl *DLLNAME)(); typedef int (_cdecl *MODULES)(char **); @@ -102,12 +105,86 @@ return numFiles; } +static BOOL +NodeHasChild(PMAIN_WND_INFO pInfo, + HTREEITEM hItem) +{ + TV_ITEM tvItem; + + tvItem.hItem = hItem; + tvItem.mask = TVIF_CHILDREN; + + (void)TreeView_GetItem(pInfo->hBrowseTV, &tvItem); + + return (tvItem.cChildren == 1); +} + +static VOID +FreeItemTag(PMAIN_WND_INFO pInfo, + HTREEITEM hItem) +{ + TV_ITEM tvItem; + WCHAR buf[256]; + + tvItem.hItem = hItem; + tvItem.mask = TVIF_PARAM | TVIF_TEXT; + tvItem.pszText = buf; + + (void)TreeView_GetItem(pInfo->hBrowseTV, &tvItem); + + HeapFree(GetProcessHeap(), + 0, + (PTEST_ITEM)tvItem.lParam); +} + +static VOID +TraverseTreeView(PMAIN_WND_INFO pInfo, + HTREEITEM hItem) +{ + while (NodeHasChild(pInfo, hItem)) + { + HTREEITEM hChildItem; + + hChildItem = TreeView_GetChild(pInfo->hBrowseTV, + hItem); + + TraverseTreeView(pInfo, + hChildItem); + + hItem = TreeView_GetNextSibling(pInfo->hBrowseTV, + hItem); + } + + if (hItem) + { + /* loop the child items and free the tags */ + while (TRUE) + { + HTREEITEM hOldItem; + + FreeItemTag(pInfo, hItem); + hOldItem = hItem; + hItem = TreeView_GetNextSibling(pInfo->hBrowseTV, + hItem); + if (hItem == NULL) + { + hItem = hOldItem; + break; + } + } + + hItem = TreeView_GetParent(pInfo->hBrowseTV, + hItem); + } +} + static HTREEITEM InsertIntoTreeView(HWND hTreeView, HTREEITEM hRoot, LPWSTR lpLabel, - LPWSTR lpDllPath, - INT Image) + LPARAM Tag, + INT Image, + INT Child) { TV_ITEM tvi; TV_INSERTSTRUCT tvins; @@ -115,19 +192,36 @@ ZeroMemory(&tvi, sizeof(tvi)); ZeroMemory(&tvins, sizeof(tvins)); - tvi.mask = TVIF_TEXT | TVIF_PARAM | TVIF_IMAGE | TVIF_SELECTEDIMAGE; + tvi.mask = TVIF_TEXT | TVIF_PARAM | TVIF_IMAGE | TVIF_CHILDREN | TVIF_SELECTEDIMAGE; tvi.pszText = lpLabel; tvi.cchTextMax = lstrlen(lpLabel); - tvi.lParam = (LPARAM)lpDllPath; + tvi.lParam = Tag; tvi.iImage = Image; tvi.iSelectedImage = Image; - - //tvi.stateMask = TVIS_OVERLAYMASK; + tvi.cChildren = Child; tvins.item = tvi; tvins.hParent = hRoot; return TreeView_InsertItem(hTreeView, &tvins); +} + +static PTEST_ITEM +BuildTestItemData(LPWSTR lpDll, + LPWSTR lpRun) +{ + PTEST_ITEM pItem; + + pItem = (PTEST_ITEM)HeapAlloc(GetProcessHeap(), + 0, + sizeof(TEST_ITEM)); + if (pItem) + { + wcsncpy(pItem->szSelectedDll, lpDll, MAX_PATH); + wcsncpy(pItem->szRunString, lpRun, MAX_RUN_CMD); + } + + return pItem; } static VOID @@ -160,8 +254,9 @@ hRoot = InsertIntoTreeView(pInfo->hBrowseTV, NULL, L"Full", - NULL, - IL_MAIN); + 0, + IL_MAIN, + HAS_CHILD); for (i = 0; i < pInfo->numDlls; i++) { @@ -177,34 +272,47 @@ LPSTR lpModules, ptr; LPWSTR lpModW; INT numMods; + PTEST_ITEM pTestItem; lpTestName = GetTestName(); + + pTestItem = BuildTestItemData(lpDllPath, lpTestName); hParent = InsertIntoTreeView(pInfo->hBrowseTV, hRoot, lpTestName, - lpDllPath, - IL_TEST); - + pTestItem, + IL_TEST, + HAS_CHILD); if (hParent) { + /* Get the list of modules a dll offers. This is returned as list of + * Ansi null-terminated strings, terminated with an empty string (double null) */ GetModulesInTest = (MODULES)GetProcAddress(hDll, "GetModulesInTest"); if ((numMods = GetModulesInTest(&lpModules))) { ptr = lpModules; while (numMods && *ptr != '\0') { + /* convert the string to unicode */ if (AnsiToUnicode(ptr, &lpModW)) { + WCHAR szRunCmd[MAX_RUN_CMD]; + + _snwprintf(szRunCmd, MAX_RUN_CMD, L"%s:%s", lpTestName, lpModW); + pTestItem = BuildTestItemData(lpDllPath, szRunCmd); + InsertIntoTreeView(pInfo->hBrowseTV, hParent, lpModW, - lpModW, - IL_TEST); + pTestItem, + IL_TEST, + HAS_NO_CHILD); HeapFree(GetProcessHeap(), 0, lpModW); } + /* move onto next string */ while (*(ptr++) != '\0') ; @@ -288,6 +396,15 @@ break; } + case WM_DESTROY: + { + HTREEITEM hItem = TreeView_GetRoot(pInfo->hBrowseTV); + + TraverseTreeView(pInfo, hItem); + + break; + } + HandleDefaultMessage: default: return FALSE; Modified: trunk/rostests/winetests/GUI/precomp.h URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/GUI/precomp.h?r…
============================================================================== --- trunk/rostests/winetests/GUI/precomp.h [iso-8859-1] (original) +++ trunk/rostests/winetests/GUI/precomp.h [iso-8859-1] Fri Jun 20 03:21:49 2008 @@ -8,6 +8,15 @@ #include "resource.h" extern HINSTANCE hInstance; + +#define MAX_RUN_CMD 256 + +typedef struct _TEST_ITEM +{ + WCHAR szSelectedDll[MAX_PATH]; + WCHAR szRunString[MAX_RUN_CMD]; + +} TEST_ITEM, *PTEST_ITEM; typedef struct _MAIN_WND_INFO { @@ -20,13 +29,10 @@ HICON hSmIcon; HICON hBgIcon; - INT SelectedItem;/* selection number in the list view */ - BOOL bDlgOpen; - BOOL bInMenuLoop; - BOOL bIsUserAnAdmin; - LPWSTR lpDllList; INT numDlls; + + PTEST_ITEM SelectedTest; } MAIN_WND_INFO, *PMAIN_WND_INFO;
16 years, 6 months
1
0
0
0
[cfinck] 34032: Put a comment and an #if around the lines I changed in my previous commit, because the ##__VA_ARGS__ syntax was only tested with MSVC and GCC
by cfinck@svn.reactos.org
Author: cfinck Date: Thu Jun 19 17:03:22 2008 New Revision: 34032 URL:
http://svn.reactos.org/svn/reactos?rev=34032&view=rev
Log: Put a comment and an #if around the lines I changed in my previous commit, because the ##__VA_ARGS__ syntax was only tested with MSVC and GCC Modified: trunk/reactos/include/reactos/debug.h Modified: trunk/reactos/include/reactos/debug.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?re…
============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Thu Jun 19 17:03:22 2008 @@ -109,10 +109,13 @@ #define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__); - #define ERR_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) - #define WARN_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) - #define TRACE_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) - #define INFO_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + /* The ##__VA_ARGS__ syntax is not a standard and was only tested with MSVC and GCC. If other compilers support them as well, add them to this #if block. */ + #if defined(_MSC_VER) || defined(__GNUC__) + #define ERR_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define WARN_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define TRACE_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define INFO_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #endif #else /* On non-debug builds, we never show these */
16 years, 6 months
1
0
0
0
[cfinck] 34031: Reapply Ged's fix, this time correctly :-) Thanks to hackbunny for pointing out that ##__VA_ARGS__ will strip the trailing comma and this works on both GCC and MSVC.
by cfinck@svn.reactos.org
Author: cfinck Date: Thu Jun 19 16:57:32 2008 New Revision: 34031 URL:
http://svn.reactos.org/svn/reactos?rev=34031&view=rev
Log: Reapply Ged's fix, this time correctly :-) Thanks to hackbunny for pointing out that ##__VA_ARGS__ will strip the trailing comma and this works on both GCC and MSVC. Modified: trunk/reactos/include/reactos/debug.h Modified: trunk/reactos/include/reactos/debug.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?re…
============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Thu Jun 19 16:57:32 2008 @@ -109,14 +109,10 @@ #define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__); - #define ERR_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, __VA_ARGS__) - #define WARN_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, __VA_ARGS__) - #define TRACE_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, __VA_ARGS__) - #define INFO_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, __VA_ARGS__) + #define ERR_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define WARN_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define TRACE_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) + #define INFO_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, ##__VA_ARGS__) #else /* On non-debug builds, we never show these */
16 years, 6 months
1
0
0
0
[gedmurphy] 34030: revert the debug macros change, the entire codebase isn't ready for it yet
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Jun 19 16:40:08 2008 New Revision: 34030 URL:
http://svn.reactos.org/svn/reactos?rev=34030&view=rev
Log: revert the debug macros change, the entire codebase isn't ready for it yet Modified: trunk/reactos/include/reactos/debug.h Modified: trunk/reactos/include/reactos/debug.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?re…
============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Thu Jun 19 16:40:08 2008 @@ -109,10 +109,14 @@ #define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__); - #define ERR_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) - #define WARN_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) - #define TRACE_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) - #define INFO_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) + #define ERR_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ + DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, __VA_ARGS__) + #define WARN_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ + DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, __VA_ARGS__) + #define TRACE_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ + DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, __VA_ARGS__) + #define INFO_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ + DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, __VA_ARGS__) #else /* On non-debug builds, we never show these */
16 years, 6 months
1
0
0
0
[gedmurphy] 34029: Only call DbgPrintEx once for each debug macro. This stops trace info from being split over 2 lines in some tools, like DebugView.
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Thu Jun 19 15:42:57 2008 New Revision: 34029 URL:
http://svn.reactos.org/svn/reactos?rev=34029&view=rev
Log: Only call DbgPrintEx once for each debug macro. This stops trace info from being split over 2 lines in some tools, like DebugView. Modified: trunk/reactos/include/reactos/debug.h Modified: trunk/reactos/include/reactos/debug.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?re…
============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Thu Jun 19 15:42:57 2008 @@ -109,14 +109,10 @@ #define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__); - #define ERR_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, __VA_ARGS__) - #define WARN_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, __VA_ARGS__) - #define TRACE_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, __VA_ARGS__) - #define INFO_(ch, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) ", __FILE__, __LINE__), \ - DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, __VA_ARGS__) + #define ERR_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_ERROR_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) + #define WARN_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_WARNING_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) + #define TRACE_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_TRACE_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) + #define INFO_(ch, fmt, ...) DbgPrintEx(DPFLTR_##ch##_ID, DPFLTR_INFO_LEVEL, "(%s:%d) " fmt, __FILE__, __LINE__, __VA_ARGS__) #else /* On non-debug builds, we never show these */
16 years, 6 months
1
0
0
0
[mkupfer] 34028: - Template for korean keyboard layout implemented (TODO: kbdko.c needs modifications for korean keyboard layout) - bootdata, hives and usetup modified for korean keyboard layout - See issue #3345 for more details. - Patch from Gabriel Ilardi <gabrielilardi [at] hotmail [dot] it> for timedate settings applied - See issue #3251 for more details.
by mkupfer@svn.reactos.org
Author: mkupfer Date: Thu Jun 19 12:58:43 2008 New Revision: 34028 URL:
http://svn.reactos.org/svn/reactos?rev=34028&view=rev
Log: - Template for korean keyboard layout implemented (TODO: kbdko.c needs modifications for korean keyboard layout) - bootdata, hives and usetup modified for korean keyboard layout - See issue #3345 for more details. - Patch from Gabriel Ilardi <gabrielilardi [at] hotmail [dot] it> for timedate settings applied - See issue #3251 for more details. Added: trunk/reactos/dll/keyboard/kbdko/ trunk/reactos/dll/keyboard/kbdko/kbdko.c (with props) trunk/reactos/dll/keyboard/kbdko/kbdko.def (with props) trunk/reactos/dll/keyboard/kbdko/kbdko.rbuild (with props) trunk/reactos/dll/keyboard/kbdko/kbdko.rc (with props) Modified: trunk/reactos/base/setup/usetup/lang/ko-KR.h trunk/reactos/boot/bootdata/hivesys.inf trunk/reactos/boot/bootdata/packages/reactos.dff trunk/reactos/boot/bootdata/txtsetup.sif trunk/reactos/dll/keyboard/keyboard.rbuild trunk/reactos/dll/win32/shell32/control.c Modified: trunk/reactos/base/setup/usetup/lang/ko-KR.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/lang/ko-…
============================================================================== --- trunk/reactos/base/setup/usetup/lang/ko-KR.h [iso-8859-1] (original) +++ trunk/reactos/base/setup/usetup/lang/ko-KR.h [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -3,7 +3,8 @@ MUI_LAYOUTS koKRLayouts[] = { - { L"0412", L"E0010412" }, +// { L"0412", L"E0010412" }, + { L"0412", L"00000412" }, { NULL, NULL } }; Modified: trunk/reactos/boot/bootdata/hivesys.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivesys.inf?…
============================================================================== --- trunk/reactos/boot/bootdata/hivesys.inf [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/hivesys.inf [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -328,6 +328,10 @@ HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\0000081a","Layout File",0x00000000,"kbdycl.dll" HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\0000081a","Layout Text",0x00000000,"Serbian (Latin)" HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\0000081a","Layout Display Name",0x00000000,"@%SystemRoot%\system32\input.dll,-5038" + +HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000412","Layout File",0x00000000,"kbdko.dll" +HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000412","Layout Text",0x00000000,"Korean" +HKLM,"SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000412","Layout Display Name",0x00000000,"@%SystemRoot%\system32\input.dll,-5063" ; Network HKLM,"SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}",,0x00000000,"Network Adapters" Modified: trunk/reactos/boot/bootdata/packages/reactos.dff URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
============================================================================== --- trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -212,6 +212,7 @@ dll\keyboard\kbdvntc\kbdvntc.dll 1 dll\keyboard\kbdycc\kbdycc.dll 1 dll\keyboard\kbdycl\kbdycl.dll 1 +dll\keyboard\kbdko\kbdko.dll 1 dll\ntdll\ntdll.dll 1 Modified: trunk/reactos/boot/bootdata/txtsetup.sif URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/txtsetup.sif…
============================================================================== --- trunk/reactos/boot/bootdata/txtsetup.sif [iso-8859-1] (original) +++ trunk/reactos/boot/bootdata/txtsetup.sif [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -284,6 +284,7 @@ 0000040F = "Icelandic" 00000410 = "Italian" 00000411 = "Japanese" +00000412 = "Korean" 0000043F = "Kazakh" 00000426 = "Latvian" 00000427 = "Lithuanian" @@ -346,6 +347,7 @@ 0000040F = kbdic.dll 00000410 = kbdit.dll 00000411 = kbdja.dll +00000412 = kbdko.dll 0000041C = kbdal.dll 0000041F = kbdtuq.dll 0001041F = kbdtuf.dll Added: trunk/reactos/dll/keyboard/kbdko/kbdko.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/keyboard/kbdko/kbdko.c…
============================================================================== --- trunk/reactos/dll/keyboard/kbdko/kbdko.c (added) +++ trunk/reactos/dll/keyboard/kbdko/kbdko.c [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -1,0 +1,364 @@ +/* + * ReactOS Korean Keyboard layout + * Copyright (C) 2003 ReactOS + * License: LGPL, see: LGPL.txt + * + * Thanks to:
http://www.barcodeman.com/altek/mule/scandoc.php
+ * and
http://win.tue.nl/~aeb/linux/kbd/scancodes-1.html
+ */ + +/* + * Important Note / TODO: + * This file is a copy of kbdus.c and needs to adapt to korean + * keyboard layout! + */ + +#include <windows.h> +#include <internal/kbd.h> + +#ifdef _M_IA64 +#define ROSDATA static __declspec(allocate(".data")) +#else +#ifdef _MSC_VER +#pragma data_seg(".data") +#define ROSDATA static +#else +#define ROSDATA static __attribute__((section(".data"))) +#endif +#endif + +#define VK_EMPTY 0xff /* The non-existent VK */ +#define KSHIFT 0x001 /* Shift modifier */ +#define KCTRL 0x002 /* Ctrl modifier */ +#define KALT 0x004 /* Alt modifier */ +#define KEXT 0x100 /* Extended key code */ +#define KMULTI 0x200 /* Multi-key */ +#define KSPEC 0x400 /* Special key */ +#define KNUMP 0x800 /* Number-pad */ +#define KNUMS 0xc00 /* Special + number pad */ +#define KMEXT 0x300 /* Multi + ext */ + +ROSDATA USHORT scancode_to_vk[] = { + /* Numbers Row */ + /* - 00 - */ + /* 1 ... 2 ... 3 ... 4 ... */ + VK_EMPTY, VK_ESCAPE, '1', '2', + '3', '4', '5', '6', + '7', '8', '9', '0', + VK_OEM_MINUS, VK_OEM_PLUS, VK_BACK, + /* - 0f - */ + /* First Letters Row */ + VK_TAB, 'Q', 'W', 'E', + 'R', 'T', 'Y', 'U', + 'I', 'O', 'P', + VK_OEM_4, VK_OEM_6, VK_RETURN, + /* - 1d - */ + /* Second Letters Row */ + VK_LCONTROL, + 'A', 'S', 'D', 'F', + 'G', 'H', 'J', 'K', + 'L', VK_OEM_1, VK_OEM_7, VK_OEM_3, + VK_LSHIFT, VK_OEM_5, + /* - 2c - */ + /* Third letters row */ + 'Z', 'X', 'C', 'V', + 'B', 'N', 'M', VK_OEM_COMMA, + VK_OEM_PERIOD,VK_OEM_2, VK_RSHIFT, + /* - 37 - */ + /* Bottom Row */ + VK_MULTIPLY, VK_LMENU, VK_SPACE, VK_CAPITAL, + + /* - 3b - */ + /* F-Keys */ + VK_F1, VK_F2, VK_F3, VK_F4, VK_F5, VK_F6, + VK_F7, VK_F8, VK_F9, VK_F10, + /* - 45 - */ + /* Locks */ + VK_NUMLOCK | KMEXT, + VK_SCROLL | KMULTI, + /* - 47 - */ + /* Number-Pad */ + VK_HOME | KNUMS, VK_UP | KNUMS, VK_PRIOR | KNUMS, VK_SUBTRACT, + VK_LEFT | KNUMS, VK_CLEAR | KNUMS, VK_RIGHT | KNUMS, VK_ADD, + VK_END | KNUMS, VK_DOWN | KNUMS, VK_NEXT | KNUMS, + VK_INSERT | KNUMS, VK_DELETE | KNUMS, + /* - 54 - */ + /* Presumably PrtSc */ + VK_SNAPSHOT, + /* - 55 - */ + /* Oddities, and the remaining standard F-Keys */ + VK_EMPTY, VK_OEM_102, VK_F11, VK_F12, + /* - 59 - */ + VK_CLEAR, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* EREOF */ + VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* ZOOM */ + VK_HELP, + /* - 64 - */ + /* Even more F-Keys (for example, NCR keyboards from the early 90's) */ + VK_F13, VK_F14, VK_F15, VK_F16, VK_F17, VK_F18, VK_F19, VK_F20, + VK_F21, VK_F22, VK_F23, + /* - 6f - */ + /* Not sure who uses these codes */ + VK_EMPTY, VK_EMPTY, VK_EMPTY, + /* - 72 - */ + VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, + /* - 76 - */ + /* One more f-key */ + VK_F24, + /* - 77 - */ + VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, + VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* PA1 */ + VK_EMPTY, + /* - 80 - */ + 0 +}; + +ROSDATA VSC_VK extcode0_to_vk[] = { + { 0, 0 }, +}; + +ROSDATA VSC_VK extcode1_to_vk[] = { + { 0, 0 }, +}; + +ROSDATA VK_TO_BIT modifier_keys[] = { + { VK_SHIFT, KSHIFT }, + { VK_CONTROL, KCTRL }, + { VK_MENU, KALT }, + { 0, 0 } +}; + +ROSDATA MODIFIERS modifier_bits = { + modifier_keys, + 3, + { 0, 1, 2, 3 } /* Modifier bit order, NONE, SHIFT, CTRL, ALT */ +}; + +#define NOCAPS 0 +#define CAPS KSHIFT /* Caps -> shift */ + +ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[] = { + /* Normal vs Shifted */ + /* The numbers */ + { '1', NOCAPS, {'1', '!'} }, + /* Ctrl-2 generates NUL */ + { '3', NOCAPS, {'3', '#'} }, + { '4', NOCAPS, {'4', '$'} }, + { '5', NOCAPS, {'5', '%'} }, + /* Ctrl-6 generates RS */ + { '7', NOCAPS, {'7', '&'} }, + { '8', NOCAPS, {'8', '*'} }, + { '9', NOCAPS, {'9', '('} }, + { '0', NOCAPS, {'0', ')'} }, + + /* Specials */ + /* Ctrl-_ generates US */ + { VK_OEM_PLUS ,NOCAPS, {'=', '+'} }, + { VK_OEM_1 ,NOCAPS, {';', ':'} }, + { VK_OEM_7 ,NOCAPS, {'\'','\"'} }, + { VK_OEM_3 ,NOCAPS, {'`', '~'} }, + { VK_OEM_COMMA ,NOCAPS, {',', '<'} }, + { VK_OEM_PERIOD ,NOCAPS, {'.', '>'} }, + { VK_OEM_2 ,NOCAPS, {'/', '?'} }, + /* Keys that do not have shift states */ + { VK_TAB ,NOCAPS, {'\t','\t'} }, + { VK_ADD ,NOCAPS, {'+', '+'} }, + { VK_SUBTRACT,NOCAPS, {'-', '-'} }, + { VK_MULTIPLY,NOCAPS, {'*', '*'} }, + { VK_DIVIDE ,NOCAPS, {'/', '/'} }, + { VK_ESCAPE ,NOCAPS, {'\x1b','\x1b'} }, + { VK_SPACE ,NOCAPS, {' ', ' '} }, + { 0, 0 } +}; + +ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[] = { + /* Normal, Shifted, Ctrl */ + /* Legacy (telnet-style) ascii escapes */ + { VK_OEM_4, 0, {'[', '{', 0x1b /* ESC */} }, + { VK_OEM_6, 0, {']', '}', 0x1d /* GS */} }, + { VK_OEM_5, 0, {'\\','|', 0x1c /* FS */} }, + { VK_OEM_102,0,{'\\','|', 0x1c /* FS */} }, + { VK_RETURN,0, {'\r', '\r', '\n'} }, + { 0,0 } +}; + +ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[] = { + /* Normal, Shifted, Ctrl, C-S-x */ + + /* The alphabet */ + { 'A', CAPS, {'a', 'A', 0x01, 0x01} }, + { 'B', CAPS, {'b', 'B', 0x02, 0x02} }, + { 'C', CAPS, {'c', 'C', 0x03, 0x03} }, + { 'D', CAPS, {'d', 'D', 0x04, 0x04} }, + { 'E', CAPS, {'e', 'E', 0x05, 0x05} }, + { 'F', CAPS, {'f', 'F', 0x06, 0x06} }, + { 'G', CAPS, {'g', 'G', 0x07, 0x07} }, + { 'H', CAPS, {'h', 'H', 0x08, 0x08} }, + { 'I', CAPS, {'i', 'I', 0x09, 0x09} }, + { 'J', CAPS, {'j', 'J', 0x0a, 0x0a} }, + { 'K', CAPS, {'k', 'K', 0x0b, 0x0b} }, + { 'L', CAPS, {'l', 'L', 0x0c, 0x0c} }, + { 'M', CAPS, {'m', 'M', 0x0d, 0x0d} }, + { 'N', CAPS, {'n', 'N', 0x0e, 0x0e} }, + { 'O', CAPS, {'o', 'O', 0x0f, 0x0f} }, + { 'P', CAPS, {'p', 'P', 0x10, 0x10} }, + { 'Q', CAPS, {'q', 'Q', 0x11, 0x11} }, + { 'R', CAPS, {'r', 'R', 0x12, 0x12} }, + { 'S', CAPS, {'s', 'S', 0x13, 0x13} }, + { 'T', CAPS, {'t', 'T', 0x14, 0x14} }, + { 'U', CAPS, {'u', 'U', 0x15, 0x15} }, + { 'V', CAPS, {'v', 'V', 0x16, 0x16} }, + { 'W', CAPS, {'w', 'W', 0x17, 0x17} }, + { 'X', CAPS, {'x', 'X', 0x18, 0x18} }, + { 'Y', CAPS, {'y', 'Y', 0x19, 0x19} }, + { 'Z', CAPS, {'z', 'Z', 0x1a, 0x1a} }, + + /* Legacy Ascii generators */ + { '2', NOCAPS, {'2', '@', WCH_NONE, 0} }, + { '6', NOCAPS, {'6', '^', WCH_NONE, 0x1e /* RS */} }, + { VK_OEM_MINUS, NOCAPS, {'-', '_', WCH_NONE, 0x1f /* US */} }, + { 0, 0 } +}; + +ROSDATA VK_TO_WCHARS1 keypad_numbers[] = { + { VK_NUMPAD0, 0, {'0'} }, + { VK_NUMPAD1, 0, {'1'} }, + { VK_NUMPAD2, 0, {'2'} }, + { VK_NUMPAD3, 0, {'3'} }, + { VK_NUMPAD4, 0, {'4'} }, + { VK_NUMPAD5, 0, {'5'} }, + { VK_NUMPAD6, 0, {'6'} }, + { VK_NUMPAD7, 0, {'7'} }, + { VK_NUMPAD8, 0, {'8'} }, + { VK_NUMPAD9, 0, {'9'} }, + { VK_DECIMAL, 0, {'.'} }, + { VK_BACK, 0, {'\010'} }, + { 0,0 } +}; + +#define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) } + +ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = { + vk_master(1,keypad_numbers), + vk_master(2,key_to_chars_2mod), + vk_master(3,key_to_chars_3mod), + vk_master(4,key_to_chars_4mod), + { 0,0,0 } +}; + +ROSDATA VSC_LPWSTR key_names[] = { + { 0x00, L"" }, + { 0x01, L"Esc" }, + { 0x0e, L"Backspace" }, + { 0x0f, L"Tab" }, + { 0x1c, L"Enter" }, + { 0x1d, L"Ctrl" }, + { 0x2a, L"Shift" }, + { 0x36, L"Right Shift" }, + { 0x37, L"Num *" }, + { 0x38, L"Alt" }, + { 0x39, L"Space" }, + { 0x3a, L"Caps Lock" }, + { 0x3b, L"F1" }, + { 0x3c, L"F2" }, + { 0x3d, L"F3" }, + { 0x3e, L"F4" }, + { 0x3f, L"F5" }, + { 0x40, L"F6" }, + { 0x41, L"F7" }, + { 0x42, L"F8" }, + { 0x43, L"F9" }, + { 0x44, L"F10" }, + { 0x45, L"Pause" }, + { 0x46, L"Scroll Lock" }, + { 0x47, L"Num 7" }, + { 0x48, L"Num 8" }, + { 0x49, L"Num 9" }, + { 0x4a, L"Num -" }, + { 0x4b, L"Num 4" }, + { 0x4c, L"Num 5" }, + { 0x4d, L"Num 6" }, + { 0x4e, L"Num +" }, + { 0x4f, L"Num 1" }, + { 0x50, L"Num 2" }, + { 0x51, L"Num 3" }, + { 0x52, L"Num 0" }, + { 0x53, L"Num Del" }, + { 0x54, L"Sys Req" }, + { 0x57, L"F11" }, + { 0x58, L"F12" }, + { 0x7c, L"F13" }, + { 0x7d, L"F14" }, + { 0x7e, L"F15" }, + { 0x7f, L"F16" }, + { 0x80, L"F17" }, + { 0x81, L"F18" }, + { 0x82, L"F19" }, + { 0x83, L"F20" }, + { 0x84, L"F21" }, + { 0x85, L"F22" }, + { 0x86, L"F23" }, + { 0x87, L"F24" }, + { 0, NULL }, +}; + +ROSDATA VSC_LPWSTR extended_key_names[] = { + { 0x1c, L"Num Enter" }, + { 0x1d, L"Right Ctrl" }, + { 0x35, L"Num /" }, + { 0x37, L"Prnt Scrn" }, + { 0x38, L"Right Alt" }, + { 0x45, L"Num Lock" }, + { 0x46, L"Break" }, + { 0x47, L"Home" }, + { 0x48, L"Up" }, + { 0x49, L"Page Up" }, + { 0x4a, L"Left" }, + { 0x4c, L"Center" }, + { 0x4d, L"Right" }, + { 0x4f, L"End" }, + { 0x50, L"Down" }, + { 0x51, L"Page Down" }, + { 0x52, L"Insert" }, + { 0x53, L"Delete" }, + { 0x54, L"<ReactOS>" }, + { 0x55, L"Help" }, + { 0x56, L"Left Windows" }, + { 0x5b, L"Right Windows" }, + { 0, NULL }, +}; + +/* Finally, the master table */ +ROSDATA KBDTABLES keyboard_layout_table = { + /* modifier assignments */ + &modifier_bits, + + /* character from vk tables */ + vk_to_wchar_master_table, + + /* diacritical marks -- currently implemented by wine code */ + /* English doesn't have any, anyway */ + NULL, + + /* Key names */ + (VSC_LPWSTR *)key_names, + (VSC_LPWSTR *)extended_key_names, + NULL, /* Dead key names */ + + /* scan code to virtual key maps */ + scancode_to_vk, + sizeof(scancode_to_vk) / sizeof(scancode_to_vk[0]), + extcode0_to_vk, + extcode1_to_vk, + + MAKELONG(0,1), /* Version 1.0 */ + + /* Ligatures -- English doesn't have any */ + 0, + 0, + NULL +}; + +PKBDTABLES STDCALL KbdLayerDescriptor(VOID) { + return &keyboard_layout_table; +} + Propchange: trunk/reactos/dll/keyboard/kbdko/kbdko.c ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/dll/keyboard/kbdko/kbdko.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/keyboard/kbdko/kbdko.d…
============================================================================== --- trunk/reactos/dll/keyboard/kbdko/kbdko.def (added) +++ trunk/reactos/dll/keyboard/kbdko/kbdko.def [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -1,0 +1,8 @@ +; +; ReactOS Operating System +; +LIBRARY kbdko.dll + +EXPORTS +KbdLayerDescriptor@0 +;EOF Propchange: trunk/reactos/dll/keyboard/kbdko/kbdko.def ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/dll/keyboard/kbdko/kbdko.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/keyboard/kbdko/kbdko.r…
============================================================================== --- trunk/reactos/dll/keyboard/kbdko/kbdko.rbuild (added) +++ trunk/reactos/dll/keyboard/kbdko/kbdko.rbuild [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -1,0 +1,10 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="kbdko" type="keyboardlayout" entrypoint="0" installbase="system32" installname="kbdko.dll" allowwarnings="true"> + <importlibrary definition="kbdko.def" /> + <include base="ntoskrnl">include</include> + <define name="_DISABLE_TIDENTS" /> + <define name="_WIN32_WINNT">0x0500</define> + <file>kbdko.c</file> + <file>kbdko.rc</file> +</module> Propchange: trunk/reactos/dll/keyboard/kbdko/kbdko.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/dll/keyboard/kbdko/kbdko.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/keyboard/kbdko/kbdko.r…
============================================================================== --- trunk/reactos/dll/keyboard/kbdko/kbdko.rc (added) +++ trunk/reactos/dll/keyboard/kbdko/kbdko.rc [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -1,0 +1,5 @@ +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Korean Keyboard Layout\0" +#define REACTOS_STR_INTERNAL_NAME "kbdko\0" +#define REACTOS_STR_ORIGINAL_FILENAME "kbdko.dll\0" +#include <reactos/version.rc> Propchange: trunk/reactos/dll/keyboard/kbdko/kbdko.rc ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/dll/keyboard/keyboard.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/keyboard/keyboard.rbui…
============================================================================== --- trunk/reactos/dll/keyboard/keyboard.rbuild [iso-8859-1] (original) +++ trunk/reactos/dll/keyboard/keyboard.rbuild [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -214,4 +214,7 @@ <directory name="kbdycl"> <xi:include href="kbdycl/kbdycl.rbuild" /> </directory> + <directory name="kbdko"> + <xi:include href="kbdko/kbdko.rbuild" /> + </directory> </group> Modified: trunk/reactos/dll/win32/shell32/control.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/control.…
============================================================================== --- trunk/reactos/dll/win32/shell32/control.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/control.c [iso-8859-1] Thu Jun 19 12:58:43 2008 @@ -357,7 +357,7 @@ hMutex = CreateMutex(NULL, FALSE, (LPCTSTR) wszCmd); if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS)) - return NULL; + return; buffer = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(wszCmd) + 1) * sizeof(*wszCmd)); if (!buffer) return; @@ -417,6 +417,7 @@ Control_UnloadApplet(applet); } ReleaseMutex(hMutex); + CloseHandle(hMutex); HeapFree(GetProcessHeap(), 0, buffer); }
16 years, 6 months
1
0
0
0
[cfinck] 34027: GCC 4.3.x fixes for cabman and sysreg Also clean up sysreg a bit and put all #include's for standard headers in the .h files. (they were spread around the .cpp and the .h files previously) See issue #3370 for more details.
by cfinck@svn.reactos.org
Author: cfinck Date: Thu Jun 19 12:07:38 2008 New Revision: 34027 URL:
http://svn.reactos.org/svn/reactos?rev=34027&view=rev
Log: GCC 4.3.x fixes for cabman and sysreg Also clean up sysreg a bit and put all #include's for standard headers in the .h files. (they were spread around the .cpp and the .h files previously) See issue #3370 for more details. Modified: trunk/reactos/tools/cabman/dfp.cxx trunk/reactos/tools/sysreg/conf_parser.cpp trunk/reactos/tools/sysreg/conf_parser.h trunk/reactos/tools/sysreg/env_var.cpp trunk/reactos/tools/sysreg/env_var.h trunk/reactos/tools/sysreg/file_reader.cpp trunk/reactos/tools/sysreg/file_reader.h trunk/reactos/tools/sysreg/namedpipe_reader.cpp trunk/reactos/tools/sysreg/namedpipe_reader.h trunk/reactos/tools/sysreg/os_support.cpp trunk/reactos/tools/sysreg/os_support.h trunk/reactos/tools/sysreg/pipe_reader.cpp trunk/reactos/tools/sysreg/pipe_reader.h trunk/reactos/tools/sysreg/rosboot_test.cpp trunk/reactos/tools/sysreg/rosboot_test.h Modified: trunk/reactos/tools/cabman/dfp.cxx URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cabman/dfp.cxx?rev=3…
============================================================================== --- trunk/reactos/tools/cabman/dfp.cxx [iso-8859-1] (original) +++ trunk/reactos/tools/cabman/dfp.cxx [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -1373,8 +1373,8 @@ return; } i = 0; - while ((CurrentChar + i < LineLength) && - (((ch = Line[CurrentChar + i]) >= 'a') && (ch <= 'z')) || + while (((CurrentChar + i < LineLength) && + (((ch = Line[CurrentChar + i]) >= 'a') && (ch <= 'z'))) || ((ch >= 'A') && (ch <= 'Z')) || (ch == '_')) { CurrentString[i] = ch; Modified: trunk/reactos/tools/sysreg/conf_parser.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/conf_parser.c…
============================================================================== --- trunk/reactos/tools/sysreg/conf_parser.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/conf_parser.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -8,11 +8,6 @@ */ #include "conf_parser.h" -#include <iostream> -#include <sstream> -#include <fstream> -#include <cstdio> -#include <cstdlib> namespace Sysreg_ { Modified: trunk/reactos/tools/sysreg/conf_parser.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/conf_parser.h…
============================================================================== --- trunk/reactos/tools/sysreg/conf_parser.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/conf_parser.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -12,6 +12,11 @@ #include "user_types.h" #include <map> +#include <iostream> +#include <sstream> +#include <fstream> +#include <cstdio> +#include <cstdlib> namespace Sysreg_ { Modified: trunk/reactos/tools/sysreg/env_var.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/env_var.cpp?r…
============================================================================== --- trunk/reactos/tools/sysreg/env_var.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/env_var.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -9,9 +9,6 @@ #include "env_var.h" -#include <iostream> -#include <cstdlib> -#include <cstring> namespace System_ { Modified: trunk/reactos/tools/sysreg/env_var.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/env_var.h?rev…
============================================================================== --- trunk/reactos/tools/sysreg/env_var.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/env_var.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -12,7 +12,9 @@ #include "user_types.h" #include <map> - +#include <iostream> +#include <cstdlib> +#include <cstring> namespace System_ { Modified: trunk/reactos/tools/sysreg/file_reader.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/file_reader.c…
============================================================================== --- trunk/reactos/tools/sysreg/file_reader.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/file_reader.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -8,9 +8,6 @@ */ #include "file_reader.h" -#include <cassert> -#include <cstdio> -#include <cstring> namespace System_ { Modified: trunk/reactos/tools/sysreg/file_reader.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/file_reader.h…
============================================================================== --- trunk/reactos/tools/sysreg/file_reader.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/file_reader.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -14,6 +14,10 @@ #include "user_types.h" #include "data_source.h" #include <vector> +#include <cassert> +#include <cstdio> +#include <cstring> + namespace System_ { using std::vector; Modified: trunk/reactos/tools/sysreg/namedpipe_reader.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/namedpipe_rea…
============================================================================== --- trunk/reactos/tools/sysreg/namedpipe_reader.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/namedpipe_reader.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -10,10 +10,6 @@ #include "namedpipe_reader.h" -#include <iostream> -#include <cassert> -#include <cstring> - namespace System_ { #define MIN(a, b) (((a) < (b)) ? (a) : (b)) Modified: trunk/reactos/tools/sysreg/namedpipe_reader.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/namedpipe_rea…
============================================================================== --- trunk/reactos/tools/sysreg/namedpipe_reader.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/namedpipe_reader.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -16,8 +16,11 @@ #include "user_types.h" #include "data_source.h" #include <vector> -#include <stdio.h> -#include <stdlib.h> +#include <cstdio> +#include <cstdlib> +#include <iostream> +#include <cassert> +#include <cstring> #if defined(WIN32) #include <windows.h> @@ -25,8 +28,6 @@ #else #include <unistd.h> #include <fcntl.h> -#include <stdio.h> -#include <stdlib.h> #define NULLVAL 0 #define DWORD unsigned long #define HANDLE long Modified: trunk/reactos/tools/sysreg/os_support.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/os_support.cp…
============================================================================== --- trunk/reactos/tools/sysreg/os_support.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/os_support.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -8,7 +8,6 @@ */ #include "os_support.h" -#include <cstdlib> namespace System_ { Modified: trunk/reactos/tools/sysreg/os_support.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/os_support.h?…
============================================================================== --- trunk/reactos/tools/sysreg/os_support.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/os_support.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -22,6 +22,7 @@ #include "user_types.h" #include <ctime> #include <vector> +#include <cstdlib> #ifndef _MSC_VER #include <sys/time.h> Modified: trunk/reactos/tools/sysreg/pipe_reader.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/pipe_reader.c…
============================================================================== --- trunk/reactos/tools/sysreg/pipe_reader.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/pipe_reader.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -8,9 +8,6 @@ */ #include "pipe_reader.h" - -#include <iostream> -#include <assert.h> namespace System_ { Modified: trunk/reactos/tools/sysreg/pipe_reader.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/pipe_reader.h…
============================================================================== --- trunk/reactos/tools/sysreg/pipe_reader.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/pipe_reader.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -15,7 +15,11 @@ #include "user_types.h" #include "data_source.h" #include <cstdio> -//#include <stdlib.h> +#include <iostream> +#include <cassert> +#include <cstdlib> +#include <cstring> +#include <limits.h> namespace System_ { Modified: trunk/reactos/tools/sysreg/rosboot_test.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/rosboot_test.…
============================================================================== --- trunk/reactos/tools/sysreg/rosboot_test.cpp [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/rosboot_test.cpp [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -10,28 +10,6 @@ #include "rosboot_test.h" -#include "pipe_reader.h" -#include "namedpipe_reader.h" -//#include "sym_file.h" -#include "file_reader.h" -#include "os_support.h" -#include "env_var.h" - -#include <iostream> -#include <vector> -#include <fstream> -#include <cassert> -#include <cfloat> -#include <cmath> -#include <csignal> -#include <cstdio> -#include <cstdlib> -#include <cstring> -#include <ctime> -#ifndef __LINUX__ -#include <io.h> -#include <errno.h> -#endif namespace Sysreg_ { Modified: trunk/reactos/tools/sysreg/rosboot_test.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/rosboot_test.…
============================================================================== --- trunk/reactos/tools/sysreg/rosboot_test.h [iso-8859-1] (original) +++ trunk/reactos/tools/sysreg/rosboot_test.h [iso-8859-1] Thu Jun 19 12:07:38 2008 @@ -13,7 +13,28 @@ #include "conf_parser.h" #include "os_support.h" #include "user_types.h" +#include "pipe_reader.h" +#include "namedpipe_reader.h" +#include "file_reader.h" +#include "os_support.h" +#include "env_var.h" #include <vector> +#include <iostream> +#include <vector> +#include <fstream> +#include <cassert> +#include <cfloat> +#include <cmath> +#include <csignal> +#include <cstdio> +#include <cstdlib> +#include <cstring> +#include <ctime> +#ifndef __LINUX__ +#include <io.h> +#include <errno.h> +#endif + #ifdef __LINUX__ #include <unistd.h> #include <sys/types.h>
16 years, 6 months
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
44
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Results per page:
10
25
50
100
200