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
January 2011
----- 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
879 discussions
Start a n
N
ew thread
Vincent Povirk : shell32: Test links to executable filenames lacking the extension.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 05ff15a75517a506ae5d35b7d9f8fd3fa3b5f22f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05ff15a75517a506ae5d35b7d…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Jan 24 13:46:29 2011 -0600 shell32: Test links to executable filenames lacking the extension. --- dlls/shell32/tests/shelllink.c | 63 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index f754efd..29b0dda 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -681,6 +681,24 @@ static void test_load_save(void) create_lnk(lnkfile, &desc, 0); check_lnk(lnkfile, &desc, 0x0); + /* Test omitting .exe from an absolute path */ + p=strrchr(mypath, '.'); + if (p) + *p='\0'; + + desc.description="absolute path without .exe"; + desc.workdir=mydir; + desc.path=mypath; + desc.pidl=NULL; + desc.arguments="/option1 /option2 \"Some string\""; + desc.showcmd=SW_SHOWNORMAL; + desc.icon=mypath; + desc.icon_id=0; + desc.hotkey=0x1234; + create_lnk(lnkfile, &desc, 0); + desc.path = realpath; + check_lnk(lnkfile, &desc, 0x4); + /* Overwrite the existing lnk file and test link to a command on the path */ desc.description="command on path"; desc.workdir=mypath; @@ -697,6 +715,22 @@ static void test_load_save(void) desc.path=realpath; check_lnk(lnkfile, &desc, 0x0); + /* Test omitting .exe from a command on the path */ + desc.description="command on path without .exe"; + desc.workdir=mypath; + desc.path="rundll32"; + desc.pidl=NULL; + desc.arguments="/option1 /option2 \"Some string\""; + desc.showcmd=SW_SHOWNORMAL; + desc.icon=mypath; + desc.icon_id=0; + desc.hotkey=0x1234; + create_lnk(lnkfile, &desc, 0); + /* Check that link is created to proper location */ + SearchPathA( NULL, "rundll32", NULL, MAX_PATH, realpath, NULL); + desc.path=realpath; + check_lnk(lnkfile, &desc, 0x4); + /* Create a temporary non-executable file */ r=GetTempPath(sizeof(mypath), mypath); ok(r<sizeof(mypath), "GetTempPath failed (%d), err %d\n", r, GetLastError()); @@ -747,6 +781,35 @@ static void test_load_save(void) r = DeleteFileA(mypath); ok(r, "failed to delete file %s (%d)\n", mypath, GetLastError()); + /* Create a temporary .bat file */ + strcpy(mypath, mydir); + strcat(mypath, "\\test.bat"); + hf = CreateFile(mypath, GENERIC_WRITE, 0, NULL, + CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + CloseHandle(hf); + + strcpy(realpath, mypath); + + p=strrchr(mypath, '.'); + if (p) + *p='\0'; + + /* Try linking to the .bat file without the extension */ + desc.description="batch file"; + desc.workdir=mydir; + desc.path=mypath; + desc.pidl=NULL; + desc.arguments=""; + desc.showcmd=SW_SHOWNORMAL; + desc.icon=mypath; + desc.icon_id=0; + desc.hotkey=0x1234; + create_lnk(lnkfile, &desc, 0); + desc.path = realpath; + check_lnk(lnkfile, &desc, 0x4); + + r = DeleteFileA(realpath); + /* FIXME: Also test saving a .lnk pointing to a pidl that cannot be * represented as a path. */
1
0
0
0
Reece Dunn : hlink/tests: Add hres checks for the IHlink_GetMonikerReference calls (clang).
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 365ae23e468289b410237112ad53ba497bd32974 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=365ae23e468289b410237112a…
Author: Reece Dunn <msclrhd(a)gmail.com> Date: Mon Jan 24 20:07:06 2011 +0000 hlink/tests: Add hres checks for the IHlink_GetMonikerReference calls (clang). --- dlls/hlink/tests/hlink.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c index 3cb6db4..bb44080 100644 --- a/dlls/hlink/tests/hlink.c +++ b/dlls/hlink/tests/hlink.c @@ -1065,6 +1065,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == S_OK, "IHlink_SetMonikerReference failed: 0x%08x\n", hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt); ok(lstrcmpW(found_loc, two) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(two), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1075,6 +1076,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == S_OK, "IHlink_SetMonikerReference failed: 0x%08x\n", hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy2, "Found target should've been %p, was: %p\n", dummy2, found_trgt); ok(lstrcmpW(found_loc, two) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(two), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1085,6 +1087,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == S_OK, "IHlink_SetMonikerReference failed: 0x%08x\n", hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt); ok(lstrcmpW(found_loc, one) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(one), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1095,6 +1098,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == E_INVALIDARG, "IHlink_SetMonikerReference should've failed with E_INVALIDARG (0x%08x), failed with 0x%08x\n", E_INVALIDARG, hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt); ok(lstrcmpW(found_loc, one) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(one), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1106,6 +1110,7 @@ static void test_HlinkGetSetMonikerReference(void) if (0) ok(hres == 12, "IHlink_SetMonikerReference should've failed with 0x%08x, failed with 0x%08x\n", 12, hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy, "Found target should've been %p, was: %p\n", dummy, found_trgt); ok(lstrcmpW(found_loc, one) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(one), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1116,6 +1121,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == S_OK, "IHlink_SetMonikerReference failed: 0x%08x\n", hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == dummy2, "Found target should've been %p, was: %p\n", dummy2, found_trgt); ok(lstrcmpW(found_loc, one) == 0, "Found location should've been %s, was: %s\n", wine_dbgstr_w(one), wine_dbgstr_w(found_loc)); IMoniker_Release(found_trgt); @@ -1126,6 +1132,7 @@ static void test_HlinkGetSetMonikerReference(void) ok(hres == S_OK, "IHlink_SetMonikerReference failed: 0x%08x\n", hres); hres = IHlink_GetMonikerReference(hlink, HLINKGETREF_DEFAULT, &found_trgt, &found_loc); + ok(hres == S_OK, "IHlink_GetMonikerReference failed: 0x%08x\n", hres); ok(found_trgt == NULL, "Found target should've been %p, was: %p\n", NULL, found_trgt); ok(found_loc == NULL, "Found location should've been %s, was: %s\n", wine_dbgstr_w(NULL), wine_dbgstr_w(found_loc)); if(found_trgt)
1
0
0
0
André Hentschel : gameux: Only trace on success (clang ).
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 3e411a2d9ce2c856b7063d84cf8cfe1800d89600 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e411a2d9ce2c856b7063d84c…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Jan 24 20:43:07 2011 +0100 gameux: Only trace on success (clang). --- dlls/gameux/gamestatistics.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c index 61df25e..b0e7674 100644 --- a/dlls/gameux/gamestatistics.c +++ b/dlls/gameux/gamestatistics.c @@ -564,11 +564,12 @@ static HRESULT GAMEUX_loadStatisticsFromFile(struct GAMEUX_STATS *data) } if(SUCCEEDED(hr)) + { lstrcpynW(data->categories[i].stats[j].sValue, V_BSTR(&vValue), MAX_VALUE_LENGTH); - - TRACE(" statistic %d name %s value %s\n", j, - debugstr_w(data->categories[i].stats[j].sName), - debugstr_w(data->categories[i].stats[j].sValue)); + TRACE("statistic %d name %s value %s\n", j, + debugstr_w(data->categories[i].stats[j].sName), + debugstr_w(data->categories[i].stats[j].sValue)); + } IXMLDOMElement_Release(statisticElement); }
1
0
0
0
Henri Verbeet : wined3d: Disable vertex shader output clamping.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 91ac0c37b1f36978d8bf974daf24ad9c77d49d6f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=91ac0c37b1f36978d8bf974da…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Jan 24 18:41:16 2011 +0100 wined3d: Disable vertex shader output clamping. It looks like NV50+ hardware gets you infinities and NaN's in D3D as well for most things, so we should only need special handling for pow and nrm. --- dlls/d3d9/tests/visual.c | 42 +++++++++++++++++------------------------- dlls/wined3d/glsl_shader.c | 27 +++++++++++++-------------- 2 files changed, 30 insertions(+), 39 deletions(-) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index db67be3..d01252d 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -11233,8 +11233,9 @@ static void fp_special_test(IDirect3DDevice9 *device) const char *name; const DWORD *ops; DWORD size; - D3DCOLOR color1; - D3DCOLOR color2; + D3DCOLOR r600; + D3DCOLOR nv40; + D3DCOLOR nv50; } vs_body[] = { @@ -11248,26 +11249,15 @@ static void fp_special_test(IDirect3DDevice9 *device) * component, but here 0.0 also results in 0x00. The actual value is * written to the blue component. * - * There are at least two different ways for D3D implementations to - * handle this. AMD seems to stick mostly to the D3D documentation, - * and doesn't generate floating point specials in the first place. - * Note that that doesn't just apply to functions like rcp and rsq, - * but also basic mul, add, etc. nVidia seems to generate infinities, - * but then clamp them before sending them to the interpolators. In - * OpenGL these aren't clamped, and interpolating them generates NANs - * in the fragment shader, unless flat shading is used (essentially - * replicating the values instead of interpolating them). - * - * I can't currently explain the nVidia results for pow and nrm. - * They're not specials in the vertex shader, but look like -INF in - * the pixel shader. */ - {"log", vs_log, sizeof(vs_log), 0x00000000 /* -FLT_MAX */, 0x00ff0000 /* clamp(-INF) */}, - {"pow", vs_pow, sizeof(vs_pow), 0x000000ff /* +FLT_MAX */, 0x0000ff00 /* ??? */}, - {"nrm", vs_nrm, sizeof(vs_nrm), 0x00ff0000 /* 0.0 */, 0x0000ff00 /* ??? */}, - {"rcp1", vs_rcp1, sizeof(vs_rcp1), 0x000000ff /* +FLT_MAX */, 0x00ff00ff /* clamp(+INF) */}, - {"rcp2", vs_rcp2, sizeof(vs_rcp2), 0x00000000 /* -FLT_MAX */, 0x00ff0000 /* clamp(-INF) */}, - {"rsq1", vs_rsq1, sizeof(vs_rsq1), 0x000000ff /* +FLT_MAX */, 0x00ff00ff /* clamp(+INF) */}, - {"rsq2", vs_rsq2, sizeof(vs_rsq2), 0x000000ff /* +FLT_MAX */, 0x00ff00ff /* clamp(+INF) */}, + * There are considerable differences between graphics cards in how + * these are handled, but pow and nrm never generate INF or NAN. */ + {"log", vs_log, sizeof(vs_log), 0x00000000, 0x00ff0000, 0x00ff7f00}, + {"pow", vs_pow, sizeof(vs_pow), 0x000000ff, 0x0000ff00, 0x000000ff}, + {"nrm", vs_nrm, sizeof(vs_nrm), 0x00ff0000, 0x0000ff00, 0x00ff0000}, + {"rcp1", vs_rcp1, sizeof(vs_rcp1), 0x000000ff, 0x00ff00ff, 0x00ff7f00}, + {"rcp2", vs_rcp2, sizeof(vs_rcp2), 0x00000000, 0x00ff0000, 0x00ff7f00}, + {"rsq1", vs_rsq1, sizeof(vs_rsq1), 0x000000ff, 0x00ff00ff, 0x00ff7f00}, + {"rsq2", vs_rsq2, sizeof(vs_rsq2), 0x000000ff, 0x00ff00ff, 0x00ff7f00}, }; static const DWORD ps_code[] = @@ -11371,9 +11361,11 @@ static void fp_special_test(IDirect3DDevice9 *device) ok(SUCCEEDED(hr), "EndScene failed, hr %#x.\n", hr); color = getPixelColor(device, 320, 240); - ok(color_match(color, vs_body[i].color1, 1) || color_match(color, vs_body[i].color2, 1), - "Expected color 0x%08x or 0x%08x for instruction \"%s\", got 0x%08x.\n", - vs_body[i].color1, vs_body[i].color2, vs_body[i].name, color); + ok(color_match(color, vs_body[i].r600, 1) + || color_match(color, vs_body[i].nv40, 1) + || color_match(color, vs_body[i].nv50, 1), + "Expected color 0x%08x, 0x%08x or 0x%08x for instruction \"%s\", got 0x%08x.\n", + vs_body[i].r600, vs_body[i].nv40, vs_body[i].nv50, vs_body[i].name, color); hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); ok(SUCCEEDED(hr), "Present failed, hr %#x.\n", hr); diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index c4e4188..efd6d55 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -2222,13 +2222,13 @@ static void shader_glsl_pow(const struct wined3d_shader_instruction *ins) if (dst_size > 1) { - shader_addline(buffer, "vec%u(pow(abs(%s), %s)));\n", - dst_size, src0_param.param_str, src1_param.param_str); + shader_addline(buffer, "vec%u(%s == 0.0 ? 1.0 : pow(abs(%s), %s)));\n", + dst_size, src1_param.param_str, src0_param.param_str, src1_param.param_str); } else { - shader_addline(buffer, "pow(abs(%s), %s));\n", - src0_param.param_str, src1_param.param_str); + shader_addline(buffer, "%s == 0.0 ? 1.0 : pow(abs(%s), %s));\n", + src1_param.param_str, src0_param.param_str, src1_param.param_str); } } @@ -3799,7 +3799,7 @@ static void handle_ps3_input(struct wined3d_shader_buffer *buffer, set[in_idx] = mask; shader_glsl_write_mask_to_str(mask, reg_mask); - shader_addline(buffer, "%s%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "%s%s = OUT[%u]%s;\n", destination, reg_mask, j, reg_mask); } } @@ -3847,7 +3847,6 @@ static GLhandleARB generate_param_reorder_function(struct wined3d_shader_buffer shader_buffer_clear(buffer); shader_addline(buffer, "#version 120\n"); - shader_addline(buffer, "const float FLT_MAX = 1e38;\n"); if (ps_major < 3) { @@ -3867,15 +3866,15 @@ static GLhandleARB generate_param_reorder_function(struct wined3d_shader_buffer if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_COLOR)) { if (!semantic_idx) - shader_addline(buffer, "gl_FrontColor%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "gl_FrontColor%s = OUT[%u]%s;\n", reg_mask, i, reg_mask); else if (semantic_idx == 1) - shader_addline(buffer, "gl_FrontSecondaryColor%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "gl_FrontSecondaryColor%s = OUT[%u]%s;\n", reg_mask, i, reg_mask); } else if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_POSITION)) { - shader_addline(buffer, "gl_Position%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "gl_Position%s = OUT[%u]%s;\n", reg_mask, i, reg_mask); } else if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_TEXCOORD)) @@ -3885,7 +3884,7 @@ static GLhandleARB generate_param_reorder_function(struct wined3d_shader_buffer if (!(gl_info->quirks & WINED3D_QUIRK_SET_TEXCOORD_W) || ps_major > 0) write_mask |= WINED3DSP_WRITEMASK_3; - shader_addline(buffer, "gl_TexCoord[%u]%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "gl_TexCoord[%u]%s = OUT[%u]%s;\n", semantic_idx, reg_mask, i, reg_mask); if (!(write_mask & WINED3DSP_WRITEMASK_3)) shader_addline(buffer, "gl_TexCoord[%u].w = 1.0;\n", semantic_idx); @@ -3893,11 +3892,11 @@ static GLhandleARB generate_param_reorder_function(struct wined3d_shader_buffer } else if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_PSIZE)) { - shader_addline(buffer, "gl_PointSize = clamp(OUT[%u].%c, -FLT_MAX, FLT_MAX);\n", i, reg_mask[1]); + shader_addline(buffer, "gl_PointSize = OUT[%u].%c;\n", i, reg_mask[1]); } else if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_FOG)) { - shader_addline(buffer, "gl_FogFragCoord = clamp(OUT[%u].%c, -FLT_MAX, FLT_MAX);\n", i, reg_mask[1]); + shader_addline(buffer, "gl_FogFragCoord = OUT[%u].%c;\n", i, reg_mask[1]); } } shader_addline(buffer, "}\n"); @@ -3919,12 +3918,12 @@ static GLhandleARB generate_param_reorder_function(struct wined3d_shader_buffer if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_POSITION)) { - shader_addline(buffer, "gl_Position%s = clamp(OUT[%u]%s, -FLT_MAX, FLT_MAX);\n", + shader_addline(buffer, "gl_Position%s = OUT[%u]%s;\n", reg_mask, i, reg_mask); } else if (shader_match_semantic(semantic_name, WINED3DDECLUSAGE_PSIZE)) { - shader_addline(buffer, "gl_PointSize = clamp(OUT[%u].%c, -FLT_MAX, FLT_MAX);\n", i, reg_mask[1]); + shader_addline(buffer, "gl_PointSize = OUT[%u].%c;\n", i, reg_mask[1]); } }
1
0
0
0
Alexandre Julliard : iccvid: Recover some resources that were lost during the po conversion.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 361bb1f218c382a4651a78a14e8b6c3eae43a024 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=361bb1f218c382a4651a78a14…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jan 25 12:30:22 2011 +0100 iccvid: Recover some resources that were lost during the po conversion. --- po/da.po | 2 +- po/es.po | 2 +- po/fr.po | 2 +- po/hu.po | 2 +- po/it.po | 2 +- po/ja.po | 2 +- po/nb_NO.po | 2 +- po/nl.po | 2 +- po/pl.po | 2 +- po/pt_BR.po | 2 +- po/pt_PT.po | 2 +- po/ro.po | 2 +- po/ru.po | 2 +- po/sl.po | 2 +- po/sr_RS(a)cyrillic.po | 2 +- po/sr_RS(a)latin.po | 2 +- po/tr.po | 2 +- po/uk.po | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/po/da.po b/po/da.po index d0492de..9da8417 100644 --- a/po/da.po +++ b/po/da.po @@ -2191,7 +2191,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak videokodeks" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/es.po b/po/es.po index 5e05385..5a6c5b3 100644 --- a/po/es.po +++ b/po/es.po @@ -2176,7 +2176,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Códec de vídeo Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/fr.po b/po/fr.po index eef6c59..16e42e5 100644 --- a/po/fr.po +++ b/po/fr.po @@ -2220,7 +2220,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Codec vidéo Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/hu.po b/po/hu.po index d9992d4..58cc5a2 100644 --- a/po/hu.po +++ b/po/hu.po @@ -2197,7 +2197,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak Video kodek" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/it.po b/po/it.po index b4bee99..2d55118 100644 --- a/po/it.po +++ b/po/it.po @@ -2278,7 +2278,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Codec video Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/ja.po b/po/ja.po index 8fc1adc..67294e1 100644 --- a/po/ja.po +++ b/po/ja.po @@ -2184,7 +2184,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak ビデオコーデック" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/nb_NO.po b/po/nb_NO.po index dc96159..c03a2b1 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -2255,7 +2255,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak-videokodek" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/nl.po b/po/nl.po index 6440e6a..404c136 100644 --- a/po/nl.po +++ b/po/nl.po @@ -2296,7 +2296,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak Video codec" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/pl.po b/po/pl.po index 41ceb76..901e6f5 100644 --- a/po/pl.po +++ b/po/pl.po @@ -2217,7 +2217,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Kodek Cinepak Video" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/pt_BR.po b/po/pt_BR.po index bcc0680..5c80f65 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -2257,7 +2257,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Codec Video Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/pt_PT.po b/po/pt_PT.po index f996516..ca31ffb 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -2285,7 +2285,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Codec Video Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/ro.po b/po/ro.po index a8b1a05..f67bc4c 100644 --- a/po/ro.po +++ b/po/ro.po @@ -2311,7 +2311,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Codecul Cinepak Video" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/ru.po b/po/ru.po index fa49111..5acbf9e 100644 --- a/po/ru.po +++ b/po/ru.po @@ -2191,7 +2191,7 @@ msgstr "Предыдущая глава" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Видео кодер-декодер Cinepak" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/sl.po b/po/sl.po index 1741d69..66cc673 100644 --- a/po/sl.po +++ b/po/sl.po @@ -2182,7 +2182,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak Video kodek" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/sr_RS(a)cyrillic.po b/po/sr_RS(a)cyrillic.po index dafd045..99644de 100644 --- a/po/sr_RS(a)cyrillic.po +++ b/po/sr_RS(a)cyrillic.po @@ -2160,7 +2160,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak видео кодек" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/sr_RS(a)latin.po b/po/sr_RS(a)latin.po index 48177a3..bab9501 100644 --- a/po/sr_RS(a)latin.po +++ b/po/sr_RS(a)latin.po @@ -2184,7 +2184,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak video kodek" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/tr.po b/po/tr.po index a352f0a..aa21fdf 100644 --- a/po/tr.po +++ b/po/tr.po @@ -2170,7 +2170,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Cinepak Vidyo çözücü" #: inetcpl.rc:28 msgid "Internet Settings" diff --git a/po/uk.po b/po/uk.po index b8da57a..4db93f4 100644 --- a/po/uk.po +++ b/po/uk.po @@ -2189,7 +2189,7 @@ msgstr "IDTB_TOC_PREV" #: iccvid.rc:25 iccvid.rc:26 msgid "Cinepak Video codec" -msgstr "" +msgstr "Відео кодек Cinepak" #: inetcpl.rc:28 msgid "Internet Settings"
1
0
0
0
Alexandre Julliard : winefile: Recover some resources that were lost during the po conversion.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 3cad6ebae9d189736e814c311ec93c07e34cb894 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3cad6ebae9d189736e814c311…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jan 25 12:11:02 2011 +0100 winefile: Recover some resources that were lost during the po conversion. --- programs/winefile/It.rc | 13 +++++++++++++ programs/winefile/Ja.rc | 13 +++++++++++++ programs/winefile/Lt.rc | 13 +++++++++++++ 3 files changed, 39 insertions(+), 0 deletions(-) diff --git a/programs/winefile/It.rc b/programs/winefile/It.rc index 8ea1453..b488dec 100644 --- a/programs/winefile/It.rc +++ b/programs/winefile/It.rc @@ -30,6 +30,19 @@ LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL +IDD_SELECT_DESTINATION DIALOG 15, 13, 210, 63 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Seleziona destinazione" +FONT 8, "MS Shell Dlg" +{ + CONTROL "", 101, "Static", SS_SIMPLE|SS_NOPREFIX, 3, 6, 162, 10 + CONTROL "&Percorso:", -1, "Static", SS_LEFTNOWORDWRAP|WS_GROUP, 3, 18, 60, 10 + EDITTEXT 201, 3, 29, 134, 12, ES_AUTOHSCROLL + DEFPUSHBUTTON "OK", 1, 158, 6, 47, 14 + PUSHBUTTON "Annulla", 2, 158, 23, 47, 14 + PUSHBUTTON "&Naviga", 254, 158, 43, 47, 14 +} + IDD_DIALOG_VIEW_TYPE DIALOG 15, 13, 161, 97 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Per tipo di file" diff --git a/programs/winefile/Ja.rc b/programs/winefile/Ja.rc index e6f6b1c..594e39b 100644 --- a/programs/winefile/Ja.rc +++ b/programs/winefile/Ja.rc @@ -28,6 +28,19 @@ LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT +IDD_SELECT_DESTINATION DIALOG 15, 13, 210, 63 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "移動先を選択" +FONT 9, "MS Shell Dlg" +{ + CONTROL "", 101, "Static", SS_SIMPLE|SS_NOPREFIX, 3, 6, 162, 10 + CONTROL "パス(&P):", -1, "Static", SS_LEFTNOWORDWRAP|WS_GROUP, 3, 18, 60, 10 + EDITTEXT 201, 3, 29, 134, 12, ES_AUTOHSCROLL + DEFPUSHBUTTON "OK", 1, 158, 6, 47, 14 + PUSHBUTTON "キャンセル", 2, 158, 23, 47, 14 + PUSHBUTTON "参照(&B)", 254, 158, 43, 47, 14 +} + IDD_DIALOG_VIEW_TYPE DIALOG 15, 13, 161, 97 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "By File Type" diff --git a/programs/winefile/Lt.rc b/programs/winefile/Lt.rc index 1f98e21..91e6e12 100644 --- a/programs/winefile/Lt.rc +++ b/programs/winefile/Lt.rc @@ -26,6 +26,19 @@ LANGUAGE LANG_LITHUANIAN, SUBLANG_NEUTRAL +IDD_SELECT_DESTINATION DIALOG 15, 13, 210, 63 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Išrinkite paskirtį" +FONT 8, "MS Shell Dlg" +{ + CONTROL "", 101, "Static", SS_SIMPLE|SS_NOPREFIX, 3, 6, 162, 10 + CONTROL "&Kelias:", -1, "Static", SS_LEFTNOWORDWRAP|WS_GROUP, 3, 18, 60, 10 + EDITTEXT 201, 3, 29, 134, 12, ES_AUTOHSCROLL + DEFPUSHBUTTON "Gerai", 1, 158, 6, 47, 14 + PUSHBUTTON "Atsisakyti", 2, 158, 23, 47, 14 + PUSHBUTTON "&Parinkti", 254, 158, 43, 47, 14 +} + IDD_DIALOG_VIEW_TYPE DIALOG 15, 13, 161, 97 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Pagal failo tipą"
1
0
0
0
Alexandre Julliard : kernel32: Convert message translations to po files.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: efa55fd2bff0121ff888f4357d3a0b1db77a4bae URL:
http://source.winehq.org/git/wine.git/?a=commit;h=efa55fd2bff0121ff888f4357…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jan 24 20:42:52 2011 +0100 kernel32: Convert message translations to po files. --- dlls/kernel32/Makefile.in | 17 +- dlls/kernel32/nls/winerr_dan.mc | 3742 --------------------- dlls/kernel32/nls/winerr_deu.mc | 3741 --------------------- dlls/kernel32/nls/winerr_fra.mc | 3742 --------------------- dlls/kernel32/nls/winerr_ita.mc | 3742 --------------------- dlls/kernel32/nls/winerr_jpn.mc | 3744 ---------------------- dlls/kernel32/nls/winerr_kor.mc | 3737 --------------------- dlls/kernel32/nls/winerr_lth.mc | 3741 --------------------- dlls/kernel32/nls/winerr_nld.mc | 3742 --------------------- dlls/kernel32/nls/winerr_nor.mc | 3742 --------------------- dlls/kernel32/nls/winerr_plk.mc | 3741 --------------------- dlls/kernel32/nls/winerr_ptb.mc | 3742 --------------------- dlls/kernel32/nls/winerr_ptg.mc | 3741 --------------------- dlls/kernel32/nls/winerr_rus.mc | 3741 --------------------- dlls/kernel32/nls/winerr_sve.mc | 3741 --------------------- dlls/kernel32/nls/winerr_ukr.mc | 3742 --------------------- dlls/kernel32/{nls/winerr_enu.mc => winerror.mc} | 0 po/ar.po | 2971 +++++++++++++++++ po/bg.po | 3041 ++++++++++++++++++ po/ca.po | 2959 +++++++++++++++++ po/cs.po | 3076 ++++++++++++++++++ po/da.po | 2957 +++++++++++++++++ po/de.po | 2958 +++++++++++++++++ po/el.po | 3009 +++++++++++++++++ po/en.po | 2956 +++++++++++++++++ po/en_US.po | 2956 +++++++++++++++++ po/eo.po | 3023 +++++++++++++++++ po/es.po | 3166 ++++++++++++++++++ po/fa.po | 2971 +++++++++++++++++ po/fi.po | 3051 ++++++++++++++++++ po/fr.po | 2963 +++++++++++++++++ po/he.po | 3138 ++++++++++++++++++- po/hi.po | 2957 +++++++++++++++++ po/hu.po | 3158 ++++++++++++++++++ po/it.po | 2957 +++++++++++++++++ po/ja.po | 2961 +++++++++++++++++ po/ko.po | 2956 +++++++++++++++++ po/lt.po | 2958 +++++++++++++++++ po/ml.po | 2957 +++++++++++++++++ po/nb_NO.po | 2956 +++++++++++++++++ po/nl.po | 2956 +++++++++++++++++ po/or.po | 2957 +++++++++++++++++ po/pa.po | 2957 +++++++++++++++++ po/pl.po | 2956 +++++++++++++++++ po/pt_BR.po | 2956 +++++++++++++++++ po/pt_PT.po | 2956 +++++++++++++++++ po/rm.po | 2972 +++++++++++++++++ po/ro.po | 3181 ++++++++++++++++++ po/ru.po | 2956 +++++++++++++++++ po/sk.po | 3017 +++++++++++++++++ po/sl.po | 3138 ++++++++++++++++++ po/sr_RS(a)cyrillic.po | 3129 ++++++++++++++++++ po/sr_RS(a)latin.po | 3146 ++++++++++++++++++ po/sv.po | 2956 +++++++++++++++++ po/te.po | 2957 +++++++++++++++++ po/th.po | 3008 +++++++++++++++++ po/tr.po | 3155 ++++++++++++++++++ po/uk.po | 2956 +++++++++++++++++ po/wa.po | 2972 +++++++++++++++++ po/wine.pot | 2956 +++++++++++++++++ po/zh_CN.po | 3099 ++++++++++++++++++ po/zh_TW.po | 3103 ++++++++++++++++++ 62 files changed, 135493 insertions(+), 56139 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=efa55fd2bff0121ff888f…
1
0
0
0
Alexandre Julliard : makefiles: Add rules to update po files from . mc files in maintainer mode.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 417b70bf44f326f0b2ad27f2ab41c96f81581a1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=417b70bf44f326f0b2ad27f2a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jan 24 21:23:03 2011 +0100 makefiles: Add rules to update po files from .mc files in maintainer mode. --- .gitignore | 1 + Make.rules.in | 12 ++++++++---- aclocal.m4 | 30 ++++++++++++++++++++++++------ configure | 32 +++++++++++++++++++++++++------- configure.ac | 2 +- tools/make_makefiles | 3 +++ 6 files changed, 62 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index d91e568..0a6a589 100644 --- a/.gitignore +++ b/.gitignore @@ -251,6 +251,7 @@ loader/wine-installed loader/wine-preloader loader/wine64 loader/wine64-preloader +msg.pot programs/Makeprog.rules programs/rpcss/epm.h programs/rpcss/epm_s.c diff --git a/Make.rules.in b/Make.rules.in index f44bc55..cd9c22e 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -26,7 +26,8 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl= CLEAN_FILES = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \ - $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) $(PO_SRCS:%=rsrc.pot) + $(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \ + $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \ $(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS) @@ -59,7 +60,7 @@ filter: dummy $(FLEX) $(LEXFLAGS) -o$@ $< .mc.res: - $(LDPATH) $(WMC) -U -O res -o $@ $< + $(LDPATH) $(WMC) -U -O res -P $(top_srcdir)/po -o $@ $< .rc.res: $(LDPATH) $(WRC) $(RCFLAGS) -o $@ $< @@ -176,12 +177,15 @@ install install-lib install-dev uninstall:: # Rules for resources -all: @MAINTAINER_MODE@ $(PO_SRCS:%=rsrc.pot) +all: @MAINTAINER_MODE@ $(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot) rsrc.pot: $(WRC) $(LDPATH) $(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS) -$(MC_SRCS:.mc=.res): $(WMC) +msg.pot: $(WMC) + $(LDPATH) $(WMC) -O pot -o $@ $(MC_SRCS) + +$(MC_SRCS:.mc=.res): $(WMC) $(ALL_PO_FILES) $(RC_SRCS:.rc=.res): $(WRC) $(PO_SRCS:.rc=.res): $(ALL_PO_FILES) diff --git a/aclocal.m4 b/aclocal.m4 index 79486ab..234a6b8 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -269,11 +269,20 @@ install-lib:: $ac_dir/Makefile __builddeps__ uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile @cd $ac_dir && \$(MAKE) \$[@]" - if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags + if test "x$enable_maintainer_mode" = xyes then - wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + if wine_fn_has_flag mc $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"$ac_dir/msg.pot: $ac_dir" + fi + if wine_fn_has_flag po $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "$ac_dir/rsrc.pot: $ac_dir" + fi fi]) if wine_fn_has_flag staticimplib $ac_flags @@ -346,11 +355,20 @@ wine_fn_config_program () $ac_dir: $ac_dir/Makefile __builddeps__ dummy @cd $ac_dir && \$(MAKE)" - if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags + if test "x$enable_maintainer_mode" = xyes then - wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + if wine_fn_has_flag mc $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"$ac_dir/msg.pot: $ac_dir" + fi + if wine_fn_has_flag po $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "$ac_dir/rsrc.pot: $ac_dir" + fi fi wine_fn_has_flag install $ac_flags || return diff --git a/configure b/configure index 1ea906d..a3b5ad9 100755 --- a/configure +++ b/configure @@ -14529,11 +14529,20 @@ install-lib:: $ac_dir/Makefile __builddeps__ uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile @cd $ac_dir && \$(MAKE) \$@" - if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags + if test "x$enable_maintainer_mode" = xyes then - wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + if wine_fn_has_flag mc $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"$ac_dir/msg.pot: $ac_dir" + fi + if wine_fn_has_flag po $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "$ac_dir/rsrc.pot: $ac_dir" + fi fi fi @@ -14610,11 +14619,20 @@ else $ac_dir: $ac_dir/Makefile __builddeps__ dummy @cd $ac_dir && \$(MAKE)" - if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags + if test "x$enable_maintainer_mode" = xyes then - wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot - wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ + if wine_fn_has_flag mc $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ +"$ac_dir/msg.pot: $ac_dir" + fi + if wine_fn_has_flag po $ac_flags + then + wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot + wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ "$ac_dir/rsrc.pot: $ac_dir" + fi fi wine_fn_has_flag install $ac_flags || return @@ -15004,7 +15022,7 @@ wine_fn_config_dll itss enable_itss wine_fn_config_test dlls/itss/tests itss_test wine_fn_config_dll jscript enable_jscript po wine_fn_config_test dlls/jscript/tests jscript_test -wine_fn_config_dll kernel32 enable_kernel32 implib +wine_fn_config_dll kernel32 enable_kernel32 mc,implib wine_fn_config_test dlls/kernel32/tests kernel32_test wine_fn_config_dll keyboard.drv16 enable_win16 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel diff --git a/configure.ac b/configure.ac index 4d049b6..a7a1339 100644 --- a/configure.ac +++ b/configure.ac @@ -2533,7 +2533,7 @@ WINE_CONFIG_DLL(itss) WINE_CONFIG_TEST(dlls/itss/tests) WINE_CONFIG_DLL(jscript,,[po]) WINE_CONFIG_TEST(dlls/jscript/tests) -WINE_CONFIG_DLL(kernel32,,[implib]) +WINE_CONFIG_DLL(kernel32,,[mc,implib]) WINE_CONFIG_TEST(dlls/kernel32/tests) WINE_CONFIG_DLL(keyboard.drv16,enable_win16) WINE_CONFIG_DLL(krnl386.exe16,enable_win16,[implib],[kernel]) diff --git a/tools/make_makefiles b/tools/make_makefiles index 991ef4b..182aef5 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -96,6 +96,7 @@ my @ignores = ( "*/*/tests/testlist.c", "include/config.h", "include/stamp-h", + "msg.pot", "programs/winetest/*_test.exe", "programs/winetest/*_test.rc", "programs/winetest/build.nfo", @@ -424,6 +425,7 @@ sub update_makefiles(@) die "Invalid MODULE in $file" unless $make{"MODULE"} eq "$name.dll"; } my $implib = $make{"IMPORTLIB"} || ""; + push @flags, "mc" if defined $make{"MC_SRCS"}; push @flags, "po" if defined $make{"PO_SRCS"}; push @flags, "implib" if $implib; push @flags, "staticimplib" if defined($make{"IMPLIB_SRCS"}); @@ -444,6 +446,7 @@ sub update_makefiles(@) { die "Invalid MODULE in $file" unless $make{"MODULE"} eq "$name.exe"; } + push @flags, "mc" if defined $make{"MC_SRCS"}; push @flags, "po" if defined $make{"PO_SRCS"}; push @flags, "install" unless $dont_install{$name}; push @flags, "installbin" if $bin_install{$name};
1
0
0
0
Alexandre Julliard : wmc: Add support for generating message translations based on po files.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 72921af40b72c31f29dbc8f8b656f431e6457a4a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=72921af40b72c31f29dbc8f8b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jan 24 20:12:54 2011 +0100 wmc: Add support for generating message translations based on po files. --- tools/wmc/po.c | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++ tools/wmc/wmc.c | 9 +++- tools/wmc/wmc.man.in | 6 ++ tools/wmc/wmctypes.h | 1 + tools/wmc/write.c | 2 +- tools/wmc/write.h | 1 + 6 files changed, 158 insertions(+), 2 deletions(-) diff --git a/tools/wmc/po.c b/tools/wmc/po.c index e9969ef..414e4a6 100644 --- a/tools/wmc/po.c +++ b/tools/wmc/po.c @@ -435,6 +435,143 @@ void write_pot_file( const char *outname ) po_file_free( po ); } +static lan_blk_t *new_top, *new_tail; + +static lanmsg_t *translate_string( po_file_t po, lanmsg_t *str, int lang, int *found ) +{ + po_message_t msg; + po_message_iterator_t iterator; + lanmsg_t *new; + const char *transl; + int res; + char *buffer, *msgid, *context; + + if (str->len <= 1 || !(buffer = convert_msgid_ascii( str, 0 ))) return str; + + msgid = buffer; + context = get_message_context( &msgid ); + msg = find_message( po, msgid, context, &iterator ); + po_message_iterator_free( iterator ); + + if (msg && !po_message_is_fuzzy( msg )) + { + transl = po_message_msgstr( msg ); + if (!transl[0]) transl = msgid; /* ignore empty strings */ + else (*found)++; + } + else transl = msgid; + + new = xmalloc( sizeof(*new) ); + new->lan = lang; + new->cp = 0; /* FIXME */ + new->file = str->file; + new->line = str->line; + new->len = wine_utf8_mbstowcs( 0, transl, strlen(transl) + 1, NULL, 0 ); + new->msg = xmalloc( new->len * sizeof(WCHAR) ); + res = wine_utf8_mbstowcs( MB_ERR_INVALID_CHARS, transl, strlen(transl) + 1, new->msg, new->len ); + if (res == -2) + error( "Invalid utf-8 character in string '%s'\n", transl ); + free( buffer ); + return new; +} + +static void translate_block( po_file_t po, block_t *blk, block_t *new, int lang, int *found ) +{ + int i; + + new->idlo = blk->idlo; + new->idhi = blk->idhi; + new->size = 0; + new->msgs = xmalloc( blk->nmsg * sizeof(*new->msgs) ); + new->nmsg = blk->nmsg; + for (i = 0; i < blk->nmsg; i++) + { + new->msgs[i] = translate_string( po, blk->msgs[i], lang, found ); + new->size += ((2 * new->msgs[i]->len + 3) & ~3) + 4; + } +} + +static void translate_messages( po_file_t po, int lang ) +{ + int i, found; + lan_blk_t *lbp, *new; + + for (lbp = lanblockhead; lbp; lbp = lbp->next) + { + if (!is_english( lbp->lan )) continue; + found = 0; + new = xmalloc( sizeof(*new) ); + /* English "translations" take precedence over the original contents */ + new->version = is_english( lang ) ? 1 : -1; + new->lan = lang; + new->blks = xmalloc( lbp->nblk * sizeof(*new->blks) ); + new->nblk = lbp->nblk; + + for (i = 0; i < lbp->nblk; i++) + translate_block( po, &lbp->blks[i], &new->blks[i], lang, &found ); + if (found) + { + if (new_tail) new_tail->next = new; + else new_top = new; + new->prev = new_tail; + new_tail = new; + } + else + { + free( new->blks ); + free( new ); + } + } +} + +void add_translations( const char *po_dir ) +{ + lan_blk_t *lbp; + po_file_t po; + char buffer[256]; + char *p, *tok, *name; + unsigned int i; + FILE *f; + + /* first check if we have English resources to translate */ + for (lbp = lanblockhead; lbp; lbp = lbp->next) if (is_english( lbp->lan )) break; + if (!lbp) return; + + new_top = new_tail = NULL; + + name = strmake( "%s/LINGUAS", po_dir ); + if (!(f = fopen( name, "r" ))) return; + free( name ); + while (fgets( buffer, sizeof(buffer), f )) + { + if ((p = strchr( buffer, '#' ))) *p = 0; + for (tok = strtok( buffer, " \t\r\n" ); tok; tok = strtok( NULL, " \t\r\n" )) + { + for (i = 0; i < sizeof(languages)/sizeof(languages[0]); i++) + if (!strcmp( tok, languages[i].name )) break; + + if (i == sizeof(languages)/sizeof(languages[0])) + error( "unknown language '%s'\n", tok ); + + name = strmake( "%s/%s.po", po_dir, tok ); + if (!(po = po_file_read( name, &po_xerror_handler ))) + error( "cannot load po file for language '%s'\n", tok ); + translate_messages( po, MAKELANGID(languages[i].id, languages[i].sub) ); + po_file_free( po ); + free( name ); + } + } + fclose( f ); + + /* prepend the translated messages to the global list */ + if (new_tail) + { + new_tail->next = lanblockhead; + lanblockhead->prev = new_tail; + lanblockhead = new_top; + } +} + #else /* HAVE_LIBGETTEXTPO */ void write_pot_file( const char *outname ) @@ -442,4 +579,8 @@ void write_pot_file( const char *outname ) error( "PO files not supported in this wmc build\n" ); } +void add_translations( const char *po_dir ) +{ +} + #endif diff --git a/tools/wmc/wmc.c b/tools/wmc/wmc.c index 1dde0d8..837cfa6 100644 --- a/tools/wmc/wmc.c +++ b/tools/wmc/wmc.c @@ -49,6 +49,7 @@ static const char usage[] = " -i Inline messagetable(s)\n" " -o file Output to file (default is inputfile.rc)\n" " -O fmt Set output format (rc, res, pot)\n" + " -P dir Directory where to find po files\n" " -u Inputfile is in unicode\n" " -U Output unicode messagetable(s)\n" " -v Show supported codepages and languages\n" @@ -104,6 +105,8 @@ int rcinline = 0; */ static int dodebug = 0; +static char *po_dir; + char *output_name = NULL; /* The name given by the -o option */ char *input_name = NULL; /* The name given on the command-line */ char *header_name = NULL; /* The name given by the -H option */ @@ -173,7 +176,7 @@ int main(int argc,char *argv[]) strcat(cmdline, " "); } - while((optc = getopt(argc, argv, "B:cdDhH:io:O:p:uUvVW")) != EOF) + while((optc = getopt(argc, argv, "B:cdDhH:io:O:P:uUvVW")) != EOF) { switch(optc) { @@ -229,6 +232,9 @@ int main(int argc,char *argv[]) lose++; } break; + case 'P': + po_dir = xstrdup( optarg ); + break; case 'u': unicodein = 1; break; @@ -319,6 +325,7 @@ int main(int argc,char *argv[]) write_bin_files(); break; case FORMAT_RES: + if (po_dir) add_translations( po_dir ); write_res_file( output_name ); break; case FORMAT_POT: diff --git a/tools/wmc/wmc.man.in b/tools/wmc/wmc.man.in index ed8b69c..74542a5 100644 --- a/tools/wmc/wmc.man.in +++ b/tools/wmc/wmc.man.in @@ -52,6 +52,12 @@ Output to \fIfile\fR. Default is \fIinputfile.rc\fR. Set the output format. Supported formats are \fBrc\fR (the default), \fBres\fR, and \fBpot\fR. .TP +.BI \-P\ directory +Enable the generation of resource translations based on po files +loaded from the specified directory. That directory must follow the +gettext convention, in particular in must contain one .po file for +each language, and a LINGUAS file listing the available languages. +.TP .B \-u Assume that the inputfile is in unicode. .TP diff --git a/tools/wmc/wmctypes.h b/tools/wmc/wmctypes.h index 483507a..6c9a97c 100644 --- a/tools/wmc/wmctypes.h +++ b/tools/wmc/wmctypes.h @@ -117,6 +117,7 @@ typedef struct lan_blk { struct lan_blk *next; /* Linkage for languages */ struct lan_blk *prev; int lan; /* The language of this block */ + int version; /* The resource version for auto-translated resources */ block_t *blks; /* Array of blocks for this language */ int nblk; /* Nr of blocks in array */ } lan_blk_t; diff --git a/tools/wmc/write.c b/tools/wmc/write.c index f6e6d52..0fc38ad 100644 --- a/tools/wmc/write.c +++ b/tools/wmc/write.c @@ -620,7 +620,7 @@ void write_res_file( const char *name ) put_dword( 0 ); /* DataVersion */ put_word( 0x30 ); /* Memory options */ put_word( lbp->lan ); /* Language */ - put_dword( 0 ); /* Version */ + put_dword( lbp->version ); /* Version */ put_dword( 0 ); /* Characteristics */ output_bin_data( lbp ); diff --git a/tools/wmc/write.h b/tools/wmc/write.h index 745098b..8451e0b 100644 --- a/tools/wmc/write.h +++ b/tools/wmc/write.h @@ -25,5 +25,6 @@ void write_rc_file(const char *fname); void write_bin_files(void); void write_res_file( const char *name ); void write_pot_file( const char *outname ); +void add_translations( const char *po_dir ); #endif
1
0
0
0
Alexandre Julliard : wmc: Add support for generating a po template file.
by Alexandre Julliard
25 Jan '11
25 Jan '11
Module: wine Branch: master Commit: 196ffdf671de98c5d22b62f5ba669a7760227a5b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=196ffdf671de98c5d22b62f5b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jan 24 20:09:53 2011 +0100 wmc: Add support for generating a po template file. --- tools/wmc/Makefile.in | 9 +- tools/wmc/po.c | 445 +++++++++++++++++++++++++++++++++++++++++++++++++ tools/wmc/wmc.c | 9 +- tools/wmc/wmc.man.in | 4 +- tools/wmc/write.h | 1 + 5 files changed, 460 insertions(+), 8 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=196ffdf671de98c5d22b6…
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
88
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
Results per page:
10
25
50
100
200