You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
(203) |
Sep
(142) |
Oct
(113) |
Nov
(73) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(7) |
Feb
(38) |
Mar
(6) |
Apr
(1) |
May
(9) |
Jun
(104) |
Jul
(6) |
Aug
(11) |
Sep
(13) |
Oct
(6) |
Nov
(15) |
Dec
(37) |
2008 |
Jan
(17) |
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(2) |
Jun
(5) |
Jul
(1) |
Aug
(3) |
Sep
(21) |
Oct
(7) |
Nov
|
Dec
(3) |
2009 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
(34) |
May
(44) |
Jun
(12) |
Jul
(6) |
Aug
(15) |
Sep
(20) |
Oct
(10) |
Nov
(1) |
Dec
(20) |
2010 |
Jan
(19) |
Feb
(5) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ped...@us...> - 2007-05-31 20:41:54
|
Revision: 924 http://svn.sourceforge.net/cegcc/?rev=924&view=rev Author: pedroalves Date: 2007-05-31 13:40:22 -0700 (Thu, 31 May 2007) Log Message: ----------- Fix typo. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:35:30 UTC (rev 923) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:40:22 UTC (rev 924) @@ -4,7 +4,7 @@ [_WIN32_WCE]: Hide cxHeader field. (CMDBAR_HELP, CMDBAR_OK): Define. (tagCOMMANDBANDSRESTOREINFO, COMMANDBANDSRESTOREINFO, - (LPCOMMANDBANDSRESTOREINFO): Define. + LPCOMMANDBANDSRESTOREINFO): Define. (CommandBands_AddAdornments, CommandBands_AddBands, CommandBands_Create, CommandBands_GetCommandBar, CommandBands_GetRestoreInformation, CommandBands_Show): Define. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-31 20:35:31
|
Revision: 923 http://svn.sourceforge.net/cegcc/?rev=923&view=rev Author: pedroalves Date: 2007-05-31 13:35:30 -0700 (Thu, 31 May 2007) Log Message: ----------- * include/commctrl.h (tagREBARBANDINFOA, tagREBARBANDINFOW) [_WIN32_WCE]: Hide cxHeader field. (CMDBAR_HELP, CMDBAR_OK): Define. (tagCOMMANDBANDSRESTOREINFO, COMMANDBANDSRESTOREINFO, (LPCOMMANDBANDSRESTOREINFO): Define. (CommandBands_AddAdornments, CommandBands_AddBands, CommandBands_Create, CommandBands_GetCommandBar, CommandBands_GetRestoreInformation, CommandBands_Show): Define. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/commctrl.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:24:51 UTC (rev 922) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:35:30 UTC (rev 923) @@ -1,3 +1,14 @@ +2007-05-31 Carsten S\xF8rensen <sur...@ri...> + + * include/commctrl.h (tagREBARBANDINFOA, tagREBARBANDINFOW) + [_WIN32_WCE]: Hide cxHeader field. + (CMDBAR_HELP, CMDBAR_OK): Define. + (tagCOMMANDBANDSRESTOREINFO, COMMANDBANDSRESTOREINFO, + (LPCOMMANDBANDSRESTOREINFO): Define. + (CommandBands_AddAdornments, CommandBands_AddBands, + CommandBands_Create, CommandBands_GetCommandBar, + CommandBands_GetRestoreInformation, CommandBands_Show): Define. + 2007-05-31 Pedro Alves <ped...@po...> * include/commctrl.h: Formatting fixes. Modified: trunk/cegcc/src/w32api/include/commctrl.h =================================================================== --- trunk/cegcc/src/w32api/include/commctrl.h 2007-05-31 20:24:51 UTC (rev 922) +++ trunk/cegcc/src/w32api/include/commctrl.h 2007-05-31 20:35:30 UTC (rev 923) @@ -2823,8 +2823,10 @@ UINT cyIntegral; UINT cxIdeal; LPARAM lParam; +#if !defined(_WIN32_WCE) UINT cxHeader; #endif +#endif } REBARBANDINFOA,*LPREBARBANDINFOA; typedef struct tagREBARBANDINFOW { UINT cbSize; @@ -2847,8 +2849,10 @@ UINT cyIntegral; UINT cxIdeal; LPARAM lParam; +#if !defined(_WIN32_WCE) UINT cxHeader; #endif +#endif } REBARBANDINFOW,*LPREBARBANDINFOW; typedef REBARBANDINFOA const *LPCREBARBANDINFOA; typedef REBARBANDINFOW const *LPCREBARBANDINFOW; @@ -3716,6 +3720,21 @@ #define RB_INSERTBAND RB_INSERTBANDA #define RB_SETBANDINFO RB_SETBANDINFOA #endif + +#if (_WIN32_WCE >= 0x200) + +#define CMDBAR_HELP 0x000B +#define CMDBAR_OK 0xF000 + +typedef struct tagCOMMANDBANDSRESTOREINFO { + UINT cbSize; + UINT wID; + UINT fStyle; + UINT cxRestored; + BOOL fMaximized; +} COMMANDBANDSRESTOREINFO, *LPCOMMANDBANDSRESTOREINFO; +#endif /* _WIN32_WCE >= 0x200 */ + #endif /* RC_INVOKED */ #ifdef _WIN32_WCE @@ -3737,6 +3756,19 @@ #endif /* _WIN32_WCE */ +#if (_WIN32_WCE >= 0x0200) + +COMMCTRLAPI BOOL WINAPI CommandBands_AddAdornments(HWND,HINSTANCE,DWORD,LPREBARBANDINFO); +COMMCTRLAPI BOOL WINAPI CommandBands_AddBands(HWND,HINSTANCE,UINT,LPREBARBANDINFO); +COMMCTRLAPI HWND WINAPI CommandBands_Create(HINSTANCE,HWND,UINT,DWORD,HIMAGELIST); +COMMCTRLAPI HWND WINAPI CommandBands_GetCommandBar(HWND,UINT); +COMMCTRLAPI BOOL WINAPI CommandBands_GetRestoreInformation(HWND,UINT,LPCOMMANDBANDSRESTOREINFO); +COMMCTRLAPI BOOL WINAPI CommandBands_Show(HWND,BOOL); + +#define CommandBands_Height(hwnd) ((UINT)SendMessage((hwnd),RB_GETBARHEIGHT,0,0)) + +#endif /* _WIN32_WCE >= 0x200 */ + #ifdef __cplusplus } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-31 20:25:16
|
Revision: 922 http://svn.sourceforge.net/cegcc/?rev=922&view=rev Author: pedroalves Date: 2007-05-31 13:24:51 -0700 (Thu, 31 May 2007) Log Message: ----------- * include/commctrl.h: Formatting fixes. (CommandBar_InsertButton): Change return type to BOOL. (CommandBar_Destroy): Change return type to void. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/commctrl.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-30 12:04:05 UTC (rev 921) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-31 20:24:51 UTC (rev 922) @@ -1,3 +1,9 @@ +2007-05-31 Pedro Alves <ped...@po...> + + * include/commctrl.h: Formatting fixes. + (CommandBar_InsertButton): Change return type to BOOL. + (CommandBar_Destroy): Change return type to void. + 2007-05-30 Pedro Alves <ped...@po...> * include/mmsystem.h (waveOutGetDevCapsW, waveOutGetErrorTextW) Modified: trunk/cegcc/src/w32api/include/commctrl.h =================================================================== --- trunk/cegcc/src/w32api/include/commctrl.h 2007-05-30 12:04:05 UTC (rev 921) +++ trunk/cegcc/src/w32api/include/commctrl.h 2007-05-31 20:24:51 UTC (rev 922) @@ -3718,26 +3718,23 @@ #endif #endif /* RC_INVOKED */ -#ifdef _WIN32_WCE /* these are PPC only */ +#ifdef _WIN32_WCE -COMMCTRLAPI HWND WINAPI CommandBar_Create(HINSTANCE, HWND, int); -COMMCTRLAPI BOOL WINAPI CommandBar_Show(HWND, BOOL); -COMMCTRLAPI int WINAPI CommandBar_AddBitmap(HWND, HINSTANCE, int, int, int, int); -COMMCTRLAPI HWND WINAPI CommandBar_InsertComboBox(HWND, HINSTANCE, int, UINT, WORD, WORD); -COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubar(HWND, HINSTANCE, WORD, WORD ); -COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubarEx(HWND, HINSTANCE, LPTSTR, WORD); -COMMCTRLAPI BOOL WINAPI CommandBar_DrawMenuBar(HWND, WORD); -COMMCTRLAPI HMENU WINAPI CommandBar_GetMenu(HWND, WORD); -COMMCTRLAPI BOOL WINAPI CommandBar_AddAdornments(HWND, DWORD, DWORD); -COMMCTRLAPI int WINAPI CommandBar_Height(HWND hwndCB); +COMMCTRLAPI HWND WINAPI CommandBar_Create(HINSTANCE,HWND,int); +COMMCTRLAPI BOOL WINAPI CommandBar_Show(HWND,BOOL); +COMMCTRLAPI int WINAPI CommandBar_AddBitmap(HWND,HINSTANCE,int,int,int,int); +#define CommandBar_InsertButton(hwnd,i,lptbbutton) ((BOOL)SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton))) +COMMCTRLAPI HWND WINAPI CommandBar_InsertComboBox(HWND,HINSTANCE,int,UINT,WORD,WORD); +COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubar(HWND,HINSTANCE,WORD,WORD); +COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubarEx(HWND,HINSTANCE,LPTSTR,WORD); +COMMCTRLAPI BOOL WINAPI CommandBar_DrawMenuBar(HWND,WORD); +COMMCTRLAPI HMENU WINAPI CommandBar_GetMenu(HWND,WORD); +COMMCTRLAPI BOOL WINAPI CommandBar_AddAdornments(HWND,DWORD,DWORD); +COMMCTRLAPI int WINAPI CommandBar_Height(HWND); -/* These two are not in the DLL */ -#define CommandBar_InsertButton(hwnd,i,lptbbutton) \ - SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton)) -#define CommandBar_Destroy(hwnd) \ - DestroyWindow(hwnd) +#define CommandBar_InsertButton(hwnd,i,lptbbutton) ((BOOL)SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton))) +#define CommandBar_Destroy(hwnd) ((void)DestroyWindow(hwnd)) - #endif /* _WIN32_WCE */ #ifdef __cplusplus This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-30 18:45:54
|
Revision: 921 http://svn.sourceforge.net/cegcc/?rev=921&view=rev Author: pedroalves Date: 2007-05-30 05:04:05 -0700 (Wed, 30 May 2007) Log Message: ----------- * include/mmsystem.h (waveOutGetDevCapsW, waveOutGetErrorTextW) (waveInGetDevCapsW, waveInGetErrorTextW, mixerGetDevCapsW) (mixerGetLineInfoW, mixerGetLineControlsW) (mixerGetControlDetailsW) [_WIN32_WCE]: Define as waveOutGetDevCaps, waveOutGetErrorText, waveInGetDevCaps, waveInGetErrorText, mixerGetDevCaps, mixerGetLineInfo, mixerGetLineControls and mixerGetControlDetails. (waveOutGetDevCaps, waveOutGetErrorText, waveInGetDevCaps) (waveInGetErrorText, mixerGetDevCaps, mixerGetLineInfo) (mixerGetLineControls, mixerGetControlDetails) [_WIN32_WCE]: Don't map to the W counterparts. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/mmsystem.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-28 09:48:22 UTC (rev 920) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-05-30 12:04:05 UTC (rev 921) @@ -1,3 +1,18 @@ +2007-05-30 Pedro Alves <ped...@po...> + + * include/mmsystem.h (waveOutGetDevCapsW, waveOutGetErrorTextW) + (waveInGetDevCapsW, waveInGetErrorTextW, mixerGetDevCapsW) + (mixerGetLineInfoW, mixerGetLineControlsW) + (mixerGetControlDetailsW) [_WIN32_WCE]: Define as waveOutGetDevCaps, + waveOutGetErrorText, waveInGetDevCaps, waveInGetErrorText, + mixerGetDevCaps, mixerGetLineInfo, mixerGetLineControls and + mixerGetControlDetails. + + (waveOutGetDevCaps, waveOutGetErrorText, waveInGetDevCaps) + (waveInGetErrorText, mixerGetDevCaps, mixerGetLineInfo) + (mixerGetLineControls, mixerGetControlDetails) [_WIN32_WCE]: Don't + map to the W counterparts. + 2007-03-26 Pedro Alves <ped...@po...> * libce/coredll.def: Add 'keep in sync' warning. Modified: trunk/cegcc/src/w32api/include/mmsystem.h =================================================================== --- trunk/cegcc/src/w32api/include/mmsystem.h 2007-05-28 09:48:22 UTC (rev 920) +++ trunk/cegcc/src/w32api/include/mmsystem.h 2007-05-30 12:04:05 UTC (rev 921) @@ -1561,6 +1561,12 @@ BOOL WINAPI PlaySoundA(LPCSTR,HMODULE,DWORD); BOOL WINAPI PlaySoundW(LPCWSTR,HMODULE,DWORD); UINT WINAPI waveOutGetNumDevs(void); +#ifdef _WIN32_WCE +#define waveOutGetDevCapsW waveOutGetDevCaps +#define waveOutGetErrorTextW waveOutGetErrorText +#define waveInGetDevCapsW waveInGetDevCaps +#define waveInGetErrorTextW waveInGetErrorText +#endif MMRESULT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT); MMRESULT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT); MMRESULT WINAPI waveOutGetVolume(HWAVEOUT,PDWORD); @@ -1649,6 +1655,12 @@ MMRESULT WINAPI auxGetVolume(UINT,PDWORD); MMRESULT WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD); UINT WINAPI mixerGetNumDevs(void); +#ifdef _WIN32_WCE +#define mixerGetDevCapsW mixerGetDevCaps +#define mixerGetLineInfoW mixerGetLineInfo +#define mixerGetLineControlsW mixerGetLineControls +#define mixerGetControlDetailsW mixerGetControlDetails +#endif MMRESULT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT); MMRESULT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT); MMRESULT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD); @@ -1863,19 +1875,23 @@ typedef MCI_OVLY_SAVE_PARMSW MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS; #define sndPlaySound sndPlaySoundW #define PlaySound PlaySoundW +#ifndef _WIN32_WCE #define waveOutGetDevCaps waveOutGetDevCapsW #define waveOutGetErrorText waveOutGetErrorTextW #define waveInGetDevCaps waveInGetDevCapsW #define waveInGetErrorText waveInGetErrorTextW +#endif #define midiOutGetDevCaps midiOutGetDevCapsW #define midiOutGetErrorText midiOutGetErrorTextW #define midiInGetDevCaps midiInGetDevCapsW #define midiInGetErrorText midiInGetErrorTextW #define auxGetDevCaps auxGetDevCapsW +#ifndef _WIN32_WCE #define mixerGetDevCaps mixerGetDevCapsW #define mixerGetLineInfo mixerGetLineInfoW #define mixerGetLineControls mixerGetLineControlsW #define mixerGetControlDetails mixerGetControlDetailsW +#endif #define joyGetDevCaps joyGetDevCapsW #define mmioInstallIOProc mmioInstallIOProcW #define mmioStringToFOURCC mmioStringToFOURCCW This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-05-28 09:48:23
|
Revision: 920 http://svn.sourceforge.net/cegcc/?rev=920&view=rev Author: dannybackx Date: 2007-05-28 02:48:22 -0700 (Mon, 28 May 2007) Log Message: ----------- Add error detection, this made me miss a build error, which in turn caused the C++ DLL not to be in the distributions I made using this script up to now. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-cegcc.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-05-28 00:22:18 UTC (rev 919) +++ trunk/cegcc/src/ChangeLog 2007-05-28 09:48:22 UTC (rev 920) @@ -1,3 +1,7 @@ +2007-05-28 Danny Backx <dan...@us...> + + * build-cegcc.sh (build_libstdcppdll) : Add error handling. + 2007-05-13 Pedro Alves <ped...@po...> * build-mingw32ce.sh: Rewrite command line parameters logic. Modified: trunk/cegcc/src/build-cegcc.sh =================================================================== --- trunk/cegcc/src/build-cegcc.sh 2007-05-28 00:22:18 UTC (rev 919) +++ trunk/cegcc/src/build-cegcc.sh 2007-05-28 09:48:22 UTC (rev 920) @@ -221,8 +221,8 @@ echo "" cd ${BASE_DIRECTORY}/cegcc/libstdc++ || exit 1 - make - make install + make || exit 1 + make install || exit 1 } function build_gdb() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-28 00:22:19
|
Revision: 919 http://svn.sourceforge.net/cegcc/?rev=919&view=rev Author: pedroalves Date: 2007-05-27 17:22:18 -0700 (Sun, 27 May 2007) Log Message: ----------- * moldname.def.in (unlink): Don't export from coredll.dll. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/moldname.def.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-05-28 00:21:09 UTC (rev 918) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-05-28 00:22:18 UTC (rev 919) @@ -1,3 +1,7 @@ +2007-05-28 Pedro Alves <ped...@po...> + + * moldname.def.in (unlink): Don't export from coredll.dll. + 2007-04-19 Pedro Alves <ped...@po...> * moldname.def.in (tempnam): Don't export from coredll.dll. Modified: trunk/cegcc/src/mingw/moldname.def.in =================================================================== --- trunk/cegcc/src/mingw/moldname.def.in 2007-05-28 00:21:09 UTC (rev 918) +++ trunk/cegcc/src/mingw/moldname.def.in 2007-05-28 00:22:18 UTC (rev 919) @@ -141,9 +141,6 @@ tzset umask ungetch -#endif /* __COREDLL__ */ -unlink -#ifndef __COREDLL__ utime #endif /* __COREDLL__ */ wcsdup This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-28 00:21:10
|
Revision: 918 http://svn.sourceforge.net/cegcc/?rev=918&view=rev Author: pedroalves Date: 2007-05-27 17:21:09 -0700 (Sun, 27 May 2007) Log Message: ----------- Cleanup a bit. Add emacs modelines. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-05-13 20:59:49 UTC (rev 917) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-05-28 00:21:09 UTC (rev 918) @@ -1,23 +1,22 @@ 2007-04-19 Pedro Alves <ped...@po...> - - * moldname.def.in (tempnam): Don't export on - coredll.dll. + + * moldname.def.in (tempnam): Don't export from coredll.dll. * mingwex/wince/tempnam.c (tempnam): New. 2007-03-26 Pedro Alves <ped...@po...> - + * mingwex/Makefile.in (LIBS): Add libcoredll.a. (libcoredll.a): Add dependencies rule. * coredll.def: Add 'keep in sync' warning. 2007-02-24 Pedro Alves <ped...@po...> - + * mingwex/Makefile.in (STDIO_OBJS_CE): New. (LIB_OBJS): Add STDIO_OBJS_CE. * include/stdio.h (perror): Expose. 2007-02-24 Pedro Alves <ped...@po...> - + * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on __MINGW32CE__ * include/math.h (_isnanf, _isnan): Declare. @@ -44,7 +43,7 @@ * include/sys/utime.h (_utime, utime, _futime): Expose. 2007-02-07 Pedro Alves <ped...@po...> - + * include/math.h: Expose __fpclassifyf, __fpclassify, __fpclassifyl, and fpclassify. (_isnanl): Implement on terms of fpclassify. @@ -175,7 +174,7 @@ * mingwex/wince/isxdigit.c: New file. * mingwex/wince/_tolower.c: New file. * mingwex/wince/_toupper.c: New file. - + 2006-12-30 Danny Backx <dan...@us...> * profile : Create a profile/profile tree as a copy of the @@ -381,8 +380,9 @@ * __dllonexit.c : Likewise. * dllcrt1.c : Don't include io.h on __COREDLL__. * crt1.c : Likewise. - + 2006-10-15 Danny Backx <dan...@so...> + * configure.in: always configure profile subdirectory. * configure: regenerated due to configure.in changes. * profile/gcrt0.c profile/gmon.c profile/profil.h @@ -399,10 +399,17 @@ 2006-10-05 Pedro Alves <ped...@po...> - * include/_mingw.h (__CRT_INLINE): Use __attribute__ ((__always_inline__)) - on Windows CE. + * include/_mingw.h (__CRT_INLINE): Use + __attribute__ ((__always_inline__)) on Windows CE. 2006-10-05 Pedro Alves <ped...@po...> - * include/ctype.h: Always use the inline versions of is* - on Windows CE. + * include/ctype.h: Always use the inline versions of is* on + Windows CE. + +Local Variables: +mode: change-log +left-margin: 8 +fill-column: 74 +version-control: never +End: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-05-13 23:38:39
|
Revision: 917 http://svn.sourceforge.net/cegcc/?rev=917&view=rev Author: pedroalves Date: 2007-05-13 13:59:49 -0700 (Sun, 13 May 2007) Log Message: ----------- * build-mingw32ce.sh: Rewrite command line parameters logic. Add '--prefix' and '--components' options. Don't mkdir build-mingw32ce. Build on cwd. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-04-19 19:07:39 UTC (rev 916) +++ trunk/cegcc/src/ChangeLog 2007-05-13 20:59:49 UTC (rev 917) @@ -1,3 +1,9 @@ +2007-05-13 Pedro Alves <ped...@po...> + + * build-mingw32ce.sh: Rewrite command line parameters logic. + Add '--prefix' and '--components' options. Don't mkdir + build-mingw32ce. Build on cwd. + 2007-03-27 Pedro Alves <ped...@po...> * build-mingw32ce.sh (build_import_libs): Delete. Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2007-04-19 19:07:39 UTC (rev 916) +++ trunk/cegcc/src/build-mingw32ce.sh 2007-05-13 20:59:49 UTC (rev 917) @@ -1,37 +1,136 @@ #!/bin/sh -if [ $# -lt 2 ] ; then +BASE_DIRECTORY=`dirname $0` +BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; pwd)` +ME=`basename $0` -echo "Using defaults:" -export BASE_DIRECTORY=`readlink -f .` -export BUILD_DIR=${BASE_DIRECTORY}/build-mingw32ce -export PREFIX=/opt/mingw32ce +# +# Initializations. +# +ac_default_prefix="/opt/mingw32ce" +export BUILD_DIR=`pwd` -if [ $# -lt 1 ] ; then -BUILD_OPT="all" +function usage +{ + cat << _ACEOF + +$ME builds the mingw32ce toolchain. + +Usage: $0 [OPTIONS] ... + + -h, --help print this help, then exit + --prefix=PREFIX install toolchain in PREFIX + [$ac_default_prefix] + --components=LIST specify which components to build + valid components are: all,binutils,gcc,w32api,mingw, + gdb,gdbstub,docs and profile + [all] + +Report bugs to <ceg...@li...>. +_ACEOF + +} + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + case $ac_option in + + -help | --help | --hel | --he | -h) + usage; exit 0 ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -components | --components | --component | --componen | \ + --compone | --compon | --compo | --comp | --com \ + | --co | --c) + ac_prev=components ;; + -components=* | --components=* | --component=* | --componen=* \ + | --compone=* | --compon=* | --compo=* | --comp=* | --com=* \ + | --co=* | --c=*) + components=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + ;; + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +if [ "x${prefix}" != "x" ]; then + export PREFIX="${prefix}" else -BUILD_OPT="$1" -shift + export PREFIX=${ac_default_prefix} fi +# Figure out what components where requested to be built. +if test x"${components+set}" != xset; then + components=all else - -export BASE_DIRECTORY=`readlink -f $1` -export BUILD_DIR=`readlink -f $2` -export PREFIX=`readlink -f $3` -BUILD_OPT="$1" -shift 4 + if test x"${components}" = x || + test x"${components}" = xyes; + then + echo --components needs at least one argument 1>&2 + exit 1 + fi fi +# embedded tabs in the sed below -- do not untabify +components=`echo "${components}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` + +echo The following components will be built: ${components} + export TARGET="arm-wince-mingw32ce" export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess` export PATH=${PREFIX}/bin:${PATH} -#export CFLAGS="-g3 -O0" echo "Building mingw32ce:" echo "source: ${BASE_DIRECTORY}" -echo "build: ${BUILD_DIR}" +echo "building in: ${BUILD_DIR}" echo "prefix: ${PREFIX}" +echo "components: ${components}" mkdir -p ${BUILD_DIR} || exit 1 mkdir -p ${PREFIX} || exit 1 @@ -42,8 +141,8 @@ echo "BUILDING BINUTILS --------------------------" echo "" echo "" - mkdir -p ${BUILD_DIR}/binutils || exit 1 - cd ${BUILD_DIR}/binutils || exit 1 + mkdir -p binutils || exit 1 + cd binutils ${BASE_DIRECTORY}/binutils/configure \ --prefix=${PREFIX} \ --target=${TARGET} \ @@ -52,13 +151,13 @@ make || exit 1 make install || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } function build_bootstrap_gcc() { - mkdir -p ${BUILD_DIR}/gcc-bootstrap || exit 1 - cd ${BUILD_DIR}/gcc-bootstrap + mkdir -p gcc-bootstrap || exit 1 + cd gcc-bootstrap ${BASE_DIRECTORY}/gcc/configure \ --with-gcc \ @@ -79,7 +178,7 @@ make all-gcc || exit 1 make install-gcc || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } function build_w32api() @@ -90,8 +189,9 @@ PREV_CC=${CC} unset CC - mkdir -p ${BUILD_DIR}/w32api || exit 1 - pushd ${BUILD_DIR}/w32api || exit 1 + mkdir -p w32api || exit 1 + cd w32api + ${BASE_DIRECTORY}/w32api/configure \ --host=${TARGET} \ --prefix=${PREFIX} \ @@ -101,7 +201,7 @@ make install || exit 1 export CC=${PREV_CC} - popd + cd ${BUILD_DIR} } function build_mingw_runtime() @@ -112,8 +212,8 @@ PREV_CC=${CC} unset CC - mkdir -p ${BUILD_DIR}/mingw || exit 1 - cd ${BUILD_DIR}/mingw || exit 1 + mkdir -p mingw || exit 1 + cd mingw ${BASE_DIRECTORY}/mingw/configure \ --build=${BUILD} \ --host=${TARGET} \ @@ -125,13 +225,13 @@ make install || exit 1 export CC=${PREV_CC} - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } function build_gcc() { - mkdir -p ${BUILD_DIR}/gcc || exit 1 - cd ${BUILD_DIR}/gcc || exit + mkdir -p gcc || exit 1 + cd gcc ${BASE_DIRECTORY}/gcc/configure \ --with-gcc \ @@ -169,7 +269,7 @@ # make install || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } function build_gdb() @@ -179,8 +279,8 @@ echo "" echo "" - mkdir -p ${BUILD_DIR}/gdb || exit 1 - cd ${BUILD_DIR}/gdb || exit 1 + mkdir -p gdb || exit 1 + cd gdb || exit 1 PREV_CFLAGS=${CFLAGS} export CFLAGS="-I${BASE_DIRECTORY}/w32api/include" @@ -202,6 +302,8 @@ make || exit 1 make install || exit 1 + + cd ${BUILD_DIR} } function build_gdbstub() @@ -220,7 +322,7 @@ -lwinsock || exit 1 ${TARGET}-strip ${STUB_EXE} || exit 1 - cd ${BASE_DIRECTORY} || exit 1 + cd ${BUILD_DIR} } function build_docs() @@ -243,6 +345,8 @@ cp src/binutils/COPYING ${PREFIX} || exit 1 cp src/binutils/COPYING.LIB ${PREFIX} || exit 1 cp src/binutils/COPYING.NEWLIB ${PREFIX} || exit 1 + + cd ${BUILD_DIR} } function build_profile() @@ -252,8 +356,8 @@ echo "" echo "" - mkdir -p ${BUILD_DIR}/profile || exit 1 - cd ${BUILD_DIR}/profile || exit 1 + mkdir -p profile || exit 1 + cd profile ${BASE_DIRECTORY}/profile/configure \ --build=${BUILD} \ @@ -264,6 +368,8 @@ make || exit 1 make install || exit 1 + + cd ${BUILD_DIR} } function build_all @@ -279,27 +385,37 @@ build_gdbstub } -case $BUILD_OPT in - --help) - echo "usage:" - echo "$0 [source dir] [build directory] [prefix dir] [build_opt]" - echo " " - echo "Valid build options : binutils bootstrapgcc" - echo " w32api mingw gcc gdb gdbstub docs profile all" - ;; - binutils) build_binutils ;; - bootstrapgcc) build_bootstrap_gcc ;; - w32api) build_w32api ;; - mingw) build_mingw_runtime ;; - gcc) build_gcc ;; - gdb) build_gdb ;; - gdbstub) build_gdbstub ;; - docs) build_docs ;; - profile) build_profile ;; - all) build_all ;; - *) echo "Please enter a valid build option." ;; -esac +# check for valid options before trying to build them all. +eval "set -- $components" +while [ -n "$1" ]; do + case $1 in + binutils | bootstrapgcc | w32api | \ + mingw | gcc | gdb | gdbstub | \ + docs | profile | all) + ;; + *) echo "Please enter a valid build option." ;; + esac + shift +done +# now actually try to build them. +eval "set -- $components" +while [ -n "$1" ]; do + case $1 in + binutils) build_binutils ;; + bootstrapgcc) build_bootstrap_gcc ;; + w32api) build_w32api ;; + mingw) build_mingw_runtime ;; + gcc) build_gcc ;; + gdb) build_gdb ;; + gdbstub) build_gdbstub ;; + docs) build_docs ;; + profile) build_profile ;; + all) build_all ;; + esac + shift +done + echo "" echo "DONE --------------------------" echo "" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-04-19 19:07:40
|
Revision: 916 http://svn.sourceforge.net/cegcc/?rev=916&view=rev Author: pedroalves Date: 2007-04-19 12:07:39 -0700 (Thu, 19 Apr 2007) Log Message: ----------- * moldname.def.in (tempnam): Don't export on coredll.dll. * mingwex/wince/tempnam.c (tempnam): New. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/tempnam.c trunk/cegcc/src/mingw/moldname.def.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-03-26 23:20:42 UTC (rev 915) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-04-19 19:07:39 UTC (rev 916) @@ -1,3 +1,9 @@ +2007-04-19 Pedro Alves <ped...@po...> + + * moldname.def.in (tempnam): Don't export on + coredll.dll. + * mingwex/wince/tempnam.c (tempnam): New. + 2007-03-26 Pedro Alves <ped...@po...> * mingwex/Makefile.in (LIBS): Add libcoredll.a. Modified: trunk/cegcc/src/mingw/mingwex/wince/tempnam.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2007-03-26 23:20:42 UTC (rev 915) +++ trunk/cegcc/src/mingw/mingwex/wince/tempnam.c 2007-04-19 19:07:39 UTC (rev 916) @@ -52,3 +52,9 @@ mbstowcs (wprefix, prefix, MAX_PATH); return tempnam_imp (wdir, wprefix, wcstombs_dup); } + +char * +tempnam (const char *dir, const char *prefix) +{ + return _tempnam (dir, prefix); +} Modified: trunk/cegcc/src/mingw/moldname.def.in =================================================================== --- trunk/cegcc/src/mingw/moldname.def.in 2007-03-26 23:20:42 UTC (rev 915) +++ trunk/cegcc/src/mingw/moldname.def.in 2007-04-19 19:07:39 UTC (rev 916) @@ -130,8 +130,8 @@ swab #ifndef __COREDLL__ tell +tempnam #endif /* __COREDLL__ */ -tempnam #if (__MSVCRT__) timezone DATA #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 23:20:43
|
Revision: 915 http://svn.sourceforge.net/cegcc/?rev=915&view=rev Author: pedroalves Date: 2007-03-26 16:20:42 -0700 (Mon, 26 Mar 2007) Log Message: ----------- * build-mingw32ce.sh (build_import_libs): Delete. (build_mingw_fake_runtime): Delete. (copy_headers): Delete. (build_all): Remove calls to build_import_libs, build_mingw_fake_runtime, and copy headers. Add call to build_w32api. Remove importlibs,headers and fakecrt command line options. Rename crt option to mingw. Modified Paths: -------------- trunk/cegcc/src/ChangeLog trunk/cegcc/src/build-mingw32ce.sh Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-03-26 23:08:07 UTC (rev 914) +++ trunk/cegcc/src/ChangeLog 2007-03-26 23:20:42 UTC (rev 915) @@ -1,3 +1,14 @@ +2007-03-27 Pedro Alves <ped...@po...> + + * build-mingw32ce.sh (build_import_libs): Delete. + (build_mingw_fake_runtime): Delete. + (copy_headers): Delete. + (build_all): Remove calls to build_import_libs, + build_mingw_fake_runtime, and copy headers. Add + call to build_w32api. + Remove importlibs,headers and fakecrt command line + options. Rename crt option to mingw. + 2007-02-12 Pedro Alves <ped...@po...> * VERSIONS : Update w32api and mingw versions. Modified: trunk/cegcc/src/build-mingw32ce.sh =================================================================== --- trunk/cegcc/src/build-mingw32ce.sh 2007-03-26 23:08:07 UTC (rev 914) +++ trunk/cegcc/src/build-mingw32ce.sh 2007-03-26 23:20:42 UTC (rev 915) @@ -55,40 +55,6 @@ cd ${BASE_DIRECTORY} || exit 1 } -function build_import_libs() -{ - echo "" - echo "Building import libs. --------------------------" - echo "" - echo "" - - mkdir -p ${PREFIX}/${TARGET}/lib || exit 1 - cd ${BASE_DIRECTORY}/cegcc/importlibs || exit 1 - ./build.sh ./defs ${PREFIX}/${TARGET}/lib || exit 1 - - cd ${BASE_DIRECTORY} || exit 1 -} - -function build_mingw_fake_runtime() -{ - cd ${BASE_DIRECTORY}/mingw-fake_crt || exit 1 - ./install.sh ${PREFIX} || exit 1 - cd ${BASE_DIRECTORY} || exit 1 -} - -function copy_headers() -{ - echo "" - echo "Copying headers... " - echo "" - echo "" - - mkdir -p ${PREFIX}/${TARGET}/include/sys - cp -fp ${BASE_DIRECTORY}/mingw/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 - cp -fp ${BASE_DIRECTORY}/mingw/include/sys/*.h ${PREFIX}/${TARGET}/include/sys || exit 1 - cp -fp ${BASE_DIRECTORY}/w32api/include/*.h ${PREFIX}/${TARGET}/include/ || exit 1 -} - function build_bootstrap_gcc() { mkdir -p ${BUILD_DIR}/gcc-bootstrap || exit 1 @@ -303,11 +269,9 @@ function build_all { build_binutils - build_import_libs - build_mingw_fake_runtime - copy_headers build_bootstrap_gcc build_mingw_runtime + build_w32api build_gcc build_docs build_profile @@ -319,17 +283,14 @@ --help) echo "usage:" echo "$0 [source dir] [build directory] [prefix dir] [build_opt]" - echo " " - echo "Valid build options : binutils importlibs headers fakecrt bootstrapgcc" - echo " w32api crt gcc gdb gdbstub docs profile all" - ;; + echo " " + echo "Valid build options : binutils bootstrapgcc" + echo " w32api mingw gcc gdb gdbstub docs profile all" + ;; binutils) build_binutils ;; - importlibs) build_import_libs ;; - headers) copy_headers ;; - fakecrt) build_mingw_fake_runtime ;; bootstrapgcc) build_bootstrap_gcc ;; w32api) build_w32api ;; - crt) build_mingw_runtime ;; + mingw) build_mingw_runtime ;; gcc) build_gcc ;; gdb) build_gdb ;; gdbstub) build_gdbstub ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 23:08:09
|
Revision: 914 http://svn.sourceforge.net/cegcc/?rev=914&view=rev Author: pedroalves Date: 2007-03-26 16:08:07 -0700 (Mon, 26 Mar 2007) Log Message: ----------- Fix date copy&paste typo. Modified Paths: -------------- trunk/cegcc/src/ChangeLog Modified: trunk/cegcc/src/ChangeLog =================================================================== --- trunk/cegcc/src/ChangeLog 2007-03-26 22:58:08 UTC (rev 913) +++ trunk/cegcc/src/ChangeLog 2007-03-26 23:08:07 UTC (rev 914) @@ -1,4 +1,4 @@ -2006-12-19 Pedro Alves <ped...@po...> +2007-02-12 Pedro Alves <ped...@po...> * VERSIONS : Update w32api and mingw versions. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 22:58:11
|
Revision: 913 http://svn.sourceforge.net/cegcc/?rev=913&view=rev Author: pedroalves Date: 2007-03-26 15:58:08 -0700 (Mon, 26 Mar 2007) Log Message: ----------- * libce/coredll.def: Add 'keep in sync' warning. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/libce/coredll.def Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-03-26 22:55:45 UTC (rev 912) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-03-26 22:58:08 UTC (rev 913) @@ -1,5 +1,9 @@ 2007-03-26 Pedro Alves <ped...@po...> + + * libce/coredll.def: Add 'keep in sync' warning. +2007-03-26 Pedro Alves <ped...@po...> + * include/winuser.h (WS_EX_CAPTIONOKBTN): Define. * include/winbase.h (GlobalAlloc, GlobalFree GlobalReAlloc, GlobalHandle, GlobalLock Modified: trunk/cegcc/src/w32api/libce/coredll.def =================================================================== --- trunk/cegcc/src/w32api/libce/coredll.def 2007-03-26 22:55:45 UTC (rev 912) +++ trunk/cegcc/src/w32api/libce/coredll.def 2007-03-26 22:58:08 UTC (rev 913) @@ -1,3 +1,6 @@ +; PLEASE KEEP THE MINGW/COREDLL.DEF AND W32API/LIBCE/COREDLL.DEF +; FILES IN SYNC. + LIBRARY COREDLL EXPORTS AFS_CloseAllFileHandles This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 22:55:47
|
Revision: 912 http://svn.sourceforge.net/cegcc/?rev=912&view=rev Author: pedroalves Date: 2007-03-26 15:55:45 -0700 (Mon, 26 Mar 2007) Log Message: ----------- * mingwex/Makefile.in (LIBS): Add libcoredll.a. (libcoredll.a): Add dependencies rule. * coredll.def: Add 'keep in sync' warning. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/Makefile.in Added Paths: ----------- trunk/cegcc/src/mingw/coredll.def Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-03-26 22:29:14 UTC (rev 911) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-03-26 22:55:45 UTC (rev 912) @@ -1,3 +1,9 @@ +2007-03-26 Pedro Alves <ped...@po...> + + * mingwex/Makefile.in (LIBS): Add libcoredll.a. + (libcoredll.a): Add dependencies rule. + * coredll.def: Add 'keep in sync' warning. + 2007-02-24 Pedro Alves <ped...@po...> * mingwex/Makefile.in (STDIO_OBJS_CE): New. Modified: trunk/cegcc/src/mingw/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/Makefile.in 2007-03-26 22:29:14 UTC (rev 911) +++ trunk/cegcc/src/mingw/Makefile.in 2007-03-26 22:55:45 UTC (rev 912) @@ -190,7 +190,8 @@ strcasecmp.o strncasecmp.o wcscmpi.o ifneq (,$(findstring wince,$(target_alias))) -LIBS = libmingw32.a \ +LIBS = libcoredll.a \ + libmingw32.a \ libceoldname.a \ $(LIBM_A) \ libmingwthrd.a @@ -494,6 +495,7 @@ # # Dependancies # +libcoredll.a: coredll.def libcrtdll.a: crtdll.def libmsvcrt.a: msvcrt.def libmsvcrtd.a: msvcrtd.def Copied: trunk/cegcc/src/mingw/coredll.def (from rev 885, trunk/cegcc/src/w32api/libce/coredll.def) =================================================================== --- trunk/cegcc/src/mingw/coredll.def (rev 0) +++ trunk/cegcc/src/mingw/coredll.def 2007-03-26 22:55:45 UTC (rev 912) @@ -0,0 +1,1659 @@ +; PLEASE KEEP THE MINGW/COREDLL.DEF AND W32API/LIBCE/COREDLL.DEF +; FILES IN SYNC. + +LIBRARY COREDLL +EXPORTS +AFS_CloseAllFileHandles +AFS_CreateDirectoryW +AFS_CreateFileW +AFS_DeleteFileW +AFS_FindFirstChangeNotificationW +AFS_FindFirstFileW +AFS_GetDiskFreeSpace +AFS_GetFileAttributesW +AFS_MoveFileW +AFS_NotifyMountedFS +AFS_PrestoChangoFileName +AFS_RegisterFileSystemFunction +AFS_RemoveDirectoryW +AFS_SetFileAttributesW +AFS_Unmount +A_SHAFinal +A_SHAInit +A_SHAUpdate +AbortDoc +AccessibilitySoundSentryEvent +ActivateDevice +ActivateDeviceEx +ActivateKeyboardLayout +ActivateService +AddEventAccess +AddFontResourceW +AddTrackedItem +AdjustWindowRectEx +AdvertiseInterface +AllKeys +AllocPhysMem +AppendMenuW +AttachDebugger +AudioUpdateFromRegistry +BatteryDrvrGetLevels +BatteryDrvrSupportsChangeNotification +BatteryGetLifeTimeInfo +BatteryNotifyOfTimeChange +BeginDeferWindowPos +BeginPaint +BinaryCompress +BinaryDecompress +BitBlt +BringWindowToTop +CacheRangeFlush +CacheSync +CallNextHookEx +CallWindowProcW +CeChangeDatabaseLCID +CeClearReplChangeBitsEx +CeClearUserNotification +CeCreateDatabase +CeCreateDatabaseEx +CeCreateDatabaseEx2 +CeDeleteDatabase +CeDeleteDatabaseEx +CeDeleteRecord +CeEnumDBVolumes +CeEventHasOccurred +CeFindFirstDatabase +CeFindFirstDatabaseEx +CeFindNextDatabase +CeFindNextDatabaseEx +CeFlushDBVol +CeFreeNotification +CeGenRandom +CeGetCallerTrust +CeGetCurrentTrust +CeGetDBInformationByHandle +CeGetFileNotificationInfo +CeGetRandomSeed +CeGetReplChangeBitsEx +CeGetReplChangeMask +CeGetReplOtherBitsEx +CeGetThreadPriority +CeGetThreadQuantum +CeGetUserNotification +CeGetUserNotificationHandles +CeGetUserNotificationPreferences +CeHandleAppNotifications +CeLogData +CeLogGetZones +CeLogReSync +CeLogSetZones +CeMapArgumentArray +CeModuleJit +CeMountDBVol +CeOidGetInfo +CeOidGetInfoEx +CeOidGetInfoEx2 +CeOpenDatabase +CeOpenDatabaseEx +CeOpenDatabaseEx2 +CeReadRecordProps +CeReadRecordPropsEx +CeRegisterFileSystemNotification +CeRegisterReplNotification +CeRemoveFontResource +CeResyncFilesys +CeRunAppAtEvent +CeRunAppAtTime +CeSeekDatabase +CeSeekDatabaseEx +CeSetDatabaseInfo +CeSetDatabaseInfoEx +CeSetDatabaseInfoEx2 +CeSetExtendedPdata +CeSetPowerOnEvent +CeSetProcessVersion +CeSetReplChangeBitsEx +CeSetReplChangeMask +CeSetReplOtherBitsEx +CeSetThreadPriority +CeSetThreadQuantum +CeSetUserNotification +CeSetUserNotificationEx +CeUnmountDBVol +CeWriteRecordProps +CeZeroPointer +ChangeDisplaySettingsEx +CharLowerBuffW +CharLowerW +CharNextW +CharPrevW +CharUpperBuffW +CharUpperW +CheckMenuItem +CheckMenuRadioItem +CheckPassword +CheckRadioButton +ChildWindowFromPoint +ClearCommBreak +ClearCommError +ClientToScreen +ClipCursor +CloseAllDeviceHandles +CloseAllFileHandles +CloseAllServiceHandles +CloseClipboard +CloseEnhMetaFile +CloseHandle +CloseMsgQueue +CloseProcOE +ComThreadBaseFunc +CombineRgn +CompactAllHeaps +CompareFileTime +CompareStringW +ConnectDebugger +ContinueDebugEvent +ConvertDefaultLocale +CopyFileW +CopyRect +CountClipboardFormats +CreateAPIHandle +CreateAPISet +CreateAcceleratorTableW +CreateBitmap +CreateBitmapFromPointer +CreateCaret +CreateCompatibleBitmap +CreateCompatibleDC +CreateCrit +CreateDCW +CreateDIBPatternBrushPt +CreateDIBSection +CreateDeviceHandle +CreateDialogIndirectParamW +CreateDirectoryW +CreateEnhMetaFileW +CreateEventW +CreateFileForMapping +CreateFileForMappingW +CreateFileMappingW +CreateFileW +CreateFontIndirectW +CreateIconIndirect +CreateLocaleView +CreateMenu +CreateMsgQueue +CreateMutexW +CreatePalette +CreatePatternBrush +CreatePen +CreatePenIndirect +CreatePopupMenu +CreateProcessW +CreateRectRgn +CreateRectRgnIndirect +CreateSemaphoreW +CreateServiceHandle +CreateSolidBrush +CreateStaticMapping +CreateThread +CreateWindowExW +CryptAcquireContextW +CryptContextAddRef +CryptCreateHash +CryptDecrypt +CryptDeriveKey +CryptDestroyHash +CryptDestroyKey +CryptDuplicateHash +CryptDuplicateKey +CryptEncrypt +CryptEnumProviderTypesW +CryptEnumProvidersW +CryptExportKey +CryptGenKey +CryptGenRandom +CryptGetDefaultProviderW +CryptGetHashParam +CryptGetKeyParam +CryptGetProvParam +CryptGetUserKey +CryptHashData +CryptHashSessionKey +CryptImportKey +CryptProtectData +CryptReleaseContext +CryptSetHashParam +CryptSetKeyParam +CryptSetProvParam +CryptSetProviderExW +CryptSetProviderW +CryptSignHashW +CryptUnprotectData +CryptVerifySignatureW +DBCanonicalize +DDKReg_GetIsrInfo +DDKReg_GetPciInfo +DDKReg_GetWindowInfo +DeactivateDevice +DebugActiveProcess +DebugNotify +DecompressBinaryBlock +DefDlgProcW +DefWindowProcW +DeferWindowPos +DeleteAndRenameFile +DeleteCriticalSection +DeleteDC +DeleteEnhMetaFile +DeleteFileW +DeleteMenu +DeleteObject +DeleteTrackedItem +DeregisterAFS +DeregisterAFSName +DeregisterDevice +DeregisterService +DestroyAcceleratorTable +DestroyCaret +DestroyIcon +DestroyMenu +DestroyWindow +DeviceIoControl +DevicePowerNotify +DialogBoxIndirectParamW +DisableCaretSystemWide +DisableThreadLibraryCalls +DispatchMessageW +DrawEdge +DrawFocusRect +DrawFrameControl +DrawIconEx +DrawMenuBar +DrawTextW +DumpFileSystemHeap +DumpKCallProfile +DuplicateHandle +Ellipse +EmptyClipboard +EnableCaretSystemWide +EnableEUDC +EnableHardwareKeyboard +EnableMenuItem +EnableWindow +EndDeferWindowPos +EndDialog +EndDoc +EndPage +EndPaint +EnterCriticalSection +EnumCalendarInfoW +EnumClipboardFormats +EnumDateFormatsW +EnumDevices +EnumDisplayDevices +EnumDisplayMonitors +EnumDisplaySettings +EnumFontFamiliesW +EnumFontsW +EnumPnpIds +EnumPropsEx +EnumServices +EnumSystemCodePagesW +EnumSystemLocalesW +EnumTimeFormatsW +EnumUILanguagesW +EnumWindows +EqualRect +EqualRgn +EscapeCommFunction +EventModify +ExcludeClipRect +ExitThread +ExtCreateRegion +ExtEscape +ExtTextOutW +ExtractIconExW +ExtractResource +FileSystemPowerFunction +FileTimeToLocalFileTime +FileTimeToSystemTime +FillRect +FillRgn +FilterTrackedItem +FindClose +FindCloseChangeNotification +FindFirstChangeNotificationW +FindFirstFileExW +FindFirstFileW +FindNextChangeNotification +FindNextFileW +FindResource +FindResourceW +FindWindowW +FlushFileBuffers +FlushInstructionCache +FlushViewOfFile +FlushViewOfFileMaybe +FoldStringW +ForcePageout +FormatMessageW +FreeIntChainHandler +FreeLibrary +FreeLibraryAndExitThread +FreePhysMem +GetACP +GetAPIAddress +GetActiveWindow +GetAssociatedMenu +GetAsyncKeyState +GetAsyncShiftFlags +GetBkColor +GetBkMode +GetCPInfo +GetCRTFlags +GetCRTStorageEx +GetCallStackSnapshot +GetCallerProcess +GetCallerProcessIndex +GetCapture +GetCaretBlinkTime +GetCaretPos +GetCharABCWidths +GetCharWidth32 +GetClassInfoW +GetClassLong +GetClassLongW +GetClassNameW +GetClientRect +GetClipBox +GetClipCursor +GetClipRgn +GetClipboardData +GetClipboardDataAlloc +GetClipboardFormatNameW +GetClipboardOwner +GetCommMask +GetCommModemStatus +GetCommProperties +GetCommState +GetCommTimeouts +GetCommandLineW +GetCurrencyFormatW +GetCurrentFT +GetCurrentObject +GetCurrentPermissions +GetCurrentPositionEx +GetCursor +GetCursorPos +GetDC +GetDCEx +GetDIBColorTable +GetDateFormatW +GetDesktopWindow +GetDeviceByIndex +GetDeviceCaps +GetDeviceKeys +GetDevicePower +GetDialogBaseUnits +GetDiskFreeSpaceExW +GetDlgCtrlID +GetDlgItem +GetDlgItemInt +GetDlgItemTextW +GetDoubleClickTime +GetEventData +GetExitCodeProcess +GetExitCodeThread +GetFSHeapInfo +GetFileAttributesExW +GetFileAttributesW +GetFileInformationByHandle +GetFileSize +GetFileTime +GetFileVersionInfoSizeW +GetFileVersionInfoW +GetFocus +GetForegroundInfo +GetForegroundKeyboardLayoutHandle +GetForegroundKeyboardTarget +GetForegroundWindow +GetHeapSnapshot +GetIdleTime +GetKPhys +GetKeyState +GetKeyboardLayout +GetKeyboardLayoutList +GetKeyboardLayoutNameW +GetKeyboardStatus +GetKeyboardTarget +GetKeyboardType +GetLastError +GetLocalTime +GetLocaleInfoW +GetMenuItemInfoW +GetMessagePos +GetMessageQueueReadyTimeStamp +GetMessageSource +GetMessageW +GetMessageWNoWait +GetModuleFileNameW +GetModuleHandleW +GetModuleInformation +GetMonitorInfo +GetMouseMovePoints +GetMsgQueueInfo +GetNearestColor +GetNearestPaletteIndex +GetNextDlgGroupItem +GetNextDlgTabItem +GetNumberFormatW +GetOEMCP +GetObjectType +GetObjectW +GetOpenClipboardWindow +GetOpenFileNameW +GetOwnerProcess +GetPaletteEntries +GetParent +GetPasswordActive +GetPasswordStatus +GetPixel +GetPriorityClipboardFormat +GetPrivateCallbacks +GetProcAddrBits +GetProcAddressA +GetProcAddressW +GetProcFromPtr +GetProcName +GetProcessHeap +GetProcessIDFromIndex +GetProcessIndexFromID +GetProcessVersion +GetProp +GetQueueStatus +GetRealTime +GetRegionData +GetRgnBox +GetRomFileBytes +GetRomFileInfo +GetSaveFileNameW +GetScrollInfo +GetServiceByIndex +GetServiceHandle +GetStdioPathW +GetStockObject +GetStoreInformation +GetStringTypeExW +GetStringTypeW +GetSubMenu +GetSysColor +GetSysColorBrush +GetSystemDefaultLCID +GetSystemDefaultLangID +GetSystemDefaultUILanguage +GetSystemInfo +GetSystemMemoryDivision +GetSystemMetrics +GetSystemPaletteEntries +GetSystemPowerState +GetSystemPowerStatusEx +GetSystemPowerStatusEx2 +GetSystemTime +GetTempFileNameW +GetTempPathW +GetTextAlign +GetTextColor +GetTextExtentExPointW +GetTextFaceW +GetTextMetricsW +GetThreadContext +GetThreadPriority +GetThreadTimes +GetTickCount +GetTimeFormatW +GetTimeZoneInformation +GetUpdateRect +GetUpdateRgn +GetUserDefaultLCID +GetUserDefaultLangID +GetUserDefaultUILanguage +GetUserDirectory +GetUserNameExW +GetVersionEx +GetVersionExW +GetWindow +GetWindowDC +GetWindowLongW +GetWindowRect +GetWindowRgn +GetWindowTextLengthW +GetWindowTextW +GetWindowTextWDirect +GetWindowThreadProcessId +GiveKPhys +GlobalAddAtomW +GlobalDeleteAtom +GlobalFindAtomW +GlobalMemoryStatus +GradientFill +GwesPowerDown +GwesPowerOffSystem +GwesPowerUp +HeapAlloc +HeapAllocTrace +HeapCreate +HeapDestroy +HeapFree +HeapReAlloc +HeapSize +HeapValidate +HideCaret +ImageList_Add +ImageList_AddMasked +ImageList_BeginDrag +ImageList_Copy +ImageList_CopyDitherImage +ImageList_Create +ImageList_Destroy +ImageList_DragEnter +ImageList_DragLeave +ImageList_DragMove +ImageList_DragShowNolock +ImageList_Draw +ImageList_DrawEx +ImageList_DrawIndirect +ImageList_Duplicate +ImageList_EndDrag +ImageList_GetBkColor +ImageList_GetDragImage +ImageList_GetIcon +ImageList_GetIconSize +ImageList_GetImageCount +ImageList_GetImageInfo +ImageList_LoadImage +ImageList_Merge +ImageList_Remove +ImageList_Replace +ImageList_ReplaceIcon +ImageList_SetBkColor +ImageList_SetDragCursorImage +ImageList_SetIconSize +ImageList_SetImageCount +ImageList_SetOverlayImage +ImmAssociateContext +ImmAssociateContextEx +ImmConfigureIMEW +ImmCreateContext +ImmCreateIMCC +ImmDestroyContext +ImmDestroyIMCC +ImmDisableIME +ImmEnableIME +ImmEnumRegisterWordW +ImmEscapeW +ImmGenerateMessage +ImmGetCandidateListCountW +ImmGetCandidateListW +ImmGetCandidateWindow +ImmGetCompositionFontW +ImmGetCompositionStringW +ImmGetCompositionWindow +ImmGetContext +ImmGetConversionListW +ImmGetConversionStatus +ImmGetDefaultIMEWnd +ImmGetDescriptionW +ImmGetGuideLineW +ImmGetHotKey +ImmGetIMCCLockCount +ImmGetIMCCSize +ImmGetIMCLockCount +ImmGetIMEFileNameW +ImmGetImeMenuItemsW +ImmGetKeyboardLayout +ImmGetOpenStatus +ImmGetProperty +ImmGetRegisterWordStyleW +ImmGetStatusWindowPos +ImmGetVirtualKey +ImmIsIME +ImmIsUIMessageW +ImmLockIMC +ImmLockIMCC +ImmNotifyIME +ImmReSizeIMCC +ImmRegisterWordW +ImmReleaseContext +ImmRequestMessageW +ImmSIPanelState +ImmSetCandidateWindow +ImmSetCompositionFontW +ImmSetCompositionStringW +ImmSetCompositionWindow +ImmSetConversionStatus +ImmSetHotKey +ImmSetImeWndIMC +ImmSetOpenStatus +ImmSetStatusWindowPos +ImmSimulateHotKey +ImmUnlockIMC +ImmUnlockIMCC +ImmUnregisterWordW +InSendMessage +InflateRect +InitLocale +InitializeCriticalSection +InputDebugCharW +InsertMenuW +Int_CloseHandle +Int_CreateEventW +Int_HeapAlloc +Int_HeapCreate +Int_HeapDestroy +Int_HeapFree +Int_HeapReAlloc +Int_HeapSize +InterlockedCompareExchange +InterlockedDecrement +InterlockedExchange +InterlockedExchangeAdd +InterlockedIncrement +InterlockedTestExchange +InterruptDisable +InterruptDone +InterruptInitialize +InterruptMask +IntersectClipRect +IntersectRect +InvalidateRect +InvalidateRgn +InvertRect +IsAPIReady +IsBadCodePtr +IsBadPtr +IsBadReadPtr +IsBadWritePtr +IsChild +IsClipboardFormatAvailable +IsDBCSLeadByte +IsDBCSLeadByteEx +IsDialogMessageW +IsEncryptionPermitted +IsExiting +IsPrimaryThread +IsProcessDying +IsProcessorFeaturePresent +IsRectEmpty +IsSystemFile +IsValidCodePage +IsValidLocale +IsWindow +IsWindowEnabled +IsWindowVisible +KernExtractIcons +KernelIoControl +KernelLibIoControl +KeybdGetDeviceInfo +KeybdInitStates +KeybdVKeyToUnicode +KillAllOtherThreads +KillTimer +LCMapStringW +LeaveCritSec +LeaveCriticalSection +LineTo +LoadAcceleratorsW +LoadAnimatedCursor +LoadBitmapW +LoadCursorW +LoadDriver +LoadFSD +LoadFSDEx +LoadIconW +LoadImageW +LoadIntChainHandler +LoadKernelLibrary +LoadKeyboardLayoutW +LoadLibraryExW +LoadLibraryW +LoadMenuW +LoadResource +LoadStringW +LocalAlloc +LocalAllocInProcess +LocalAllocTrace +LocalFileTimeToFileTime +LocalFree +LocalFreeInProcess +LocalReAlloc +LocalSize +LocalSizeInProcess +LockPages +MD5Final +MD5Init +MD5Update +MainThreadBaseFunc +MapCallerPtr +MapDialogRect +MapPtrToProcWithSize +MapPtrToProcess +MapPtrUnsecure +MapViewOfFile +MapVirtualKeyW +MapWindowPoints +MaskBlt +MessageBeep +MessageBoxW +MonitorFromPoint +MonitorFromRect +MonitorFromWindow +MoveFileW +MoveToEx +MoveWindow +MsgWaitForMultipleObjectsEx +MultiByteToWideChar +NKDbgPrintfW +NKTerminateThread +NKvDbgPrintfW +NLedGetDeviceInfo +NLedSetDevice +NotifyForceCleanboot +NotifyWinUserSystem +OffsetRect +OffsetRgn +OpenClipboard +OpenDeviceKey +OpenEventW +OpenMsgQueue +OpenProcess +OtherThreadsRunning +OutputDebugStringW +PPSHRestart +PSLNotify +PageOutModule +PatBlt +PeekMessageW +PegClearUserNotification +PegCreateDatabase +PegDeleteDatabase +PegDeleteRecord +PegFindFirstDatabase +PegFindNextDatabase +PegGetUserNotificationPreferences +PegHandleAppNotifications +PegOidGetInfo +PegOpenDatabase +PegReadRecordProps +PegRemoveFontResource +PegRunAppAtEvent +PegRunAppAtTime +PegSeekDatabase +PegSetDatabaseInfo +PegSetUserNotification +PegWriteRecordProps +PerformCallBack4 +PlayEnhMetaFile +PlaySoundW +Polygon +Polyline +PostKeybdMessage +PostMessageW +PostQuitMessage +PostThreadMessageW +PowerOffSystem +PowerPolicyNotify +PrintTrackedItem +ProcessDetachAllDLLs +ProfileCaptureStatus +ProfileStart +ProfileStartEx +ProfileStop +ProfileSyscall +PtInRect +PtInRegion +PurgeComm +QASetWindowsJournalHook +QAUnhookWindowsJournalHook +QueryAPISetID +QueryInstructionSet +QueryPerformanceCounter +QueryPerformanceFrequency +RaiseException +Random +RasDeleteEntry +RasDevConfigDialogEditW +RasDial +RasEnumConnections +RasEnumDevicesW +RasEnumEntries +RasGetConnectStatus +RasGetDispPhoneNumW +RasGetEapConnectionData +RasGetEapUserData +RasGetEntryDevConfig +RasGetEntryDialParams +RasGetEntryProperties +RasGetLinkStatistics +RasGetProjectionInfoW +RasHangUp +RasHangup +RasIOControl +RasRenameEntry +RasSetEapConnectionData +RasSetEapUserData +RasSetEntryDevConfig +RasSetEntryDialParams +RasSetEntryProperties +RasValidateEntryName +ReadFile +ReadFileWithSeek +ReadMsgQueue +ReadProcessMemory +ReadRegistryFromOEM +RealizePalette +RectInRegion +RectVisible +Rectangle +RectangleAnimation +RedrawWindow +RefreshKernelAlarm +RegCloseKey +RegCopyFile +RegCreateKeyExW +RegDeleteKeyW +RegDeleteValueW +RegEnumKeyExW +RegEnumValueW +RegFlushKey +RegOpenKeyExW +RegOpenProcessKey +RegQueryInfoKeyW +RegQueryValueExW +RegReplaceKey +RegRestoreFile +RegSaveKey +RegSetValueExW +RegisterAFSEx +RegisterAFSName +RegisterAPISet +RegisterClassW +RegisterClipboardFormatW +RegisterDbgZones +RegisterDesktop +RegisterDevice +RegisterHotKey +RegisterPowerRelationship +RegisterSIPanel +RegisterService +RegisterTaskBar +RegisterTaskBarEx +RegisterTrackedItem +RegisterWindowMessageW +ReinitLocale +ReleaseCapture +ReleaseDC +ReleaseMutex +ReleasePowerRelationship +ReleasePowerRequirement +ReleaseSemaphore +RemoteHeapAlloc +RemoteHeapFree +RemoteHeapReAlloc +RemoteHeapSize +RemoteLocalAlloc +RemoteLocalFree +RemoteLocalReAlloc +RemoteLocalSize +RemoveDirectoryW +RemoveFontResourceW +RemoveMenu +RemoveProp +RequestDeviceNotifications +RequestPowerNotifications +ResourceCreateList +ResourceRelease +ResourceRequest +RestoreDC +ResumeThread +RoundRect +SHAddToRecentDocs +SHCreateExplorerInstance +SHCreateShortcut +SHCreateShortcutEx +SHGetFileInfo +SHGetShortcutTarget +SHGetSpecialFolderPath +SHLoadDIBitmap +SHShowOutOfMemory +SaveDC +ScreenToClient +ScrollDC +ScrollWindowEx +SelectClipRgn +SelectObject +SelectPalette +SendDlgItemMessageW +SendInput +SendMessageTimeout +SendMessageW +SendNotifyMessageW +ServiceAddPort +ServiceClosePort +ServiceIoControl +ServiceUnbindPorts +SetACP +SetAbortProc +SetActiveWindow +SetAssociatedMenu +SetBitmapBits +SetBkColor +SetBkMode +SetBrushOrgEx +SetCapture +SetCaretBlinkTime +SetCaretPos +SetClassLong +SetClassLongW +SetCleanRebootFlag +SetClipboardData +SetCommBreak +SetCommMask +SetCommState +SetCommTimeouts +SetCurrentUser +SetCursor +SetCursorPos +SetDIBColorTable +SetDIBitsToDevice +SetDaylightTime +SetDbgZone +SetDevicePower +SetDlgItemInt +SetDlgItemTextW +SetEndOfFile +SetEventData +SetExceptionHandler +SetFileAttributesW +SetFilePointer +SetFileTime +SetFocus +SetForegroundWindow +SetGwesOOMEvent +SetGwesPowerHandler +SetHandleOwner +SetHardwareWatch +SetInterruptEvent +SetKMode +SetKernelAlarm +SetKeyboardTarget +SetLastError +SetLocalTime +SetLocaleInfoW +SetLowestScheduledPriority +SetMenuItemInfoW +SetOEMCP +SetOOMEvent +SetObjectOwner +SetPaletteEntries +SetParent +SetPassword +SetPasswordActive +SetPasswordStatus +SetPixel +SetPowerOffHandler +SetPowerRequirement +SetProcPermissions +SetProp +SetROP2 +SetRealTime +SetRect +SetRectEmpty +SetRectRgn +SetScrollInfo +SetScrollPos +SetScrollRange +SetStdioPathW +SetSysColors +SetSystemDefaultLCID +SetSystemMemoryDivision +SetSystemPowerState +SetSystemTime +SetTextAlign +SetTextColor +SetThreadContext +SetThreadPriority +SetTimeZoneBias +SetTimeZoneInformation +SetTimer +SetUserData +SetUserDefaultLCID +SetUserDefaultUILanguage +SetViewportOrgEx +SetWDevicePowerHandler +SetWindowLongW +SetWindowPos +SetWindowRgn +SetWindowTextW +SetWindowsHookExW +SetupComm +ShellExecuteEx +ShellModalEnd +Shell_NotifyIcon +ShowCaret +ShowCursor +ShowStartupWindow +ShowWindow +SignalStarted +SipEnumIM +SipGetCurrentIM +SipGetInfo +SipRegisterNotification +SipSetCurrentIM +SipSetDefaultRect +SipSetInfo +SipShowIM +SipStatus +SizeofResource +Sleep +SleepTillTick +StartDocW +StartPage +StopDeviceNotifications +StopPowerNotifications +StretchBlt +StretchDIBits +StringCbCatA +StringCbCatExA +StringCbCatExW +StringCbCatNA +StringCbCatNExA +StringCbCatNExW +StringCbCatNW +StringCbCatW +StringCbCopyA +StringCbCopyExA +StringCbCopyExW +StringCbCopyNA +StringCbCopyNW +StringCbCopyW +StringCbLengthA +StringCbLengthW +StringCbPrintfA +StringCbPrintfExA +StringCbPrintfExW +StringCbPrintfW +StringCbVPrintfA +StringCbVPrintfExA +StringCbVPrintfExW +StringCbVPrintfW +StringCchCatA +StringCchCatExA +StringCchCatExW +StringCchCatNA +StringCchCatNExA +StringCchCatNExW +StringCchCatNW +StringCchCatW +StringCchCopyA +StringCchCopyExA +StringCchCopyExW +StringCchCopyNA +StringCchCopyNW +StringCchCopyW +StringCchLengthA +StringCchLengthW +StringCchPrintfA +StringCchPrintfExA +StringCchPrintfExW +StringCchPrintfW +StringCchVPrintfA +StringCchVPrintfExA +StringCchVPrintfExW +StringCchVPrintfW +StringCompress +StringDecompress +SubtractRect +SuspendThread +SystemIdleTimerReset +SystemMemoryLow +SystemParametersInfoW +SystemStarted +SystemTimeToFileTime +THCreateSnapshot +THGrow +TakeCritSec +TerminateProcess +TerminateThread +ThreadAttachAllDLLs +ThreadBaseFunc +ThreadDetachAllDLLs +ThreadExceptionExit +TlsCall +TlsGetValue +TlsSetValue +TouchCalibrate +TrackPopupMenuEx +TranslateAcceleratorW +TranslateCharsetInfo +TranslateMessage +TransmitCommChar +TransparentImage +TryEnterCriticalSection +TurnOffProfiling +TurnOnProfiling +U_rclose +U_rlseek +U_ropen +U_rread +U_rwrite +UnhookWindowsHookEx +UnionRect +UnlockPages +UnmapViewOfFile +UnregisterClassW +UnregisterFunc1 +UnregisterHotKey +UpdateNLSInfo +UpdateNLSInfoEx +UpdateWindow +ValidateRect +ValidateRgn +VerQueryValueW +VerifyAPIHandle +VirtualAlloc +VirtualCopy +VirtualFree +VirtualProtect +VirtualQuery +VirtualSetAttributes +WNetAddConnection3W +WNetCancelConnection2W +WNetCloseEnum +WNetConnectionDialog1W +WNetDisconnectDialog +WNetDisconnectDialog1W +WNetEnumResourceW +WNetGetConnectionW +WNetGetUniversalNameW +WNetGetUserW +WNetOpenEnumW +WaitCommEvent +WaitForDebugEvent +WaitForMultipleObjects +WaitForSingleObject +WideCharToMultiByte +WindowFromPoint +WriteDebugLED +WriteFile +WriteFileWithSeek +WriteMsgQueue +WriteProcessMemory +WriteRegistryToOEM +_CountLeadingOnes +_CountLeadingOnes64 +_CountLeadingSigns +_CountLeadingSigns64 +_CountLeadingZeros +_CountLeadingZeros64 +_CountOneBits +_CountOneBits64 +_HUGE +_InitStdioLib +_MulHigh +_MulUnsignedHigh +_XcptFilter +__C_specific_handler +__CxxFrameHandler +__CxxThrowException +__addd +__adds +__cmpd +__cmps +__divd +__divs +__dtoi +__dtoi64 +__dtos +__dtou +__dtou64 +__eqd +__eqs +__ged +__ges +__gtd +__gts +__i64tod +__i64tos +__itod +__itos +__led +__les +__ltd +__lts +__muld +__muls +__ned +__negd +__negs +__nes +__rt_sdiv +__rt_sdiv10 +__rt_sdiv64by64 +__rt_srem64by64 +__rt_srsh +__rt_udiv +__rt_udiv10 +__rt_udiv64by64 +__rt_urem64by64 +__rt_ursh +__stod +__stoi +__stoi64 +__stou +__stou64 +__strgtold12 +__subd +__subs +__u64tod +__u64tos +__utod +__utos +_abs64 +_atodbl +_atoflt +_atoi64 +_byteswap_uint64 +_byteswap_ulong +_byteswap_ushort +_cabs +_chgsign +_clearfp +_controlfp +_copysign +_ecvt +_fcloseall +_fcvt +_fileno +_finite +_fltused +_flushall +_fpclass +_fpieee_flt +_fpreset +_frnd +_fsqrt +_gcvt +_getstdfilex +_getws +_hypot +_isctype +_isnan +_isnanf +_isunordered +_isunorderedf +_itoa +_itow +_j0 +_j1 +_jn +_ld12tod +_ld12tof +_logb +_lrotl +_lrotr +_ltoa +_ltow +_mbmemset +_memccpy +_memicmp +_msize +_nextafter +_purecall +_putws +_rotl +_rotl64 +_rotr +_rotr64 +_scalb +_setmode +_snprintf +_snwprintf +_statusfp +_strdup +_stricmp +_strlwr +_strnicmp +_strnset +_strrev +_strset +_strupr +_swab +_ultoa +_ultow +_vsnprintf +_vsnwprintf +_wcsdup +_wcsicmp +_wcslwr +_wcsnicmp +_wcsnset +_wcsrev +_wcsset +_wcsupr +_wfdopen +_wfopen +_wfreopen +_wtol +_wtoll +_y0 +_y1 +_yn +abs +acmDriverAdd +acmDriverClose +acmDriverDetails +acmDriverEnum +acmDriverID +acmDriverMessage +acmDriverOpen +acmDriverPriority +acmDriverRemove +acmFilterChoose +acmFilterDetails +acmFilterEnum +acmFilterTagDetails +acmFilterTagEnum +acmFormatChoose +acmFormatDetails +acmFormatEnum +acmFormatSuggest +acmFormatTagDetails +acmFormatTagEnum +acmGetVersion +acmMetrics +acmStreamClose +acmStreamConvert +acmStreamMessage +acmStreamOpen +acmStreamPrepareHeader +acmStreamReset +acmStreamSize +acmStreamUnprepareHeader +acos +asin +atan +atan2 +atof +atoi +atol +calloc +ceil +ceilf +clearerr +cos +cosh +difftime +div +exp +fabs +fabsf +fclose +feof +ferror +fflush +fgetc +fgetpos +fgets +fgetwc +fgetws +floor +floorf +fmod +fmodf +fopen +fprintf +fputc +fputs +fputwc +fputws +fread +free +frexp +fscanf +fseek +fsetpos +ftell +fwprintf +fwrite +fwscanf +getchar +gets +getwchar +iswctype +keybd_event +labs +ldexp +ldiv +lineAccept +lineAddProvider +lineAddToConference +lineAnswer +lineBlindTransfer +lineClose +lineCompleteTransfer +lineConfigDialogEdit +lineDeallocateCall +lineDevSpecific +lineDial +lineDrop +lineForward +lineGenerateDigits +lineGenerateTone +lineGetAddressCaps +lineGetAddressID +lineGetAddressStatus +lineGetAppPriority +lineGetCallInfo +lineGetCallStatus +lineGetConfRelatedCalls +lineGetDevCaps +lineGetDevConfig +lineGetID +lineGetIcon +lineGetLineDevStatus +lineGetMessage +lineGetNewCalls +lineGetNumRings +lineGetProviderList +lineGetStatusMessages +lineGetTranslateCaps +lineHandoff +lineHold +lineInitialize +lineInitializeEx +lineMakeCall +lineMonitorDigits +lineMonitorMedia +lineNegotiateAPIVersion +lineNegotiateExtVersion +lineOpen +linePickup +linePrepareAddToConference +lineRedirect +lineReleaseUserUserInfo +lineRemoveFromConference +lineSendUserUserInfo +lineSetAppPriority +lineSetCallParams +lineSetCallPrivilege +lineSetCurrentLocation +lineSetDevConfig +lineSetMediaMode +lineSetNumRings +lineSetStatusMessages +lineSetTerminal +lineSetTollList +lineSetupConference +lineSetupTransfer +lineShutdown +lineSwapHold +lineTranslateAddress +lineTranslateDialog +lineUnhold +log +log10 +longjmp +lstrcmpW +lstrcmpiW +malloc +mbstowcs +memchr +memcmp +memcpy +memmove +memset +mixerClose +mixerGetControlDetails +mixerGetDevCaps +mixerGetID +mixerGetLineControls +mixerGetLineInfo +mixerGetNumDevs +mixerMessage +mixerOpen +mixerSetControlDetails +modf +mouse_event +phoneClose +phoneConfigDialog +phoneDevSpecific +phoneGetDevCaps +phoneGetGain +phoneGetHookSwitch +phoneGetID +phoneGetIcon +phoneGetMessage +phoneGetRing +phoneGetStatus +phoneGetStatusMessages +phoneGetVolume +phoneInitializeEx +phoneNegotiateAPIVersion +phoneNegotiateExtVersion +phoneOpen +phoneSetGain +phoneSetHookSwitch +phoneSetRing +phoneSetStatusMessages +phoneSetVolume +phoneShutdown +pow +printf +putchar +puts +putwchar +qsort +rand +realloc +scanf +setjmp +setvbuf +sin +sinh +sndPlaySoundW +sprintf +sqrt +sqrtf +srand +sscanf +strcat +strchr +strcmp +strcpy +strcspn +strlen +strncat +strncmp +strncpy +strpbrk +strrchr +strspn +strstr +strtod +strtok +strtol +strtoul +swprintf +swscanf +tan +tanh +tolower +toupper +towlower +towupper +ungetc +ungetwc +vfprintf +vfwprintf +vprintf +vsprintf +vswprintf +vwprintf +waveInAddBuffer +waveInClose +waveInGetDevCaps +waveInGetErrorText +waveInGetID +waveInGetNumDevs +waveInGetPosition +waveInMessage +waveInOpen +waveInPrepareHeader +waveInReset +waveInStart +waveInStop +waveInUnprepareHeader +waveOutBreakLoop +waveOutClose +waveOutGetDevCaps +waveOutGetErrorText +waveOutGetID +waveOutGetNumDevs +waveOutGetPitch +waveOutGetPlaybackRate +waveOutGetPosition +waveOutGetVolume +waveOutMessage +waveOutOpen +waveOutPause +waveOutPrepareHeader +waveOutReset +waveOutRestart +waveOutSetPitch +waveOutSetPlaybackRate +waveOutSetVolume +waveOutUnprepareHeader +waveOutWrite +wcscat +wcschr +wcscmp +wcscpy +wcscspn +wcslen +wcsncat +wcsncmp +wcsncpy +wcspbrk +wcsrchr +wcsspn +wcsstr +wcstod +wcstok +wcstol +wcstombs +wcstoul +wprintf +wscanf +wsprintfW +wvsprintfW This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 22:29:28
|
Revision: 911 http://svn.sourceforge.net/cegcc/?rev=911&view=rev Author: pedroalves Date: 2007-03-26 15:29:14 -0700 (Mon, 26 Mar 2007) Log Message: ----------- As hinted here: http://www.microsoft.com/msj/0598/wince.aspx http://www.microsoft.com/msj/0598/memory.aspx http://msdn.microsoft.com/msdnmag/issues/01/01/CETools/ Windows CE doesn't support the old global heap. But I'm porting an app that used to build with eVC, so MS must map the Global* functions to Local* counterparts. This patch makes us suposedly do the same. * include/winbase.h (GlobalAlloc, GlobalFree GlobalReAlloc, GlobalHandle, GlobalLock GlobalUnlock, GlobalSize, GlobalFlags): Map to LocalAlloc, LocalFree, LocalReAlloc, LocalHandle, LocalLock, LocalUnlock, LocalSize and LocalFlags respectivelly. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-03-26 22:04:19 UTC (rev 910) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-03-26 22:29:14 UTC (rev 911) @@ -1,6 +1,12 @@ 2007-03-26 Pedro Alves <ped...@po...> * include/winuser.h (WS_EX_CAPTIONOKBTN): Define. + * include/winbase.h (GlobalAlloc, GlobalFree + GlobalReAlloc, GlobalHandle, GlobalLock + GlobalUnlock, GlobalSize, GlobalFlags): Map to + LocalAlloc, LocalFree, LocalReAlloc, + LocalHandle, LocalLock, LocalUnlock, + LocalSize and LocalFlags respectivelly. 2007-02-26 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2007-03-26 22:04:19 UTC (rev 910) +++ trunk/cegcc/src/w32api/include/winbase.h 2007-03-26 22:29:14 UTC (rev 911) @@ -1652,27 +1652,38 @@ WINBASEAPI UINT WINAPI GetWriteWatch(DWORD,PVOID,SIZE_T,PVOID*,PULONG_PTR,PULONG); WINBASEAPI ATOM WINAPI GlobalAddAtomA(LPCSTR); WINBASEAPI ATOM WINAPI GlobalAddAtomW( LPCWSTR); -WINBASEAPI HGLOBAL WINAPI GlobalAlloc(UINT,DWORD); WINBASEAPI SIZE_T WINAPI GlobalCompact(DWORD); /* Obsolete: Has no effect. */ WINBASEAPI ATOM WINAPI GlobalDeleteAtom(ATOM); #define GlobalDiscard(hMem) GlobalReAlloc((hMem), 0, GMEM_MOVEABLE) WINBASEAPI ATOM WINAPI GlobalFindAtomA(LPCSTR); WINBASEAPI ATOM WINAPI GlobalFindAtomW(LPCWSTR); WINBASEAPI VOID WINAPI GlobalFix(HGLOBAL); /* Obsolete: Has no effect. */ -WINBASEAPI UINT WINAPI GlobalFlags(HGLOBAL); /* Obsolete: Has no effect. */ -WINBASEAPI HGLOBAL WINAPI GlobalFree(HGLOBAL); WINBASEAPI UINT WINAPI GlobalGetAtomNameA(ATOM,LPSTR,int); WINBASEAPI UINT WINAPI GlobalGetAtomNameW(ATOM,LPWSTR,int); +#ifndef _WIN32_WCE +WINBASEAPI HGLOBAL WINAPI GlobalAlloc(UINT,DWORD); +WINBASEAPI HGLOBAL WINAPI GlobalFree(HGLOBAL); +WINBASEAPI HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT); WINBASEAPI HGLOBAL WINAPI GlobalHandle(PCVOID); WINBASEAPI LPVOID WINAPI GlobalLock(HGLOBAL); +WINBASEAPI BOOL WINAPI GlobalUnlock(HGLOBAL); +WINBASEAPI DWORD WINAPI GlobalSize(HGLOBAL); +WINBASEAPI UINT WINAPI GlobalFlags(HGLOBAL); /* Obsolete: Has no effect. */ +#else +# define GlobalAlloc(flags, cb) LocalAlloc(flags, cb) +# define GlobalFree(h) LocalFree(h) +# define GlobalReAlloc(h, cb, flags) LocalReAlloc(h, cb, flags) +# define GlobalHandle(lp) LocalHandle(lp) +# define GlobalLock(lp) LocalLock(lp) +# define GlobalUnlock(lp) LocalUnlock(lp) +# define GlobalSize(lp) LocalSize(lp) +# define GlobalFlags(lp) LocalFlags(lp) +#endif WINBASEAPI VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS); #if (_WIN32_WINNT >= 0x0500) WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX); #endif -WINBASEAPI HGLOBAL WINAPI GlobalReAlloc(HGLOBAL,DWORD,UINT); -WINBASEAPI DWORD WINAPI GlobalSize(HGLOBAL); WINBASEAPI VOID WINAPI GlobalUnfix(HGLOBAL); /* Obsolete: Has no effect. */ -WINBASEAPI BOOL WINAPI GlobalUnlock(HGLOBAL); WINBASEAPI BOOL WINAPI GlobalUnWire(HGLOBAL); /* Obsolete: Has no effect. */ WINBASEAPI PVOID WINAPI GlobalWire(HGLOBAL); /* Obsolete: Has no effect. */ #define HasOverlappedIoCompleted(lpOverlapped) ((lpOverlapped)->Internal != STATUS_PENDING) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-03-26 22:08:52
|
Revision: 910 http://svn.sourceforge.net/cegcc/?rev=910&view=rev Author: pedroalves Date: 2007-03-26 15:04:19 -0700 (Mon, 26 Mar 2007) Log Message: ----------- * include/winuser.h (WS_EX_CAPTIONOKBTN): Define. Found by brute forcing every possible 1 bit set value (32 possible). Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winuser.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-26 21:14:23 UTC (rev 909) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-03-26 22:04:19 UTC (rev 910) @@ -1,3 +1,7 @@ +2007-03-26 Pedro Alves <ped...@po...> + + * include/winuser.h (WS_EX_CAPTIONOKBTN): Define. + 2007-02-26 Pedro Alves <ped...@po...> * include/winbase.h (DETACHED_PROCESS): Hide. Modified: trunk/cegcc/src/w32api/include/winuser.h =================================================================== --- trunk/cegcc/src/w32api/include/winuser.h 2007-02-26 21:14:23 UTC (rev 909) +++ trunk/cegcc/src/w32api/include/winuser.h 2007-03-26 22:04:19 UTC (rev 910) @@ -350,6 +350,9 @@ #define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS) #define WS_EX_ACCEPTFILES 16 #define WS_EX_APPWINDOW 0x40000 +#ifdef _WIN32_WCE +#define WS_EX_CAPTIONOKBTN 0x80000000L +#endif #define WS_EX_CLIENTEDGE 512 #define WS_EX_COMPOSITED 0x2000000 /* XP */ #define WS_EX_CONTEXTHELP 0x400 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-26 21:15:32
|
Revision: 909 http://svn.sourceforge.net/cegcc/?rev=909&view=rev Author: pedroalves Date: 2007-02-26 13:14:23 -0800 (Mon, 26 Feb 2007) Log Message: ----------- * include/winbase.h (DETACHED_PROCESS): Hide. (CREATE_NEW_PROCESS_GROUP): Hide. (CREATE_UNICODE_ENVIRONMENT): Hide. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-26 19:11:15 UTC (rev 908) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-26 21:14:23 UTC (rev 909) @@ -1,3 +1,9 @@ +2007-02-26 Pedro Alves <ped...@po...> + + * include/winbase.h (DETACHED_PROCESS): Hide. + (CREATE_NEW_PROCESS_GROUP): Hide. + (CREATE_UNICODE_ENVIRONMENT): Hide. + 2007-02-05 Pedro Alves <ped...@po...> * libce/Makefile.in: Fix order for 'all' rule. Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2007-02-26 19:11:15 UTC (rev 908) +++ trunk/cegcc/src/w32api/include/winbase.h 2007-02-26 21:14:23 UTC (rev 909) @@ -167,14 +167,18 @@ #define DEBUG_PROCESS 0x00000001 #define DEBUG_ONLY_THIS_PROCESS 0x00000002 #define CREATE_SUSPENDED 0x00000004 +#ifndef _WIN32_WCE #define DETACHED_PROCESS 0x00000008 +#endif #define CREATE_NEW_CONSOLE 0x00000010 #define NORMAL_PRIORITY_CLASS 0x00000020 #define IDLE_PRIORITY_CLASS 0x00000040 #define HIGH_PRIORITY_CLASS 0x00000080 #define REALTIME_PRIORITY_CLASS 0x00000100 +#ifndef _WIN32_WCE #define CREATE_NEW_PROCESS_GROUP 0x00000200 #define CREATE_UNICODE_ENVIRONMENT 0x00000400 +#endif #define CREATE_SEPARATE_WOW_VDM 0x00000800 #define CREATE_SHARED_WOW_VDM 0x00001000 #define CREATE_FORCEDOS 0x00002000 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-02-26 19:11:36
|
Revision: 908 http://svn.sourceforge.net/cegcc/?rev=908&view=rev Author: dannybackx Date: 2007-02-26 11:11:15 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Make this file executable. Property Changed: ---------------- trunk/cegcc/src/w32api/configure Property changes on: trunk/cegcc/src/w32api/configure ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:42:25
|
Revision: 907 http://svn.sourceforge.net/cegcc/?rev=907&view=rev Author: pedroalves Date: 2007-02-24 08:42:23 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * include/stdio.h (perror): Expose. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/stdio.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 16:38:32 UTC (rev 906) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 16:42:23 UTC (rev 907) @@ -2,6 +2,7 @@ * mingwex/Makefile.in (STDIO_OBJS_CE): New. (LIB_OBJS): Add STDIO_OBJS_CE. + * include/stdio.h (perror): Expose. 2007-02-24 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2007-02-24 16:38:32 UTC (rev 906) +++ trunk/cegcc/src/mingw/include/stdio.h 2007-02-24 16:42:23 UTC (rev 907) @@ -397,9 +397,7 @@ #endif _CRTIMP void __cdecl clearerr (FILE*); -#ifndef __COREDLL__ _CRTIMP void __cdecl perror (const char*); -#endif #ifndef __STRICT_ANSI__ #ifndef __COREDLL__ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:38:36
|
Revision: 906 http://svn.sourceforge.net/cegcc/?rev=906&view=rev Author: pedroalves Date: 2007-02-24 08:38:32 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * mingwex/Makefile.in (STDIO_OBJS_CE): New. (LIB_OBJS): Add STDIO_OBJS_CE. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/Makefile.in Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 14:40:25 UTC (rev 905) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 16:38:32 UTC (rev 906) @@ -1,5 +1,10 @@ 2007-02-24 Pedro Alves <ped...@po...> + * mingwex/Makefile.in (STDIO_OBJS_CE): New. + (LIB_OBJS): Add STDIO_OBJS_CE. + +2007-02-24 Pedro Alves <ped...@po...> + * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on __MINGW32CE__ * include/math.h (_isnanf, _isnan): Declare. Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-24 14:40:25 UTC (rev 905) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-24 16:38:32 UTC (rev 906) @@ -162,6 +162,8 @@ fopen64.o fseeko64.o ftello64.o lseek64.o \ snprintf.o vsnprintf.o snwprintf.o vsnwprintf.o \ vfscanf.o vfwscanf.o vscanf.o vsscanf.o vswscanf.o vwscanf.o +STDIO_OBJS_CE = \ + snprintf.o vsnprintf.o snwprintf.o vsnwprintf.o MATH_OBJS = \ acosf.o acosl.o asinf.o asinl.o atan2f.o atan2l.o \ atanf.o atanl.o cbrt.o cbrtf.o cbrtl.o ceilf.o ceill.o \ @@ -239,7 +241,7 @@ MATHCE_FLAGS= ifneq (,$(findstring wince,$(target_alias))) -LIB_OBJS = $(WINCE_OBJS) $(MATHCE_OBJS) $(Q8_OBJS) +LIB_OBJS = $(WINCE_OBJS) $(MATHCE_OBJS) $(Q8_OBJS) $(STDIO_OBJS_CE) MATHCE_FLAGS=-D_IEEE_LIBM MATHDIR=mathce else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:38:09
|
Revision: 904 http://svn.sourceforge.net/cegcc/?rev=904&view=rev Author: pedroalves Date: 2007-02-24 06:06:32 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * include/io.h (rename): Expose. * include/stdio.h (rename): Expose. (_fileno, fileno): Revert to int return type. * mingwex/wince/rename.c: New. * mingwex/wince/chmod.c: New. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/io.h trunk/cegcc/src/mingw/include/stdio.h Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/chmod.c trunk/cegcc/src/mingw/mingwex/wince/rename.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 13:53:54 UTC (rev 903) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 14:06:32 UTC (rev 904) @@ -3,6 +3,11 @@ * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on __MINGW32CE__ * include/math.h (_isnanf, _isnan): Declare. + * include/io.h (rename): Expose. + * include/stdio.h (rename): Expose. + (_fileno, fileno): Revert to int return type. + * mingwex/wince/rename.c: New. + * mingwex/wince/chmod.c: New. 2007-02-07 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/io.h =================================================================== --- trunk/cegcc/src/mingw/include/io.h 2007-02-24 13:53:54 UTC (rev 903) +++ trunk/cegcc/src/mingw/include/io.h 2007-02-24 14:06:32 UTC (rev 904) @@ -247,8 +247,9 @@ /* MS puts remove & rename (but not wide versions) in io.h as well as in stdio.h. */ _CRTIMP int __cdecl remove (const char*); +#endif _CRTIMP int __cdecl rename (const char*, const char*); - +#ifndef __COREDLL__ /* SH_... flags for nShFlags defined in share.h * Optional fourth argument is unsigned unPermissions */ _CRTIMP int __cdecl _sopen (const char*, int, int, ...); Modified: trunk/cegcc/src/mingw/include/stdio.h =================================================================== --- trunk/cegcc/src/mingw/include/stdio.h 2007-02-24 13:53:54 UTC (rev 903) +++ trunk/cegcc/src/mingw/include/stdio.h 2007-02-24 14:06:32 UTC (rev 904) @@ -194,7 +194,9 @@ #ifndef __COREDLL__ /* MS puts remove & rename (but not wide versions) in io.h also */ _CRTIMP int __cdecl remove (const char*); +#endif _CRTIMP int __cdecl rename (const char*, const char*); +#ifndef __COREDLL__ _CRTIMP FILE* __cdecl tmpfile (void); _CRTIMP char* __cdecl tmpnam (char*); #endif /* __COREDLL__ */ @@ -423,9 +425,15 @@ _CRTIMP FILE* __cdecl _fdopen (int, const char*); #ifndef __COREDLL__ _CRTIMP FILE* __cdecl _fsopen(const char*, const char*, int); +#endif +#ifdef __COREDLL__ +/* We know the Microsoft defines _fileno as returning + a void* (HANDLE), but that is so anoying, that we + define it as returning int, which is ok on arm (32-bit). +_CRTIMP void* __cdecl _fileno (FILE*); */ _CRTIMP int __cdecl _fileno (FILE*); #else -_CRTIMP void* __cdecl _fileno (FILE*); +_CRTIMP int __cdecl _fileno (FILE*); #endif _CRTIMP int __cdecl _fcloseall(void); #ifdef __MSVCRT__ @@ -445,7 +453,11 @@ _CRTIMP int __cdecl fputchar (int); _CRTIMP int __cdecl fileno (FILE*); #else -_CRTIMP void* __cdecl fileno (FILE*); +/* We know the Microsoft defines _fileno as returning + a void* (HANDLE), but that is so anoying, that we + define it as returning int, which is ok on arm (32-bit). +_CRTIMP void* __cdecl fileno (FILE*); */ +_CRTIMP int __cdecl fileno (FILE*); #endif #endif /* Not _NO_OLDNAMES */ Added: trunk/cegcc/src/mingw/mingwex/wince/chmod.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/chmod.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/chmod.c 2007-02-24 14:06:32 UTC (rev 904) @@ -0,0 +1,27 @@ +#include <wchar.h> +#include <windows.h> +#include <io.h> +#include <sys/stat.h> + +int +chmod (const char *path, int mode) +{ + wchar_t pathw[MAX_PATH + 1]; + DWORD attr; + + mbstowcs (pathw, path, MAX_PATH); + + /* This is racy, but it is the best we can do. */ + + attr = GetFileAttributes (pathw); + if(attr == 0xffffffff) + return -1; + + if((mode & _S_IWRITE) != 0) + attr &= ~FILE_ATTRIBUTE_READONLY; + else + attr |= FILE_ATTRIBUTE_READONLY; + + SetFileAttributes (pathw, attr); + return 0; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/chmod.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/rename.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/rename.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/rename.c 2007-02-24 14:06:32 UTC (rev 904) @@ -0,0 +1,16 @@ +#include <windows.h> + +/* We return an error if the TO file already exists, + like the Windows NT/9x 'rename' does. */ + +int +rename (const char* from, const char* to) +{ + wchar_t fromw[MAX_PATH + 1]; + wchar_t tow[MAX_PATH + 1]; + mbstowcs (fromw, from, MAX_PATH); + mbstowcs (tow, to, MAX_PATH); + if (MoveFileW (fromw, tow)) + return 0; + return -1; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/rename.c ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:34:52
|
Revision: 905 http://svn.sourceforge.net/cegcc/?rev=905&view=rev Author: pedroalves Date: 2007-02-24 06:40:25 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * mingwex/Makefile.in (WINCE_OBJS): Add rename.o, stat.o, chmod.o, utime.o ,futime.o, timeutil.o and ctime.o. (MATHCE_OBJS): Avoid going over 80 text columns. * mingwex/wince/timeutil.c: New. * mingwex/wince/timeutil.h: New. * mingwex/wince/gmtime.c: Reimplement. * mingwex/wince/mktime.c: Likewise. * mingwex/wince/time.c: Likewise. * mingwex/wince/localtime.c: Likewise. * mingwex/wince/utime.c: New. * mingwex/wince/futime.c: New. * mingwex/wince/ctime.c: New. * mingwex/wince/stat.c: New. * include/sys/stat.h (_fstat, _chmod, _stat, fstat, chmod, stat): Expose. * include/sys/utime.h (_utime, utime, _futime): Expose. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/sys/stat.h trunk/cegcc/src/mingw/include/sys/utime.h trunk/cegcc/src/mingw/mingwex/Makefile.in trunk/cegcc/src/mingw/mingwex/wince/gmtime.c trunk/cegcc/src/mingw/mingwex/wince/localtime.c trunk/cegcc/src/mingw/mingwex/wince/mktime.c trunk/cegcc/src/mingw/mingwex/wince/time.c Added Paths: ----------- trunk/cegcc/src/mingw/mingwex/wince/ctime.c trunk/cegcc/src/mingw/mingwex/wince/futime.c trunk/cegcc/src/mingw/mingwex/wince/stat.c trunk/cegcc/src/mingw/mingwex/wince/timeutil.c trunk/cegcc/src/mingw/mingwex/wince/timeutil.h trunk/cegcc/src/mingw/mingwex/wince/utime.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 14:40:25 UTC (rev 905) @@ -8,7 +8,23 @@ (_fileno, fileno): Revert to int return type. * mingwex/wince/rename.c: New. * mingwex/wince/chmod.c: New. - + * mingwex/Makefile.in (WINCE_OBJS): Add rename.o, stat.o, + chmod.o, utime.o ,futime.o, timeutil.o and ctime.o. + (MATHCE_OBJS): Avoid going over 80 text columns. + * mingwex/wince/timeutil.c: New. + * mingwex/wince/timeutil.h: New. + * mingwex/wince/gmtime.c: Reimplement. + * mingwex/wince/mktime.c: Likewise. + * mingwex/wince/time.c: Likewise. + * mingwex/wince/localtime.c: Likewise. + * mingwex/wince/utime.c: New. + * mingwex/wince/futime.c: New. + * mingwex/wince/ctime.c: New. + * mingwex/wince/stat.c: New. + * include/sys/stat.h (_fstat, _chmod, _stat, fstat, + chmod, stat): Expose. + * include/sys/utime.h (_utime, utime, _futime): Expose. + 2007-02-07 Pedro Alves <ped...@po...> * include/math.h: Expose __fpclassifyf, __fpclassify, Modified: trunk/cegcc/src/mingw/include/sys/stat.h =================================================================== --- trunk/cegcc/src/mingw/include/sys/stat.h 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/include/sys/stat.h 2007-02-24 14:40:25 UTC (rev 905) @@ -155,20 +155,15 @@ extern "C" { #endif -#ifndef __COREDLL__ _CRTIMP int __cdecl _fstat (int, struct _stat*); _CRTIMP int __cdecl _chmod (const char*, int); _CRTIMP int __cdecl _stat (const char*, struct _stat*); - #ifndef _NO_OLDNAMES - /* These functions live in liboldnames.a. */ _CRTIMP int __cdecl fstat (int, struct stat*); _CRTIMP int __cdecl chmod (const char*, int); _CRTIMP int __cdecl stat (const char*, struct stat*); - #endif /* Not _NO_OLDNAMES */ -#endif #if defined (__MSVCRT__) _CRTIMP int __cdecl _fstati64(int, struct _stati64 *); Modified: trunk/cegcc/src/mingw/include/sys/utime.h =================================================================== --- trunk/cegcc/src/mingw/include/sys/utime.h 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/include/sys/utime.h 2007-02-24 14:40:25 UTC (rev 905) @@ -52,7 +52,6 @@ extern "C" { #endif -#ifndef __COREDLL__ _CRTIMP int __cdecl _utime (const char*, struct _utimbuf*); #ifndef _NO_OLDNAMES @@ -60,7 +59,6 @@ #endif /* Not _NO_OLDNAMES */ _CRTIMP int __cdecl _futime (int, struct _utimbuf*); -#endif /* The wide character version, only available for MSVCRT versions of the * C runtime library. */ Modified: trunk/cegcc/src/mingw/mingwex/Makefile.in =================================================================== --- trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/mingwex/Makefile.in 2007-02-24 14:40:25 UTC (rev 905) @@ -213,8 +213,9 @@ asctime.o freopen.o gmtime.o localtime.o mktime.o strftime.o time.o \ tempnam.o unlink.o wcsftime.o fdopen.o read.o write.o open.o lseek.o \ close.o isalnum.o isalpha.o iscntrl.o isgraph.o islower.o isprint.o \ - ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o mb_cur_max.o - + ispunct.o isspace.o isupper.o isxdigit.o _tolower.o _toupper.o \ + mb_cur_max.o rename.o stat.o chmod.o utime.o futime.o timeutil.o \ + ctime.o MATHCE_OBJS = \ e_acosf.o e_acosh.o e_acoshf.o e_asinf.o e_atan2f.o e_atanh.o e_coshf.o \ e_expf.o e_gamma_r.o e_gammaf_r.o e_lgamma_r.o e_lgammaf_r.o e_log10f.o \ @@ -228,10 +229,9 @@ s_modff.o s_nextafterf.o s_rint.o s_rintf.o s_round.o s_roundf.o \ s_scalbn.o s_scalbnf.o s_signgam.o s_sinf.o s_tanf.o s_tanh.o s_tanhf.o \ s_trunc.o s_truncf.o w_acosf.o w_acosh.o w_acoshf.o w_asinf.o w_atan2f.o \ - w_atanh.o w_coshf.o w_expf.o w_hypotf.o w_lgamma.o w_lgammaf.o w_log2.o w_log2f.o \ - w_log10f.o w_logf.o w_powf.o w_remainder.o w_remainderf.o w_sinhf.o \ - w_tgamma.o w_tgammaf.o fpclassify.o - + w_atanh.o w_coshf.o w_expf.o w_hypotf.o w_lgamma.o w_lgammaf.o w_log2.o \ + w_log2f.o w_log10f.o w_logf.o w_powf.o w_remainder.o w_remainderf.o \ + w_sinhf.o w_tgamma.o w_tgammaf.o fpclassify.o GDTOA_OBJS = \ dmisc.o dtoa.o g__fmt.o g_dfmt.o g_ffmt.o g_xfmt.o gdtoa.o \ gethex.o gmisc.o hd_init.o hexnan.o misc.o smisc.o \ Added: trunk/cegcc/src/mingw/mingwex/wince/ctime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/ctime.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/ctime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,8 @@ +#include <time.h> + +char * +ctime (const time_t *t) +{ + struct tm tms = *localtime(t); + return asctime (&tms); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/ctime.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/futime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/futime.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/futime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,31 @@ +#include <sys/utime.h> + +#include "timeutil.h" + +int +_futime (int fildes, struct _utimbuf *times) +{ + FILETIME last_write_time; + FILETIME last_access_time; + + struct _utimbuf times_def; + + if (!times) + { + time_t curr_time; + time (&curr_time); + times_def.actime = times_def.modtime = curr_time; + times = ×_def; + } + + __time_t_to_FILETIME (times->actime, &last_access_time); + __time_t_to_FILETIME (times->modtime, &last_write_time); + + if (!SetFileTime ((HANDLE) fildes, + NULL, + &last_access_time, + &last_write_time)) + return -1; + + return 0; +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/futime.c ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/cegcc/src/mingw/mingwex/wince/gmtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/mingwex/wince/gmtime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -1,78 +1,14 @@ -#include <windows.h> -#include <stdio.h> -#include <time.h> +#include "timeutil.h" -static struct tm mytm; - -static const int DMonth[13] = - { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }; - -static const int monthCodes[12] = { 6, 2, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 }; - -static int -calc_day_of_week (const struct tm *nTM) -{ - int day; - - day = (nTM->tm_year % 100); - day += day / 4; - day += monthCodes[nTM->tm_mon]; - day += nTM->tm_mday; - while (day >= 7) - day -= 7; - - return day; -} - struct tm * -gmtime (const time_t * timer) +gmtime(const time_t *t) { - unsigned long x = *timer; - int imin, ihrs, iday, iyrs; - int sec, min, hrs, day, mon, yrs; - int lday, qday, jday, mday; - - imin = x / 60; // whole minutes since 1/1/70 - sec = x - (60 * imin); // leftover seconds - ihrs = imin / 60; // whole hours since 1/1/70 - min = imin - 60 * ihrs; // leftover minutes - iday = ihrs / 24; // whole days since 1/1/70 - hrs = ihrs - 24 * iday; // leftover hours - iday = iday + 365 + 366; // whole days since 1/1/68 - lday = iday / ((4 * 365) + 1); // quadyr = 4 yr period = 1461 days - qday = iday % ((4 * 365) + 1); // days since current quadyr began - if (qday >= (31 + 29)) // if past feb 29 then - lday = lday + 1; // add this quadyr\x92s leap day to the - // # of quadyrs (leap days) since 68 - iyrs = (iday - lday) / 365; // whole years since 1968 - jday = iday - (iyrs * 365) - lday; // days since 1 /1 of current year. - if (qday <= 365 && qday >= 60) // if past 2/29 and a leap year then - jday = jday + 1; // add a leap day to the # of whole - // days since 1/1 of current year - yrs = iyrs + 1968; // compute year - mon = 13; // estimate month ( +1) - mday = 366; // max days since 1/1 is 365 - while (jday < mday) // mday = # of days passed from 1/1 - { // until first day of current month - mon = mon - 1; // mon = month (estimated) - mday = DMonth[mon]; // # elapsed days at first of mon - if ((mon > 2) && (yrs % 4) == 0) // if past 2/29 and leap year then - mday = mday + 1; // add leap day - // compute month by decrementing - } // month until found - - day = jday - mday + 1; // compute day of month - - mytm.tm_sec = sec; - mytm.tm_min = min; - mytm.tm_hour = hrs; - mytm.tm_mday = day; - mytm.tm_mon = mon; - mytm.tm_year = yrs - 1900; - - mytm.tm_wday = calc_day_of_week (&mytm); - mytm.tm_yday = jday; - mytm.tm_isdst = 0; - - return &mytm; + FILETIME f; + SYSTEMTIME s; + static struct tm tms; + + __time_t_to_FILETIME (*t, &f); + FileTimeToSystemTime (&f, &s); + __SYSTEMTIME_to_tm (&s, &tms); + return &tms; } Modified: trunk/cegcc/src/mingw/mingwex/wince/localtime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/mingwex/wince/localtime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -1,7 +1,27 @@ -#include <time.h> +#include "timeutil.h" struct tm * -localtime (const time_t * timer) +localtime(const time_t *timer) { - return gmtime (timer); + SYSTEMTIME ss, ls, s; + FILETIME sf, lf, f; + long long t, diff; + + static struct tm tms; + + GetSystemTime (&ss); + GetLocalTime (&ls); + + SystemTimeToFileTime (&ss, &sf); + SystemTimeToFileTime (&ls, &lf); + + diff = __FILETIME_to_ll (&sf) - __FILETIME_to_ll (&lf); + + __time_t_to_FILETIME (*timer, &f); + t = __FILETIME_to_ll (&f) - diff; + __ll_to_FILETIME (t, &f); + FileTimeToSystemTime (&f, &s); + __SYSTEMTIME_to_tm (&s, &tms); + + return &tms; } Modified: trunk/cegcc/src/mingw/mingwex/wince/mktime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/mingwex/wince/mktime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -1,38 +1,21 @@ -#include <windows.h> -#include <stdio.h> -#include <time.h> +#include "timeutil.h" -static const int month_to_day[12] = - { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 }; - time_t -mktime (struct tm *t) +mktime (struct tm *pt) { - short month, year; - time_t result; + SYSTEMTIME ss, ls, s; + FILETIME sf, lf, f; + long long diff; - month = t->tm_mon; - year = t->tm_year + month / 12 + 1900; - month %= 12; - if (month < 0) - { - year -= 1; - month += 12; - } - result = (year - 1970) * 365 + (year - 1969) / 4 + month_to_day[month]; - result = (year - 1970) * 365 + month_to_day[month]; - if (month <= 1) - year -= 1; - result += (year - 1968) / 4; - result -= (year - 1900) / 100; - result += (year - 1600) / 400; - result += t->tm_mday; - result -= 1; - result *= 24; - result += t->tm_hour; - result *= 60; - result += t->tm_min; - result *= 60; - result += t->tm_sec; - return (result); + GetSystemTime (&ss); + GetLocalTime (&ls); + SystemTimeToFileTime (&ss, &sf); + SystemTimeToFileTime (&ls, &lf); + + diff = __FILETIME_to_ll (&lf) - __FILETIME_to_ll (&sf); + diff /= _onesec_in100ns; + + __tm_to_SYSTEMTIME (pt, &s); + SystemTimeToFileTime (&s, &f); + return __FILETIME_to_time_t (&f) - (time_t)diff; } Added: trunk/cegcc/src/mingw/mingwex/wince/stat.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/stat.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/stat.c 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,139 @@ +/* + * stat.c: _stat, stat and fstat implementations for WinCE. + * + * This file has no copyright assigned and is placed in the Public Domain. + * This file is a part of the mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within the package. + * + * Written by Pedro Alves <ped...@po...> 10 Feb 2007 + * + */ + +#include <windows.h> +#include <time.h> +#include <fcntl.h> +#include <io.h> +#include <sys/stat.h> +#include <stdio.h> + +#include "timeutil.h" + +struct stat_file_info_t +{ + DWORD dwFileAttributes; + FILETIME ftLastWriteTime; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + DWORD nFileSizeLow; +}; + +#define COPY_MEMBER(DEST, SRC, MEMBER) \ +do { \ + (DEST)->MEMBER = (SRC)->MEMBER; \ +} while (0) + +#define TO_STAT_FILE_INFO(DEST, SRC) \ +do { \ + COPY_MEMBER (DEST, SRC, dwFileAttributes); \ + COPY_MEMBER (DEST, SRC, ftLastWriteTime); \ + COPY_MEMBER (DEST, SRC, ftCreationTime); \ + COPY_MEMBER (DEST, SRC, ftLastAccessTime); \ + COPY_MEMBER (DEST, SRC, nFileSizeLow); \ +} while (0) + +static int +__stat_by_file_info (struct stat_file_info_t *fi, struct stat* st, int exec) +{ + int permission = _S_IREAD; + + memset (st, 0, sizeof (*st)); + + st->st_size = fi->nFileSizeLow; + st->st_mode = _S_IFREG; + + if((fi->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) + st->st_mode |= _S_IFDIR | _S_IEXEC; + else if (exec) + permission |= _S_IEXEC; + + if((fi->dwFileAttributes & FILE_ATTRIBUTE_READONLY) == 0) + permission |= _S_IWRITE; + + st->st_mode |= permission | (permission >> 3) | (permission >> 6); + + st->st_nlink = 1; /* always 1? */ + st->st_rdev = 1; /* Where to get drive info? */ + st->st_ino = 0; /* always 0 on Windows */ + + st->st_mtime = __FILETIME_to_time_t (&fi->ftLastWriteTime); + st->st_ctime = __FILETIME_to_time_t (&fi->ftCreationTime); + st->st_atime = __FILETIME_to_time_t (&fi->ftLastAccessTime); + + /* Looks like the code below is never triggered. + Windows CE always only keeps the LastWriteTime, and + copies it to the CreationTime and LastAccessTime fields. */ + if (st->st_ctime == 0) + st->st_ctime = st->st_mtime; + if (st->st_atime == 0) + { + /* On XP, at least, the st_atime is always set to the same + as the st_mtime, except the hour/min/sec == 00:00:00. */ + SYSTEMTIME s; + FILETIME f = fi->ftLastWriteTime; + FileTimeToSystemTime (&f, &s); + s.wHour = 0; s.wMinute = 0; + s.wSecond = 0; s.wMilliseconds = 0; + SystemTimeToFileTime (&s, &f); + st->st_atime = __FILETIME_to_time_t (&f); + /* st->st_atime = st->st_mtime; */ + } + return 0; +} + +int +fstat (int fd, struct stat *st) +{ + BY_HANDLE_FILE_INFORMATION fi; + struct stat_file_info_t sfi; + + GetFileInformationByHandle ((HANDLE)fd, &fi); + TO_STAT_FILE_INFO (&sfi, &fi); + return __stat_by_file_info (&sfi, st, 0); +} + +int +_stat (const char *path, struct _stat *st) +{ + WIN32_FIND_DATAW fd; + HANDLE h; + int ret; + struct stat_file_info_t sfi; + wchar_t pathw[MAX_PATH + 1]; + size_t len; + int exec; + + mbstowcs (pathw, path, MAX_PATH); + if((h = FindFirstFileW (pathw, &fd)) == INVALID_HANDLE_VALUE) + { + DWORD dwError = GetLastError (); + if(dwError == ERROR_NO_MORE_FILES) + /* Convert error to something more sensible. */ + SetLastError (ERROR_FILE_NOT_FOUND); + return -1; + } + + TO_STAT_FILE_INFO (&sfi, &fd); + + len = strlen (path); + exec = (len >= 4 + && strcasecmp (path + len - 4, ".exe") == 0); + ret = __stat_by_file_info (&sfi, (struct stat*)st, exec); + FindClose (h); + return ret; +} + +int +stat (const char *path, struct stat *st) +{ + return _stat (path, (struct _stat *)st); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/stat.c ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/cegcc/src/mingw/mingwex/wince/time.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/time.c 2007-02-24 14:06:32 UTC (rev 904) +++ trunk/cegcc/src/mingw/mingwex/wince/time.c 2007-02-24 14:40:25 UTC (rev 905) @@ -1,27 +1,16 @@ -#include <time.h> -#include <windows.h> +#include "timeutil.h" time_t -time (time_t * timer) +time (time_t *timer) { - SYSTEMTIME systime; - struct tm tmtime; - time_t tt; + SYSTEMTIME s; + FILETIME f; - GetLocalTime (&systime); + if (timer == NULL) + return 0; - tmtime.tm_year = systime.wYear - 1900; - tmtime.tm_mon = systime.wMonth - 1; - tmtime.tm_mday = systime.wDay; - tmtime.tm_wday = systime.wDayOfWeek; - tmtime.tm_hour = systime.wHour; - tmtime.tm_min = systime.wMinute; - tmtime.tm_sec = systime.wSecond; - - tt = mktime (&tmtime); - - if (timer) - *timer = tt; - - return tt; + GetSystemTime (&s); + SystemTimeToFileTime (&s, &f); + *timer = __FILETIME_to_time_t (&f); + return *timer; } Added: trunk/cegcc/src/mingw/mingwex/wince/timeutil.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/timeutil.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/timeutil.c 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,110 @@ +#include "timeutil.h" + +/* Originally based on code found in the Ruby WinCE support, which + had the following notice: */ + +/* start original header */ + +/*************************************************************** + time.c + + author : uema2 + date : Nov 30, 2002 + + You can freely use, copy, modify, and redistribute + the whole contents. +***************************************************************/ + +/* end original header */ + +/* Note: The original filename was: wince/time_wce.c */ + +/* Adapted to mingw32ce by Pedro Alves <ped...@po...> + 10 Feb 2007 - Initial revision. */ + +#define DELTA_EPOCH 116444736000000000LL + +#if 0 +how_to_calc_delta_epoch () +{ + FILETIME f1601, f1970; + __FILETIME_from_Year (1601, &f1601); + __FILETIME_from_Year (1970, &f1970); + DELTA_EPOCH = __FILETIME_to_ll (&f1970) - __FILETIME_to_ll (&f1601); +} +#endif + +void +__tm_to_SYSTEMTIME (struct tm *t, SYSTEMTIME *s) +{ + s->wYear = t->tm_year + 1900; + s->wMonth = t->tm_mon + 1; + s->wDayOfWeek = t->tm_wday; + s->wDay = t->tm_mday; + s->wHour = t->tm_hour; + s->wMinute = t->tm_min; + s->wSecond = t->tm_sec; + s->wMilliseconds = 0; +} + +static void +__FILETIME_from_Year (WORD year, FILETIME *f) +{ + SYSTEMTIME s = {0}; + + s.wYear = year; + s.wMonth = 1; + s.wDayOfWeek = 1; + s.wDay = 1; + + SystemTimeToFileTime (&s, f); +} + +static int +__Yday_from_SYSTEMTIME (const SYSTEMTIME *s) +{ + long long t; + FILETIME f1, f2; + + __FILETIME_from_Year (s->wYear, &f1); + SystemTimeToFileTime (s, &f2); + + t = __FILETIME_to_ll (&f2) - __FILETIME_to_ll (&f1); + + return ((t / _onesec_in100ns) / (60 * 60 * 24)); +} + +void +__SYSTEMTIME_to_tm (SYSTEMTIME *s, struct tm *tm) +{ + tm->tm_year = s->wYear - 1900; + tm->tm_mon = s->wMonth- 1; + tm->tm_wday = s->wDayOfWeek; + tm->tm_mday = s->wDay; + tm->tm_yday = __Yday_from_SYSTEMTIME (s); + tm->tm_hour = s->wHour; + tm->tm_min = s->wMinute; + tm->tm_sec = s->wSecond; + tm->tm_isdst = 0; +} + +time_t +__FILETIME_to_time_t (const FILETIME* f) +{ + long long t; + t = __FILETIME_to_ll (f); + t -= DELTA_EPOCH; + return (time_t)(t / _onesec_in100ns); +} + +void +__time_t_to_FILETIME (time_t t, FILETIME *f) +{ + long long time; + + time = t; + time *= _onesec_in100ns; + time += DELTA_EPOCH; + + __ll_to_FILETIME (time, f); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/timeutil.c ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/timeutil.h =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/timeutil.h (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/timeutil.h 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,30 @@ +#ifndef __TIMEUTIL_H +#define __TIMEUTIL_H + +#include <windows.h> +#include <sys/time.h> + +#define _onesec_in100ns 10000000LL + +__CRT_INLINE long long +__FILETIME_to_ll (const FILETIME *f) +{ + long long t; + t = (long long)f->dwHighDateTime << 32; + t |= f->dwLowDateTime; + return t; +} + +__CRT_INLINE void +__ll_to_FILETIME (long long t, FILETIME* f) +{ + f->dwHighDateTime = (DWORD)((t >> 32) & 0x00000000FFFFFFFF); + f->dwLowDateTime = (DWORD)(t & 0x00000000FFFFFFFF); +} + +extern void __tm_to_SYSTEMTIME (struct tm *, SYSTEMTIME *); +extern void __SYSTEMTIME_to_tm (SYSTEMTIME *, struct tm *); +extern time_t __FILETIME_to_time_t (const FILETIME *); +extern void __time_t_to_FILETIME (time_t, FILETIME *); + +#endif Property changes on: trunk/cegcc/src/mingw/mingwex/wince/timeutil.h ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/src/mingw/mingwex/wince/utime.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/utime.c (rev 0) +++ trunk/cegcc/src/mingw/mingwex/wince/utime.c 2007-02-24 14:40:25 UTC (rev 905) @@ -0,0 +1,22 @@ +#include <sys/utime.h> +#include <fcntl.h> + +int +utime (const char *path, struct utimbuf *times) +{ + int retval; + int fildes = open (path, _O_RDWR); + if (fildes == -1) + return -1; + + retval = _futime (fildes, (struct _utimbuf*)times); + + close (fildes); + return retval; +} + +int +_utime (const char *fname, struct _utimbuf *times) +{ + return utime (fname, (struct utimbuf *)times); +} Property changes on: trunk/cegcc/src/mingw/mingwex/wince/utime.c ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:34:49
|
Revision: 902 http://svn.sourceforge.net/cegcc/?rev=902&view=rev Author: pedroalves Date: 2007-02-24 05:50:56 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on __MINGW32CE__ Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/mathce/s_roundf.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-13 23:23:10 UTC (rev 901) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 13:50:56 UTC (rev 902) @@ -1,3 +1,8 @@ +2007-02-24 Pedro Alves <ped...@po...> + + * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on + __MINGW32CE__ + 2007-02-07 Pedro Alves <ped...@po...> * include/math.h: Expose __fpclassifyf, __fpclassify, Modified: trunk/cegcc/src/mingw/mingwex/mathce/s_roundf.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/mathce/s_roundf.c 2007-02-13 23:23:10 UTC (rev 901) +++ trunk/cegcc/src/mingw/mingwex/mathce/s_roundf.c 2007-02-24 13:50:56 UTC (rev 902) @@ -30,7 +30,8 @@ #include "math_private.h" #ifdef __MINGW32CE__ -#define isinff(x) isinf((float)x) +#define isinff(x) isinf(x) +#define isnanf(x) isnan(x) #endif float This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-02-24 16:34:49
|
Revision: 903 http://svn.sourceforge.net/cegcc/?rev=903&view=rev Author: pedroalves Date: 2007-02-24 05:53:54 -0800 (Sat, 24 Feb 2007) Log Message: ----------- * include/math.h (_isnanf, _isnan): Declare. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/include/math.h Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 13:50:56 UTC (rev 902) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-02-24 13:53:54 UTC (rev 903) @@ -2,6 +2,7 @@ * mingwex/mathce/s_roundf.c (isinff, isnanf): Define on __MINGW32CE__ + * include/math.h (_isnanf, _isnan): Declare. 2007-02-07 Pedro Alves <ped...@po...> Modified: trunk/cegcc/src/mingw/include/math.h =================================================================== --- trunk/cegcc/src/mingw/include/math.h 2007-02-24 13:50:56 UTC (rev 902) +++ trunk/cegcc/src/mingw/include/math.h 2007-02-24 13:53:54 UTC (rev 903) @@ -392,6 +392,9 @@ #endif /* __i386__ */ #ifdef __COREDLL__ +extern int __cdecl _isnanf (float _x); +extern int __cdecl _isnan (double _x); + __CRT_INLINE int __cdecl _isnanl (long double _x) { int sw = fpclassify (_x); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-02-13 23:23:11
|
Revision: 901 http://svn.sourceforge.net/cegcc/?rev=901&view=rev Author: dannybackx Date: 2007-02-13 15:23:10 -0800 (Tue, 13 Feb 2007) Log Message: ----------- Add more explanations. Modified Paths: -------------- trunk/cegcc/docs/build-toolchain.html Modified: trunk/cegcc/docs/build-toolchain.html =================================================================== --- trunk/cegcc/docs/build-toolchain.html 2007-02-12 19:54:02 UTC (rev 900) +++ trunk/cegcc/docs/build-toolchain.html 2007-02-13 23:23:10 UTC (rev 901) @@ -21,6 +21,7 @@ these are distribution packages that can be used on many Linux platforms. <P> We offer two similar implementations of our product. +<b>It is recommended to build and install both of them.</b> They're called after the target platforms they represent : <ul> <li><i>arm-wince-cegcc</i> is meant for building apps that rely on a UNIX-style operating system, system calls, etc. @@ -33,6 +34,23 @@ <PRE> sh build-mingw32ce.sh </PRE> +<P> +Both toolsets are meant to build applications that run on +devices with Windows CE. +You may ask "<i>which toolset should I use?</i>" +That depends on the application you're trying to build, +and because of that, your choice tomorrow may be different from today. +If today you're porting a Linux- or Unix-based application to Windows CE, +then your best choice is probably the <i>arm-wince-cegcc-gcc</i> compiler. +Tomorrow you may be writing a native Windows CE application, and your +best choice would then be the <i>arm-wince-mingw32ce-gcc</i> compiler. +<P> +Do not confuse your host platform (Linux or Cygwin) +with the toolset to use. Both the <i>arm-wince-cegcc</i> +and the <i>arm-wince-mingw32ce</i> sets are available on +Cygwin (your PC running some version of desktop Windows, +with the Cygwin layer installed), +as well as on Linux. <H1>1. Building on Linux</H1> <P> This chapter describes building the toolchain on Linux. @@ -40,6 +58,8 @@ but the details on that are in the next chapter. <A HREF="#common">A third chapter</A> in this document describes some common elements, you probably want to look into that. +We also assume you've been able to download CeGCC, +that's also <A HREF="#download">described below</A>. <P> The basic steps are very simple : <ul> @@ -69,6 +89,11 @@ The directory in which everything is installed is <I>/opt/cegcc</I>, which means that you'll need to put <I>/opt/cegcc/bin</I> in your PATH to make use of the new tools. +<P> +Be warned that the build takes a while - you may want to go drink some coffee. +An example : my Pentium 4 system (single CPU at 2.4 GHz) +needs 27 minutes to build CeGCC. +Drinking that much coffee can be hazardous :-) <H2>1.4 More complicated stuff : partial builds, etc</H2> <P> The build scripts have a couple of paramters. @@ -133,6 +158,43 @@ In this sequence, we always (configure and) build the tools, then immediately install them in $PREFIX. This is uncommon, but is the easiest way for us to deal with this sequence. +<A NAME="#download"><H2>3.4 Downloading CeGCC</H2></A> +<P> +There are several ways to get CeGCC. +<H3>3.4.1 Get the SVN sources from our source repository</H3> +<P> +You can access our source repository directly using this command : +<PRE> +svn co https://cegcc.svn.sourceforge.net/svnroot/cegcc/trunk/cegcc cegcc +</PRE> +<P> +The result will be a large directory tree on your system; +currently the size is between 800 and 900 megabytes. +After compile, this becomes slightly more than 1.3 GB. +<P> +These are such large numbers for two reasons : +<ul> + <li> CeGCC is composed of a number of tools which are large already (e.g. binutils, gcc, gdb) + <li> subversion adds a lot of overhead on disk to avoid network traffic +</ul> +<P> +If you want to renew your download after a while, +then all you need to do is position yourself inside the cegcc +directory (inside <i>cegcc/trunk/cegcc</i> !) +and run +<PRE> +svn update +</PRE> +<H3>3.4.2 Download a source distribution</H3> +<P> +Currently we don't offer a packaged source distribution of CeGCC. +It is recommended to use subversion (SVN) to download the CeGCC sources. +<P> +The downside of distributing such a large quantity of sources would be +that every version has to be downloaded completely. +Use of subversion cuts a major part of the network traffic away : +you can keep up to date with only a fraction of the network traffic +(and the download time obviously also decreases). <H1>4. Requirements</H1> <P> There is nothing out of the ordinary in the tools you need to build cegcc, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-02-12 20:05:42
|
Revision: 900 http://svn.sourceforge.net/cegcc/?rev=900&view=rev Author: dannybackx Date: 2007-02-12 11:54:02 -0800 (Mon, 12 Feb 2007) Log Message: ----------- Some cleanup, save intermediate version so it'll get published. Modified Paths: -------------- trunk/cegcc/docs/build-toolchain.html Modified: trunk/cegcc/docs/build-toolchain.html =================================================================== --- trunk/cegcc/docs/build-toolchain.html 2007-02-12 10:13:40 UTC (rev 899) +++ trunk/cegcc/docs/build-toolchain.html 2007-02-12 19:54:02 UTC (rev 900) @@ -6,47 +6,115 @@ <img src="../images/banner1.png" alt="CeGCC cross compiler for PocketPC"> <P> This document describes how to build <A HREF="http://cegcc.sourceforge.net">CeGCC</A>. -One chapter deals with building the software on Linux, -another focuses on <A HREF="http://cygwin.com">Cygwin</A> (Windows + the Cygnus layer). +We have a set of scripts that can be used to build the toolchain on +<A HREF="http://www.linux.org">GNU/Linux</A> as well as on +<A HREF="http://cygwin.com">Cygwin</A> (Windows + the Cygnus layer). +These scripts are in the <I>src/</I> directory, they're called +<I>src/build-cegcc.sh</I> and +<I>src/build-mingw32ce.sh</I>. +They can be used to build the toolchain for the <I>arm-wince-cegcc</I> +and <I>arm-wince-mingw32ce</I> target platforms, respectively. +<P> +We used to have a separate set of scripts in the <I>scripts/linux</I> directory. +These have been removed. +The only thing still left there is support for building <A HREF="http://www.rpm.org">RPM</A> files, +these are distribution packages that can be used on many Linux platforms. +<P> +We offer two similar implementations of our product. +They're called after the target platforms they represent : +<ul> + <li><i>arm-wince-cegcc</i> is meant for building apps that rely on a UNIX-style operating system, system calls, etc. + <li><i>arm-wince-mingw32ce</i> is much closer to Windows CE, for apps using the native API. +</ul> +<P> +The examples below all mention the <i>arm-wince-cegcc</i> target. +When building for the <I>arm-wince-mingw32ce</I> target, +replace <i>cegcc</i> by <i>mingw32ce</i> everywhere, e.g. : +<PRE> + sh build-mingw32ce.sh +</PRE> <H1>1. Building on Linux</H1> <P> -There are two different sets of build scripts for Linux. -The scripts in src/*.sh are being maintained (by Pedro), they can be used unchanged both on -Linux and Cygwin. The scripts in scripts/linux are maintained to build an RPM file, -they are Linux-only. -<H2>1.1. Background information</H2> +This chapter describes building the toolchain on Linux. +I would guess that this is similar on Cygwin, +but the details on that are in the next chapter. +<A HREF="#common">A third chapter</A> in this document describes some common elements, +you probably want to look into that. <P> -<H3>1.1.1 Things to modify</H3> +The basic steps are very simple : +<ul> + <li>Put yourself in the right directory</li> + <li>Clean up old installations</li> + <li>Build it</li> +</ul> +<H2>1.1 The right directory</H2> <P> -Theoretically you should be able to use the scripts -and have to modify only the <i>settings.sh</i> script. -That script contains exported shell variables for -<table> -<tr><td>SCRIPTDIR</td><td>should automatically point to the scripts/linux directory</td></tr> -<tr><td>TOP_SRCDIR</td><td>should automatically point to the top directory containing CeGCC</td></tr> -<tr><td>BUILD_DIR</td><td>this points to a temporary directory in which all of the build happens</td></tr> -<tr><td>PREFIX</td><td>By default, this is <i>/usr/ppc</i>. You should set it to suit your needs, this is where the tools get installed. (<i>GNU default would be /usr/local</i>).</td></tr> -<tr><td>MY_HOST_ARCH</td><td>This is the architecture on which we're building</td></tr> -<tr><td>TARGET_ARCH</td><td>This is the target architecture, for our project there are two such targets : <i>arm-wince-cegcc</i> and <i>arm-wince-mingw32ce</i>.</td></tr> -<tr><td></td><td></td></tr> -</table> -<p> -The scripts also includes $PREFIX/bin in the path -to make sure that the newly built executables can be used -by the other scripts in the build process. -<H3>1.1.2 Script concepts</H3> +All of the commands and context below rely on the fact that you're in the +<I>src</I> directory of the <A HREF="http://cegcc.sourceforge.net">CeGCC</A> +distribution. +<H2>1.2 Clean up old installations</H2> <P> -All scripts reside in $SCRIPTDIR, that's scripts/linux in your distribution. -The build.sh script is the master build script. +Cleanup is recommended : +<PRE> + rm -rf /opt/cegcc/* + rm -rf build-cegcc +</PRE> +<H2>1.3 Build cegcc completely</H2> <P> -<font color=red>Beware: build.sh will initially clean up</font> -the complete $BUILD_DIR -but also the contents of most of the $PREFIX. -There's a small protection : it'll only clean up in $PREFIX if that's equal to /usr/ppc . +<PRE> + sh build-cegcc.sh +</PRE> <P> +This command will rebuild and install all of cegcc. +The directory in which everything is installed is <I>/opt/cegcc</I>, +which means that you'll need to put <I>/opt/cegcc/bin</I> in your PATH +to make use of the new tools. +<H2>1.4 More complicated stuff : partial builds, etc</H2> +<P> +The build scripts have a couple of paramters. +In this chapter, we'll explain how to use them. +<P> +When you pass the <i>--help</i> parameter to the build script, +it'll display a summary of its usage : +<PRE> + dannypc: {55} sh build-cegcc.sh --help + Using defaults: + Building cegcc: + source: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src + build: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/build-cegcc + prefix: /opt/cegcc + usage: + build-cegcc.sh [source dir] [build directory] [prefix dir] [build_opt] + + Valid build options : binutils importlibs w32api dummy_cegccdll + bootstrapgcc newlib gcc cegccdll cegccthrd libstdc++ gdb + gdbstub docs profile all + + Done. -------------------------- +</PRE> +<H3>1.4.1 Partial builds</H3> +<P> +You can rebuild part of CeGCC by saying e.g. +<PRE> + sh build-cegcc.sh gcc +</PRE> +The script will then only build and install the requested module. +<H3>1.4.2 Non-standard prefix</H3> +<P> +<B>Warning</B> : don't install CeGCC in a generic installation directory +such as /usr/local . +<H3>1.4.3 </H3> +<H1>2. Building on Cygwin</H1> +<P> +To be written by someone who knows about Cygwin... +<A NAME="#common"><H1>3 Platform independent information</H1></A> +<H2>3.1 How the scripts interact</H2> +<H2>3.2 Installation directory</H2> +<H2>3.3 The quick overview : how to build a cross compiler</H2> +<P> The tools need to be built in a sequence because they rely on each other. The text below is an overview to make you understand the issues involved, -the real script (scripts/linux/build.sh) is the most +the real scripts (src/build-*.sh) are the most <I>(the only?)</I> reliable source of information on this topic. <ul> <li>binutils @@ -65,59 +133,8 @@ In this sequence, we always (configure and) build the tools, then immediately install them in $PREFIX. This is uncommon, but is the easiest way for us to deal with this sequence. -Sadly, this conflicts with the concept of e.g. -<A HREF="http://www.rpm.org">rpm</A> -so it is not possible to create a source RPM for this project in a simple way. -<H3>1.1.3 Hacks to work around problems</H3> -<H4>1.1.3.1 C++ compiler won't build</H4> +<H1>4. Requirements</H1> <P> -For some reason, the build process for the C++ compiler chokes. -The only explanation - and workaround - that we know of is the one found in -<A HREF="http://www.cygwin.com/ml/cygwin/1997-06/msg00457.html">this old message</A> -saying -<font color=blue><pre> -Configure creates a softlink in gcc object directory to the new -version of the cross assembler. Problem is that the native compiler -get confused and use the cross assembler instead of the native one. -</pre></font> -<P> -We adapted the build-gpp.sh script for this : it'll configure, and then build everything. -But the build is expected to fail (so the script won't terminate on this occasion), -then $BUILD_DIR/gpp/gcc/as is removed (that's the file bothering us), -then the build is restarted. -<H2>1.2 Building CeGCC for private use</H2> -<P> -This part is very simple : move to the scripts/linux directory and run build.sh . -The software will turn up in /usr/ppc (add /usr/ppc/bin to your PATH) after a while. -<H2>1.3 Building a CeGCC RPM</H2> -<P> -To build an RPM for distribution, you'll need to do two things : -<ul> - <li> package the sources in a .tar.gz file - <li> build the RPMs from this -</ul> -<P> -You should run scripts/linux/rpm-create-source.sh (from the scripts/linux directory). -This will create a file called <i>/usr/src/RPM/SOURCES/cegcc-src-0.11.tar.gz</i>, -in which the 0.11 part depends on variables sets in <i>settings.sh</i>. -<P> -For this to work, you'll need write permission in <i>/usr/src/RPM/*</i>, -but the next steps also require this. -<P> -To build the RPM, you must run -<i>rpmbuild -ba cegcc.spec</i> -which is another file in the scripts/linux directory. -<P> -You'll need two prerequisites for this to work : -write permissions in /usr/src/RPM, -and you'll have to make sure that the version numbers in -<i>scripts/linux/settings.sh</i> and <i>scripts/linux/cegcc.spec</i> -match. -<H1>2. The portable build - Building on Cygwin and Linux</H1> -<P> -Pedro will probably write documentation on this. -<H1>3. Requirements</H1> -<P> There is nothing out of the ordinary in the tools you need to build cegcc, most free software packages require the same : <ul> @@ -131,14 +148,12 @@ already contain the files generated by these tools. Note that we need to do this as some of the software that is part of cegcc requires different revisions of the auto tools than other parts of cegcc. -<H1>4. A tour of the directory structure</H1> +<H1>5. A tour of the directory structure</H1> <P> how to download <P> <pre> -scripts -scripts/linux <font color=red>The directory containing the linux build scripts</font> -src <font color=red>The master source directory</font> +src <font color=red>The master source directory, contains the master build scripts</font> src/newlib src/cegcc/cegccdll src/cegcc/importlibs/defs <font color=red>Definition files to create libraries to match WinCE DLL's</font> @@ -153,16 +168,35 @@ src/w32api/include <font color=red>The target system include files</font> src/w32api/lib <font color=red>an unused part of w32api</font> src/w32api -build <font color=red>This directory is created from the source tree</font> -build/i686-pc-linux-gnu/arm-wince-cegcc/gdb/gdb/testsuite/gdb.trace -build/i686-pc-linux-gnu/arm-wince-cegcc/gdb/gdb/testsuite -build/i686-pc-linux-gnu/arm-wince-cegcc/gdb/gdb -build/i686-pc-linux-gnu/arm-wince-cegcc/gdb -build/i686-pc-linux-gnu/arm-wince-cegcc -build/i686-pc-linux-gnu +src/build-cegcc <font color=red>This directory is created from the source tree</font> +src/build-mingw32ce <font color=red>This directory is created from the source tree</font> website <font color=red>Our website contents are also managed via the source repository</font> website/images docs <font color=red>The CeGCC project's documentation</font> </pre> +<H1>6 Known problems</H1> +<H2>6.1 C++ compiler won't build</H2> +<P> +For some reason, the build process for the C++ compiler chokes. +The only explanation - and workaround - that we know of is the one found in +<A HREF="http://www.cygwin.com/ml/cygwin/1997-06/msg00457.html">this old message</A> +saying +<font color=blue><pre> +Configure creates a softlink in gcc object directory to the new +version of the cross assembler. Problem is that the native compiler +get confused and use the cross assembler instead of the native one. +</pre></font> +<P> +We found that this only happens if you have the current directory in your PATH, +usually in the beginning of the list (before /bin and such). +A workaround is to remove . from your path, or to put it at the end. +<P> +We've adapted the build scripts so they can cope with this, +but this is really a gcc bug. +<H2>6.2 Build sometimes fails</H2> +I recommend cleaning up the installation directory and all of the build +directories prior to using the build scripts. +The build tends to be less reliable if part of an old build is still present. +<H2>6.3 </H2> </BODY> </HTML> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |