+2012-10-12 Aleksey Demakov <ademakov@gmail.com>
+
+ * jit/jit-memory.h: remove file.
+
2012-10-08 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-cache.c, jit/jit-cache.c(_jit_cache_alloc_trampoline)
jit-intrinsic.c \
jit-live.c \
jit-memory.c \
- jit-memory.h \
jit-meta.c \
jit-opcode-apply.c \
jit-objmodel.c \
*/
#include "jit-internal.h"
-#include "jit-memory.h"
#include "jit-apply-rules.h"
#include "jit-apply-func.h"
#include "jit-cache.h"
*/
#include "jit-internal.h"
-#include "jit-memory.h"
/*@
*/
#include "jit-internal.h"
-#include "jit-memory.h"
#include "jit-rules.h"
#include "jit-reg-alloc.h"
#include "jit-setjmp.h"
#include "jit-internal.h"
#include "jit-rules.h"
#include "jit-elf-defs.h"
-#include "jit-memory.h"
#ifdef JIT_WIN32_PLATFORM
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include "jit-internal.h"
#include "jit-elf-defs.h"
-#include "jit-memory.h"
#include "jit-rules.h"
/*@
#include <jit/jit.h>
#include "jit-config.h"
+#if defined(HAVE_STRING_H)
+# include <string.h>
+#elif defined(HAVE_STRINGS_H)
+# include <strings.h>
+#endif
+#if defined(HAVE_MEMORY_H)
+# include <memory.h>
+#endif
+
+/*
+ * Macros that replace the routines in <jit/jit-util.h>
+ * with direct calls on the underlying library functions.
+ */
+#if defined(HAVE_MEMSET)
+# define jit_memset(s, c, len) (memset((s), (c), (len)))
+# define jit_memzero(s, len) (memset((s), 0, (len)))
+#elif defined(HAVE_BZERO)
+# define jit_memzero(s, len) (bzero((char *)(s), (len)))
+#else
+# define jit_memzero(s, len) (jit_memset((char *)(s), 0, (len)))
+#endif
+#if defined(HAVE_MEMCPY)
+# define jit_memcpy(s1, s2, len) (memcpy((s1), (s2), (len)))
+#endif
+#if defined(HAVE_MEMMOVE)
+# define jit_memmove(s1, s2, len) (memmove((s1), (s2), (len)))
+#endif
+#if defined(HAVE_MEMCMP)
+# define jit_memcmp(s1, s2, len) (memcmp((s1), (s2), (len)))
+#elif defined(HAVE_BCMP)
+# define jit_memcmp(s1, s2, len) (bcmp((char *)(s1), (char *)(s2), (len)))
+#endif
+#if defined(HAVE_MEMCHR)
+# define jit_memchr(s, c, len) (memchr((s), (c), (len)))
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
#include "jit-interp.h"
#include "jit-rules.h"
-#include "jit-memory.h"
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
* <http://www.gnu.org/licenses/>.
*/
-#include "jit-memory.h"
+#include "jit-internal.h"
/*
- * Undefine the macros in "jit-memory.h" so that we
+ * Undefine the macros in "jit-internal.h" so that we
* can define the real function forms.
*/
#undef jit_memset
+++ /dev/null
-/*
- * jit-memory.h - Memory copy/set/compare routines.
- *
- * Copyright (C) 2004 Southern Storm Software, Pty Ltd.
- *
- * This file is part of the libjit library.
- *
- * The libjit library 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 2.1 of
- * the License, or (at your option) any later version.
- *
- * The libjit library 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.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the libjit library. If not, see
- * <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _JIT_MEMORY_H
-#define _JIT_MEMORY_H
-
-#include <config.h>
-#ifdef HAVE_STRING_H
- #include <string.h>
-#else
- #ifdef HAVE_STRINGS_H
- #include <strings.h>
- #endif
-#endif
-#ifdef HAVE_MEMORY_H
- #include <memory.h>
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Macros that replace the routines in <jit/jit-util.h>
- * with direct calls on the underlying library functions.
- */
-#ifdef HAVE_MEMSET
- #define jit_memset(dest,ch,len) (memset((dest), (ch), (len)))
- #define jit_memzero(dest,len) (memset((dest), 0, (len)))
-#else
- #ifdef HAVE_BZERO
- #define jit_memzero(dest,len) (bzero((char *)(dest), (len)))
- #else
- #define jit_memzero(dest,len) (jit_memset((char *)(dest), 0, (len)))
- #endif
-#endif
-#ifdef HAVE_MEMCPY
- #define jit_memcpy(dest,src,len) (memcpy((dest), (src), (len)))
-#endif
-#ifdef HAVE_MEMMOVE
- #define jit_memmove(dest,src,len) (memmove((dest), (src), (len)))
-#endif
-#ifdef HAVE_MEMCMP
- #define jit_memcmp(s1,s2,len) (memcmp((s1), (s2), (len)))
-#else
- #ifdef HAVE_BCMP
- #define jit_memcmp(s1,s2,len) \
- (bcmp((char *)(s1), (char *)(s2), (len)))
- #endif
-#endif
-#ifdef HAVE_MEMCHR
- #define jit_memchr(str,ch,len) (memchr((str), (ch), (len)))
-#endif
-
-#ifdef __cplusplus
-};
-#endif
-
-#endif /* _JIT_MEMORY_H */
*/
#include "jit-internal.h"
-#include "jit-memory.h"
void _jit_memory_pool_init(jit_memory_pool *pool, unsigned int elem_size)
{