Module: wine
Branch: master
Commit: bb647c9b672bf52d67fd768cafffca677f724485
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb647c9b672bf52d67fd768ca…
Author: Rob Shearman <robertshearman(a)gmail.com>
Date: Fri Jun 20 10:16:06 2008 +0100
widl: Fix generation of the type format string for conformant-varying structures.
The conformance needs to be added on to the offset in the buffer so
set this before calling each the writer of each class of pointer
description in write_pointer_description.
Pass the passed in offsets to buffer and memory to
write_pointer_description_offsets in
write_varying_array_pointer_descriptions.
---
tools/widl/typegen.c | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 41134d8..e256fa5 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1140,7 +1140,8 @@ static int write_no_repeat_pointer_descriptions(
align = 0;
*offset_in_memory += type_memsize(type, &align);
- /* FIXME: is there a case where these two are different? */
+ /* increment these separately as in the case of conformant (varying)
+ * structures these start at different values */
align = 0;
*offset_in_buffer += type_memsize(type, &align);
@@ -1159,7 +1160,8 @@ static int write_no_repeat_pointer_descriptions(
{
align = 0;
*offset_in_memory += type_memsize(type, &align);
- /* FIXME: is there a case where these two are different? */
+ /* increment these separately as in the case of conformant (varying)
+ * structures these start at different values */
align = 0;
*offset_in_buffer += type_memsize(type, &align);
}
@@ -1224,7 +1226,8 @@ static int write_pointer_description_offsets(
align = 0;
if (offset_in_memory)
*offset_in_memory += type_memsize(type, &align);
- /* FIXME: is there a case where these two are different? */
+ /* increment these separately as in the case of conformant (varying)
+ * structures these start at different values */
align = 0;
if (offset_in_buffer)
*offset_in_buffer += type_memsize(type, &align);
@@ -1287,7 +1290,8 @@ static int write_fixed_array_pointer_descriptions(
align = 0;
if (offset_in_memory)
*offset_in_memory += type_memsize(type, &align);
- /* FIXME: is there a case where these two are different? */
+ /* increment these separately as in the case of conformant (varying)
+ * structures these start at different values */
align = 0;
if (offset_in_buffer)
*offset_in_buffer += type_memsize(type, &align);
@@ -1350,8 +1354,6 @@ static int write_varying_array_pointer_descriptions(
unsigned int align;
int pointer_count = 0;
- /* FIXME: do varying array searching here, but pointer searching in write_pointer_description_offsets */
-
if (is_array(type) && type->length_is)
{
unsigned int temp = 0;
@@ -1362,8 +1364,8 @@ static int write_varying_array_pointer_descriptions(
if (pointer_count > 0)
{
unsigned int increment_size;
- size_t offset_of_array_pointer_mem = 0;
- size_t offset_of_array_pointer_buf = 0;
+ size_t offset_of_array_pointer_mem = *offset_in_memory;
+ size_t offset_of_array_pointer_buf = *offset_in_buffer;
align = 0;
increment_size = type_memsize(type->ref, &align);
@@ -1412,13 +1414,19 @@ static void write_pointer_description(FILE *file, type_t *type,
{
size_t offset_in_buffer;
size_t offset_in_memory;
+ size_t conformance = 0;
+
+ if (type->type == RPC_FC_CVSTRUCT)
+ conformance = 8;
+ else if (type->type == RPC_FC_CSTRUCT || type->type == RPC_FC_CPSTRUCT)
+ conformance = 4;
/* pass 1: search for single instance of a pointer (i.e. don't descend
* into arrays) */
if (!is_array(type))
{
offset_in_memory = 0;
- offset_in_buffer = 0;
+ offset_in_buffer = conformance;
write_no_repeat_pointer_descriptions(
file, type,
&offset_in_memory, &offset_in_buffer, typestring_offset);
@@ -1426,7 +1434,7 @@ static void write_pointer_description(FILE *file, type_t *type,
/* pass 2: search for pointers in fixed arrays */
offset_in_memory = 0;
- offset_in_buffer = 0;
+ offset_in_buffer = conformance;
write_fixed_array_pointer_descriptions(
file, NULL, type,
&offset_in_memory, &offset_in_buffer, typestring_offset);
@@ -1448,7 +1456,7 @@ static void write_pointer_description(FILE *file, type_t *type,
/* pass 4: search for pointers in varying arrays */
offset_in_memory = 0;
- offset_in_buffer = 0;
+ offset_in_buffer = conformance;
write_varying_array_pointer_descriptions(
file, NULL, type,
&offset_in_memory, &offset_in_buffer, typestring_offset);
Module: appdb
Branch: master
Commit: 2c49f28671cedcea973566ee62dcfc5615f855c9
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=2c49f28671cedcea973566ee…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Fri Jun 20 21:01:22 2008 +0200
db_filter_ui: Show help text when users don't select a filter criterion
---
include/db_filter_ui.php | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/include/db_filter_ui.php b/include/db_filter_ui.php
index 7fe459d..cbe69cf 100644
--- a/include/db_filter_ui.php
+++ b/include/db_filter_ui.php
@@ -105,6 +105,7 @@ class FilterInterface
private $oFilterSet;
private $aEscapeChars;
private $aEscapeCharsWith;
+ private $sErrors; // Used to inform the user about errors (and to give advice)
public function FilterInterface($sTableName = '')
{
@@ -112,6 +113,7 @@ class FilterInterface
$this->oFilterSet = new FilterSet(query_escape_string($sTableName));
$this->aEscapeChars = array('.');
$this->aEscapeCharsWith = array('-');
+ $this->sErrors = '';
}
public function AddFilterObject(Filter $oFilter)
@@ -358,6 +360,11 @@ class FilterInterface
}
$shNewItemsEditor .= '<b>Add new filter</b> <i>(You don’t have to fill out all rows.)</i><br />';
+
+ /* Show errors, if any */
+ if($this->sErrors)
+ $shNewItemsEditor .= "<font color=\"red\">{$this->sErrors}</font>";
+
foreach($this->aFilterInfo as $oOption)
{
$oDummyFilter = new Filter($oOption->getColumn(), 0, '');
@@ -428,6 +435,11 @@ class FilterInterface
{
$oFilter = new Filter($oOption->getColumn(), $iOp, $sData);
$aReturn[] = $oFilter;
+ } else if(!$iOp && $sData)
+ {
+ /* The user probably meant to add a filter, but forgot to seelect
+ a filter criterion */
+ $this->sErrors .= 'You need to select a filter criterion from the drop-down list<br />';
}
}
Module: website
Branch: master
Commit: e4bff963403ad95ce26c2037d1410d42d2ec0c3b
URL: http://source.winehq.org/git/website.git/?a=commit;h=e4bff963403ad95ce26c20…
Author: Zachary Goldberg <zgold(a)bluesata.com>
Date: Thu Jun 19 18:48:11 2008 -0400
Spelling fix in WWN 348
--Zach
>From 518c54ac1dd7624b5d61a76a6524f807deb385f1 Mon Sep 17 00:00:00 2001
From: Zachary Goldberg <zgs(a)seas.upenn.edu>
Date: Thu, 19 Jun 2008 18:46:35 -0400
Subject: [WineHQ][WWN] Spelling Fix in WWN 348
To: wine-patches <wine-patches(a)winehq.org>, Jeremy Newman <jnewman(a)codeweavers.com>
---
wwn/en/wn20080618_348.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/wwn/en/wn20080618_348.xml b/wwn/en/wn20080618_348.xml
index ea1f3c7..f500ac1 100644
--- a/wwn/en/wn20080618_348.xml
+++ b/wwn/en/wn20080618_348.xml
@@ -684,7 +684,8 @@ Ciao, Marcus
>
<topic>Wine 1.0 and Bordeaux</topic>
<p>
-As many of you know Steven Edwards has been a member of both the Wine and ReactOS communities for quiet a while now. He writes in with his thoughts on the Wine 1.0 process most of which are very valid points worth reading. Towards the end he also mentions a new Free Software company, Bordeaux, that he has begun which combines technologies from Wine, ReactOS, IES4Linux, Winetricks and others.
+As many of you know Steven Edwards has been a member of both the Wine
+and ReactOS communities for quite a while now. He writes in with his thoughts on the Wine 1.0 process most of which are very valid points worth reading. Towards the end he also mentions a new Free Software company, Bordeaux, that he has begun which combines technologies from Wine, ReactOS, IES4Linux, Winetricks and others.
</p>
<quote>
<p>