X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdelete.c;h=cb9d64dd901825cbc63d35caccbda140ba6ba284;hb=067b55382bc9916b3f7dcd473512c703d4de4a5d;hp=e5be22594748994e91a49c7cc5fb4204e416f713;hpb=1209da2618a90d6a811311becdbe2126ffdaa0de;p=idzebra-moved-to-github.git diff --git a/dict/delete.c b/dict/delete.c index e5be225..cb9d64d 100644 --- a/dict/delete.c +++ b/dict/delete.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: delete.c,v $ - * Revision 1.3 1995-12-07 11:48:55 adam + * Revision 1.4 1996-02-02 13:43:50 adam + * The public functions simply use char instead of Dict_char to represent + * search strings. Dict_char is used internally only. + * + * Revision 1.3 1995/12/07 11:48:55 adam * Insert operation obeys DICT_type = 1 (slack in page). * Function dict_open exists if page size or magic aren't right. * @@ -108,9 +112,9 @@ static int dict_del (Dict dict, const Dict_char *str) return 0; } -int dict_delete (Dict dict, const Dict_char *p) +int dict_delete (Dict dict, const char *p) { if (dict->head.last == 1) return 0; - return dict_del (dict, p); + return dict_del (dict, (const Dict_char*) p); }