diff options
Diffstat (limited to 'japanese/FreeWnn-lib/files/patch-Wnn-etc-bcopy.c')
-rw-r--r-- | japanese/FreeWnn-lib/files/patch-Wnn-etc-bcopy.c | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/japanese/FreeWnn-lib/files/patch-Wnn-etc-bcopy.c b/japanese/FreeWnn-lib/files/patch-Wnn-etc-bcopy.c new file mode 100644 index 000000000000..ae2390e172dd --- /dev/null +++ b/japanese/FreeWnn-lib/files/patch-Wnn-etc-bcopy.c @@ -0,0 +1,81 @@ +Index: Wnn/etc/bcopy.c +=================================================================== +RCS file: /home/cvs/private/hrs/freewnn/Wnn/etc/bcopy.c,v +retrieving revision 1.1.1.1 +retrieving revision 1.2 +diff -u -p -r1.1.1.1 -r1.2 +--- Wnn/etc/bcopy.c 20 Dec 2008 07:13:30 -0000 1.1.1.1 ++++ Wnn/etc/bcopy.c 20 Dec 2008 15:22:40 -0000 1.2 +@@ -38,47 +38,43 @@ + + #ifndef HAVE_BCOPY + void +-bcopy (b1, b2, length) +- unsigned char *b1, *b2; +- int length; ++bcopy(unsigned char *b1, ++ unsigned char *b2, ++ int length) + { +- if (length <= 0) +- return; +- if (b1 < b2 && b1 + length > b2) +- { +- b2 += length; +- b1 += length; +- while (length--) +- { +- *--b2 = *--b1; +- } +- } +- else +- { +- memcpy (b2, b1, length); +- } ++ if (length <= 0) ++ return; ++ ++ if (b1 < b2 && b1 + length > b2) { ++ b2 += length; ++ b1 += length; ++ ++ while (length--) ++ *--b2 = *--b1; ++ } else { ++ memcpy (b2, b1, length); ++ } + } + #endif /* !HAVE_BCOPY */ + + #ifndef HAVE_BZERO + void +-bzero (b, length) +- unsigned char *b; +- int length; ++bzero(unsigned char *b, ++ int length) + { +- memset (b, 0, length); ++ memset (b, 0, length); + } + #endif /* !HAVE_BZERO */ + + #ifndef HAVE_BCMP + int +-bcmp (b1, b2, length) +- unsigned char *b1; +- unsigned char *b2; +- int length; ++bcmp(unsigned char *b1, ++ unsigned *b2, ++ int length) + { +- if (length == 0) +- return 0; +- return memcmp (b1, b2, length); ++ if (length == 0) ++ return 0; ++ ++ return memcmp(b1, b2, length); + } + #endif /* !HAVE_BCMP */ |