mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
cvs -d stefanf@ncvs.FreeBSD.org:/home/ncvs
This commit is contained in:
parent
d62e8d4c7c
commit
643c91f9ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149012
@ -30,6 +30,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
extern char *arith_buf, *arith_startbuf;
|
||||
|
||||
int arith(char *);
|
||||
int arith_assign(char *, arith_t);
|
||||
void arith_lex_reset(void);
|
||||
int expcmd(int, char **);
|
||||
|
@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "arith.h"
|
||||
#include "shell.h"
|
||||
#include "var.h"
|
||||
%}
|
||||
@ -261,12 +262,11 @@ expr:
|
||||
#define lstrlen(var) (3 + (2 + CHAR_BIT * sizeof((var))) / 3)
|
||||
|
||||
char *arith_buf, *arith_startbuf;
|
||||
extern void arith_lex_reset();
|
||||
|
||||
int yylex(void);
|
||||
int yyparse(void);
|
||||
|
||||
int
|
||||
static int
|
||||
arith_assign(char *name, arith_t value)
|
||||
{
|
||||
char *str;
|
||||
@ -294,7 +294,7 @@ arith(char *s)
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
yyerror(char *s)
|
||||
{
|
||||
|
||||
|
@ -42,13 +42,15 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "arith.h"
|
||||
#include "shell.h"
|
||||
#include "y.tab.h"
|
||||
#include "error.h"
|
||||
#include "memalloc.h"
|
||||
#include "var.h"
|
||||
|
||||
extern char *arith_buf, *arith_startbuf;
|
||||
int yylex(void);
|
||||
|
||||
#undef YY_INPUT
|
||||
#define YY_INPUT(buf,result,max) \
|
||||
result = (*buf = *arith_buf++) ? 1 : YY_NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user