Commit 5b991f92 5b991f927f9d8efa8e1b442db7ca8fdfd60c2bb3 by Sergey Poznyakoff

Provide forward declarations for yyerror and yylex.

1 parent dbd6563f
......@@ -28,7 +28,8 @@ sieve_machine_t sieve_machine;
int sieve_error_count;
static void branch_fixup __P((size_t start, size_t end));
int yyerror (char *s);
int yylex ();
%}
%union {
......@@ -509,7 +510,7 @@ string_comp (const void *item, const void *value)
}
void
sieve_machine_begin (sieve_machine_t mach, char *file)
sieve_machine_begin (sieve_machine_t mach, const char *file)
{
sieve_machine = mach;
sieve_error_count = 0;
......
%{
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -20,7 +20,10 @@
#define obstack_chunk_alloc malloc
#define obstack_chunk_free free
#include <obstack.h>
int yyerror (char *s);
int yylex ();
static mh_format_t format; /* Format structure being built */
static size_t pc; /* Program counter. Poins to current
cell in format.prog */
......