OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [readline/] [xmalloc.h] - Blame information for rev 166

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* xmalloc.h -- memory allocation that aborts on errors. */
2
 
3
/* Copyright (C) 1999 Free Software Foundation, Inc.
4
 
5
   This file is part of the GNU Readline Library, a library for
6
   reading lines of text with interactive input and history editing.
7
 
8
   The GNU Readline Library is free software; you can redistribute it
9
   and/or modify it under the terms of the GNU General Public License
10
   as published by the Free Software Foundation; either version 2, or
11
   (at your option) any later version.
12
 
13
   The GNU Readline Library is distributed in the hope that it will be
14
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15
   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   The GNU General Public License is often shipped with GNU software, and
19
   is generally kept in a file called COPYING or LICENSE.  If you do not
20
   have a copy of the license, write to the Free Software Foundation,
21
   59 Temple Place, Suite 330, Boston, MA 02111 USA. */
22
 
23
#if !defined (_XMALLOC_H_)
24
#define _XMALLOC_H_
25
 
26
#if defined (READLINE_LIBRARY)
27
#  include "rlstdc.h"
28
#else
29
#  include <readline/rlstdc.h>
30
#endif
31
 
32
#ifndef PTR_T
33
 
34
#ifdef __STDC__
35
#  define PTR_T void *
36
#else
37
#  define PTR_T char *
38
#endif
39
 
40
#endif /* !PTR_T */
41
 
42
extern PTR_T xmalloc PARAMS((size_t));
43
extern PTR_T xrealloc PARAMS((void *, size_t));
44
extern void xfree PARAMS((void *));
45
 
46
#endif /* _XMALLOC_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.