X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.cc;h=53b65bb93064f38d1291fdbc909756c59630c89b;hb=4dd38ecf0a038875edd46bdbf5dcbb7264378c45;hp=2a6a4f3c14a3613e0e7877524cfbbae2b7c73d9e;hpb=c564ca3db05b1497b68c77ddceeb632d1e85a1b0;p=selector.git diff --git a/selector.cc b/selector.cc index 2a6a4f3..53b65bb 100644 --- a/selector.cc +++ b/selector.cc @@ -58,6 +58,24 @@ int remove_duplicates = 0; ////////////////////////////////////////////////////////////////////// +// int test_and_set_hash(char *s, char **hashed, int hash_size) { + // uint32_t code = 0, mask; + // int result; + + // for(int k = 0; s[k]; k++) { + // code += ((uint32_t) (s[k])) << (8 * k%4); + // } + + // code = code%hash_table_size; + + // if(hashed[code]) { + // } else { + + // } +// } + +////////////////////////////////////////////////////////////////////// + // This looks severely Linux-only ... void inject_into_tty_buffer(char *line) {