Changeset: cb63f67f079a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cb63f67f079a
Modified Files:
        MonetDB/src/common/Makefile.ag
        MonetDB/src/common/memcmp.c
Branch: default
Log Message:

memcmp.c: remove

there seem to be no consumers of this file, not even Windows, the log
for this file also doesn't indicate why it was added

remove seemingly useless file


diffs (69 lines):

diff -r 15aedb2ce50b -r cb63f67f079a MonetDB/src/common/Makefile.ag
--- a/MonetDB/src/common/Makefile.ag    Fri Jan 14 13:28:43 2011 +0100
+++ b/MonetDB/src/common/Makefile.ag    Fri Jan 14 13:32:38 2011 +0100
@@ -19,7 +19,7 @@
 
 MTSAFE
 
-EXTRA_DIST = monet_getopt.h getopt.c getopt1.c memcmp.c
+EXTRA_DIST = monet_getopt.h getopt.c getopt1.c
 
 lib_mutils = { 
        NAME = mutils
diff -r 15aedb2ce50b -r cb63f67f079a MonetDB/src/common/memcmp.c
--- a/MonetDB/src/common/memcmp.c       Fri Jan 14 13:28:43 2011 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-/*
- * The contents of this file are subject to the MonetDB Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * The Original Code is the MonetDB Database System.
- *
- * The Initial Developer of the Original Code is CWI.
- * Portions created by CWI are Copyright (C) 1997-July 2008 CWI.
- * Copyright August 2008-2011 MonetDB B.V.
- * All Rights Reserved.
- */
-
-/* memcmp -- compare two memory regions.
-   This function is in the public domain.  */
-
-/*
-NAME
-       memcmp -- compare two memory regions
-
-SYNOPSIS
-       int memcmp (const void *from, const void *to, size_t count)
-
-DESCRIPTION
-       Compare two memory regions and return less than,
-       equal to, or greater than zero, according to lexicographical
-       ordering of the compared regions.
-*/
-
-#ifdef __STDC__
-#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
-
-int
-memcmp(const char *str1, const char *str2, size_t count)
-{
-       register unsigned char *s1 = (unsigned char *) str1;
-       register unsigned char *s2 = (unsigned char *) str2;
-
-       while (count-- > 0) {
-               if (*s1++ != *s2++)
-                       return s1[-1] < s2[-1] ? -1 : 1;
-       }
-       return 0;
-}
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to