750a6bc684
+ Addition of function prototypes and include files. + Change function definitions to ANSI C style. + Initial support for CMake + Scripts to generate compiler header is now sed based.
29 lines
518 B
C
29 lines
518 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"
|
|
#include "skip.h"
|
|
|
|
|
|
int SkipToNewLine(void)
|
|
{
|
|
register int ch;
|
|
register int garbage = 0;
|
|
|
|
while ((ch = GetChar()) != '\n')
|
|
{
|
|
if (!is_wsp(ch))
|
|
garbage = 1;
|
|
}
|
|
++LineNumber;
|
|
return garbage;
|
|
}
|