diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-25 16:11:07 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-25 16:11:07 +0000 |
commit | 6ab6376f3198c02173985290c5f0dff2a8210abd (patch) | |
tree | be3d6db198738b6f5d0b822818a8d56614985533 | |
parent | [w3m-dev 02727] (diff) | |
download | w3m-6ab6376f3198c02173985290c5f0dff2a8210abd.tar.gz w3m-6ab6376f3198c02173985290c5f0dff2a8210abd.zip |
[w3m-dev 02725] bcopy, bzero
From: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | etc.c | 28 | ||||
-rw-r--r-- | indep.c | 28 |
3 files changed, 37 insertions, 29 deletions
@@ -1,3 +1,11 @@ +2001-12-26 Kazuhiro NISHIYAMA <zn@mbf.nifty.com> + + * [w3m-dev 02725] bcopy, bzero + * etc.c (bcopy): deleted + * etc.c (bzero): deleted + * indep.c (bcopy): added + * indep.c (bzero): added + 2001-12-25 Kazuhiko <kazuhiko@archi.kyoto-u.ac.jp> * [w3m-dev 02727] @@ -1538,4 +1546,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.171 2001/12/25 14:06:34 ukai Exp $ +$Id: ChangeLog,v 1.172 2001/12/25 16:11:07 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: etc.c,v 1.12 2001/12/10 15:42:38 ukai Exp $ */ +/* $Id: etc.c,v 1.13 2001/12/25 16:11:07 ukai Exp $ */ #include "fm.h" #include <pwd.h> #include "myctype.h" @@ -548,32 +548,6 @@ lastFileName(char *path) return allocStr(q, -1); } -#ifndef HAVE_BCOPY -void -bcopy(void *src, void *dest, int len) -{ - int i; - if (src == dest) - return; - if (src < dest) { - for (i = len - 1; i >= 0; i--) - dest[i] = src[i]; - } - else { /* src > dest */ - for (i = 0; i < len; i++) - dest[i] = src[i]; - } -} - -void -bzero(void *ptr, int len) -{ - int i; - for (i = 0; i < len; i++) - *(ptr++) = 0; -} -#endif /* not HAVE_BCOPY */ - #ifdef USE_INCLUDED_SRAND48 static unsigned long R1 = 0x1234abcd; static unsigned long R2 = 0x330e; @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.18 2001/12/14 17:10:54 ukai Exp $ */ +/* $Id: indep.c,v 1.19 2001/12/25 16:11:07 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -11,6 +11,32 @@ #include "myctype.h" #include "entity.h" +#ifndef HAVE_BCOPY +void +bcopy(void *src, void *dest, int len) +{ + int i; + if (src == dest) + return; + if (src < dest) { + for (i = len - 1; i >= 0; i--) + dest[i] = src[i]; + } + else { /* src > dest */ + for (i = 0; i < len; i++) + dest[i] = src[i]; + } +} + +void +bzero(void *ptr, int len) +{ + int i; + for (i = 0; i < len; i++) + *(ptr++) = 0; +} +#endif /* not HAVE_BCOPY */ + char * allocStr(const char *s, int len) { |