summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/expr.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-07-14 02:03:23 +0000
committerjmallett <jmallett@FreeBSD.org>2002-07-14 02:03:23 +0000
commit868a694e347d13a4500a3272a1414e82d5284687 (patch)
tree3ed9536a6a94ca57addde951557b8067c02db7bf /usr.bin/m4/expr.c
parent1c19cb9624004f81e18e1fe4c78ba284d594e4ab (diff)
downloadFreeBSD-src-868a694e347d13a4500a3272a1414e82d5284687.zip
FreeBSD-src-868a694e347d13a4500a3272a1414e82d5284687.tar.gz
Functions declared as <type> <identifier>(<nil>) should be declared as
<type> <identifier>(<void-type>) in ANSI C.
Diffstat (limited to 'usr.bin/m4/expr.c')
-rw-r--r--usr.bin/m4/expr.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.bin/m4/expr.c b/usr.bin/m4/expr.c
index de5e860..98f0a3b 100644
--- a/usr.bin/m4/expr.c
+++ b/usr.bin/m4/expr.c
@@ -168,7 +168,7 @@ expr(const char *expbuf)
* query : lor | lor '?' query ':' query
*/
static int
-query()
+query(void)
{
int result, true_val, false_val;
@@ -190,7 +190,7 @@ query()
* lor : land { '||' land }
*/
static int
-lor()
+lor(void)
{
int c, vl, vr;
@@ -210,7 +210,7 @@ lor()
* land : not { '&&' not }
*/
static int
-land()
+land(void)
{
int c, vl, vr;
@@ -230,7 +230,7 @@ land()
* not : eqrel | '!' not
*/
static int
-not()
+not(void)
{
int val, c;
@@ -250,7 +250,7 @@ not()
* eqrel : shift { eqrelop shift }
*/
static int
-eqrel()
+eqrel(void)
{
int vl, vr, op;
@@ -288,7 +288,7 @@ eqrel()
* shift : primary { shop primary }
*/
static int
-shift()
+shift(void)
{
int vl, vr, c;
@@ -312,7 +312,7 @@ shift()
* primary : term { addop term }
*/
static int
-primary()
+primary(void)
{
int c, vl, vr;
@@ -334,7 +334,7 @@ primary()
* <term> := <exp> { <mulop> <exp> }
*/
static int
-term()
+term(void)
{
int c, vl, vr;
@@ -368,7 +368,7 @@ term()
* <term> := <unary> { <expop> <unary> }
*/
static int
-exp()
+exp(void)
{
int c, vl, vr, n;
@@ -397,7 +397,7 @@ exp()
* unary : factor | unop unary
*/
static int
-unary()
+unary(void)
{
int val, c;
@@ -422,7 +422,7 @@ unary()
* factor : constant | '(' query ')'
*/
static int
-factor()
+factor(void)
{
int val;
@@ -442,7 +442,7 @@ factor()
* Note: constant() handles multi-byte constants
*/
static int
-constant()
+constant(void)
{
int i;
int value;
@@ -503,7 +503,7 @@ constant()
* num : digit | num digit
*/
static int
-num()
+num(void)
{
int rval, c, base;
int ndig;
@@ -561,7 +561,7 @@ bad_digit:
* eqrel : '=' | '==' | '!=' | '<' | '>' | '<=' | '>='
*/
static int
-geteqrel()
+geteqrel(void)
{
int c1, c2;
@@ -605,7 +605,7 @@ geteqrel()
* Skip over any white space and return terminating char.
*/
static int
-skipws()
+skipws(void)
{
int c;
OpenPOWER on IntegriCloud