/* Generated by re2c */
#line 1 "conditions/condition_05_cs.re"
// re2c $INPUT -o $OUTPUT -cs
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define	BSIZE	8192

typedef struct Scanner
{
	FILE			*fp;
	unsigned char	*cur, *tok, *lim, *eof;
	unsigned char 	buffer[BSIZE];
} Scanner;

int fill(Scanner *s, int len)
{
	if (!len)
	{
		s->cur = s->tok = s->lim = s->buffer;
		s->eof = 0;
	}
	if (!s->eof)
	{
		int got, cnt = s->tok - s->buffer;

		if (cnt > 0)
		{
			memcpy(s->buffer, s->tok, s->lim - s->tok);
			s->tok -= cnt;
			s->cur -= cnt;
			s->lim -= cnt;
		}
		cnt = BSIZE - cnt;
		if ((got = fread(s->lim, 1, cnt, s->fp)) != cnt)
		{
			s->eof = &s->lim[got];
		}
		s->lim += got;
	}
	else if (s->cur + len > s->eof)
	{
		return 0; /* not enough input data */
	}
	return -1;
}

char scan(Scanner *s)
{
	int cond = 1;
	
	fill(s, 0);

	for(;;)
	{
		s->tok = s->cur;

#line 60 "conditions/condition_05_cs.c"
		{
			unsigned char yych;
			if (cond < 1) goto yyc_normal;
			else goto yyc_comment;
/* *********************************** */
yyc_normal:
			if ((s->lim - s->cur) < 2) { if(fill(s, 2) >= 0) break; }
			yych = *s->cur;
			if (yych == '/') goto yy2;
			++s->cur;
yy1:
#line 75 "conditions/condition_05_cs.re"
			{
				fputc(*s->tok, stdout);
				continue;
			}
#line 77 "conditions/condition_05_cs.c"
yy2:
			yych = *++s->cur;
			if (yych != '*') goto yy1;
			++s->cur;
#line 71 "conditions/condition_05_cs.re"
			{
				goto yyc_comment;
			}
#line 86 "conditions/condition_05_cs.c"
/* *********************************** */
yyc_comment:
			if ((s->lim - s->cur) < 2) { if(fill(s, 2) >= 0) break; }
			yych = *s->cur;
			if (yych == '*') goto yy5;
			++s->cur;
yy4:
#line 84 "conditions/condition_05_cs.re"
			{
				goto yyc_comment;
			}
#line 98 "conditions/condition_05_cs.c"
yy5:
			yych = *++s->cur;
			if (yych != '/') goto yy4;
			++s->cur;
#line 80 "conditions/condition_05_cs.re"
			{
				continue;
			}
#line 107 "conditions/condition_05_cs.c"
		}
#line 88 "conditions/condition_05_cs.re"

	}
}

int main(int argc, char **argv)
{
	Scanner in;
	char c;

	if (argc != 2)
	{
		fprintf(stderr, "%s <file>\n", argv[0]);
		return 1;;
	}

	memset((char*) &in, 0, sizeof(in));

	if (!strcmp(argv[1], "-"))
	{
		in.fp = stdin;
	}
	else if ((in.fp = fopen(argv[1], "r")) == NULL)
	{
		fprintf(stderr, "Cannot open file '%s'\n", argv[1]);
		return 1;
	}

	scan(&in);

	if (in.fp != stdin)
	{
		fclose(in.fp);
	}
	return 0;
}
conditions/condition_05_cs.re:56:0: warning: condition numbers may change, use `conditions` block to generate reliable condition identifiers [-Wcondition-order]
