CXXR (C++ R)
Macros | Typedefs | Enumerations | Functions | Variables
Defn.h File Reference

($Id: Defn.h 1378 2013-04-26 13:39:20Z arr $)

A ragbag. More...

#include "CXXR/BuiltInFunction.h"
#include "CXXR/Evaluator.h"
#include "CXXR/errors.h"
#include <R_ext/Complex.h>
#include <Rinternals.h>
#include "Internal.h"
#include "Errormsg.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <R_ext/libextern.h>
#include <wchar.h>
Include dependency graph for Defn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COUNTING
#define NEW_CONDITION_HANDLING
#define attribute_visible
#define attribute_hidden
#define extern0   extern attribute_hidden
#define MAXELTSIZE
#define CALLED_FROM_DEFN_H   1
#define BYTES_MASK   (1<<1)
#define HASHASH_MASK   1
#define CXHEAD(x)   CAR(x)
#define CXTAIL(x)   CDR(x)
#define F77_SYMBOL(x)   x
#define F77_QSYMBOL(x)   #x
#define Mega   1048576. /* 1 Mega Byte := 2^20 (= 1048576) Bytes */
#define Giga   1073741824. /* 1 Giga Byte := 2^30 Bytes */
#define R_PPSSIZE   50000L
#define R_NSIZE   350000L
#define R_VSIZE   16000000L
#define PATH_MAX   5000
#define SIGJMP_BUF   jmp_buf
#define SIGSETJMP(x, s)   setjmp(x)
#define SIGLONGJMP(x, i)   longjmp(x,i)
#define JMP_BUF   jmp_buf
#define SETJMP(x)   setjmp(x)
#define LONGJMP(x, i)   longjmp(x,i)
#define ACTIVE_BINDING_MASK   (1<<15)
#define BINDING_LOCK_MASK   (1<<14)
#define SPECIAL_BINDING_MASK   (ACTIVE_BINDING_MASK | BINDING_LOCK_MASK)
#define streql(s, t)   (!strcmp((s), (t)))
#define R_EOF   -1
#define INI_as(v)
#define extern0   extern attribute_hidden
#define PARSE_ERROR_SIZE   256 /* Parse error messages saved here */
#define PARSE_CONTEXT_SIZE   256 /* Recent parse context kept in a circular buffer */
#define checkArity(a, b)   Rf_checkArityCall(a,b,call)
#define allocCharsxp   Rf_allocCharsxp
#define begincontext   Rf_begincontext
#define check1arg   Rf_check1arg
#define CleanEd   Rf_CleanEd
#define CoercionWarning   Rf_CoercionWarning
#define ComplexFromInteger   Rf_ComplexFromInteger
#define ComplexFromLogical   Rf_ComplexFromLogical
#define ComplexFromReal   Rf_ComplexFromReal
#define ComplexFromString   Rf_ComplexFromString
#define copyListMatrix   Rf_copyListMatrix
#define copyMostAttribNoTs   Rf_copyMostAttribNoTs
#define CustomPrintValue   Rf_CustomPrintValue
#define DataFrameClass   Rf_DataFrameClass
#define ddfindVar   Rf_ddfindVar
#define deparse1   Rf_deparse1
#define deparse1line   Rf_deparse1line
#define deparse1s   Rf_deparse1s
#define DispatchGroup   Rf_DispatchGroup
#define DispatchOrEval   Rf_DispatchOrEval
#define dynamicfindVar   Rf_dynamicfindVar
#define EncodeRaw   Rf_EncodeRaw
#define EncodeString   Rf_EncodeString
#define EnsureString   Rf_EnsureString
#define envlength   Rf_envlength
#define ErrorMessage   Rf_ErrorMessage
#define evalListKeepMissing   Rf_evalListKeepMissing
#define factorsConform   Rf_factorsConform
#define findcontext   Rf_findcontext
#define findVar1   Rf_findVar1
#define FrameClassFix   Rf_FrameClassFix
#define framedepth   Rf_framedepth
#define frameSubscript   Rf_frameSubscript
#define get1index   Rf_get1index
#define getVar   Rf_getVar
#define getVarInFrame   Rf_getVarInFrame
#define InitArithmetic   Rf_InitArithmetic
#define InitColors   Rf_InitColors
#define InitConnections   Rf_InitConnections
#define InitEd   Rf_InitEd
#define InitFunctionHashing   Rf_InitFunctionHashing
#define InitGlobalEnv   Rf_InitGlobalEnv
#define InitGraphics   Rf_InitGraphics
#define InitMemory   Rf_InitMemory
#define InitNames   Rf_InitNames
#define InitOptions   Rf_InitOptions
#define InitStringHash   Rf_InitStringHash
#define InitTempDir   Rf_InitTempDir
#define initStack   Rf_initStack
#define IntegerFromComplex   Rf_IntegerFromComplex
#define IntegerFromLogical   Rf_IntegerFromLogical
#define IntegerFromReal   Rf_IntegerFromReal
#define IntegerFromString   Rf_IntegerFromString
#define internalTypeCheck   Rf_internalTypeCheck
#define isValidName   Rf_isValidName
#define ItemName   Rf_ItemName
#define jump_to_toplevel   Rf_jump_to_toplevel
#define KillAllDevices   Rf_KillAllDevices
#define levelsgets   Rf_levelsgets
#define LogicalFromComplex   Rf_LogicalFromComplex
#define LogicalFromInteger   Rf_LogicalFromInteger
#define LogicalFromReal   Rf_LogicalFromReal
#define LogicalFromString   Rf_LogicalFromString
#define mainloop   Rf_mainloop
#define makeSubscript   Rf_makeSubscript
#define markKnown   Rf_markKnown
#define mat2indsub   Rf_mat2indsub
#define matchArg   Rf_matchArg
#define matchArgExact   Rf_matchArgExact
#define matchArgs   Rf_matchArgs
#define matchPar   Rf_matchPar
#define Mbrtowc   Rf_mbrtowc
#define mbtoucs   Rf_mbtoucs
#define mkCLOSXP   Rf_mkCLOSXP
#define mkFalse   Rf_mkFalse
#define mkPROMISE   Rf_mkPROMISE
#define mkQUOTE   Rf_mkQUOTE
#define mkTrue   Rf_mkTrue
#define NewEnvironment   Rf_NewEnvironment
#define OneIndex   Rf_OneIndex
#define onintr   Rf_onintr
#define onsigusr1   Rf_onsigusr1
#define onsigusr2   Rf_onsigusr2
#define parse   Rf_parse
#define PrintDefaults   Rf_PrintDefaults
#define PrintGreeting   Rf_PrintGreeting
#define PrintValueEnv   Rf_PrintValueEnv
#define PrintValueRec   Rf_PrintValueRec
#define PrintVersion   Rf_PrintVersion
#define PrintVersion_part_1   Rf_PrintVersion_part_1
#define PrintVersionString   Rf_PrintVersionString
#define PrintWarnings   Rf_PrintWarnings
#define promiseArgs   Rf_promiseArgs
#define RealFromComplex   Rf_RealFromComplex
#define RealFromInteger   Rf_RealFromInteger
#define RealFromLogical   Rf_RealFromLogical
#define RealFromString   Rf_RealFromString
#define Seql   Rf_Seql
#define Scollate   Rf_Scollate
#define sortVector   Rf_sortVector
#define SrcrefPrompt   Rf_SrcrefPrompt
#define ssort   Rf_ssort
#define StringFromComplex   Rf_StringFromComplex
#define StringFromInteger   Rf_StringFromInteger
#define StringFromLogical   Rf_StringFromLogical
#define StringFromReal   Rf_StringFromReal
#define strIsASCII   Rf_strIsASCII
#define strmat2intmat   Rf_strmat2intmat
#define substituteList   Rf_substituteList
#define tsConform   Rf_tsConform
#define tspgets   Rf_tspgets
#define type2symbol   Rf_type2symbol
#define unbindVar   Rf_unbindVar
#define usemethod   Rf_usemethod
#define ucstomb   Rf_ucstomb
#define ucstoutf8   Rf_ucstoutf8
#define utf8toucs   Rf_utf8toucs
#define utf8towcs   Rf_utf8towcs
#define vectorIndex   Rf_vectorIndex
#define vectorSubscript   Rf_vectorSubscript
#define warningcall   Rf_warningcall
#define WarningMessage   Rf_WarningMessage
#define wcstoutf8   Rf_wcstoutf8
#define wtransChar   Rf_wtransChar
#define R_CONSOLE   1
#define R_FILE   2
#define R_TEXT   3
#define CONSOLE_BUFFER_SIZE   4096
#define KEEPINTEGER   1
#define QUOTEEXPRESSIONS   2
#define SHOWATTRIBUTES   4
#define USESOURCE   8
#define WARNINCOMPLETE   16
#define DELAYPROMISES   32
#define KEEPNA   64
#define S_COMPAT   128
#define SIMPLEDEPARSE   0
#define DEFAULTDEPARSE   65 /* KEEPINTEGER | KEEPNA, used for calls */
#define FORSOURCING   95 /* not DELAYPROMISES, used in edit.c */
#define R_MaxDevices   64
#define mbs_init(x)   memset(x, 0, sizeof(mbstate_t))
#define _(String)   (String)
#define N_(String)   String
#define ngettext(String, StringP, N)   (N > 1 ? StringP: String)
#define BEGIN_SUSPEND_INTERRUPTS
#define END_SUSPEND_INTERRUPTS

