RAPI
Defines | Functions
R_ext/RS.h File Reference
#include <string.h>
#include <stddef.h>
#include <Rconfig.h>
#include <R_ext/Error.h>
Include dependency graph for RS.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define R_PROBLEM_BUFSIZE   4096
#define PROBLEM   {char R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
#define MESSAGE   {char R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
#define ERROR   ),error(R_problem_buf);}
#define RECOVER(x)   ),error(R_problem_buf);}
#define WARNING(x)   ),warning(R_problem_buf);}
#define LOCAL_EVALUATOR
#define NULL_ENTRY
#define WARN   WARNING(NULL)
#define Calloc(n, t)   (t *) R_chk_calloc( (size_t) (n), sizeof(t) )
#define Realloc(p, n, t)   (t *) R_chk_realloc( (void *)(p), (size_t)((n) * sizeof(t)) )
#define Free(p)   (R_chk_free( (void *)(p) ), (p) = NULL)
#define R_Calloc(n, t)   (t *) R_chk_calloc( (size_t) (n), sizeof(t) )
#define R_Realloc(p, n, t)   (t *) R_chk_realloc( (void *)(p), (size_t)((n) * sizeof(t)) )
#define R_Free(p)   (R_chk_free( (void *)(p) ), (p) = NULL)
#define Memcpy(p, q, n)   memcpy( p, q, (size_t)(n) * sizeof(*p) )
#define Memzero(p, n)   memset(p, 0, (size_t)(n) * sizeof(*p))
#define CallocCharBuf(n)   (char *) R_chk_calloc((size_t) ((n)+1), sizeof(char))
#define F77_CALL(x)   x
#define F77_NAME(x)   F77_CALL(x)
#define F77_SUB(x)   F77_CALL(x)
#define F77_COM(x)   F77_CALL(x)
#define F77_COMDECL(x)   F77_CALL(x)

Functions

void * R_chk_calloc (size_t nelem, size_t elsize)
void * R_chk_realloc (void *ptr, size_t size)
void R_chk_free (void *ptr)
void call_R (char *, long, void **, char **, long *, char **, long, char **)

Define Documentation

#define Calloc (   n,
 
)    (t *) R_chk_calloc( (size_t) (n), sizeof(t) )
#define CallocCharBuf (   n)    (char *) R_chk_calloc((size_t) ((n)+1), sizeof(char))
#define ERROR   ),error(R_problem_buf);}
#define F77_CALL (   x)    x
#define F77_COM (   x)    F77_CALL(x)
#define F77_COMDECL (   x)    F77_CALL(x)
#define F77_NAME (   x)    F77_CALL(x)
#define F77_SUB (   x)    F77_CALL(x)
#define Free (   p)    (R_chk_free( (void *)(p) ), (p) = NULL)
#define LOCAL_EVALUATOR
#define Memcpy (   p,
  q,
 
)    memcpy( p, q, (size_t)(n) * sizeof(*p) )
#define Memzero (   p,
 
)    memset(p, 0, (size_t)(n) * sizeof(*p))
#define MESSAGE   {char R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
#define NULL_ENTRY
#define PROBLEM   {char R_problem_buf[R_PROBLEM_BUFSIZE];(sprintf)(R_problem_buf,
#define R_Calloc (   n,
 
)    (t *) R_chk_calloc( (size_t) (n), sizeof(t) )
#define R_Free (   p)    (R_chk_free( (void *)(p) ), (p) = NULL)
#define R_PROBLEM_BUFSIZE   4096
#define R_Realloc (   p,
  n,
 
)    (t *) R_chk_realloc( (void *)(p), (size_t)((n) * sizeof(t)) )
#define Realloc (   p,
  n,
 
)    (t *) R_chk_realloc( (void *)(p), (size_t)((n) * sizeof(t)) )
#define RECOVER (   x)    ),error(R_problem_buf);}
#define WARN   WARNING(NULL)
#define WARNING (   x)    ),warning(R_problem_buf);}

Function Documentation

void call_R ( char *  ,
long  ,
void **  ,
char **  ,
long *  ,
char **  ,
long  ,
char **   
)
void* R_chk_calloc ( size_t  nelem,
size_t  elsize 
)
void R_chk_free ( void *  ptr)
void* R_chk_realloc ( void *  ptr,
size_t  size 
)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines