[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/9] grep: eliminate {COMPILE,EXECUTE}_{RET,ARGS,FCT}
From: |
Jim Meyering |
Subject: |
Re: [PATCH 5/9] grep: eliminate {COMPILE,EXECUTE}_{RET,ARGS,FCT} |
Date: |
Fri, 19 Mar 2010 15:13:24 +0100 |
Paolo Bonzini wrote:
> Modern compilers warn about type mismatches.
>
> * src/grep.c (do_execute): Write full declaration.
> * src/grep.h (COMPILE_RET, COMPILE_ARGS, COMPILE_FCT, EXECUTE_RET,
> EXECUTE_ARGS, EXECUTE_FCT): Remove.
> (compile_fp_t, execute_fp_t): Write full declaration.
> * src/search.c (GEAcompile, Gcompile, Acompile, Ecompile, EGexecute,
> Fcompile, Fexecute, Pcompile, Pexecute): Write full declaration.
...
Thank you for another welcome clean-up.
ACK, but please split lines longer than 80 columns.
> -static EXECUTE_RET do_execute EXECUTE_ARGS
> +static size_t
> +do_execute (char const *buf, size_t size, size_t *match_size, char const
> *start_ptr)
...
> -EXECUTE_FCT(EGexecute)
> +static size_t
> +EGexecute (char const *buf, size_t size, size_t *match_size, char const
> *start_ptr)
...
> -EXECUTE_FCT(Fexecute)
> +static size_t
> +Fexecute (char const *buf, size_t size, size_t *match_size, char const
> *start_ptr)
...
> -EXECUTE_FCT(Pexecute)
> +static size_t
> +Pexecute (char const *buf, size_t size, size_t *match_size, char const
> *start_ptr)
- [PATCH 1/9] grep: remove getpagesize.h, (continued)
- [PATCH 1/9] grep: remove getpagesize.h, Paolo Bonzini, 2010/03/19
- [PATCH 2/9] grep: remove one #ifdef, Paolo Bonzini, 2010/03/19
- [PATCH 3/9] grep: change struct matcher termination, Paolo Bonzini, 2010/03/19
- [PATCH 4/9] grep: make egrep/fgrep use struct matcher, Paolo Bonzini, 2010/03/19
- [PATCH 5/9] grep: eliminate {COMPILE,EXECUTE}_{RET,ARGS,FCT}, Paolo Bonzini, 2010/03/19
- Re: [PATCH 5/9] grep: eliminate {COMPILE,EXECUTE}_{RET,ARGS,FCT},
Jim Meyering <=
- [PATCH 6/9] grep: remove one #ifdef, Paolo Bonzini, 2010/03/19
- [PATCH 8/9] grep: prepare for libification of *search.c, Paolo Bonzini, 2010/03/19
- [PATCH 9/9] grep: libify *search.c, Paolo Bonzini, 2010/03/19
- [PATCH 7/9] grep: split search.c, Paolo Bonzini, 2010/03/19