Zebediah Figura : vkd3d-shader: Move hlsl_message() and hlsl_report_message() to hlsl.c.
Alexandre Julliard
julliard at winehq.org
Thu Feb 4 16:02:23 CST 2021
Module: vkd3d
Branch: master
Commit: 0da1401d3db2afbef4308fd7c17043dbb47c368c
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=0da1401d3db2afbef4308fd7c17043dbb47c368c
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Tue Feb 2 16:11:13 2021 -0600
vkd3d-shader: Move hlsl_message() and hlsl_report_message() to hlsl.c.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d-shader/hlsl.c | 16 ++++++++++++++++
libs/vkd3d-shader/hlsl.y | 16 ----------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c
index ebd74e6..011cdaf 100644
--- a/libs/vkd3d-shader/hlsl.c
+++ b/libs/vkd3d-shader/hlsl.c
@@ -20,6 +20,22 @@
#include "hlsl.h"
#include <stdio.h>
+void hlsl_message(const char *fmt, ...)
+{
+ /* FIXME */
+}
+
+void hlsl_report_message(const struct source_location loc,
+ enum hlsl_error_level level, const char *fmt, ...)
+{
+ /* FIXME */
+
+ if (level == HLSL_LEVEL_ERROR)
+ set_parse_status(&hlsl_ctx.status, PARSE_ERR);
+ else if (level == HLSL_LEVEL_WARNING)
+ set_parse_status(&hlsl_ctx.status, PARSE_WARN);
+}
+
BOOL add_declaration(struct hlsl_scope *scope, struct hlsl_ir_var *decl, BOOL local_var)
{
struct hlsl_ir_var *var;
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y
index ed83207..e1ba7c9 100644
--- a/libs/vkd3d-shader/hlsl.y
+++ b/libs/vkd3d-shader/hlsl.y
@@ -30,22 +30,6 @@ struct hlsl_parse_ctx hlsl_ctx;
struct YYLTYPE;
static struct source_location get_location(const struct YYLTYPE *l);
-void hlsl_message(const char *fmt, ...)
-{
- /* FIXME */
-}
-
-void hlsl_report_message(const struct source_location loc,
- enum hlsl_error_level level, const char *fmt, ...)
-{
- /* FIXME */
-
- if (level == HLSL_LEVEL_ERROR)
- set_parse_status(&hlsl_ctx.status, PARSE_ERR);
- else if (level == HLSL_LEVEL_WARNING)
- set_parse_status(&hlsl_ctx.status, PARSE_WARN);
-}
-
static void hlsl_error(const char *s)
{
const struct source_location loc =
More information about the wine-cvs
mailing list