Zebediah Figura : widl: The default pointer attribute for an array is always ref.

Alexandre Julliard julliard at winehq.org
Tue Oct 9 16:22:46 CDT 2018


Module: wine
Branch: master
Commit: 8f463a575ddce64b51db7df59d344faf01d0ab01
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8f463a575ddce64b51db7df59d344faf01d0ab01

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Oct  5 16:57:49 2018 -0500

widl: The default pointer attribute for an array is always ref.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/widl/parser.y | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 1fe7129..36a5fae 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1552,10 +1552,12 @@ static var_t *declare_var(attr_list_t *attrs, decl_spec_t *decl_spec, const decl
   ptype = &v->type;
   if (arr) LIST_FOR_EACH_ENTRY_REV(dim, arr, expr_t, entry)
   {
+    /* An array is always a reference pointer unless explicitly marked otherwise
+     * (regardless of what the default pointer attribute is). */
     *ptype = type_new_array(NULL, *ptype, FALSE,
                             dim->is_const ? dim->cval : 0,
                             dim->is_const ? NULL : dim, NULL,
-                            pointer_default);
+                            FC_RP);
   }
 
   ptype = &v->type;




More information about the wine-cvs mailing list