sla@2327: /* sla@2327: * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. sla@2327: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. sla@2327: * sla@2327: * This code is free software; you can redistribute it and/or modify it sla@2327: * under the terms of the GNU General Public License version 2 only, as sla@2327: * published by the Free Software Foundation. sla@2327: * sla@2327: * This code is distributed in the hope that it will be useful, but WITHOUT sla@2327: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or sla@2327: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License sla@2327: * version 2 for more details (a copy is included in the LICENSE file that sla@2327: * accompanied this code). sla@2327: * sla@2327: * You should have received a copy of the GNU General Public License version sla@2327: * 2 along with this work; if not, write to the Free Software Foundation, sla@2327: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. sla@2327: * sla@2327: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA sla@2327: * or visit www.oracle.com if you need additional information or have any sla@2327: * questions. sla@2327: * sla@2327: */ sla@2327: sla@2327: #ifndef _JLI_UTIL_H sla@2327: #define _JLI_UTIL_H sla@2327: sla@2327: #include sla@2327: sla@2327: void *JLI_MemAlloc(size_t size); sla@2327: void *JLI_MemRealloc(void *ptr, size_t size); sla@2327: char *JLI_StringDup(const char *s1); sla@2327: void JLI_MemFree(void *ptr); sla@2327: sla@2327: #endif /* _JLI_UTIL_H */