Typedefs

typedef struct VECREC * VECP
typedef SEXP(* R_stdGen_ptr_t )(SEXP, SEXP, SEXP)
typedef unsigned short ucs2_t

Enumerations

enum  ARITHOP_TYPE {
  PLUSOP = 1, MINUSOP, TIMESOP, DIVOP,
  POWOP, MODOP, IDIVOP
}
enum  RELOP_TYPE {
  EQOP = 1, NEOP, LTOP, LEOP,
  GEOP, GTOP
}
enum  Rprt_adj { Rprt_adj_left = 0, Rprt_adj_right = 1, Rprt_adj_centre = 2, Rprt_adj_none = 3 }

Functions

void Rf_CoercionWarning (int)
int Rf_LogicalFromInteger (int, int *)
int Rf_LogicalFromReal (double, int *)
int Rf_LogicalFromComplex (Rcomplex, int *)
int Rf_IntegerFromLogical (int, int *)
int Rf_IntegerFromReal (double, int *)
int Rf_IntegerFromComplex (Rcomplex, int *)
double Rf_RealFromLogical (int, int *)
double Rf_RealFromInteger (int, int *)
double Rf_RealFromComplex (Rcomplex, int *)
Rcomplex Rf_ComplexFromLogical (int, int *)
Rcomplex Rf_ComplexFromInteger (int, int *)
Rcomplex Rf_ComplexFromReal (double, int *)
int IS_BYTES (SEXP x)
 Does a CXXR::String have bytecode encoding?
