delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/01/20/14:01:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Thu, 20 Jan 2005 12:00:58 -0700
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: lsearch() and lfind() patch
In-reply-to: <200501071838.j07IcEL7029283@speedy.ludd.ltu.se>
To: djgpp-workers AT delorie DOT com
Message-id: <rrvvu01bakbdb6fateb24imp7he3h2knu2@4ax.com>
Organization: Systematic Software
MIME-version: 1.0
X-Mailer: Forte Agent 1.93/32.576 English (American)
References: <01c4f29f$Blat.v2.2.2$722ead40 AT zahav DOT net DOT il>
<200501071838 DOT j07IcEL7029283 AT speedy DOT ludd DOT ltu DOT se>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0KJ15HM031007
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 07 Jan 2005 19:38:14 +0100 (CET), ams AT ludd DOT ltu DOT se wrote:

>According to Eli Zaretskii:
>> > +identified by @var{key} using the comparision function @var{compar}.  
>>                                      ^^^^^^^^^^^
>> A typo.
>
>Thanks.
>
>Meanwhile I improved the documentation and hacked away at my first
>test program until I got it working so now we have two test programs
>(albeit very similar). So here's a new patch. I only post the diffs
>that have changed.

File lfind.c is missing an include of string.h to prototype memcpy,
and the makefile adds hcreate.c to SRC. 
Try the following patches to fix these issues. 

Thanks. Take care, Brian Inglis


Index: src/libc/posix/search/lfind.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/search/lfind.c,v
retrieving revision 1.1
diff -B -b -w -p -u -t -r1.1 lfind.c
--- src/libc/posix/search/lfind.c	15 Jan 2005 19:16:16 -0000	1.1
+++ src/libc/posix/search/lfind.c	20 Jan 2005 18:52:44 -0000
@@ -10,6 +10,7 @@
 
 #include <search.h>
 #include <stdlib.h>
+#include <string.h>
 
 /* Local helper function that does the real work. */
 static void *
Index: src/libc/posix/search/makefile
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/search/makefile,v
retrieving revision 1.1
diff -B -b -w -p -u -t -r1.1 makefile
--- src/libc/posix/search/makefile	15 Jan 2005 19:16:16 -0000	1.1
+++ src/libc/posix/search/makefile	20 Jan 2005 18:52:44 -0000
@@ -2,7 +2,7 @@
 
 TOP=../..
 
-SRC += hcreate.c
+#SRC += hcreate.c
 SRC += lfind.c
 
 include $(TOP)/../makefile.inc

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019