aboutsummaryrefslogtreecommitdiff
path: root/chinese/cce/files
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2005-05-01 03:03:15 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2005-05-01 03:03:15 +0000
commitab41bc37ef58bc718e30c8d1c39460b82e88ce6b (patch)
tree6699df0bbc1789bc3357ac7b5b7ee59389915f87 /chinese/cce/files
parentd89bec30ede9dcf4a35be27fb8062b8f114fd16b (diff)
downloadports-ab41bc37ef58bc718e30c8d1c39460b82e88ce6b.tar.gz
ports-ab41bc37ef58bc718e30c8d1c39460b82e88ce6b.zip
Notes
Diffstat (limited to 'chinese/cce/files')
-rw-r--r--chinese/cce/files/patch-include::defs.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/chinese/cce/files/patch-include::defs.h b/chinese/cce/files/patch-include::defs.h
new file mode 100644
index 000000000000..064bc9275098
--- /dev/null
+++ b/chinese/cce/files/patch-include::defs.h
@@ -0,0 +1,78 @@
+diff -urN ./include/defs.h.orig ./include/defs.h
+--- ./include/defs.h.orig Sun Jan 11 12:41:21 2004
++++ ./include/defs.h Tue Dec 14 08:53:19 2004
+@@ -57,49 +57,67 @@
+
+ static inline void bzero2(void *head, int n)
+ {
++ unsigned char *p = (unsigned char *) head;
++
+ while (n-- > 0)
+- *((unsigned char *)head)++ = (unsigned char)0x0;
++ *p++ = (unsigned char)0x0;
+ }
+
+ static inline void wzero(void *head, int n)
+ {
++ unsigned short *p = (unsigned short *) head;
++
+ n >>= 1;
+ while (n-- > 0)
+- *((unsigned short *)head)++ = (unsigned short)0x0;
++ *p++ = (unsigned short)0x0;
+
+ }
+
+ static inline void lzero(void *head, int n)
+ {
++ unsigned int *p = (unsigned int *) head;
++
+ n >>= 2;
+ while (n-- > 0)
+- *((unsigned int *)head)++ = (unsigned int)0x0;
++ *p++ = (unsigned int)0x0;
+ }
+
+ static inline void bmove(void *dst, void *src, int n)
+ {
++ unsigned char *d = (unsigned char *) dst;
++ unsigned char *s = (unsigned char *) src;
++
+ while(n-- > 0)
+- *((unsigned char *)dst)++ = *((unsigned char *)src)++;
++ *d++ = *s++;
+ }
+
+ static inline void brmove(void *dst, void *src, int n)
+ {
++ unsigned char *d = (unsigned char *) dst;
++ unsigned char *s = (unsigned char *) src;
++
+ while(n-- > 0)
+- *--((unsigned char *)dst) = *--((unsigned char *)src);
++ *--d = *--s;
+ }
+
+ static inline void wmove(void *dst, void *src, int n)
+ {
++ unsigned short *d = (unsigned short *) dst;
++ unsigned short *s = (unsigned short *) src;
++
+ n >>= 1;
+ while(n-- > 0)
+- *((unsigned short *)dst)++ = *((unsigned short *)src)++;
++ *d++ = *s++;
+ }
+
+ static inline void lmove(void *dst, void *src, int n)
+ {
++ unsigned int *d = (unsigned int *) dst;
++ unsigned int *s = (unsigned int *) src;
++
+ n >>= 2;
+ while(n-- > 0)
+- *((unsigned int *)dst)++ = *((unsigned int *)src)++;
++ *d++ = *s++;
+ }
+
+ static inline void SafeFree(void **p)