void SET_BYTES (SEXP x)
int IS_ASCII (SEXP x)
 Is a CXXR::String pure ASCII?
void R_ProcessEvents (void)
size_t BYTE2VEC (int n)
size_t INT2VEC (int n)
size_t FLOAT2VEC (int n)
size_t COMPLEX2VEC (int n)
size_t PTR2VEC (int n)
LibExtern Rboolean
R_interrupts_suspended 
INI_as (FALSE)
LibExtern int R_interrupts_pending INI_as (0)
extern0 R_size_t R_VSize INI_as (R_VSIZE)
extern0 int R_WarnLength INI_as (1000)
extern0 int R_nwarnings INI_as (50)
uintptr_t R_CStackLimit INI_as ((uintptr_t)-1)
extern0 int R_CStackDir INI_as (1)
LibExtern Rboolean R_Interactive INI_as (TRUE)
FILE *R_Consolefile INI_as (NULL)
extern0 int R_ErrorCon INI_as (2)
extern0 char R_StdinEnc[31] INI_as ("")
void R_setupHistory (void)
extern0 char OutDec INI_as ('.')
int Rf_initEmbeddedR (int argc, char **argv)
const char *R_GUIType INI_as ("unknown")
double cpuLimit INI_as (-1.0)
void resetTimeLimits (void)
SEXP R_cmpfun (SEXP)
void R_init_jit_enabled (void)
R_stdGen_ptr_t R_get_standardGeneric_ptr (void)
R_stdGen_ptr_t R_set_standardGeneric_ptr (R_stdGen_ptr_t, SEXP)
SEXP R_deferred_default_method (void)
SEXP R_set_prim_method (SEXP fname, SEXP op, SEXP code_vec, SEXP fundef, SEXP mlist)
SEXP do_set_prim_method (SEXP op, const char *code_string, SEXP fundef, SEXP mlist)
void R_set_quick_method_check (R_stdGen_ptr_t)
SEXP R_primitive_methods (SEXP op)
SEXP R_primitive_generic (SEXP op)
extern0 int R_dec_min_exponent INI_as (-308)
extern0 unsigned int
max_contour_segments 
INI_as (25000)
int R_ReadConsole (const char *, unsigned char *, int, int)
void R_WriteConsole (const char *, int)
void R_WriteConsoleEx (const char *, int, int)
void R_ResetConsole (void)
void R_FlushConsole (void)
void R_ClearerrConsole (void)
void R_Busy (int)
int R_ShowFiles (int, const char **, const char **, const char *, Rboolean, const char *)
int R_EditFiles (int, const char **, const char **, const char *)
int R_ChooseFile (int, char *, int)
char * R_HomeDir (void)
Rboolean R_FileExists (const char *)
Rboolean R_HiddenFile (const char *)
double R_FileMtime (const char *)
R_varloc_t R_findVarLocInFrame (SEXP, SEXP)
SEXP R_GetVarLocValue (R_varloc_t)
SEXP R_GetVarLocSymbol (R_varloc_t)
Rboolean R_GetVarLocMISSING (R_varloc_t)
void R_SetVarLocValue (R_varloc_t, SEXP)
int Rf_LogicalFromString (SEXP, int *)
int Rf_IntegerFromString (SEXP, int *)
double Rf_RealFromString (SEXP, int *)
Rcomplex Rf_ComplexFromString (SEXP, int *)
SEXP Rf_StringFromLogical (int, int *)
SEXP Rf_StringFromInteger (int, int *)
SEXP Rf_StringFromReal (double, int *)
SEXP Rf_StringFromComplex (Rcomplex, int *)
SEXP Rf_EnsureString (SEXP)
SEXP Rf_allocCharsxp (R_len_t)
SEXP Rf_append (SEXP, SEXP)
void Rf_check1arg (SEXP, SEXP, const char *)
void Rf_checkArityCall (SEXP, SEXP, SEXP)
void R_check_locale (void)
void Rf_CleanEd (void)
void Rf_copyListMatrix (SEXP, SEXP, Rboolean)
void Rf_copyMostAttribNoTs (SEXP, SEXP)
double currentTime (void)
void Rf_CustomPrintValue (SEXP, SEXP)
void Rf_DataFrameClass (SEXP)
SEXP Rf_ddfindVar (SEXP, SEXP)
SEXP Rf_deparse1 (SEXP, Rboolean, int)
SEXP Rf_deparse1line (SEXP, Rboolean)
SEXP Rf_deparse1s (SEXP call)
int Rf_DispatchOrEval (SEXP, SEXP, const char *, SEXP, SEXP, SEXP *, int, int)
int Rf_DispatchGroup (const char *, SEXP, SEXP, SEXP, SEXP, SEXP *)
SEXP duplicated (SEXP, Rboolean)
SEXP duplicated3 (SEXP, SEXP, Rboolean)
int any_duplicated (SEXP, Rboolean)
int any_duplicated3 (SEXP, SEXP, Rboolean)
int Rf_envlength (SEXP)
SEXP Rf_evalListKeepMissing (SEXP, SEXP)
int Rf_factorsConform (SEXP, SEXP)
SEXP Rf_findVar1 (SEXP, SEXP, SEXPTYPE, int)
void Rf_FrameClassFix (SEXP)
SEXP Rf_frameSubscript (int, SEXP, SEXP)
int Rf_get1index (SEXP, SEXP, int, int, int, SEXP)
SEXP Rf_getVar (SEXP, SEXP)
SEXP Rf_getVarInFrame (SEXP, SEXP)
void Rf_InitArithmetic (void)
void Rf_InitColors (void)
void Rf_InitConnections (void)
void Rf_InitEd (void)
void Rf_InitFunctionHashing (void)
void Rf_InitGlobalEnv (void)
Rboolean R_current_trace_state (void)
Rboolean R_has_methods (SEXP)
void R_InitialData (void)
std::pair< bool, SEXPR_possible_dispatch (SEXP, SEXP, SEXP, SEXP, Rboolean)
void Rf_InitGraphics (void)
void Rf_InitMemory (void)
void Rf_InitNames (void)
void Rf_InitOptions (void)
void Rf_InitStringHash (void)
void Init_R_Variables (SEXP)
void Rf_InitTempDir (void)
void Rf_initStack (void)
void Rf_internalTypeCheck (SEXP, SEXP, SEXPTYPE)
Rboolean isMethodsDispatchOn (void)
int Rf_isValidName (const char *)
void Rf_KillAllDevices (void)
SEXP Rf_levelsgets (SEXP, SEXP)
void Rf_mainloop (void)
SEXP Rf_makeSubscript (SEXP, SEXP, int *, SEXP)
SEXP Rf_markKnown (const char *, SEXP)
SEXP Rf_mat2indsub (SEXP, SEXP, SEXP)
SEXP Rf_matchArg (SEXP, SEXP *)
SEXP Rf_matchArgExact (SEXP, SEXP *)
SEXP Rf_matchArgs (SEXP, SEXP, SEXP)
SEXP Rf_matchPar (const char *, SEXP *)
SEXP Rf_mkCLOSXP (SEXP, SEXP, SEXP)
 Create a CXXR::Closure object.
