The R Project SVN R

Rev

Rev 26855 | Rev 26895 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26855 Rev 26879
Line 552... Line 552...
552
#define public_mSTATs    dlmalloc_stats
552
#define public_mSTATs    dlmalloc_stats
553
#define public_mUSABLe   dlmalloc_usable_size
553
#define public_mUSABLe   dlmalloc_usable_size
554
#define public_iCALLOc   dlindependent_calloc
554
#define public_iCALLOc   dlindependent_calloc
555
#define public_iCOMALLOc dlindependent_comalloc
555
#define public_iCOMALLOc dlindependent_comalloc
556
#else /* USE_DL_PREFIX */
556
#else /* USE_DL_PREFIX */
557
#define public_cALLOc    calloc
557
#define public_cALLOc    Rm_calloc
558
#define public_fREe      free
558
#define public_fREe      Rm_free
559
#define public_cFREe     cfree
559
#define public_cFREe     Rm_cfree
560
#define public_mALLOc    malloc
560
#define public_mALLOc    Rm_malloc
561
#define public_mEMALIGn  memalign
561
#define public_mEMALIGn  Rm_memalign
562
#define public_rEALLOc   realloc
562
#define public_rEALLOc   Rm_realloc
563
#define public_vALLOc    valloc
563
#define public_vALLOc    Rm_valloc
564
#define public_pVALLOc   pvalloc
564
#define public_pVALLOc   Rm_pvalloc
565
#define public_mALLINFo  mallinfo
565
#define public_mALLINFo  mallinfo
566
#define public_mALLOPt   mallopt
566
#define public_mALLOPt   mallopt
567
#define public_mTRIm     malloc_trim
567
#define public_mTRIm     malloc_trim
568
#define public_mSTATs    malloc_stats
568
#define public_mSTATs    malloc_stats
569
#define public_mUSABLe   malloc_usable_size
569
#define public_mUSABLe   malloc_usable_size
Line 5642... Line 5642...
5642
         structure of old version,  but most details differ.)
5642
         structure of old version,  but most details differ.)
5643
 
5643
 
5644
*/
5644
*/
5645
 
5645
 
5646
/* Need strdup here so we don't get calls to the wrong heap function inside the library */
5646
/* Need strdup here so we don't get calls to the wrong heap function inside the library */
5647
char * strdup (const char *str)
5647
char * Rm_strdup (const char *str)
5648
{
5648
{
5649
  char *newstr;
5649
  char *newstr;
5650
 
5650
 
5651
  newstr = (char *) malloc (strlen (str) + 1);
5651
  newstr = (char *) Rm_malloc (strlen (str) + 1);
5652
  if (newstr)
5652
  if (newstr)
5653
    strcpy (newstr, str);
5653
    strcpy (newstr, str);
5654
  return newstr;
5654
  return newstr;
5655
}
5655
}