From: Martin Mares Date: Sun, 24 Aug 2008 21:03:34 +0000 (+0200) Subject: Document various error reporting functions. X-Git-Tag: python-dummy-working~142 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4629c28f968371e218ee1e89c957a93e94864fbd;p=moe.git Document various error reporting functions. --- diff --git a/box/box.c b/box/box.c index e3dadea..1aa3084 100644 --- a/box/box.c +++ b/box/box.c @@ -133,6 +133,7 @@ flush_line(void) partial_line = 0; } +/* Report an error of the sandbox itself */ static void NONRET __attribute__((format(printf,1,2))) die(char *msg, ...) { @@ -147,6 +148,7 @@ die(char *msg, ...) box_exit(2); } +/* Report an error of the program inside the sandbox */ static void NONRET __attribute__((format(printf,1,2))) err(char *msg, ...) { @@ -166,6 +168,7 @@ err(char *msg, ...) box_exit(1); } +/* Write a message, but only if in verbose mode */ static void __attribute__((format(printf,1,2))) msg(char *msg, ...) {