winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
March 2019
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
1097 discussions
Start a n
N
ew thread
Zhiyi Zhang : include: Avoid type redefinition.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: f76447bbab78008b556672aeac38995e101148c4 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=f76447bbab78008b556672ae…
Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Sun Mar 24 10:52:55 2019 +0800 include: Avoid type redefinition. UUID_DEFINED doesn't exist on Windows but it's needed by wine because of the usage of some wine private headers. And some older compilers can't handle the redefinition. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=46892
Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/ddk/ntddk.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ddk/ntddk.h b/include/ddk/ntddk.h index fb8cacc..719ba67 100644 --- a/include/ddk/ntddk.h +++ b/include/ddk/ntddk.h @@ -202,7 +202,11 @@ typedef NTSTATUS (WINAPI *PIO_QUERY_DEVICE_ROUTINE)(PVOID,PUNICODE_STRING,INTERF PKEY_VALUE_FULL_INFORMATION*,CONFIGURATION_TYPE,ULONG,PKEY_VALUE_FULL_INFORMATION*); typedef void (NTAPI EXPAND_STACK_CALLOUT)(void*); typedef EXPAND_STACK_CALLOUT *PEXPAND_STACK_CALLOUT; + +#ifndef UUID_DEFINED +#define UUID_DEFINED typedef GUID UUID; +#endif NTSTATUS WINAPI ExUuidCreate(UUID*); NTSTATUS WINAPI IoQueryDeviceDescription(PINTERFACE_TYPE,PULONG,PCONFIGURATION_TYPE,PULONG,
1
0
0
0
Michael Stefaniuc : oleacc: Avoid using the comma operator.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: 29503f24642be995af4885e9de92624cc8a74cc6 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=29503f24642be995af4885e9…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:44 2019 +0100 oleacc: Avoid using the comma operator. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oleacc/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleacc/client.c b/dlls/oleacc/client.c index 40e7fbd..0d313a2 100644 --- a/dlls/oleacc/client.c +++ b/dlls/oleacc/client.c @@ -353,7 +353,7 @@ static HRESULT WINAPI Client_accLocation(IAccessible *iface, LONG *pxLeft, if(!GetClientRect(This->hwnd, &rect)) return S_OK; - pt.x = rect.left, + pt.x = rect.left; pt.y = rect.top; MapWindowPoints(This->hwnd, NULL, &pt, 1); *pxLeft = pt.x;
1
0
0
0
Michael Stefaniuc : mstask: Avoid using the comma operator.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: b7f5e4ae5f635df05a1dc7ba426540e285d46648 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=b7f5e4ae5f635df05a1dc7ba…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:43 2019 +0100 mstask: Avoid using the comma operator. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mstask/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mstask/task.c b/dlls/mstask/task.c index 9a39fc9..6ab9263 100644 --- a/dlls/mstask/task.c +++ b/dlls/mstask/task.c @@ -345,7 +345,7 @@ static HRESULT WINAPI MSTASK_ITask_CreateTrigger(ITask *iface, WORD *idx, ITaskT new_trigger->wStartHour = time.wHour; new_trigger->wStartMinute = time.wMinute; new_trigger->rgFlags = TASK_TRIGGER_FLAG_DISABLED; - new_trigger->TriggerType = TASK_TIME_TRIGGER_DAILY, + new_trigger->TriggerType = TASK_TIME_TRIGGER_DAILY; new_trigger->Type.Daily.DaysInterval = 1; *idx = This->trigger_count++;
1
0
0
0
Michael Stefaniuc : dswave: Use HIWORD / LOWORD instead of open coding them.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: f43a0ef304f5b1053e2a51d18a1f342121776d9f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=f43a0ef304f5b1053e2a51d1…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:51 2019 +0100 dswave: Use HIWORD / LOWORD instead of open coding them. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dswave/dswave_main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/dswave/dswave_main.c b/dlls/dswave/dswave_main.c index f01e170..a136bb8 100644 --- a/dlls/dswave/dswave_main.c +++ b/dlls/dswave/dswave_main.c @@ -193,11 +193,13 @@ const char *debugstr_fourcc (DWORD fourcc) { } /* DMUS_VERSION struct to string conversion for debug messages */ -static const char *debugstr_dmversion (const DMUS_VERSION *version) { - if (!version) return "'null'"; - return wine_dbg_sprintf ("\'%i,%i,%i,%i\'", - (int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF), - (int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF)); +static const char *debugstr_dmversion(const DMUS_VERSION *version) +{ + if (!version) + return "'null'"; + return wine_dbg_sprintf("'%hu,%hu,%hu,%hu'", + HIWORD(version->dwVersionMS), LOWORD(version->dwVersionMS), + HIWORD(version->dwVersionLS), LOWORD(version->dwVersionLS)); } /* returns name of given GUID */
1
0
0
0
Michael Stefaniuc : dmusic: Use dump_DMUS_OBJECTDESC() instead of open coding it.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: 25c41c4eeafc943e0e66a7e44957db1d0a3bc56b URL:
https://source.winehq.org/git/wine.git/?a=commit;h=25c41c4eeafc943e0e66a7e4…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:50 2019 +0100 dmusic: Use dump_DMUS_OBJECTDESC() instead of open coding it. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dmusic/collection.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dlls/dmusic/collection.c b/dlls/dmusic/collection.c index 2820222..b7eb375 100644 --- a/dlls/dmusic/collection.c +++ b/dlls/dmusic/collection.c @@ -499,13 +499,7 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, struct list *listEntry; TRACE("*** IDirectMusicCollection (%p) ***\n", &This->IDirectMusicCollection_iface); - if (This->dmobj.desc.dwValidData & DMUS_OBJ_OBJECT) - TRACE(" - GUID = %s\n", debugstr_dmguid(&This->dmobj.desc.guidObject)); - if (This->dmobj.desc.dwValidData & DMUS_OBJ_VERSION) - TRACE(" - Version = %i,%i,%i,%i\n", (This->dmobj.desc.vVersion.dwVersionMS >> 8) & 0x0000FFFF, This->dmobj.desc.vVersion.dwVersionMS & 0x0000FFFF, - (This->dmobj.desc.vVersion.dwVersionLS >> 8) & 0x0000FFFF, This->dmobj.desc.vVersion.dwVersionLS & 0x0000FFFF); - if (This->dmobj.desc.dwValidData & DMUS_OBJ_NAME) - TRACE(" - Name = %s\n", debugstr_w(This->dmobj.desc.wszName)); + dump_DMUS_OBJECTDESC(&This->dmobj.desc); TRACE(" - Collection header:\n"); TRACE(" - cInstruments: %d\n", This->pHeader->cInstruments);
1
0
0
0
Michael Stefaniuc : dmusic: Use HIWORD / LOWORD instead of open coding them.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: f1760e00961a9663d95262f432eb39d5255b5fd5 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=f1760e00961a9663d95262f4…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:49 2019 +0100 dmusic: Use HIWORD / LOWORD instead of open coding them. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dmusic/dmusic_main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/dmusic/dmusic_main.c b/dlls/dmusic/dmusic_main.c index 9eb5364..3956dc2 100644 --- a/dlls/dmusic/dmusic_main.c +++ b/dlls/dmusic/dmusic_main.c @@ -226,11 +226,13 @@ const char *debugstr_fourcc (DWORD fourcc) { } /* DMUS_VERSION struct to string conversion for debug messages */ -static const char *debugstr_dmversion (const DMUS_VERSION *version) { - if (!version) return "'null'"; - return wine_dbg_sprintf ("\'%i,%i,%i,%i\'", - (int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF), - (int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF)); +static const char *debugstr_dmversion(const DMUS_VERSION *version) +{ + if (!version) + return "'null'"; + return wine_dbg_sprintf("'%hu,%hu,%hu,%hu'", + HIWORD(version->dwVersionMS), LOWORD(version->dwVersionMS), + HIWORD(version->dwVersionLS), LOWORD(version->dwVersionLS)); } /* returns name of given GUID */
1
0
0
0
Michael Stefaniuc : dmscript: Use HIWORD / LOWORD instead of open coding them.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: 2eac950ab690ded7f940b9f595d74c13b5ca4d55 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=2eac950ab690ded7f940b9f5…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:48 2019 +0100 dmscript: Use HIWORD / LOWORD instead of open coding them. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dmscript/dmscript_main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/dmscript/dmscript_main.c b/dlls/dmscript/dmscript_main.c index fd25b00..ec9026b 100644 --- a/dlls/dmscript/dmscript_main.c +++ b/dlls/dmscript/dmscript_main.c @@ -254,11 +254,13 @@ const char *debugstr_fourcc (DWORD fourcc) { } /* DMUS_VERSION struct to string conversion for debug messages */ -static const char *debugstr_dmversion (const DMUS_VERSION *version) { - if (!version) return "'null'"; - return wine_dbg_sprintf ("\'%i,%i,%i,%i\'", - (int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF), - (int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF)); +static const char *debugstr_dmversion(const DMUS_VERSION *version) +{ + if (!version) + return "'null'"; + return wine_dbg_sprintf("'%hu,%hu,%hu,%hu'", + HIWORD(version->dwVersionMS), LOWORD(version->dwVersionMS), + HIWORD(version->dwVersionLS), LOWORD(version->dwVersionLS)); } /* returns name of given GUID */
1
0
0
0
Michael Stefaniuc : dmcompos: Use HIWORD / LOWORD instead of open coding them.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: a938cbf5ddf3a2600e56d921ee02da224f22898c URL:
https://source.winehq.org/git/wine.git/?a=commit;h=a938cbf5ddf3a2600e56d921…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Sun Mar 24 14:26:47 2019 +0100 dmcompos: Use HIWORD / LOWORD instead of open coding them. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dmcompos/dmcompos_main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/dmcompos/dmcompos_main.c b/dlls/dmcompos/dmcompos_main.c index 2e68775..bcd6662 100644 --- a/dlls/dmcompos/dmcompos_main.c +++ b/dlls/dmcompos/dmcompos_main.c @@ -224,11 +224,13 @@ const char *debugstr_fourcc (DWORD fourcc) { } /* DMUS_VERSION struct to string conversion for debug messages */ -static const char *debugstr_dmversion (const DMUS_VERSION *version) { - if (!version) return "'null'"; - return wine_dbg_sprintf ("\'%i,%i,%i,%i\'", - (int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF), - (int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF)); +static const char *debugstr_dmversion(const DMUS_VERSION *version) +{ + if (!version) + return "'null'"; + return wine_dbg_sprintf("'%hu,%hu,%hu,%hu'", + HIWORD(version->dwVersionMS), LOWORD(version->dwVersionMS), + HIWORD(version->dwVersionLS), LOWORD(version->dwVersionLS)); } /* returns name of given GUID */
1
0
0
0
Alexandre Julliard : libwine: Move collation table to libwine_port.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: 84cd9043347c320f0747005bf66e1e7b1e17b25a URL:
https://source.winehq.org/git/wine.git/?a=commit;h=84cd9043347c320f0747005b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Mar 23 13:43:17 2019 +0100 libwine: Move collation table to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/wine/unicode.h | 8 -------- libs/port/Makefile.in | 2 ++ libs/{wine => port}/collation.c | 4 +++- libs/{wine => port}/sortkey.c | 0 libs/wine/Makefile.in | 3 --- libs/wine/port.c | 1 + tools/make_unicode | 7 ++++--- 7 files changed, 10 insertions(+), 15 deletions(-) diff --git a/include/wine/unicode.h b/include/wine/unicode.h index d0bbdcc..22bb6dd 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -35,14 +35,6 @@ extern "C" { #endif -#ifndef WINE_UNICODE_API -# if defined(_MSC_VER) || defined(__MINGW32__) -# define WINE_UNICODE_API DECLSPEC_IMPORT -# else -# define WINE_UNICODE_API -# endif -#endif - #ifndef WINE_UNICODE_INLINE #define WINE_UNICODE_INLINE static inline #endif diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index e2b265d..ef3b23f 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -74,6 +74,7 @@ C_SRCS = \ c_949.c \ c_950.c \ casemap.c \ + collation.c \ combclass.c \ compose.c \ cpsymbol.c \ @@ -97,6 +98,7 @@ C_SRCS = \ pwrite.c \ readlink.c \ rint.c \ + sortkey.c \ spawn.c \ statvfs.c \ strnlen.c \ diff --git a/libs/wine/collation.c b/libs/port/collation.c similarity index 99% rename from libs/wine/collation.c rename to libs/port/collation.c index 465d740..2d990d8 100644 --- a/libs/wine/collation.c +++ b/libs/port/collation.c @@ -2,7 +2,9 @@ /* generated from
http://www.unicode.org/reports/tr10/allkeys.txt
*/ /* DO NOT EDIT!! */ -const unsigned int collation_table[12800] = +#include "wine/unicode.h" + +const unsigned int DECLSPEC_HIDDEN collation_table[12800] = { /* index */ 0x00000200, 0x00000300, 0x00000400, 0x00000500, 0x00000600, 0x00000700, 0x00000800, 0x00000900, diff --git a/libs/wine/sortkey.c b/libs/port/sortkey.c similarity index 100% rename from libs/wine/sortkey.c rename to libs/port/sortkey.c diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index b8f26af..bd8a937 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -1,15 +1,12 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS) -EXTRADEFS = -DWINE_UNICODE_API="" C_SRCS = \ - collation.c \ config.c \ debug.c \ ldt.c \ loader.c \ mmap.c \ port.c \ - sortkey.c \ string.c EXTRA_OBJS = version.o diff --git a/libs/wine/port.c b/libs/wine/port.c index 29e9091..666c4ca 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -33,6 +33,7 @@ #ifndef __ANDROID__ const void *libwine_port_functions[] = { + wine_compare_string, wine_cp_enum_table, wine_cp_get_table, wine_cp_mbstowcs, diff --git a/tools/make_unicode b/tools/make_unicode index a9acc27..0f3cdcc 100755 --- a/tools/make_unicode +++ b/tools/make_unicode @@ -844,7 +844,7 @@ sub READ_SORTKEYS_FILE() ################################################################ # build the sort keys table -sub DUMP_SORTKEYS($@) +sub dump_sortkeys($@) { my ($filename, @keys) = @_; @@ -868,8 +868,9 @@ sub DUMP_SORTKEYS($@) printf OUTPUT "/* Unicode collation element table */\n"; printf OUTPUT "/* generated from %s */\n", "$REPORTS/$SORTKEYS"; printf OUTPUT "/* DO NOT EDIT!! */\n\n"; + print OUTPUT "#include \"wine/unicode.h\"\n\n"; - printf OUTPUT "const unsigned int collation_table[%d] =\n{\n", $ranges*256; + printf OUTPUT "const unsigned int DECLSPEC_HIDDEN collation_table[%d] =\n{\n", $ranges*256; printf OUTPUT " /* index */\n"; printf OUTPUT "%s,\n", DUMP_ARRAY( "0x%08x", 0, @offsets ); @@ -2767,7 +2768,7 @@ sub REPLACE_IN_FILE($@) chdir ".." if -f "./make_unicode"; READ_DEFAULTS( $DEFAULTS ); dump_case_mappings( "libs/port/casemap.c" ); -DUMP_SORTKEYS( "libs/wine/collation.c", READ_SORTKEYS_FILE() ); +dump_sortkeys( "libs/port/collation.c", READ_SORTKEYS_FILE() ); dump_compose_table( "libs/port/compose.c" ); dump_decompose_table( "libs/port/decompose.c" ); dump_ctype_tables( "libs/port/wctype.c" );
1
0
0
0
Alexandre Julliard : libwine: Move casemap tables to libwine_port.
by Alexandre Julliard
25 Mar '19
25 Mar '19
Module: wine Branch: master Commit: 9de388258f55ca82e794a234e36550c30b33ed1b URL:
https://source.winehq.org/git/wine.git/?a=commit;h=9de388258f55ca82e794a234…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sun Mar 24 10:21:57 2019 +0100 libwine: Move casemap tables to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/wine/unicode.h | 4 ++-- libs/port/Makefile.in | 1 + libs/{wine => port}/casemap.c | 4 ++-- libs/wine/Makefile.in | 1 - tools/make_unicode | 18 +++++++++--------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/wine/unicode.h b/include/wine/unicode.h index de3ac56..d0bbdcc 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -124,13 +124,13 @@ WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte( const union cptable *table, unsig WINE_UNICODE_INLINE WCHAR tolowerW( WCHAR ch ) { - extern WINE_UNICODE_API const WCHAR wine_casemap_lower[]; + extern const WCHAR wine_casemap_lower[]; return ch + wine_casemap_lower[wine_casemap_lower[ch >> 8] + (ch & 0xff)]; } WINE_UNICODE_INLINE WCHAR toupperW( WCHAR ch ) { - extern WINE_UNICODE_API const WCHAR wine_casemap_upper[]; + extern const WCHAR wine_casemap_upper[]; return ch + wine_casemap_upper[wine_casemap_upper[ch >> 8] + (ch & 0xff)]; } diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index 45ce182..e2b265d 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -73,6 +73,7 @@ C_SRCS = \ c_936.c \ c_949.c \ c_950.c \ + casemap.c \ combclass.c \ compose.c \ cpsymbol.c \ diff --git a/libs/wine/casemap.c b/libs/port/casemap.c similarity index 99% rename from libs/wine/casemap.c rename to libs/port/casemap.c index 1c975db..d440fce 100644 --- a/libs/wine/casemap.c +++ b/libs/port/casemap.c @@ -4,7 +4,7 @@ #include "wine/unicode.h" -const WCHAR wine_casemap_lower[4259] = +const WCHAR DECLSPEC_HIDDEN wine_casemap_lower[4259] = { /* index */ 0x01bf, 0x02bf, 0x03bf, 0x044f, 0x054f, 0x064f, 0x0100, 0x0100, @@ -562,7 +562,7 @@ const WCHAR wine_casemap_lower[4259] = 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 }; -const WCHAR wine_casemap_upper[4828] = +const WCHAR DECLSPEC_HIDDEN wine_casemap_upper[4828] = { /* index */ 0x019f, 0x029f, 0x039f, 0x045a, 0x0556, 0x0656, 0x0100, 0x0100, diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index e544d99..b8f26af 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -2,7 +2,6 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS) EXTRADEFS = -DWINE_UNICODE_API="" C_SRCS = \ - casemap.c \ collation.c \ config.c \ debug.c \ diff --git a/tools/make_unicode b/tools/make_unicode index d674570..a9acc27 100755 --- a/tools/make_unicode +++ b/tools/make_unicode @@ -1598,7 +1598,7 @@ sub dump_mirroring($) print OUTPUT "/* generated from $UNIDATA/BidiMirroring.txt */\n"; print OUTPUT "/* DO NOT EDIT!! */\n\n"; print OUTPUT "#include \"wine/unicode.h\"\n\n"; - DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_mirror_map", @mirror_table ); + dump_case_table( "wine_mirror_map", @mirror_table ); close OUTPUT; save_file($filename); } @@ -1756,9 +1756,9 @@ sub dump_digit_folding($) print OUTPUT "/* DO NOT EDIT!! */\n\n"; print OUTPUT "#include \"wine/unicode.h\"\n\n"; - DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_digitmap", @digitmap_table ); + dump_case_table( "wine_digitmap", @digitmap_table ); print OUTPUT "\n"; - DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_compatmap", @compatmap_table ); + dump_case_table( "wine_compatmap", @compatmap_table ); close OUTPUT; save_file($filename); } @@ -1766,7 +1766,7 @@ sub dump_digit_folding($) ################################################################ # dump the case mapping tables -sub DUMP_CASE_MAPPINGS($) +sub dump_case_mappings($) { my $filename = shift; open OUTPUT,">$filename.new" or die "Cannot create $filename"; @@ -1776,9 +1776,9 @@ sub DUMP_CASE_MAPPINGS($) print OUTPUT "/* DO NOT EDIT!! */\n\n"; print OUTPUT "#include \"wine/unicode.h\"\n\n"; - DUMP_CASE_TABLE( "wine_casemap_lower", @tolower_table ); + dump_case_table( "wine_casemap_lower", @tolower_table ); print OUTPUT "\n"; - DUMP_CASE_TABLE( "wine_casemap_upper", @toupper_table ); + dump_case_table( "wine_casemap_upper", @toupper_table ); close OUTPUT; save_file($filename); } @@ -1786,7 +1786,7 @@ sub DUMP_CASE_MAPPINGS($) ################################################################ # dump a case mapping table -sub DUMP_CASE_TABLE($@) +sub dump_case_table($@) { my ($name,@table) = @_; @@ -1835,7 +1835,7 @@ sub DUMP_CASE_TABLE($@) # dump the table - printf OUTPUT "const WCHAR %s[%d] =\n", $name, $index * 256 + 512 - $removed; + printf OUTPUT "const WCHAR DECLSPEC_HIDDEN %s[%d] =\n", $name, $index * 256 + 512 - $removed; printf OUTPUT "{\n /* index */\n"; printf OUTPUT "%s,\n", DUMP_ARRAY( "0x%04x", 256, @filled ); printf OUTPUT " /* defaults */\n"; @@ -2766,7 +2766,7 @@ sub REPLACE_IN_FILE($@) chdir ".." if -f "./make_unicode"; READ_DEFAULTS( $DEFAULTS ); -DUMP_CASE_MAPPINGS( "libs/wine/casemap.c" ); +dump_case_mappings( "libs/port/casemap.c" ); DUMP_SORTKEYS( "libs/wine/collation.c", READ_SORTKEYS_FILE() ); dump_compose_table( "libs/port/compose.c" ); dump_decompose_table( "libs/port/decompose.c" );
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
110
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Results per page:
10
25
50
100
200