ack/lang/cem/cemcom.ansi/skip.c
carl 750a6bc684 Better ANSI C compatibility and portability:
+ 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.
2019-02-19 00:54:23 +08:00

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;
}