From dab34f8036ba87c6f16c2b769b3d4f54a9515cf3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 18 Aug 1994 08:22:26 +0000 Subject: [PATCH] Res.h modified. xmalloc now declares xstrdup. --- include/res.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/include/res.h b/include/res.h index 82d892f..3321f5a 100644 --- a/include/res.h +++ b/include/res.h @@ -4,15 +4,24 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: res.h,v $ - * Revision 1.1 1994-08-17 15:34:14 adam - * Initial version of resource manager. + * Revision 1.2 1994-08-18 08:22:26 adam + * Res.h modified. xmalloc now declares xstrdup. * */ #ifndef RES_H #define RES_H -const char *res_get (const char *name); -const char *res_put (const char *name, const char *value); -int res_write (void); +struct res_entry { + char *name; + char *value; + struct res_entry *next; +}; + +typedef struct res_struct { + struct res_entry *first, *last; + char *name; + int init; +} *Res; + #endif -- 1.7.10.4