From dadb0e77b180e171f43442b172d2a28b72439f17 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 4 Sep 1995 09:09:51 +0000 Subject: [PATCH] String arg in dict lookup is const. Minor changes. --- include/dict.h | 8 ++++++-- include/rset.h | 12 ++++++++---- include/rsisam.h | 10 +++++++--- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/include/dict.h b/include/dict.h index a5f1eeb..8f3e38f 100644 --- a/include/dict.h +++ b/include/dict.h @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dict.h,v $ - * Revision 1.10 1994-10-05 12:16:58 adam + * Revision 1.11 1995-09-04 09:09:51 adam + * String arg in dict lookup is const. + * Minor changes. + * + * Revision 1.10 1994/10/05 12:16:58 adam * Pagesize is a resource now. * * Revision 1.9 1994/10/04 12:08:19 adam @@ -101,7 +105,7 @@ Dict dict_open (const char *name, int cache, int rw); int dict_close (Dict dict); int dict_insert (Dict dict, const Dict_char *p, int userlen, void *userinfo); -char *dict_lookup (Dict dict, Dict_char *p); +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, diff --git a/include/rset.h b/include/rset.h index f7029a4..0df127c 100644 --- a/include/rset.h +++ b/include/rset.h @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rset.h,v $ - * Revision 1.3 1994-11-22 13:15:27 quinn + * Revision 1.4 1995-09-04 09:09:52 adam + * String arg in dict lookup is const. + * Minor changes. + * + * Revision 1.3 1994/11/22 13:15:27 quinn * Simple * * Revision 1.2 1994/11/04 13:21:21 quinn @@ -54,10 +58,10 @@ void rset_delete(RSET rs); /* int rset_count(RSET rs); */ #define rset_count(rs, wflag) ((*(rs)->control->f_count)((rs)->control)) -/* int rset_read(RSET rs, void *buf); */ /* change parameters */ +/* int rset_read(RSET rs, void *buf); */ #define rset_read(rs, buf) ((*(rs)->control->f_read)((rs)->control, (buf))) - -int rset_write(RSET rs, void *buf); /* change parameters */ +/* int rset_write(RSET rs, const void *buf); */ +#define rset_write(rs, buf) ((*(rs)->control->f_write)((rs)->control, (buf))) #endif diff --git a/include/rsisam.h b/include/rsisam.h index a2364f3..0e74f86 100644 --- a/include/rsisam.h +++ b/include/rsisam.h @@ -4,13 +4,17 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rsisam.h,v $ - * Revision 1.1 1994-11-04 13:21:23 quinn + * Revision 1.2 1995-09-04 09:09:53 adam + * String arg in dict lookup is const. + * Minor changes. + * + * Revision 1.1 1994/11/04 13:21:23 quinn * Working. * */ -#ifndef RSET_TEMP_H -#define RSET_TEMP_H +#ifndef RSET_ISAM_H +#define RSET_ISAM_H #include #include -- 1.7.10.4