Provide forward declarations for yyerror and yylex.
Showing
2 changed files
with
7 additions
and
3 deletions
... | @@ -28,7 +28,8 @@ sieve_machine_t sieve_machine; | ... | @@ -28,7 +28,8 @@ sieve_machine_t sieve_machine; |
28 | int sieve_error_count; | 28 | int sieve_error_count; |
29 | 29 | ||
30 | static void branch_fixup __P((size_t start, size_t end)); | 30 | static void branch_fixup __P((size_t start, size_t end)); |
31 | 31 | int yyerror (char *s); | |
32 | int yylex (); | ||
32 | %} | 33 | %} |
33 | 34 | ||
34 | %union { | 35 | %union { |
... | @@ -509,7 +510,7 @@ string_comp (const void *item, const void *value) | ... | @@ -509,7 +510,7 @@ string_comp (const void *item, const void *value) |
509 | } | 510 | } |
510 | 511 | ||
511 | void | 512 | void |
512 | sieve_machine_begin (sieve_machine_t mach, char *file) | 513 | sieve_machine_begin (sieve_machine_t mach, const char *file) |
513 | { | 514 | { |
514 | sieve_machine = mach; | 515 | sieve_machine = mach; |
515 | sieve_error_count = 0; | 516 | sieve_error_count = 0; | ... | ... |
1 | %{ | 1 | %{ |
2 | /* GNU Mailutils -- a suite of utilities for electronic mail | 2 | /* GNU Mailutils -- a suite of utilities for electronic mail |
3 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. |
4 | 4 | ||
5 | GNU Mailutils is free software; you can redistribute it and/or modify | 5 | GNU Mailutils is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
... | @@ -21,6 +21,9 @@ | ... | @@ -21,6 +21,9 @@ |
21 | #define obstack_chunk_free free | 21 | #define obstack_chunk_free free |
22 | #include <obstack.h> | 22 | #include <obstack.h> |
23 | 23 | ||
24 | int yyerror (char *s); | ||
25 | int yylex (); | ||
26 | |||
24 | static mh_format_t format; /* Format structure being built */ | 27 | static mh_format_t format; /* Format structure being built */ |
25 | static size_t pc; /* Program counter. Poins to current | 28 | static size_t pc; /* Program counter. Poins to current |
26 | cell in format.prog */ | 29 | cell in format.prog */ | ... | ... |
-
Please register or sign in to post a comment