SEXP Rf_mkFalse (void)
SEXP Rf_mkPROMISE (SEXP, SEXP)
 Create a CXXR::Promise object.
SEXP Rf_mkQUOTE (SEXP)
SEXP Rf_mkTrue (void)
SEXP Rf_NewEnvironment (SEXP, SEXP, SEXP)
void Rf_onintr (void)
RETSIGTYPE Rf_onsigusr1 (int)
RETSIGTYPE Rf_onsigusr2 (int)
int Rf_OneIndex (SEXP, SEXP, int, int, SEXP *, int, SEXP)
SEXP Rf_parse (FILE *, int)
void Rf_PrintDefaults (void)
void Rf_PrintGreeting (void)
void Rf_PrintValueEnv (SEXP, SEXP)
void Rf_PrintValueRec (SEXP, SEXP)
void Rf_PrintVersion (char *)
void Rf_PrintVersionString (char *)
void Rf_PrintWarnings (void)
void PrintVersion_part_1 (char *)
void process_site_Renviron (void)
void process_system_Renviron (void)
void process_user_Renviron (void)
SEXP Rf_promiseArgs (SEXP, SEXP)
void Rcons_vprintf (const char *, va_list)
SEXP R_data_class (SEXP, Rboolean)
SEXP R_data_class2 (SEXP)
char * R_LibraryFileName (const char *, char *, size_t)
SEXP R_LoadFromFile (FILE *, int)
SEXP R_NewHashedEnv (SEXP, SEXP)
int R_Newhashpjw (const char *)
FILE * R_OpenLibraryFile (const char *)
SEXP R_Primitive (const char *)
void R_RestoreGlobalEnv (void)
void R_RestoreGlobalEnvFromFile (const char *, Rboolean)
void R_SaveGlobalEnv (void)
void R_SaveGlobalEnvToFile (const char *)
void R_SaveToFile (SEXP, FILE *, int)
void R_SaveToFileV (SEXP, FILE *, int, int)
Rboolean R_seemsOldStyleS4Object (SEXP object)
int R_SetOptionWarn (int)
int R_SetOptionWidth (int)
void R_Suicide (const char *)
void R_getProcTime (double *data)
int R_isMissing (SEXP symbol, SEXP rho)
 Is a Symbol missing within an Environment?
