OSSP CVS Repository

ossp - Difference in ossp-pkg/str/str_memory.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/str/str_memory.c 1.7 -> 1.8

--- str_memory.c 2002/04/01 08:32:54     1.7
+++ str_memory.c 2003/01/06 19:13:47     1.8
@@ -1,9 +1,9 @@
 /*
 **  OSSP str - String Handling
-**  Copyright (c) 1999-2002 Ralf S. Engelschall <rse@engelschall.com>
-**  Copyright (c) 1999-2002 The OSSP Project <http://www.ossp.org/>
+**  Copyright (c) 1999-2003 Ralf S. Engelschall <rse@engelschall.com>
+**  Copyright (c) 1999-2003 The OSSP Project <http://www.ossp.org/>
 **
-**  This file is part of OSSP str, a string handling and manipulation 
+**  This file is part of OSSP str, a string handling and manipulation
 **  library which can be found at http://www.ossp.org/pkg/lib/str/.
 **
 **  Permission to use, copy, modify, and distribute this software for
@@ -35,7 +35,7 @@
 
 static void *
 _str_mem_dup(
-    void *mem, 
+    void *mem,
     size_t bytes)
 {
     void *dmem;
@@ -53,8 +53,8 @@
 #else
 static void *
 _str_mem_set(
-    void *dst0, 
-    int c0, 
+    void *dst0,
+    int c0,
     size_t bytes)
 {
     register size_t t;
@@ -75,7 +75,7 @@
     }
 
     /* fill the whole stamping word */
-    if ((c = (unsigned char)c0) != 0) { 
+    if ((c = (unsigned char)c0) != 0) {
         c = c | (c << 8);
 #if (SIZEOF_INT > 2)
         c = c | (c << 16);
@@ -118,8 +118,8 @@
 #else
 static void *
 _str_mem_move(
-    void *dst, 
-    const void *src, 
+    void *dst,
+    const void *src,
     size_t bytes)
 {
     register unsigned char *dst_p;
@@ -129,7 +129,7 @@
         return NULL;
     src_p = src;
     dst_p = dst;
-    if (dst > src) { 
+    if (dst > src) {
         /* must go high to low */
         src_p += bytes;
         dst_p += bytes;
@@ -147,7 +147,7 @@
 
 static void *
 _str_mem_rev(
-    void *src, 
+    void *src,
     size_t bytes)
 {
     register unsigned char *p1;
@@ -166,8 +166,8 @@
 #else
 static void *
 _str_mem_char(
-    const void *src, 
-    int c, 
+    const void *src,
+    int c,
     size_t bytes)
 {
     register const unsigned char *cp;
@@ -185,13 +185,13 @@
 
 static void *
 _str_mem_mem(
-    const void *haystack, size_t haystack_len, 
+    const void *haystack, size_t haystack_len,
     const void *needle,   size_t needle_len)
 {
     register const char *begin;
     register const char *last_possible;
-    
-    if (needle_len == 0) 
+
+    if (needle_len == 0)
         /* The first occurrence of the empty string is deemed to occur at
            the end of the string. */
         return (void *)&((const char *)haystack)[haystack_len - 1];
@@ -209,13 +209,13 @@
 #else
 static int
 _str_mem_cmp(
-    const void *src1, 
-    const void *src2, 
+    const void *src1,
+    const void *src2,
     size_t bytes)
 {
     register const unsigned char *cp1;
     register const unsigned char *cp2;
-   
+
     if (bytes != 0) {
         cp1 = src1;
         cp2 = src2;

CVSTrac 2.0.1