]> mj.ucw.cz Git - eval.git/blobdiff - judge/judge.h
MO-P: Bugfix
[eval.git] / judge / judge.h
index 4290b4492001d555301dc93b6d3374fdaaf12e1f..fa63dbf81e26cbea404dd058a071a76563d6a5bd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     A simple library for MO-Eval judges
+ *     A simple library for Moe judges
  *
  *     (c) 2007 Martin Mares <mj@ucw.cz>
  */
@@ -16,7 +16,7 @@
 
 /* utils.c: Utility functions */
 
-void die(char *msg, ...) NONRET;
+void die(char *msg, ...) NONRET;               /* Dies with exit code 2 (judge error) */
 void *xmalloc(size_t size);
 void *xrealloc(void *p, size_t size);
 
@@ -78,7 +78,7 @@ enum tokenizer_flags {
 
 void tok_init(struct tokenizer *t, struct stream *s);
 void tok_cleanup(struct tokenizer *t);
-void tok_err(struct tokenizer *t, char *msg) NONRET;
+void tok_err(struct tokenizer *t, char *msg, ...) NONRET;
 char *get_token(struct tokenizer *t);
 
 // Parsing functions
@@ -96,3 +96,4 @@ long int get_long(struct tokenizer *t);
 unsigned long int get_ulong(struct tokenizer *t);
 double get_double(struct tokenizer *t);
 long double get_long_double(struct tokenizer *t);
+void get_nl(struct tokenizer *t);