void Rf_sortVector (SEXP, Rboolean)
void Rf_SrcrefPrompt (const char *, SEXP)
void Rf_ssort (CXXR::StringVector *, int)
SEXP Rf_strmat2intmat (SEXP, SEXP, SEXP)
SEXP Rf_substituteList (SEXP, SEXP)
Rboolean Rf_tsConform (SEXP, SEXP)
SEXP Rf_tspgets (SEXP, SEXP)
SEXP Rf_type2symbol (SEXPTYPE)
void Rf_unbindVar (SEXP, SEXP)
SEXP R_LookupMethod (SEXP, SEXP, SEXP, SEXP)
int Rf_usemethod (const char *, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP *)
SEXP vectorIndex (SEXP, SEXP, int, int, int, SEXP)
SEXP Rf_vectorSubscript (int, SEXP, int *, SEXP(*)(SEXP, SEXP), SEXP(*)(SEXP, int), SEXP, SEXP)
SEXP Rf_ItemName (SEXP, int)
void Rf_ErrorMessage (SEXP, int,...)
void Rf_WarningMessage (SEXP, R_WARNING,...)
SEXP R_GetTraceback (int)
R_size_t R_GetMaxVSize (void)
void R_SetMaxVSize (R_size_t)
R_size_t R_GetMaxNSize (void)
void R_SetMaxNSize (R_size_t)
R_size_t R_Decode2Long (char *p, int *ierr)
void R_SetPPSize (R_size_t)
int Rstrlen (SEXP, int)
const char * Rf_EncodeRaw (Rbyte)
const char * Rf_EncodeString (SEXP, int, int, Rprt_adj)
const char * EncodeReal2 (double, int, int, int)
void orderVector1 (int *indx, int n, SEXP key, Rboolean nalast, Rboolean decreasing, SEXP rho)
SEXP R_subset3_dflt (SEXP, SEXP, SEXP)
SEXP R_subassign3_dflt (SEXP, SEXP, SEXP, SEXP)
void UNIMPLEMENTED_TYPE (const char *s, SEXP x)
void UNIMPLEMENTED_TYPEt (const char *s, SEXPTYPE t)
Rboolean Rf_strIsASCII (const char *str)
int utf8clen (char c)
size_t mbcsToUcs2 (const char *in, ucs2_t *out, int nout, int enc)
size_t Rf_utf8toucs (wchar_t *wc, const char *s)
size_t Rf_utf8towcs (wchar_t *wc, const char *s, size_t n)
size_t Rf_ucstomb (char *s, const unsigned int wc)
size_t Rf_ucstoutf8 (char *s, const unsigned int wc)
size_t Rf_mbtoucs (unsigned int *wc, const char *s, size_t n)
size_t Rf_wcstoutf8 (char *s, const wchar_t *wc, size_t n)
const wchar_t * Rf_wtransChar (SEXP x)
size_t Rf_mbrtowc (wchar_t *wc, const char *s, size_t n, mbstate_t *ps)
Rboolean mbcsValid (const char *str)
Rboolean utf8Valid (const char *str)
char * Rf_strchr (const char *s, int c)
char * Rf_strrchr (const char *s, int c)
FILE * RC_fopen (const SEXP fn, const char *mode, const Rboolean expand)
int Rf_Seql (SEXP a, SEXP b)
int Scollate (SEXP a, SEXP b)
double R_strtod4 (const char *str, char **endptr, char dec, Rboolean NA)
double R_strtod (const char *str, char **endptr)
double R_atof (const char *str)
void set_rl_word_breaks (const char *str)
const char * locale2charset (const char *)
void * alloca (size_t)
Rboolean R_access_X11 (void)
SEXP R_execMethod (SEXP op, SEXP rho)
double R_getClockIncrement ()
SEXP do_gpregexpr (SEXP pat, SEXP vec, int igcase_opt, int useBytes)
SEXP do_pgsub (SEXP pat, SEXP rep, SEXP vec, int global, int igcase_opt, int useBytes)
const wchar_t * wtransChar (SEXP x)

