Skip to content

Commit b55e3d6

Browse files
committed
Upstream 6.2
1 parent 2d6b8f5 commit b55e3d6

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: Makefile,v 1.14 2013/08/18 22:06:44 miod Exp $
1+
# $OpenBSD: Makefile,v 1.16 2017/07/10 21:30:37 espie Exp $
22

33
PROG= awk
44
SRCS= ytab.c lex.c b.c main.c parse.c proctab.c tran.c lib.c run.c
@@ -9,9 +9,9 @@ CFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
99
HOSTCFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
1010

1111
ytab.c ytab.h: awkgram.y
12-
${YACC} -d ${.CURDIR}/awkgram.y
13-
mv y.tab.c ytab.c
14-
mv y.tab.h ytab.h
12+
${YACC} -o ytab.c -d ${.CURDIR}/awkgram.y
13+
14+
BUILDFIRST = ytab.h
1515

1616
proctab.c: maketab
1717
./maketab >proctab.c

lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: lib.c,v 1.22 2016/04/12 19:43:38 millert Exp $ */
1+
/* $OpenBSD: lib.c,v 1.23 2017/09/25 17:36:35 krw Exp $ */
22
/****************************************************************
33
Copyright (C) Lucent Technologies 1997
44
All Rights Reserved
@@ -592,7 +592,7 @@ void bcheck2(int n, int c1, int c2)
592592
fprintf(stderr, "\t%d extra %c's\n", -n, c2);
593593
}
594594

595-
void FATAL(const char *fmt, ...)
595+
__dead void FATAL(const char *fmt, ...)
596596
{
597597
extern char *cmdname;
598598
va_list varg;

proto.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: proto.h,v 1.9 2011/09/28 19:27:18 millert Exp $ */
1+
/* $OpenBSD: proto.h,v 1.10 2017/09/25 17:36:35 krw Exp $ */
22
/****************************************************************
33
Copyright (C) Lucent Technologies 1997
44
All Rights Reserved
@@ -133,7 +133,7 @@ extern void fpecatch(int);
133133
extern void bracecheck(void);
134134
extern void bcheck2(int, int, int);
135135
extern void SYNTAX(const char *, ...);
136-
extern void FATAL(const char *, ...);
136+
extern __dead void FATAL(const char *, ...);
137137
extern void WARNING(const char *, ...);
138138
extern void error(void);
139139
extern void eprint(void);

run.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: run.c,v 1.40 2015/12/16 19:44:42 tb Exp $ */
1+
/* $OpenBSD: run.c,v 1.41 2017/09/15 14:19:56 ajacoutot Exp $ */
22
/****************************************************************
33
Copyright (C) Lucent Technologies 1997
44
All Rights Reserved
@@ -1545,7 +1545,7 @@ Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg lis
15451545
break;
15461546
case FXOR:
15471547
if (nextarg == 0) {
1548-
WARNING("or requires two arguments; returning 0");
1548+
WARNING("xor requires two arguments; returning 0");
15491549
u = 0;
15501550
break;
15511551
}
@@ -1556,7 +1556,7 @@ Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg lis
15561556
break;
15571557
case FLSHIFT:
15581558
if (nextarg == 0) {
1559-
WARNING("or requires two arguments; returning 0");
1559+
WARNING("lshift requires two arguments; returning 0");
15601560
u = 0;
15611561
break;
15621562
}
@@ -1567,7 +1567,7 @@ Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg lis
15671567
break;
15681568
case FRSHIFT:
15691569
if (nextarg == 0) {
1570-
WARNING("or requires two arguments; returning 0");
1570+
WARNING("rshift requires two arguments; returning 0");
15711571
u = 0;
15721572
break;
15731573
}

0 commit comments

Comments
 (0)