* 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.
*
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;
}
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];
* 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.
*
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);