projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for ANSI C
[unix-history]
/
usr
/
src
/
usr.bin
/
bc
/
bc.y
diff --git
a/usr/src/usr.bin/bc/bc.y
b/usr/src/usr.bin/bc/bc.y
index
d9676f5
..
598f4c8
100644
(file)
--- a/
usr/src/usr.bin/bc/bc.y
+++ b/
usr/src/usr.bin/bc/bc.y
@@
-1,5
+1,5
@@
%{
%{
-static char *sccsid = "@(#)bc.y 4.
4 (Berkeley) 87/12/12
";
+static char *sccsid = "@(#)bc.y 4.
5 (Berkeley) 88/04/24
";
int *getout();
%}
%right '='
int *getout();
%}
%right '='
@@
-18,7
+18,7
@@
static char *sccsid = "@(#)bc.y 4.4 (Berkeley) 87/12/12";
%{
#include <stdio.h>
#include <varargs.h>
%{
#include <stdio.h>
#include <varargs.h>
-
int
in;
+
FILE *
in;
char cary[1000], *cp = { cary };
char string[1000], *str = {string};
int crs = '0';
char cary[1000], *cp = { cary };
char string[1000], *str = {string};
int crs = '0';