cleaning comments
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "lib11sht.h"
|
||||
|
||||
/* Internal helpers — kept private to this translation unit. */
|
||||
/* Internal helpers -- kept private to this translation unit. */
|
||||
static int uselesschar(int c);
|
||||
/* trim is public (declared in lib11sht.h) */
|
||||
static void asciify(const char *src, char *dest, size_t dest_size);
|
||||
@@ -111,7 +111,7 @@ static float shit11(char *s1, char *s2)
|
||||
return 0.0; /* one empty == no similarity */
|
||||
|
||||
/* Defensive cap: refuse to allocate too-large VLA. Bounds the stack
|
||||
* matrix at LEVN_SBUFF × LEVN_SBUFF × sizeof(int) = ~256 KB worst case. */
|
||||
* matrix at LEVN_SBUFF * LEVN_SBUFF * sizeof(int) = ~256 KB worst case. */
|
||||
if(len1 >= LEVN_SBUFF || len2 >= LEVN_SBUFF)
|
||||
return 0.0; /* treat as "completely dissimilar" */
|
||||
|
||||
@@ -218,7 +218,7 @@ static void asciify(const char *src, char *dest, size_t dest_size)
|
||||
"AEIOUAEIOUAEIOUAEIOUAEIOU"
|
||||
"aeiouaeiouaeiouaeiouaeiou"
|
||||
"aoCcNn123"
|
||||
" "; /* NBSP → space */
|
||||
" "; /* NBSP -> space */
|
||||
const char *translit[] = {
|
||||
"Á","É","Í","Ó","Ú", "À","È","Ì","Ò","Ù",
|
||||
"Ã","Ẽ","Ĩ","Õ","Ũ", "Â","Ê","Î","Ô","Û",
|
||||
|
||||
Reference in New Issue
Block a user