src/error.c

changeset 149
560772519ff9
parent 111
ee4b58dfcf7f
--- a/src/error.c	Fri Jun 13 18:09:49 2025 +0200
+++ b/src/error.c	Sat Jun 14 11:40:40 2025 +0200
@@ -43,11 +43,11 @@
     putchar('\n');
 }
 
-void asc_error_(const char* file, unsigned line, char const* fmt, ...) {
+void asc_error_(const char *file, unsigned line, const char *fmt, ...) {
     asc_set_flag(asc_context.flags, ASC_FLAG_HAS_ERROR);
 
     // write to error buffer
-    CxBuffer* buf = &asc_context.error_buffer;
+    CxBuffer *buf = &asc_context.error_buffer;
     size_t bufpos = buf->pos;
     va_list args;
     va_start(args, fmt);
@@ -65,7 +65,7 @@
     return asc_test_flag(asc_context.flags, ASC_FLAG_HAS_ERROR);
 }
 
-char const* asc_get_error(void) {
+const char *asc_get_error(void) {
     // we zero-terminate the current buffer contents before providing them
     cxBufferPut(&asc_context.error_buffer, 0);
     --asc_context.error_buffer.pos;

mercurial