Added skipline method used for shader parsing
This commit is contained in:
parent
e781942783
commit
c7d9316e27
2 changed files with 13 additions and 2 deletions
13
common.c
13
common.c
|
@ -1132,8 +1132,19 @@ skipwhite:
|
|||
return data;
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
COM_SkipLine
|
||||
|
||||
|
||||
PENTA:
|
||||
Skip until the next newline
|
||||
==============
|
||||
*/
|
||||
char *COM_SkipLine(char *data) {
|
||||
while (*data && *data != '\n')
|
||||
data++;
|
||||
return data;
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
|
|
2
common.h
2
common.h
|
@ -142,7 +142,7 @@ extern char com_token[1024];
|
|||
extern qboolean com_eof;
|
||||
|
||||
char *COM_Parse (char *data);
|
||||
|
||||
char *COM_SkipLine(char *data);
|
||||
|
||||
extern int com_argc;
|
||||
extern char **com_argv;
|
||||
|
|
Loading…
Reference in a new issue