aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/error.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-23 22:11:35 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3 (patch)
tree8f5f1e7be38d98c9e354a67bdf7b94a3e35c3a60 /include/serd/error.h
parent3b89559e4c08202bee228e25ea42a4371e333c9b (diff)
downloadserd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.tar.gz
serd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.tar.bz2
serd-38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3.zip
Add SerdCaret
Diffstat (limited to 'include/serd/error.h')
-rw-r--r--include/serd/error.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/serd/error.h b/include/serd/error.h
index 7be1d372..7495ce3b 100644
--- a/include/serd/error.h
+++ b/include/serd/error.h
@@ -5,6 +5,7 @@
#define SERD_ERROR_H
#include "serd/attributes.h"
+#include "serd/caret.h"
#include "serd/status.h"
#include <stdarg.h>
@@ -19,12 +20,10 @@ SERD_BEGIN_DECLS
/// An error description
typedef struct {
- SerdStatus status; ///< Error code
- const char* SERD_NULLABLE filename; ///< File with error
- unsigned line; ///< Line in file with error or 0
- unsigned col; ///< Column in file with error
- const char* SERD_NONNULL fmt; ///< Printf-style format string
- va_list* SERD_NONNULL args; ///< Arguments for fmt
+ SerdStatus status; ///< Error code
+ const SerdCaret* SERD_NULLABLE caret; ///< File origin of error
+ const char* SERD_NONNULL fmt; ///< Printf-style format string
+ va_list* SERD_NONNULL args; ///< Arguments for fmt
} SerdError;
/**