Diff for /embedaddon/readline/xmalloc.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2014/07/30 08:16:45 version 1.1.1.2, 2021/03/17 01:01:01
Line 1 Line 1
 /* xmalloc.c -- safe versions of malloc and realloc */  /* xmalloc.c -- safe versions of malloc and realloc */
   
/* Copyright (C) 1991-2009 Free Software Foundation, Inc./* Copyright (C) 1991-2017 Free Software Foundation, Inc.
   
    This file is part of the GNU Readline Library (Readline), a library     This file is part of the GNU Readline Library (Readline), a library
    for reading lines of text with interactive input and history editing.           for reading lines of text with interactive input and history editing.      
Line 42 Line 42
 /* **************************************************************** */  /* **************************************************************** */
   
 static void  static void
memory_error_and_abort (fname)memory_error_and_abort (char *fname)
     char *fname; 
 {  {
   fprintf (stderr, "%s: out of virtual memory\n", fname);    fprintf (stderr, "%s: out of virtual memory\n", fname);
   exit (2);    exit (2);
Line 53  memory_error_and_abort (fname) Line 52  memory_error_and_abort (fname)
    to hold BYTES number of bytes.  If the memory cannot be allocated,     to hold BYTES number of bytes.  If the memory cannot be allocated,
    print an error message and abort. */     print an error message and abort. */
 PTR_T  PTR_T
xmalloc (bytes)xmalloc (size_t bytes)
     size_t bytes; 
 {  {
   PTR_T temp;    PTR_T temp;
   
Line 65  xmalloc (bytes) Line 63  xmalloc (bytes)
 }  }
   
 PTR_T  PTR_T
xrealloc (pointer, bytes)xrealloc (PTR_T pointer, size_t bytes)
     PTR_T pointer; 
     size_t bytes; 
 {  {
   PTR_T temp;    PTR_T temp;
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>