28 lines
492 B
C
28 lines
492 B
C
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
/* $Id$ */
|
|
/* PREPROCESSOR: INPUT SKIP FUNCTIONS */
|
|
|
|
#include "parameters.h"
|
|
#include "arith.h"
|
|
#include "LLlex.h"
|
|
#include "class.h"
|
|
#include "input.h"
|
|
|
|
|
|
SkipToNewLine()
|
|
{
|
|
register int ch;
|
|
register int garbage = 0;
|
|
|
|
while ((ch = GetChar()) != '\n')
|
|
{
|
|
if (!is_wsp(ch))
|
|
garbage = 1;
|
|
}
|
|
++LineNumber;
|
|
return garbage;
|
|
}
|