From d4cd1ef0843d0ef118cec86fa585517ac91d9cac Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Mon, 23 Jun 2003 01:10:58 +0000 Subject: remove the bundled libmysql, and update the config.m4 file as necessary. this works locally, but everyone, *please* test --- ext/mysql/libmysql/strmake.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 ext/mysql/libmysql/strmake.c (limited to 'ext/mysql/libmysql/strmake.c') diff --git a/ext/mysql/libmysql/strmake.c b/ext/mysql/libmysql/strmake.c deleted file mode 100644 index 8bfe104aa5..0000000000 --- a/ext/mysql/libmysql/strmake.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB -This file is public domain and comes with NO WARRANTY of any kind */ - -/* File : strmake.c - Author : Michael Widenius - Updated: 20 Jul 1984 - Defines: strmake() - - strmake(dst,src,length) moves length characters, or until end, of src to - dst and appends a closing NUL to dst. - Note that is strlen(src) >= length then dst[length] will be set to \0 - strmake() returns pointer to closing null -*/ - -#include -#include "m_string.h" - -#ifdef BAD_STRING_COMPILER - -char *strmake(char *dst,const char *src,uint length) -{ - reg1 char *res; - - if ((res=memccpy(dst,src,0,length))) - return res-1; - dst[length]=0; - return dst+length; -} - -#define strmake strmake_overlapp /* Use orginal for overlapping str */ -#endif - -char *strmake(register char *dst, register const char *src, uint length) -{ - while (length--) - if (! (*dst++ = *src++)) - return dst-1; - *dst=0; - return dst; -} -- cgit v1.2.1