The R Project SVN R

Rev

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

Rev 68949 Rev 70041
Line 1... Line 1...
1
/*
1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 1995, 1996  Robert Gentleman and Ross Ihaka
3
 *  Copyright (C) 1995, 1996  Robert Gentleman and Ross Ihaka
4
 *  Copyright (C) 1998--2015  The R Core Team.
4
 *  Copyright (C) 1998--2016  The R Core Team.
5
 *
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
9
 *  (at your option) any later version.
Line 27... Line 27...
27
*/
27
*/
28
 
28
 
29
#ifndef RINTERFACE_H_
29
#ifndef RINTERFACE_H_
30
#define RINTERFACE_H_
30
#define RINTERFACE_H_
31
 
31
 
-
 
32
// Support for NO_C_HEADERS added in R 3.3.0
32
#ifdef __cplusplus
33
#ifdef __cplusplus
-
 
34
# ifndef NO_C_HEADERS
33
#include <cstdio>
35
#  include <cstdio>
-
 
36
#  ifdef __SUNPRO_CC
-
 
37
using std::FILE;
-
 
38
#  endif
-
 
39
# endif
34
extern "C" {
40
extern "C" {
35
#else
41
#else
-
 
42
# ifndef NO_C_HEADERS
36
#include <stdio.h>
43
#  include <stdio.h>
-
 
44
#endif
37
#endif
45
#endif
38
 
46
 
39
#if defined(__GNUC__) && __GNUC__ >= 3
47
#if defined(__GNUC__) && __GNUC__ >= 3
40
#define NORET __attribute__((noreturn))
48
# define NORET __attribute__((noreturn))
41
#else
49
#else
42
#define NORET
50
# define NORET
43
#endif
51
#endif
44
 
52
 
45
#include <R_ext/Boolean.h>
53
#include <R_ext/Boolean.h>
46
#include <R_ext/RStartup.h>
54
#include <R_ext/RStartup.h>
47
 
55