115920Speter/*-
215920Speter * Copyright (c) 1995
315920Speter *      The Regents of the University of California.  All rights reserved.
415920Speter *
515920Speter * Redistribution and use in source and binary forms, with or without
615920Speter * modification, are permitted provided that the following conditions
715920Speter * are met:
815920Speter * 1. Redistributions of source code must retain the above copyright
915920Speter *    notice, this list of conditions and the following disclaimer.
1015920Speter * 2. Redistributions in binary form must reproduce the above copyright
1115920Speter *    notice, this list of conditions and the following disclaimer in the
1215920Speter *    documentation and/or other materials provided with the distribution.
1315920Speter * 4. Neither the name of the University nor the names of its contributors
1415920Speter *    may be used to endorse or promote products derived from this software
1515920Speter *    without specific prior written permission.
1615920Speter *
1715920Speter * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1815920Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1915920Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2015920Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2115920Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2215920Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2315920Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2415920Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2515920Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2615920Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2715920Speter * SUCH DAMAGE.
2815920Speter *
2915920Speter *	@(#)arith.h	1.1 (Berkeley) 5/4/95
3050471Speter * $FreeBSD$
3115920Speter */
3215920Speter
33178625Sstefanf#include "shell.h"
34178625Sstefanf
35178625Sstefanf#define DIGITS(var) (3 + (2 + CHAR_BIT * sizeof((var))) / 3)
36178625Sstefanf
37200956Sjillesarith_t arith(const char *);
38149012Sstefanfvoid arith_lex_reset(void);
39