[Cegcc-devel] [commit] Add some posix io functions to mingwex.

2006-11-12 Thread Pedro Alves
Hi all, While porting gdbserver I stumbled on yet again having to provide write and read functions as wrappers around ReadFile and WriteFile. This is about the fourth time I do in a short period, so, I've put those functions in libmingwex.a (*), to make this the last time. While I was at it, I

Re: [Cegcc-devel] [commit] Add some posix io functions to mingwex.

2006-11-12 Thread Danny Backx
I'll port the profiling stuff to this; I'm already mostly through its revised build (as we agreed). Danny On Sun, 2006-11-12 at 12:51 +, Pedro Alves wrote: > Hi all, > > While porting gdbserver I stumbled on yet again having to provide write > and read functions > as wrappers around

Re: [Cegcc-devel] [commit] Add some posix io functions to mingwex.

2006-11-12 Thread Pedro Alves
Pedro Alves wrote: Hi all, While porting gdbserver I stumbled on yet again having to provide write and read functions as wrappers around ReadFile and WriteFile. This is about the fourth time I do in a short period, so, I've put those functions in libmingwex.a (*), to make this the last time.

Re: [Cegcc-devel] src/mingw broken.

2006-11-12 Thread Pedro Alves
Pedro Alves wrote: > Hi all, > > I've broken the building of src/mingw with revision 784 > I have the fix here ready to commit, but my local trunk copy decided to > get broken. > I hope to be able to commit the fix in the next hours. > You can svn up to revision 783 to work around this. > Trunk

[Cegcc-devel] [commit] lseek catch invalid whence.

2006-11-12 Thread Pedro Alves
Hi all, I am committing this small patch to make lseek handle the case there an invalid whence is passed. The error handling is delegated to SetFilePointer. (Remember that there is no errno in coredll.dll, only Get|SetLastError(), which doesn't map perfectly). Cheers, Pedro Alves --- 2006-1

[Cegcc-devel] [commit] libstdc++ cleanups

2006-11-12 Thread Pedro Alves
Hi all, Here are the libstdc++ cleanups possible because of the previous libmingxex commits. Cheers, Pedro Alves src/gcc/libstdc++-v3/ChangeLog.ce: 2006-11-12 Pedro Alves <[EMAIL PROTECTED]> * config/io/basic_file_stdio.cc (__gnu_internal::read, __gnu_internal::write, __gnu_internal

[Cegcc-devel] [commit] Define _M_ARM and ARM with the correct values.

2006-11-12 Thread Pedro Alves
Hi all, Looking at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcechp40/html/ccrefPredefinedPreprocessorIdentifiers.asp It says: *_M_ARM*Defined as 4 for ARM. *_M_ARMT* Defined as 4 for Thumb. But, testing with MSVC with the following mini-program, and with

Re: [Cegcc-devel] w32api changes for CE

2006-11-12 Thread Pedro Alves
Kevin O'Connor wrote: Hi, This is a resend of a patch I sent last week. I'm including additional information on each of the changes. Thank you for doing this. I've tweaked a bit the patch, and added a few validations for the CE version being compiled. Also, CloseToolhelp32Snapshot is W

Re: [Cegcc-devel] w32api changes for CE

2006-11-12 Thread Pedro Alves
Kevin O'Connor wrote: > One more addition. > > I need two additional SPI_xxx defines. The names are from: > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefSystemParametersInfo.asp > > The values come from the haret code. > Thanks, committed. A few notes:

[Cegcc-devel] [commit] A few ImageList tweaks.

2006-11-12 Thread Pedro Alves
Hi all, I'm committing this patch to w32api to tweak a bit the ImageList support to match the descriptions here: IMAGELISTDRAWPARAMS: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefIMAGELISTDRAWPARAMS.asp ImageList_Duplicate: http://msdn.microsoft.com/libra

[Cegcc-devel] [commit, w32api] SHCreateShortcut, SHGetShortcutTarget and SHGetSpecialFolderPath.

2006-11-12 Thread Pedro Alves
**Hi all, I am committing this patch to add support for: SHCreateShortcut: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/html/wce50lrfSHCreateShortcut.asp ** SHGetShortcutTarget:* *http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/html/wc

[Cegcc-devel] [commit, w32api] GetTextExtentPoint32, GetTextExtentPoint.

2006-11-12 Thread Pedro Alves
Hi all, I can find GetTextEntentPointW or GetTextEntentPoint32W in coredll.dll. By looking at: http://msdn2.microsoft.com/en-us/library/ms901135.aspx http://msdn2.microsoft.com/en-us/library/ms901136.aspx http://msdn2.microsoft.com/en-us/library/ms901137.aspx Particularly: "If both the /lpnFit/

[Cegcc-devel] [commit, w32api] DrawIcon.

2006-11-12 Thread Pedro Alves
Hi all, I'm committing a change to DrawIcon, implementing it as explained here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/wcesdkrDrawIcon.asp "The *DrawIcon* function is implemented as a macro, defined as *DrawIconEx(*/hdc/, /x/, /y/, /hicon/, 0, 0, 0, NULL,

[Cegcc-devel] [commit, w32api] GetSystemMenu.

2006-11-12 Thread Pedro Alves
Hi all, While porting a desktop app to the Pocket PC, I stumbled on GetSystemMenu. Looking at: http://msdn2.microsoft.com/en-us/library/aa453169.aspx I implemented GetSystemMenu as: #define GetSystemMenu(hwnd, revert) ((revert)?NULL:(HMENU)(hwnd)) And it does work as advertised, so I am positiv