Variables

extern0 SEXP R_CommentSymbol
extern0 SEXP R_DotEnvSymbol
extern0 SEXP R_ExactSymbol
extern0 SEXP R_RecursiveSymbol
extern0 SEXP R_SrcfileSymbol
extern0 SEXP R_WholeSrcrefSymbol
extern0 SEXP R_SrcrefSymbol
extern0 SEXP R_TmpvalSymbol
extern0 SEXP R_UseNamesSymbol
extern0 SEXP R_DoubleColonSymbol
extern0 SEXP R_TripleColonSymbol
extern0 SEXP R_ConnIdSymbol
extern0 SEXP R_DevicesSymbol
extern0 SEXP R_dot_Generic
extern0 SEXP R_dot_Methods
extern0 SEXP R_dot_Group
extern0 SEXP R_dot_Class
extern0 SEXP R_dot_GenericCallEnv
extern0 SEXP R_dot_GenericDefEnv
LibExtern char * R_Home
extern0 SEXP R_NHeap
extern0 SEXP R_FreeSEXP
LibExtern int R_Is_Running
extern0 Rboolean R_Visible
 Print expression value?
extern0 int R_ParseErrorCol
extern0 SEXP R_ParseErrorFile
extern0 int R_ParseContextLine
LibExtern char * R_HistoryFile
LibExtern int R_HistorySize
LibExtern int R_RestoreHistory
CXXR::GCRoot R_Warnings
CXXR::GCRoot R_HandlerStack
CXXR::GCRoot R_RestartStack
LibExtern SEXP R_MethodsNamespace
LibExtern AccuracyInfo R_AccuracyInfo

