From: Adam Dickmeiss Date: Thu, 14 Sep 1995 11:52:59 +0000 (+0000) Subject: Grep handle function parameter info is const now. X-Git-Tag: ZEBRA.1.0~756 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1dcfe532fcc0447de623e717d70c46ab553329b9;p=idzebra-moved-to-github.git Grep handle function parameter info is const now. --- diff --git a/dict/lookgrep.c b/dict/lookgrep.c index 05b8e72..2a42cb6 100644 --- a/dict/lookgrep.c +++ b/dict/lookgrep.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: lookgrep.c,v $ - * Revision 1.4 1995-01-24 16:01:02 adam + * Revision 1.5 1995-09-14 11:52:59 adam + * Grep handle function parameter info is const now. + * + * Revision 1.4 1995/01/24 16:01:02 adam * Added -ansi to CFLAGS. * Use new API of dfa module. * @@ -229,7 +232,7 @@ static INLINE int move (MatchContext *mc, MatchWord *Rj1, MatchWord *Rj, static int dict_grep (Dict dict, Dict_ptr ptr, MatchContext *mc, MatchWord *Rj, int pos, - int (*userfunc)(Dict_char *name, char *info), + int (*userfunc)(Dict_char *name, const char *info), Dict_char *prefix, struct DFA *dfa) { int lo, hi, d; @@ -331,7 +334,7 @@ static int dict_grep (Dict dict, Dict_ptr ptr, MatchContext *mc, } int dict_lookup_grep (Dict dict, Dict_char *pattern, int range, - int (*userfunc)(Dict_char *name, char *info)) + int (*userfunc)(Dict_char *name, const char *info)) { MatchWord *Rj; Dict_char prefix[MAX_LENGTH+1]; diff --git a/include/dict.h b/include/dict.h index 8f3e38f..da75819 100644 --- a/include/dict.h +++ b/include/dict.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dict.h,v $ - * Revision 1.11 1995-09-04 09:09:51 adam + * Revision 1.12 1995-09-14 11:53:02 adam + * Grep handle function parameter info is const now. + * + * Revision 1.11 1995/09/04 09:09:51 adam * String arg in dict lookup is const. * Minor changes. * @@ -109,7 +112,7 @@ char *dict_lookup (Dict dict, const Dict_char *p); int dict_lookup_ec (Dict dict, Dict_char *p, int range, int (*f)(Dict_char *name)); int dict_lookup_grep (Dict dict, Dict_char *p, int range, - int (*f)(Dict_char *name, char *info)); + int (*f)(Dict_char *name, const char *info)); int dict_strcmp (const Dict_char *s1, const Dict_char *s2); int dict_strlen (const Dict_char *s);