The R Project SVN R

Rev

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

Rev 71852 Rev 71864
Line 22... Line 22...
22
   e.g. GUIs such as GNOME and Cocoa.  It is only used on Unix-alikes.
22
   e.g. GUIs such as GNOME and Cocoa.  It is only used on Unix-alikes.
23
   All entries here should be documented in doc/manual/R-exts.texi.
23
   All entries here should be documented in doc/manual/R-exts.texi.
24
 
24
 
25
   It should not be included by package sources unless they are
25
   It should not be included by package sources unless they are
26
   providing such a front-end.
26
   providing such a front-end.
-
 
27
 
-
 
28
   If CSTACK_DEFNS is defined, also define HAVE_UINTPTR_T before
-
 
29
   including this perhaps by including Rconfig.h from C code (for C++
-
 
30
   you need to test the C++ compiler in use).
27
*/
31
*/
28
 
32
 
29
#ifndef RINTERFACE_H_
33
#ifndef RINTERFACE_H_
30
#define RINTERFACE_H_
34
#define RINTERFACE_H_
31
 
35
 
32
#include <R_ext/Boolean.h>
36
#include <R_ext/Boolean.h>
33
#include <R_ext/RStartup.h>
37
#include <R_ext/RStartup.h>
34
 
38
 
35
#ifdef __cplusplus
39
#ifdef __cplusplus
-
 
40
/* we do not support DO_NOT_USE_CXX_HEADERS in this file */
36
# include <cstdio>
41
# include <cstdio>
37
extern "C" {
42
extern "C" {
38
#else
43
#else
39
# include <stdio.h>
44
# include <stdio.h>
40
#endif
45
#endif
Line 101... Line 106...
101
#ifdef CSTACK_DEFNS
106
#ifdef CSTACK_DEFNS
102
/* duplicating Defn.h */
107
/* duplicating Defn.h */
103
#if !defined(HAVE_UINTPTR_T) && !defined(uintptr_t)
108
#if !defined(HAVE_UINTPTR_T) && !defined(uintptr_t)
104
 typedef unsigned long uintptr_t;
109
 typedef unsigned long uintptr_t;
105
#else
110
#else
106
#ifdef HAVE_STDINT_H
111
# ifdef __cplusplus
-
 
112
#  include <cstdint>
-
 
113
# else
107
# include <stdint.h>
114
#  include <stdint.h>
108
#endif
115
# endif
109
#endif
116
#endif
110
 
117
 
111
extern uintptr_t R_CStackLimit;	/* C stack limit */
118
extern uintptr_t R_CStackLimit;	/* C stack limit */
112
extern uintptr_t R_CStackStart;	/* Initial stack address */
119
extern uintptr_t R_CStackStart;	/* Initial stack address */
113
#endif
120
#endif