| 
									
										
										
										
											2008-08-08 05:02:08 +00:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2012-08-16 03:47:55 +00:00
										 |  |  |  * $Id$ | 
					
						
							| 
									
										
										
										
											2009-03-11 04:39:18 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2012-07-20 04:13:39 +00:00
										 |  |  |     Copyright 2006-2012 Chung, Hyung-Hwan. | 
					
						
							| 
									
										
										
										
											2009-09-16 04:01:02 +00:00
										 |  |  |     This file is part of QSE. | 
					
						
							| 
									
										
										
										
											2009-03-11 04:39:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-16 04:01:02 +00:00
										 |  |  |     QSE is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |     it under the terms of the GNU Lesser General Public License as  | 
					
						
							|  |  |  |     published by the Free Software Foundation, either version 3 of  | 
					
						
							|  |  |  |     the License, or (at your option) any later version. | 
					
						
							| 
									
										
										
										
											2009-03-11 04:39:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-16 04:01:02 +00:00
										 |  |  |     QSE is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |     GNU Lesser General Public License for more details. | 
					
						
							| 
									
										
										
										
											2009-03-11 04:39:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-16 04:01:02 +00:00
										 |  |  |     You should have received a copy of the GNU Lesser General Public  | 
					
						
							|  |  |  |     License along with QSE. If not, see <http://www.gnu.org/licenses/>.
 | 
					
						
							| 
									
										
										
										
											2008-08-08 05:02:08 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-21 21:35:07 +00:00
										 |  |  | #ifndef _QSE_LIB_CMN_MEM_H_
 | 
					
						
							|  |  |  | #define _QSE_LIB_CMN_MEM_H_
 | 
					
						
							| 
									
										
										
										
											2008-08-08 05:02:08 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-21 21:35:07 +00:00
										 |  |  | #include <qse/cmn/mem.h>
 | 
					
						
							| 
									
										
										
										
											2008-08-17 08:08:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-22 07:28:18 +00:00
										 |  |  | #ifdef MINIMIZE_PLATFORM_DEPENDENCY
 | 
					
						
							| 
									
										
										
										
											2011-09-01 09:43:46 +00:00
										 |  |  | #	define QSE_MEMCPY(dst,src,len)  qse_memcpy(dst,src,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMCMP(p1,p2,len)    qse_memcmp(p1,p2,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMSET(dst,val,len)  qse_memset(dst,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMBYTE(s,val,len)   qse_membyte(s,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMRBYTE(s,val,len)  qse_memrbyte(s,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMMEM(hs,hl,nd,nl)  qse_memmem(hs,hl,nd,nl)
 | 
					
						
							| 
									
										
										
										
											2011-03-29 10:07:37 +00:00
										 |  |  | #	define QSE_MEMRMEM(hs,hl,nd,nl) qse_memrmem(hs,hl,nd,nl)
 | 
					
						
							| 
									
										
										
										
											2009-09-22 07:28:18 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2011-03-29 10:07:37 +00:00
										 |  |  | #	include <string.h>
 | 
					
						
							| 
									
										
										
										
											2011-09-01 09:43:46 +00:00
										 |  |  | #	define QSE_MEMCPY(dst,src,len)  memcpy(dst,src,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMCMP(p1,p2,len)    memcmp(p1,p2,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMSET(dst,val,len)  memset(dst,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMBYTE(s,val,len)   memchr(s,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMRBYTE(s,val,len)  memrchr(s,val,len)
 | 
					
						
							|  |  |  | #	define QSE_MEMMEM(hs,hl,nd,nl)  memmem(hs,hl,nd,nl)
 | 
					
						
							|  |  |  | #	define QSE_MEMRMEM(hs,hl,nd,nl) qse_memrmem(hs,hl,nd,nl)
 | 
					
						
							| 
									
										
										
										
											2008-08-08 05:02:08 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-21 21:35:07 +00:00
										 |  |  | #define QSE_MALLOC(mmgr,size) QSE_MMGR_ALLOC(mmgr,size)
 | 
					
						
							|  |  |  | #define QSE_REALLOC(mmgr,ptr,size) QSE_MMGR_REALLOC(mmgr,ptr,size)
 | 
					
						
							|  |  |  | #define QSE_FREE(mmgr,ptr) QSE_MMGR_FREE(mmgr,ptr)
 | 
					
						
							| 
									
										
										
										
											2008-08-21 03:17:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-08 05:02:08 +00:00
										 |  |  | #endif
 |