diff mbox series

[12/22] tools/utils: remove YYLTYPE definition from libxlu_internal.h

Message ID ab3e13091009dc781bda87582cc119354a7cd1ec.1690990428.git.ehem+xen@m5p.com (mailing list archive)
State New, archived
Headers show
Series Cleanup and splitting of xl.cfg parsing | expand

Commit Message

Elliott Mitchell July 19, 2023, 6:07 a.m. UTC
The definition was needed due to XLU_ConfigValue being before Bison's
declaration of YYLTYPE.  Since XLU_ConfigValue has moved to libxlu_cfg.c,
the duplication is now unnecessary.

Fixes: 1a09c5113a, 6ec86e91c8 ("libxlu: record location when parsing values")
Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>
---
Had @1a09c5113a placed the structure definition in libxlu_cfg_i.h, there
never would have been a need to override YYLTYPE.
---
 tools/libs/util/libxlu_internal.h | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox series

Patch

diff --git a/tools/libs/util/libxlu_internal.h b/tools/libs/util/libxlu_internal.h
index 1a9d25e14e..c68669c3a1 100644
--- a/tools/libs/util/libxlu_internal.h
+++ b/tools/libs/util/libxlu_internal.h
@@ -31,15 +31,6 @@  struct XLU_ConfigList {
     XLU_ConfigValue **values;
 };
 
-typedef struct XLU__CFG_YYLTYPE
-{
-  int first_line;
-  int first_column;
-  int last_line;
-  int last_column;
-} XLU__CFG_YYLTYPE;
-#define XLU__CFG_YYLTYPE_IS_DECLARED
-
 typedef struct XLU_ConfigSetting XLU_ConfigSetting;
 
 struct XLU_Config {