Re: cvs: php4 /ext/standard levenshtein.c /main main.c
| From: | Sascha Schumann | Date: | Tue, 01 Aug 2000 09:46:16 +0000 |
| Subject: | Re: cvs: php4 /ext/standard levenshtein.c /main main.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-1004@lists.php.net to get a copy of this message | ||
On Tue, 1 Aug 2000, Hartmut Holzgraefe wrote:
> hholzgra Tue Aug 1 00:57:20 2000 EDT
>
> Modified files:
> /php4/main main.c
> /php4/ext/standard levenshtein.c
> Log:
> "undefined function" error message will now suggest similar named
> functions as jikes compiler for java does (typo protection)
>
> Index: php4/ext/standard/levenshtein.c
> diff -u php4/ext/standard/levenshtein.c:1.10 php4/ext/standard/levenshtein.c:1.11
> --- php4/ext/standard/levenshtein.c:1.10 Fri Jun 16 11:46:57 2000
> +++ php4/ext/standard/levenshtein.c Tue Aug 1 00:57:19 2000
> @@ -15,7 +15,7 @@
> | Author: Hartmut Holzgraefe <hartmut@six.de> |
> +----------------------------------------------------------------------+
> */
> -/* $Id: levenshtein.c,v 1.10 2000/06/16 18:46:57 hholzgra Exp $ */
> +/* $Id: levenshtein.c,v 1.11 2000/08/01 07:57:19 hholzgra Exp $ */
>
> #include "php.h"
> #include <stdlib.h>
> @@ -24,7 +24,7 @@
> #include "php_string.h"
>
> /* faster, but obfuscated, all operations have a cost of 1 */
> -static int fastest_levdist(const char *s1, const char *s2)
> +int fastest_levdist(const char *s1, const char *s2)
If it gets exported, it should be namespace protected.
- Sascha