Detailed Description

A ragbag.

As CXXR development proceeds, the type definitions, many function prototypes etc. defined in this header file will disappear, because the relevant functionality will have been absorbed into the CXXR core, and declared within the appropriate header file in the src/include/CXXR directory.

In a few cases, a declaration within this file is repeated in a header file under src/include/CXXR; this is because source files within the CXXR core never #includes Defn.h itself (nor Rinternals.h. In such a case the relevant CXXR header file is #included back into Defn.h, so that the compiler can detect any inconsistency between the two declarations.


Macro Definition Documentation

#define BEGIN_SUSPEND_INTERRUPTS
Value:
do { \
Rboolean __oldsusp__ = R_interrupts_suspended; \
R_interrupts_suspended = TRUE;
#define END_SUSPEND_INTERRUPTS
Value:
R_interrupts_suspended = __oldsusp__; \
onintr(); \
} while(0)
#define MAXELTSIZE
Value:
8192 /* Used as a default for string buffer sizes,
and occasionally as a limit. */

Function Documentation

int IS_ASCII ( SEXP  x)
inline

Is a CXXR::String pure ASCII?

Parameters:
xPointer to a CXXR::String.
Returns:
true iff x contains only ASCII characters..
int IS_BYTES ( SEXP  x)
inline

Does a CXXR::String have bytecode encoding?

Parameters:
xPointer to a CXXR::String.
Returns:
true iff x is marked as having BYTES encoding.
int R_isMissing ( SEXP  symbol,
SEXP  rho 
)

Is a Symbol missing within an Environment?

Parameters:
symbolPointer to the Symbol whose missing status is required.
rhoPointer to the Environment in whose Frame symbol is to be sought.
Returns:
A non-zero value iff symbol is missing in the Frame of rho.
Note:
For more information, refer to the code, which is surprisingly complicated.
SEXP Rf_mkCLOSXP ( SEXP  ,
SEXP  ,
SEXP   
)

Create a CXXR::Closure object.

Parameters:
formal_argsPointer to a CXXR::PairList (checked) of formal arguments.
bodyPointer to the body of the CXXR::Closure. This must be either a null pointer or a pointer to an object of one of the following types: LISTSXP, LANGSXP, SYMSXP, EXPRSXP, VECSXP or BCODESXP (checked).
envpointer to the CXXR::Environment (checked) in which the closure is to be evaluated.
Returns:
pointer to the created closure object.
SEXP Rf_mkPROMISE ( SEXP  ,
SEXP   
)

Create a CXXR::Promise object.

Parameters:
exprExpression to be evaluated to provide the value of the CXXR::Promise.
envCXXR::Environment in which expr is to be evaluated.

Variable Documentation

extern0 Rboolean R_Visible

Print expression value?

If R_Visible is TRUE when the evaluation of a top-level R expression completes, the value of the expression is printed.

Note:
In CXXR, R_Visible is evolving towards becoming a static data member of class CXXR::Evaluator.