aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2007-02-27 13:15:59 -0800
committerJosh Triplett <josh@freedesktop.org>2007-02-27 16:22:48 -0800
commitd4ae1cacb43461358a9b1f229f26c85c2456ff7e (patch)
tree4070abbecba4f93331ff7eb57b31d6e4e3dc3c3b /lib.h
parentUpdate the information in README about using the library. (diff)
downloadsparse-d4ae1cacb43461358a9b1f229f26c85c2456ff7e.tar.gz
sparse-d4ae1cacb43461358a9b1f229f26c85c2456ff7e.tar.bz2
sparse-d4ae1cacb43461358a9b1f229f26c85c2456ff7e.zip
Introduce expression_error
Add a new function expression_error, which works just like sparse_error but also installs a bad_ctype into the expression. Signed-Off-By: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 6c5d4d2..e9632af 100644
--- a/lib.h
+++ b/lib.h
@@ -76,6 +76,7 @@ extern void info(struct position, const char *, ...) FORMAT_ATTR(2);
extern void warning(struct position, const char *, ...) FORMAT_ATTR(2);
extern void sparse_error(struct position, const char *, ...) FORMAT_ATTR(2);
extern void error_die(struct position, const char *, ...) FORMAT_ATTR(2);
+extern void expression_error(struct expression *, const char *, ...) FORMAT_ATTR(2);
#undef FORMAT_ATTR
extern char **handle_switch(char *arg, char **next);