]> mj.ucw.cz Git - moe.git/blobdiff - judge/judge.h
Added Milan's FPC patch (abort on runtime error)
[moe.git] / judge / judge.h
index 4290b4492001d555301dc93b6d3374fdaaf12e1f..ac9d7e4f4aac980e80df34509579206fd63bf59f 100644 (file)
@@ -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);