Elizabeth Figura : widl: Update the type location in define_type().
Module: wine Branch: master Commit: 1db2eaf0b39c7839fd6f41ecd583bc9852f1fde9 URL: https://gitlab.winehq.org/wine/wine/-/commit/1db2eaf0b39c7839fd6f41ecd583bc9... Author: Elizabeth Figura <zfigura(a)codeweavers.com> Date: Mon Mar 25 18:26:42 2024 -0500 widl: Update the type location in define_type(). This improves error reporting for the following IDL: interface apple; [uuid(12345678-1234-1234-1234-123456654321)] interface apple {void func(void);} [uuid(12345678-1234-1234-1234-123456654321)] interface apple {void func(void);} Previously widl would report: test2.idl:19:34: error: type apple already defined at test2.idl:2 This changes it to refer to line 5, where the interface is actually defined. --- tools/widl/parser.y | 42 ++++++++++++++--------------- tools/widl/typetree.c | 74 ++++++++++++++++++++++++++++++--------------------- tools/widl/typetree.h | 41 ++++++++++++++++++---------- 3 files changed, 92 insertions(+), 65 deletions(-)
participants (1)
-
Alexandre Julliard