This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Change externC memset... to #include <string.h>


So, jifl makes an offhand comment about people who live on their laptops
going to meetings, and I think to myself, "gee, I am about to go to a
meeting.  I'll bet I could whip up a little script to fix those silly little
memset externs I see all over the place."

The end result is, I have very little idea what we were talking about on our
teleconference, and I spent another hour after the meeting still fiddling
with my script, but here is a patch for the  10 files that extern'd memset
instead of including <string.h>.

The 10 files modified (plus their associated ChangeLog files) were:
packages/hal/arm/arm9/aaed2000/current/src/aaed2000_misc.c
packages/hal/arm/arm9/excalibur/current/src/excalibur_misc.c
packages/hal/arm/ebsa285/current/src/ebsa285_misc.c
packages/hal/arm/sa11x0/assabet/current/src/assabet_misc.c
packages/hal/arm/sa11x0/brutus/current/src/brutus_misc.c
packages/hal/arm/sa11x0/cerf/current/src/cerf_misc.c
packages/hal/arm/sa11x0/cerfpda/current/src/cerfpda_misc.c
packages/hal/arm/sa11x0/flexanet/current/src/flexanet_misc.c
packages/hal/arm/sa11x0/nano/current/src/nano_misc.c
packages/hal/arm/sa11x0/sa1100mm/current/src/sa1100mm_misc.c

All 10 patches look like this: Note this is an experiment to determine how
well a patch file travels through Microsoft Outlook (which I use as my email
reader because I don't know of any other way to synchronize with my iPaq --
solutions are extremely welcome here).  I have (hopefully) attached the full
patch.

--wpd

Index: packages/hal/arm/arm9/aaed2000/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arm9/aaed2000/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- packages/hal/arm/arm9/aaed2000/current/ChangeLog	23 May 2002
23:01:42 -0000	1.2
+++ packages/hal/arm/arm9/aaed2000/current/ChangeLog	13 Feb 2003
15:56:28 -0000
@@ -1,3 +1,7 @@
+2003-02-13  Patrick Doyle  <wpd@delcomsys.com>
+	* src/aaed2000_misc.c: Replaced explicit prototype of memset with
+	#include <string.h>.
+
 2002-05-14  Jesper Skov  <jskov@redhat.com>

 	* src/aaed2000_misc.c (hal_mmu_init): Fixed warning.
Index: packages/hal/arm/arm9/aaed2000/current/src/aaed2000_misc.c
===================================================================
RCS file:
/cvs/ecos/ecos/packages/hal/arm/arm9/aaed2000/current/src/aaed2000_misc.c,v
retrieving revision 1.2
diff -u -r1.2 aaed2000_misc.c
--- packages/hal/arm/arm9/aaed2000/current/src/aaed2000_misc.c	23 May 2002
23:01:43 -0000	1.2
+++ packages/hal/arm/arm9/aaed2000/current/src/aaed2000_misc.c	13 Feb 2003
15:56:28 -0000
@@ -67,7 +67,7 @@

 #include <cyg/infra/diag.h>             // diag_printf

-externC void* memset(void *, int, size_t);
+#include <string.h> // memset


Attachment: memset.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]