From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 14:32:03 +0000 (+0100) Subject: pragma line(lineno) - sets the linenumber for the line after the pragma X-Git-Tag: 0.1.9~404^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5dbfacf2ff71fc748f0201ee001581e817afc0a;p=xonotic%2Fgmqcc.git pragma line(lineno) - sets the linenumber for the line after the pragma --- diff --git a/lexer.c b/lexer.c index ecda7f7..872df8c 100644 --- a/lexer.c +++ b/lexer.c @@ -414,6 +414,9 @@ static bool lex_try_pragma(lex_file *lex) lex->name = util_strdup(param); vec_push(lex_filenames, lex->name); } + else if (!strcmp(command, "line")) { + line = strtol(param, NULL, 0)-1; + } else goto unroll;