diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-06-06 13:06:12 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-06-06 13:06:12 +0000 |
commit | 81e2cf03ac62c29c6bb365c31b9229aa3b4deff8 (patch) | |
tree | a0680a82219899445723cc36b058d9c4d263e17f /ext/standard/levenshtein.c | |
parent | 3bfd50f4f1dedb756c4e45566e2f8e172ab435ec (diff) | |
download | php-git-81e2cf03ac62c29c6bb365c31b9229aa3b4deff8.tar.gz |
Fix folding and clean up some extensions
Diffstat (limited to 'ext/standard/levenshtein.c')
-rw-r--r-- | ext/standard/levenshtein.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/ext/standard/levenshtein.c b/ext/standard/levenshtein.c index d703617da3..e305f8070f 100644 --- a/ext/standard/levenshtein.c +++ b/ext/standard/levenshtein.c @@ -25,7 +25,8 @@ #define LEVENSHTEIN_MAX_LENTH 255 -/* reference implementation, only optimized for memory usage, not speed */ +/* {{{ reference_levdist + * reference implementation, only optimized for memory usage, not speed */ static int reference_levdist(const char *s1, int l1, const char *s2, int l2, int cost_ins, int cost_rep, int cost_del ) @@ -72,8 +73,10 @@ static int reference_levdist(const char *s1, int l1, return c0; } +/* }}} */ - +/* {{{ custom_levdist + */ static int custom_levdist(char *str1,char *str2,char *callback_name) { php_error(E_WARNING,"the general Levenshtein support is not there yet"); @@ -81,7 +84,7 @@ static int custom_levdist(char *str1,char *str2,char *callback_name) return -1; } - +/* }}} */ /* {{{ proto int levenshtein(string str1, string str2) Calculate Levenshtein distance between two strings */ @@ -148,3 +151,12 @@ PHP_FUNCTION(levenshtein) RETURN_LONG(distance); } /* }}} */ + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: sw=4 ts=4 tw=78 fdm=marker + * vim<600: sw=4 ts=4 tw=78 + */ |