[commit: bytestring] master: Move __hscore_memcpy_src_off from base into include/fpstring.h (7c0d5be)
Ian Lynagh
igloo at earth.li
Wed Feb 22 21:58:44 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/7c0d5bea84293eb64af1e2795b3b964d7f2233a9
>---------------------------------------------------------------
commit 7c0d5bea84293eb64af1e2795b3b964d7f2233a9
Author: Ian Lynagh <igloo at earth.li>
Date: Wed Feb 22 15:52:46 2012 +0000
Move __hscore_memcpy_src_off from base into include/fpstring.h
>---------------------------------------------------------------
include/fpstring.h | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/include/fpstring.h b/include/fpstring.h
index afbc911..5fc1b62 100644
--- a/include/fpstring.h
+++ b/include/fpstring.h
@@ -1,6 +1,21 @@
+#include <string.h>
+
void fps_reverse(unsigned char *dest, unsigned char *from, unsigned long len);
void fps_intersperse(unsigned char *dest, unsigned char *from, unsigned long len, unsigned char c);
unsigned char fps_maximum(unsigned char *p, unsigned long len);
unsigned char fps_minimum(unsigned char *p, unsigned long len);
unsigned long fps_count(unsigned char *p, unsigned long len, unsigned char w);
+
+#ifndef INLINE
+# if defined(_MSC_VER)
+# define INLINE extern __inline
+# else
+# define INLINE static inline
+# endif
+#endif
+INLINE void *
+__hscore_memcpy_src_off( char *dst, char *src, int src_off, size_t sz )
+{ return memcpy(dst, src+src_off, sz); }
+
+
More information about the Cvs-libraries
mailing list