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
December 2020
----- 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
1 participants
414 discussions
Start a n
N
ew thread
Nikolay Sivov : dwrite/shaping: Merge extension subtables handling with existing helper.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 240567a8b3858c67b32f2146a190cf2abbb8bc1f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=240567a8b3858c67b32f2146…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Dec 2 14:44:01 2020 +0300 dwrite/shaping: Merge extension subtables handling with existing helper. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dwrite/opentype.c | 103 +++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 60 deletions(-) diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index 68da6e4ecfb..1cf47e5ac69 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -3499,13 +3499,46 @@ static void opentype_layout_apply_gpos_value(struct scriptshaping_context *conte } } +struct lookup +{ + unsigned short index; + unsigned short type; + unsigned short flags; + unsigned short subtable_count; + + unsigned int mask; + unsigned int offset; +}; + static unsigned int opentype_layout_get_gsubgpos_subtable(const struct scriptshaping_context *context, - unsigned int lookup_offset, unsigned int subtable) + const struct lookup *lookup, unsigned int subtable, unsigned int *lookup_type) { - unsigned int subtable_offset = table_read_be_word(&context->table->table, lookup_offset + + unsigned int subtable_offset = table_read_be_word(&context->table->table, lookup->offset + FIELD_OFFSET(struct ot_lookup_table, subtable[subtable])); + const struct ot_gsubgpos_extension_format1 *format1; + + subtable_offset += lookup->offset; + + if ((context->table == &context->cache->gsub && lookup->type != GSUB_LOOKUP_EXTENSION_SUBST) || + (context->table == &context->cache->gpos && lookup->type != GPOS_LOOKUP_EXTENSION_POSITION)) + { + *lookup_type = lookup->type; + return subtable_offset; + } + + *lookup_type = 0; + + if (!(format1 = table_read_ensure(&context->table->table, subtable_offset, sizeof(*format1)))) + return 0; + + if (GET_BE_WORD(format1->format) != 1) + { + WARN("Unexpected extension table format %#x.\n", format1->format); + return 0; + } - return lookup_offset + subtable_offset; + *lookup_type = GET_BE_WORD(format1->lookup_type); + return subtable_offset + GET_BE_DWORD(format1->extension_offset); } struct ot_lookup @@ -3715,17 +3748,6 @@ static BOOL glyph_iterator_prev(struct glyph_iterator *iter) return FALSE; } -struct lookup -{ - unsigned short index; - unsigned short type; - unsigned short flags; - unsigned short subtable_count; - - unsigned int mask; - unsigned int offset; -}; - static BOOL opentype_layout_apply_gpos_single_adjustment(struct scriptshaping_context *context, const struct lookup *lookup, unsigned int subtable_offset) { @@ -4247,31 +4269,6 @@ static BOOL opentype_layout_apply_gpos_mark_to_mark_attachment(struct scriptshap return TRUE; } -static unsigned int opentype_layout_adjust_extension_subtable(struct scriptshaping_context *context, - unsigned int *subtable_offset, const struct lookup *lookup) -{ - const struct ot_gsubgpos_extension_format1 *format1; - - if ((context->table == &context->cache->gsub && lookup->type != GSUB_LOOKUP_EXTENSION_SUBST) || - (context->table == &context->cache->gpos && lookup->type != GPOS_LOOKUP_EXTENSION_POSITION)) - { - return lookup->type; - } - - if (!(format1 = table_read_ensure(&context->table->table, *subtable_offset, sizeof(*format1)))) - return 0; - - if (GET_BE_WORD(format1->format) != 1) - { - WARN("Unexpected extension table format %#x.\n", format1->format); - return 0; - } - - *subtable_offset = *subtable_offset + GET_BE_DWORD(format1->extension_offset); - - return GET_BE_WORD(format1->lookup_type); -} - static BOOL opentype_layout_apply_context(struct scriptshaping_context *context, const struct lookup *lookup, unsigned int subtable_offset); static BOOL opentype_layout_apply_chain_context(struct scriptshaping_context *context, const struct lookup *lookup, @@ -4284,9 +4281,7 @@ static BOOL opentype_layout_apply_gpos_lookup(struct scriptshaping_context *cont for (i = 0; i < lookup->subtable_count; ++i) { - unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup->offset, i); - - lookup_type = opentype_layout_adjust_extension_subtable(context, &subtable_offset, lookup); + unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup, i, &lookup_type); switch (lookup_type) { @@ -5595,9 +5590,7 @@ static BOOL opentype_layout_apply_gsub_lookup(struct scriptshaping_context *cont for (i = 0; i < lookup->subtable_count; ++i) { - unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup->offset, i); - - lookup_type = opentype_layout_adjust_extension_subtable(context, &subtable_offset, lookup); + unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup, i, &lookup_type); switch (lookup_type) { @@ -5740,14 +5733,9 @@ static void opentype_get_nominal_glyphs(struct scriptshaping_context *context, c static BOOL opentype_is_gsub_lookup_reversed(const struct scriptshaping_context *context, const struct lookup *lookup) { - unsigned int subtable_offset, lookup_type = lookup->type; + unsigned int lookup_type; - if (lookup->type == GSUB_LOOKUP_EXTENSION_SUBST) - { - subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup->offset, 0); - /* Assumes format 1. */ - lookup_type = table_read_be_word(&context->table->table, subtable_offset + 2); - } + opentype_layout_get_gsubgpos_subtable(context, lookup, 0, &lookup_type); return lookup_type == GSUB_LOOKUP_REVERSE_CHAINING_CONTEXTUAL_SUBST; } @@ -5914,9 +5902,7 @@ static BOOL opentype_layout_gsub_lookup_is_glyph_covered(struct scriptshaping_co for (i = 0; i < lookup->subtable_count; ++i) { - unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup->offset, i); - - lookup_type = opentype_layout_adjust_extension_subtable(context, &subtable_offset, lookup); + unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup, i, &lookup_type); format = table_read_be_word(gsub, subtable_offset); @@ -5981,9 +5967,7 @@ static BOOL opentype_layout_gpos_lookup_is_glyph_covered(struct scriptshaping_co for (i = 0; i < lookup->subtable_count; ++i) { - unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup->offset, i); - - lookup_type = opentype_layout_adjust_extension_subtable(context, &subtable_offset, lookup); + unsigned int subtable_offset = opentype_layout_get_gsubgpos_subtable(context, lookup, i, &lookup_type); format = table_read_be_word(gpos, subtable_offset); @@ -6104,8 +6088,7 @@ BOOL opentype_has_vertical_variants(struct dwrite_fontface *fontface) for (j = 0; j < lookup->subtable_count && !count; ++j) { - subtable_offset = opentype_layout_get_gsubgpos_subtable(&context, lookup->offset, j); - lookup_type = opentype_layout_adjust_extension_subtable(&context, &subtable_offset, lookup); + subtable_offset = opentype_layout_get_gsubgpos_subtable(&context, lookup, j, &lookup_type); if (lookup_type != GSUB_LOOKUP_SINGLE_SUBST) continue;
1
0
0
0
Alexandre Julliard : hhctrl.ocx: Use stricmp() instead of _strnicmp(..., -1).
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 810a2f0be26a308b5105d5e97bc2a7223962800d URL:
https://source.winehq.org/git/wine.git/?a=commit;h=810a2f0be26a308b5105d5e9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 2 12:19:34 2020 +0100 hhctrl.ocx: Use stricmp() instead of _strnicmp(..., -1). Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/hhctrl.ocx/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/hhctrl.ocx/search.c b/dlls/hhctrl.ocx/search.c index f9c13a91312..75bbc2e4ba2 100644 --- a/dlls/hhctrl.ocx/search.c +++ b/dlls/hhctrl.ocx/search.c @@ -102,7 +102,7 @@ static WCHAR *SearchCHM_File(IStorage *pStorage, const WCHAR *file, const char * char *text = &content.buf[1]; int textlen = content.len-1; - if(!_strnicmp(node_name.buf, "title", -1)) + if(!stricmp(node_name.buf, "title")) { int wlen = MultiByteToWideChar(CP_ACP, 0, text, textlen, NULL, 0); title = heap_alloc((wlen+1)*sizeof(WCHAR));
1
0
0
0
Alexandre Julliard : rpcrt4/tests: Avoid a printf format warning.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: b61cfa88235d77cee4878837afd9f65d025e4a3f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=b61cfa88235d77cee4878837…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 2 12:19:18 2020 +0100 rpcrt4/tests: Avoid a printf format warning. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/rpcrt4/tests/rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c index 0b9e71ec0a2..8ae63a140e7 100644 --- a/dlls/rpcrt4/tests/rpc.c +++ b/dlls/rpcrt4/tests/rpc.c @@ -896,9 +896,9 @@ static void test_RpcIfInqId(void) ok(status == RPC_S_OK, "Test %u: Expected %#x, got %#x.\n", test_idx, RPC_S_OK, status); ok(!memcmp(&if_id.Uuid, &guid, sizeof(guid)), "Test %u: Expected UUID %s, got %s.\n", test_idx, wine_dbgstr_guid(&guid), wine_dbgstr_guid(&if_id.Uuid)); - ok(if_id.VersMajor == 1, "Test %u: Expected major version %hu, got %hu.\n", test_idx, 1, + ok(if_id.VersMajor == 1, "Test %u: Expected major version 1, got %hu.\n", test_idx, if_id.VersMajor); - ok(if_id.VersMinor == 2, "Test %u: Expected minor version %hu, got %hu.\n", test_idx, 2, + ok(if_id.VersMinor == 2, "Test %u: Expected minor version 2, got %hu.\n", test_idx, if_id.VersMinor); } }
1
0
0
0
Alexandre Julliard : wine.inf: Create a default win.ini file.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 31062ee534e1a9b6ed02dafb1967f7cbe7520420 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=31062ee534e1a9b6ed02dafb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 2 12:19:25 2020 +0100 wine.inf: Create a default win.ini file. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- loader/wine.inf.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/wine.inf.in b/loader/wine.inf.in index d292b065a0e..0cbbcb710f6 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -2758,6 +2758,8 @@ system.ini, drivers32,,"; vidc.IV50=ir50_32.dll" system.ini, drivers32,,"; vidc.IV31=ir32_32.dll" system.ini, drivers32,,"; vidc.IV32=ir32_32.dll" +win.ini, mail,,"mapi=1" + [Timezones] ; The timezone information (TZI field) comes from the Olson timezone database ;
http://www.twinsun.com/tz/tz-link.htm
1
0
0
0
Alexandre Julliard : include: Remove some no longer used Unicode functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 6ca76dc5e73733d7fb8212a614bf093cd49da342 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=6ca76dc5e73733d7fb8212a6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 2 12:19:09 2020 +0100 include: Remove some no longer used Unicode functions. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dwrite/analyzer.c | 4 +- dlls/mountmgr.sys/device.c | 2 +- dlls/netapi32/netapi32.c | 2 +- dlls/shell32/autocomplete.c | 2 +- dlls/winemac.drv/keyboard.c | 2 +- include/wine/unicode.h | 124 ++------------------------------------------ programs/winedbg/memory.c | 10 +--- 7 files changed, 13 insertions(+), 133 deletions(-) diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c index f11388628e6..7ee8e18eff7 100644 --- a/dlls/dwrite/analyzer.c +++ b/dlls/dwrite/analyzer.c @@ -293,9 +293,11 @@ static inline UINT16 get_char_script(WCHAR c) static DWRITE_SCRIPT_ANALYSIS get_char_sa(WCHAR c) { DWRITE_SCRIPT_ANALYSIS sa; + WORD type; + GetStringTypeW(CT_CTYPE1, &c, 1, &type); sa.script = get_char_script(c); - sa.shapes = iscntrlW(c) || c == 0x2028 /* LINE SEPARATOR */ || c == 0x2029 /* PARAGRAPH SEPARATOR */ ? + sa.shapes = (type & C1_CNTRL) || c == 0x2028 /* LINE SEPARATOR */ || c == 0x2029 /* PARAGRAPH SEPARATOR */ ? DWRITE_SCRIPT_SHAPES_NO_VISUAL : DWRITE_SCRIPT_SHAPES_DEFAULT; return sa; } diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c index ed345d110a4..c4e30aa1f33 100644 --- a/dlls/mountmgr.sys/device.c +++ b/dlls/mountmgr.sys/device.c @@ -2086,7 +2086,7 @@ static void create_port_devices( DRIVER_OBJECT *driver ) if (type != REG_SZ || strncmpiW( port, port_prefix, 3 )) continue; - n = atolW( port + 3 ); + n = atoiW( port + 3 ); if (n < 1 || n >= MAX_PORTS) continue; diff --git a/dlls/netapi32/netapi32.c b/dlls/netapi32/netapi32.c index 4cbd02f9d3d..2e2ac84a49c 100644 --- a/dlls/netapi32/netapi32.c +++ b/dlls/netapi32/netapi32.c @@ -3621,7 +3621,7 @@ DWORD WINAPI DavGetUNCFromHTTPPath(const WCHAR *http_path, WCHAR *buf, DWORD *bu if (*p == ':') { port = ++p; - while (*p && isdigitW(*p)) { p++; len_port++; }; + while (*p >= '0' && *p <= '9') { p++; len_port++; }; if (len_port == 2 && !ssl && !memcmp( port, port80W, sizeof(port80W) )) port = NULL; else if (len_port == 3 && ssl && !memcmp( port, port443W, sizeof(port443W) )) port = NULL; path = p; diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c index f0777ff1398..ac97527852d 100644 --- a/dlls/shell32/autocomplete.c +++ b/dlls/shell32/autocomplete.c @@ -799,7 +799,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, This->no_fwd_char = '\0'; /* Don't autocomplete at all on most control characters */ - if (iscntrlW(wParam) && !(wParam >= '\b' && wParam <= '\r')) + if (wParam < 32 && !(wParam >= '\b' && wParam <= '\r')) break; ret = CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam); diff --git a/dlls/winemac.drv/keyboard.c b/dlls/winemac.drv/keyboard.c index bb408cb20c5..45770b3125b 100644 --- a/dlls/winemac.drv/keyboard.c +++ b/dlls/winemac.drv/keyboard.c @@ -1242,7 +1242,7 @@ INT CDECL macdrv_GetKeyNameText(LONG lparam, LPWSTR buffer, INT size) 0, &deadKeyState, size - 1, &len, (UniChar*)buffer); if (status != noErr) len = 0; - if (len && isgraphW(buffer[0])) + if (len && buffer[0] > 32) buffer[len] = 0; vkey = thread_data->keyc2vkey[keyc]; diff --git a/include/wine/unicode.h b/include/wine/unicode.h index 7a9e07fa1bc..d29a371fe53 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -28,18 +28,10 @@ #include <winnls.h> #include <winternl.h> -#ifdef __WINE_WINE_TEST_H -#error This file should not be used in Wine tests -#endif - #ifdef __WINE_USE_MSVCRT #error This file should not be used with msvcrt headers #endif -#ifdef __cplusplus -extern "C" { -#endif - #ifndef WINE_UNICODE_INLINE #define WINE_UNICODE_INLINE static FORCEINLINE #endif @@ -54,72 +46,13 @@ WINE_UNICODE_INLINE WCHAR toupperW( WCHAR ch ) return RtlUpcaseUnicodeChar( ch ); } -/* the character type contains the C1_* flags in the low 12 bits */ -/* and the C2_* type in the high 4 bits */ -WINE_UNICODE_INLINE unsigned short get_char_typeW( WCHAR ch ) -{ - unsigned short type; - GetStringTypeW( CT_CTYPE1, &ch, 1, &type ); - return type; -} - -WINE_UNICODE_INLINE int iscntrlW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_CNTRL; -} - -WINE_UNICODE_INLINE int ispunctW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_PUNCT; -} - WINE_UNICODE_INLINE int isspaceW( WCHAR wc ) { - return get_char_typeW(wc) & C1_SPACE; -} - -WINE_UNICODE_INLINE int isdigitW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_DIGIT; -} - -WINE_UNICODE_INLINE int isxdigitW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_XDIGIT; -} - -WINE_UNICODE_INLINE int islowerW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_LOWER; -} - -WINE_UNICODE_INLINE int isupperW( WCHAR wc ) -{ - return get_char_typeW(wc) & C1_UPPER; -} - -WINE_UNICODE_INLINE int isalnumW( WCHAR wc ) -{ - return get_char_typeW(wc) & (C1_ALPHA|C1_DIGIT|C1_LOWER|C1_UPPER); -} - -WINE_UNICODE_INLINE int isalphaW( WCHAR wc ) -{ - return get_char_typeW(wc) & (C1_ALPHA|C1_LOWER|C1_UPPER); -} - -WINE_UNICODE_INLINE int isgraphW( WCHAR wc ) -{ - return get_char_typeW(wc) & (C1_ALPHA|C1_PUNCT|C1_DIGIT|C1_LOWER|C1_UPPER); -} - -WINE_UNICODE_INLINE int isprintW( WCHAR wc ) -{ - return get_char_typeW(wc) & (C1_ALPHA|C1_BLANK|C1_PUNCT|C1_DIGIT|C1_LOWER|C1_UPPER); + unsigned short type; + GetStringTypeW( CT_CTYPE1, &wc, 1, &type ); + return type & C1_SPACE; } -/* some useful string manipulation routines */ - WINE_UNICODE_INLINE unsigned int strlenW( const WCHAR *str ) { const WCHAR *s = str; @@ -134,9 +67,6 @@ WINE_UNICODE_INLINE WCHAR *strcpyW( WCHAR *dst, const WCHAR *src ) return dst; } -/* strncpy doesn't do what you think, don't use it */ -#define strncpyW(d,s,n) error do_not_use_strncpyW_use_lstrcpynW_or_memcpy_instead - WINE_UNICODE_INLINE int strcmpW( const WCHAR *str1, const WCHAR *str2 ) { while (*str1 && (*str1 == *str2)) { str1++; str2++; } @@ -175,20 +105,6 @@ WINE_UNICODE_INLINE WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept ) return NULL; } -WINE_UNICODE_INLINE size_t strspnW( const WCHAR *str, const WCHAR *accept ) -{ - const WCHAR *ptr; - for (ptr = str; *ptr; ptr++) if (!strchrW( accept, *ptr )) break; - return ptr - str; -} - -WINE_UNICODE_INLINE size_t strcspnW( const WCHAR *str, const WCHAR *reject ) -{ - const WCHAR *ptr; - for (ptr = str; *ptr; ptr++) if (strchrW( reject, *ptr )) break; - return ptr - str; -} - WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str ) { WCHAR *ret; @@ -196,13 +112,6 @@ WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str ) return ret; } -WINE_UNICODE_INLINE WCHAR *struprW( WCHAR *str ) -{ - WCHAR *ret; - for (ret = str; *str; str++) *str = toupperW(*str); - return ret; -} - WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n ) { const WCHAR *end; @@ -210,14 +119,6 @@ WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n ) return NULL; } -WINE_UNICODE_INLINE WCHAR *memrchrW( const WCHAR *ptr, WCHAR ch, size_t n ) -{ - const WCHAR *end; - WCHAR *ret = NULL; - for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) ret = (WCHAR *)(ULONG_PTR)ptr; - return ret; -} - WINE_UNICODE_INLINE int strcmpiW( const WCHAR *str1, const WCHAR *str2 ) { for (;;) @@ -237,14 +138,6 @@ WINE_UNICODE_INLINE int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n ) return ret; } -WINE_UNICODE_INLINE int memicmpW( const WCHAR *str1, const WCHAR *str2, int n ) -{ - int ret = 0; - for ( ; n > 0; n--, str1++, str2++) - if ((ret = tolowerW(*str1) - tolowerW(*str2))) break; - return ret; -} - WINE_UNICODE_INLINE WCHAR *strstrW( const WCHAR *str, const WCHAR *sub ) { while (*str) @@ -350,14 +243,9 @@ WINE_UNICODE_INLINE ULONG strtoulW( LPCWSTR s, LPWSTR *end, INT base ) return negative ? -ret : ret; } -WINE_UNICODE_INLINE long int atolW( const WCHAR *str ) -{ - return strtolW( str, (WCHAR **)0, 10 ); -} - WINE_UNICODE_INLINE int atoiW( const WCHAR *str ) { - return (int)atolW( str ); + return (int)strtolW( str, (WCHAR **)0, 10 ); } NTSYSAPI int __cdecl _vsnwprintf(WCHAR*,size_t,const WCHAR*,__ms_va_list); @@ -384,8 +272,4 @@ static inline int WINAPIV sprintfW( WCHAR *str, const WCHAR *format, ...) #undef WINE_UNICODE_INLINE -#ifdef __cplusplus -} -#endif - #endif /* __WINE_WINE_UNICODE_H */ diff --git a/programs/winedbg/memory.c b/programs/winedbg/memory.c index c9b97686aab..8cc039a6899 100644 --- a/programs/winedbg/memory.c +++ b/programs/winedbg/memory.c @@ -394,15 +394,9 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue) */ if (!dbg_curr_process->be_cpu->fetch_integer(lvalue, size, TRUE, &val_int)) return; print_char: - if (size == 1 && isprint((char)val_int)) + if ((size == 1 && isprint((char)val_int)) || + (size == 2 && val_int < 127 && isprint((char)val_int))) dbg_printf("'%c'", (char)val_int); - else if (size == 2 && isprintW((WCHAR)val_int)) - { - WCHAR wch = (WCHAR)val_int; - dbg_printf("'"); - dbg_outputW(&wch, 1); - dbg_printf("'"); - } else dbg_printf("%d", (int)val_int); break;
1
0
0
0
Piotr Caban : msvcrt: Remove MSVCRT_ prefix from string.c functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 1514c54ce560acadb4cacb77cd4ee5915e8dbd67 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=1514c54ce560acadb4cacb77…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Dec 2 00:54:09 2020 +0100 msvcrt: Remove MSVCRT_ prefix from string.c functions. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/crtdll/crtdll.spec | 62 ++++---- dlls/msvcr100/msvcr100.spec | 158 +++++++++--------- dlls/msvcr110/msvcr110.spec | 158 +++++++++--------- dlls/msvcr120/msvcr120.spec | 186 +++++++++++----------- dlls/msvcr70/msvcr70.spec | 76 ++++----- dlls/msvcr71/msvcr71.spec | 74 ++++----- dlls/msvcr80/msvcr80.spec | 158 +++++++++--------- dlls/msvcr90/msvcr90.spec | 158 +++++++++--------- dlls/msvcrt/data.c | 2 +- dlls/msvcrt/dir.c | 2 +- dlls/msvcrt/environ.c | 2 +- dlls/msvcrt/except.c | 2 +- dlls/msvcrt/file.c | 4 +- dlls/msvcrt/locale.c | 18 +-- dlls/msvcrt/mbcs.c | 22 +-- dlls/msvcrt/msvcrt.h | 15 +- dlls/msvcrt/msvcrt.spec | 160 +++++++++---------- dlls/msvcrt/printf.h | 2 +- dlls/msvcrt/string.c | 273 ++++++++++++++++---------------- dlls/msvcrt/time.c | 6 +- dlls/msvcrt/undname.c | 4 +- dlls/msvcrtd/msvcrtd.spec | 72 ++++----- dlls/ucrtbase/ucrtbase.spec | 334 +++++++++++++++++++-------------------- include/msvcrt/corecrt_wstdlib.h | 4 +- 24 files changed, 970 insertions(+), 982 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=1514c54ce560acadb4ca…
1
0
0
0
Piotr Caban : msvcrt: Remove MSVCRT_ prefix from scanf.c functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: a1662e3f7d6626618dc0158627ffbe8cf2c81be0 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=a1662e3f7d6626618dc01586…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Dec 2 00:54:03 2020 +0100 msvcrt: Remove MSVCRT_ prefix from scanf.c functions. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/crtdll/crtdll.spec | 12 +-- dlls/msvcr100/msvcr100.spec | 64 +++++++-------- dlls/msvcr110/msvcr110.spec | 64 +++++++-------- dlls/msvcr120/msvcr120.spec | 66 +++++++-------- dlls/msvcr70/msvcr70.spec | 16 ++-- dlls/msvcr71/msvcr71.spec | 16 ++-- dlls/msvcr80/msvcr80.spec | 64 +++++++-------- dlls/msvcr90/msvcr90.spec | 64 +++++++-------- dlls/msvcrt/math.c | 4 +- dlls/msvcrt/msvcrt.h | 2 +- dlls/msvcrt/msvcrt.spec | 64 +++++++-------- dlls/msvcrt/scanf.c | 176 ++++++++++++++++++++-------------------- dlls/msvcrt/scanf.h | 32 ++++---- dlls/msvcrtd/msvcrtd.spec | 12 +-- dlls/ucrtbase/ucrtbase.spec | 16 ++-- include/msvcrt/corecrt_wstdio.h | 8 +- include/msvcrt/stdio.h | 8 +- 17 files changed, 348 insertions(+), 340 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=a1662e3f7d6626618dc0…
1
0
0
0
Piotr Caban : msvcrt: Remove MSVCRT_ prefix from process.c functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: f10c1118e2c2159140d32730f2e49ec70f37bd33 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=f10c1118e2c2159140d32730…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Dec 2 00:53:59 2020 +0100 msvcrt: Remove MSVCRT_ prefix from process.c functions. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/crtdll/crtdll.spec | 24 ++++++++-------- dlls/msvcr100/msvcr100.spec | 42 ++++++++++++++-------------- dlls/msvcr110/msvcr110.spec | 44 ++++++++++++++--------------- dlls/msvcr120/msvcr120.spec | 44 ++++++++++++++--------------- dlls/msvcr70/msvcr70.spec | 42 ++++++++++++++-------------- dlls/msvcr71/msvcr71.spec | 42 ++++++++++++++-------------- dlls/msvcr80/msvcr80.spec | 42 ++++++++++++++-------------- dlls/msvcr90/msvcr90.spec | 42 ++++++++++++++-------------- dlls/msvcrt/msvcrt.h | 5 ---- dlls/msvcrt/msvcrt.spec | 42 ++++++++++++++-------------- dlls/msvcrt/process.c | 67 ++++++++++++++++++++++---------------------- dlls/msvcrtd/msvcrtd.spec | 42 ++++++++++++++-------------- dlls/ucrtbase/ucrtbase.spec | 68 ++++++++++++++++++++++----------------------- 13 files changed, 271 insertions(+), 275 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=f10c1118e2c2159140d3…
1
0
0
0
Piotr Caban : msvcrt: Remove MSVCRT_ prefix from misc.c functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 0364b7681fd6f628b06a9653119cd4f7d1c5cfdb URL:
https://source.winehq.org/git/wine.git/?a=commit;h=0364b7681fd6f628b06a9653…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Dec 2 00:53:54 2020 +0100 msvcrt: Remove MSVCRT_ prefix from misc.c functions. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/crtdll/crtdll.spec | 12 +++++------ dlls/msvcr100/msvcr100.spec | 30 +++++++++++++------------- dlls/msvcr110/msvcr110.spec | 36 +++++++++++++++---------------- dlls/msvcr120/msvcr120.spec | 42 ++++++++++++++++++------------------ dlls/msvcr70/msvcr70.spec | 14 ++++++------ dlls/msvcr71/msvcr71.spec | 14 ++++++------ dlls/msvcr80/msvcr80.spec | 34 ++++++++++++++--------------- dlls/msvcr90/msvcr90.spec | 34 ++++++++++++++--------------- dlls/msvcrt/misc.c | 52 ++++++++++++++++++++++----------------------- dlls/msvcrt/msvcrt.h | 1 - dlls/msvcrt/msvcrt.spec | 24 ++++++++++----------- dlls/msvcrt/printf.h | 2 +- dlls/msvcrtd/msvcrtd.spec | 12 +++++------ dlls/ucrtbase/ucrtbase.spec | 46 +++++++++++++++++++-------------------- include/msvcrt/stdio.h | 2 +- 15 files changed, 177 insertions(+), 178 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=0364b7681fd6f628b06a…
1
0
0
0
Piotr Caban : msvcrt: Remove MSVCRT_ prefix from mbcs.c functions.
by Alexandre Julliard
02 Dec '20
02 Dec '20
Module: wine Branch: master Commit: 065cf4e71496d96baf5f7ff35af4f0bbfee9d1a8 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=065cf4e71496d96baf5f7ff3…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Dec 2 00:53:51 2020 +0100 msvcrt: Remove MSVCRT_ prefix from mbcs.c functions. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/crtdll/crtdll.spec | 6 ++--- dlls/msvcr100/msvcr100.spec | 24 ++++++++++---------- dlls/msvcr110/msvcr110.spec | 24 ++++++++++---------- dlls/msvcr120/msvcr120.spec | 24 ++++++++++---------- dlls/msvcr70/msvcr70.spec | 8 +++---- dlls/msvcr71/msvcr71.spec | 8 +++---- dlls/msvcr80/msvcr80.spec | 24 ++++++++++---------- dlls/msvcr90/msvcr90.spec | 24 ++++++++++---------- dlls/msvcrt/exit.c | 8 +++---- dlls/msvcrt/file.c | 4 ++-- dlls/msvcrt/locale.c | 2 +- dlls/msvcrt/mbcs.c | 38 +++++++++++++++---------------- dlls/msvcrt/msvcrt.h | 6 ----- dlls/msvcrt/msvcrt.spec | 24 ++++++++++---------- dlls/msvcrt/printf.h | 2 +- dlls/msvcrt/time.c | 8 +++---- dlls/msvcrtd/msvcrtd.spec | 8 +++---- dlls/ucrtbase/ucrtbase.spec | 48 ++++++++++++++++++++-------------------- include/msvcrt/corecrt_wstdlib.h | 3 +++ 19 files changed, 145 insertions(+), 148 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=065cf4e71496d96baf5f…
1
0
0
0
← Newer
1
...
30
31
32
33
34
35
36
...
42
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
Results per page:
10
25
50
100
200