From 9fa42beddc5e1f469ddf276a0715f2de82f51b6b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Sep 2013 23:27:47 +0200 Subject: urlglob: improved error messages and column number on bad use Introduce a convenience macro and keep of the column better so that it can point out the offending column better. Updated test 75 accordingly. --- src/tool_urlglob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tool_urlglob.h') diff --git a/src/tool_urlglob.h b/src/tool_urlglob.h index e1e9c6384..9fa6f83b0 100644 --- a/src/tool_urlglob.h +++ b/src/tool_urlglob.h @@ -64,7 +64,8 @@ typedef struct { size_t urllen; char *glob_buffer; char beenhere; - char errormsg[80]; /* error message buffer */ + const char *error; /* error message */ + size_t pos; /* column position of error or 0 */ } URLGlob; int glob_url(URLGlob**, char*, unsigned long *, FILE *); -- cgit v1.2.3