X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdicttest.c;h=b74b795daa4f5bc7df4b869af5de38a7d72aebe3;hb=cfecd7d576e8de7cfa19751b8ec7eebf265b2346;hp=8d8f861f19ef8c8250a95dd522617a0eb15cb2e3;hpb=02ac0a77d27046442a63371dbf37ee5c0c452dee;p=idzebra-moved-to-github.git diff --git a/dict/dicttest.c b/dict/dicttest.c index 8d8f861..b74b795 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dicttest.c,v $ - * Revision 1.8 1994-09-22 10:43:44 adam + * Revision 1.9 1994-09-22 14:43:56 adam + * First functional version of lookup with error correction. A 'range' + * specified the maximum number of insertions+deletions+substitutions. + * + * Revision 1.8 1994/09/22 10:43:44 adam * Two versions of depend. Type 1 is the tail-type compatible with * all make programs. Type 2 is the GNU make with include facility. * Type 2 is default. depend rule chooses current rule. @@ -191,7 +195,7 @@ int main (int argc, char **argv) char *cp; cp = dict_lookup (dict, ipf_ptr); - if (cp) + if (cp && *cp) no_of_hits++; else no_of_misses++;