diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:30:50 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:30:50 +0000 |
commit | 5b991f927f9d8efa8e1b442db7ca8fdfd60c2bb3 (patch) | |
tree | 9d1fd873be8f860087c41b1d21c86d5b98e22d9e | |
parent | dbd6563f43b2efad6079c4fb53cedd745a6c926c (diff) | |
download | mailutils-5b991f927f9d8efa8e1b442db7ca8fdfd60c2bb3.tar.gz mailutils-5b991f927f9d8efa8e1b442db7ca8fdfd60c2bb3.tar.bz2 |
Provide forward declarations for yyerror and yylex.
-rw-r--r-- | libsieve/sieve.y | 5 | ||||
-rw-r--r-- | mh/mh_fmtgram.y | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libsieve/sieve.y b/libsieve/sieve.y index 65ce792ae..59460c01c 100644 --- a/libsieve/sieve.y +++ b/libsieve/sieve.y @@ -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; diff --git a/mh/mh_fmtgram.y b/mh/mh_fmtgram.y index 7331bf617..19fb11677 100644 --- a/mh/mh_fmtgram.y +++ b/mh/mh_fmtgram.y @@ -1,6 +1,6 @@ %{ /* 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 */ |