X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=judge%2Fjudge.h;h=ac9d7e4f4aac980e80df34509579206fd63bf59f;hb=878693c0f1a0a4cee1ae0478e762b4c57dc44df3;hp=4290b4492001d555301dc93b6d3374fdaaf12e1f;hpb=a3cb81d88eb514af15ba6bd5279a1549c0ba5266;p=moe.git diff --git a/judge/judge.h b/judge/judge.h index 4290b44..ac9d7e4 100644 --- a/judge/judge.h +++ b/judge/judge.h @@ -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);