158310Sache/* xmalloc.h -- memory allocation that aborts on errors. */ 258310Sache 358310Sache/* Copyright (C) 1999 Free Software Foundation, Inc. 458310Sache 558310Sache This file is part of the GNU Readline Library, a library for 658310Sache reading lines of text with interactive input and history editing. 758310Sache 858310Sache The GNU Readline Library is free software; you can redistribute it 958310Sache and/or modify it under the terms of the GNU General Public License 1058310Sache as published by the Free Software Foundation; either version 2, or 1158310Sache (at your option) any later version. 1258310Sache 1358310Sache The GNU Readline Library is distributed in the hope that it will be 1458310Sache useful, but WITHOUT ANY WARRANTY; without even the implied warranty 1558310Sache of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1658310Sache GNU General Public License for more details. 1758310Sache 1858310Sache The GNU General Public License is often shipped with GNU software, and 1958310Sache is generally kept in a file called COPYING or LICENSE. If you do not 2058310Sache have a copy of the license, write to the Free Software Foundation, 2158310Sache 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 2258310Sache 2358310Sache#if !defined (_XMALLOC_H_) 2458310Sache#define _XMALLOC_H_ 2558310Sache 2658310Sache#if defined (READLINE_LIBRARY) 2758310Sache# include "rlstdc.h" 2858310Sache#else 2958310Sache# include <readline/rlstdc.h> 3058310Sache#endif 3158310Sache 3258310Sache#ifndef PTR_T 3358310Sache 3458310Sache#ifdef __STDC__ 3558310Sache# define PTR_T void * 3658310Sache#else 3758310Sache# define PTR_T char * 3858310Sache#endif 3958310Sache 4058310Sache#endif /* !PTR_T */ 4158310Sache 42119610Sacheextern PTR_T xmalloc PARAMS((size_t)); 43119610Sacheextern PTR_T xrealloc PARAMS((void *, size_t)); 44119610Sacheextern void xfree PARAMS((void *)); 4558310Sache 4658310Sache#endif /* _XMALLOC_H_ */ 47