cvs: /php4/ext/standard soundex.c
| From: | Danny Heijl | Date: | Wed, 28 Jul 1999 11:26:59 +0000 |
| Subject: | cvs: /php4/ext/standard soundex.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2898@lists.php.net to get a copy of this message | ||
danny Wed Jul 28 07:26:59 1999 EDT
Modified files:
/php4/ext/standard soundex.c
Log:
Make it compile again
Index: php4/ext/standard/soundex.c
diff -u php4/ext/standard/soundex.c:1.4 php4/ext/standard/soundex.c:1.5
--- php4/ext/standard/soundex.c:1.4 Wed Jul 28 03:04:26 1999
+++ php4/ext/standard/soundex.c Wed Jul 28 07:26:58 1999
@@ -15,7 +15,7 @@
| Author: Bjørn Borud - Guardian Networks AS <borud@guardian.no> |
+----------------------------------------------------------------------+
*/
-/* $Id: soundex.c,v 1.4 1999/07/28 07:04:26 verdy_p Exp $ */
+/* $Id: soundex.c,v 1.5 1999/07/28 11:26:58 danny Exp $ */
#include "php.h"
#include <stdlib.h>
@@ -29,7 +29,7 @@
PHP_FUNCTION(soundex)
{
char *somestring;
- int i, small, len;
+ int i, small, len, code, last;
pval *arg;
char soundex[4 + 1];
@@ -72,6 +72,7 @@
len = arg->value.str.len;
/* build soundex string */
+ last = -1;
for (i = 0, small = 0; i < len && small < 4; i++) {
/* convert chars to upper case and strip non-letter chars */
/* BUG: should also map here accented letters used in non */