cvs -d stefanf@ncvs.FreeBSD.org:/home/ncvs

This commit is contained in:
Stefan Farfeleder 2005-08-13 07:54:23 +00:00
parent d62e8d4c7c
commit 643c91f9ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149012
3 changed files with 9 additions and 5 deletions

View File

@ -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 **);

View File

@ -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)
{

View File

@ -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;