aboutsummaryrefslogtreecommitdiff
path: root/5.20/err.c
blob: 005fdadc8fd959497c5556ee423438522f2b6f62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#include "err.h"
#include "token.h"

void err(char *s)
{
	printf("eror: %s\n", s);
	exit(1);
}

void warn(char *s)
{
	printf("warn: %s\n", s);
	prevtoken = YES;
}