The R Project SVN R

Rev

Rev 85619 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85619 Rev 85640
Line 22... Line 22...
22
#ifndef R_CONNECTIONS_H_
22
#ifndef R_CONNECTIONS_H_
23
#define R_CONNECTIONS_H_
23
#define R_CONNECTIONS_H_
24
 
24
 
25
/* the visible part of the connections */
25
/* the visible part of the connections */
26
#include <R_ext/Connections.h>
26
#include <R_ext/Connections.h>
-
 
27
#include <R_ext/Print.h>
27
 
28
 
28
/* NB: this is a private header, and not installed.  The internals of
29
/* NB: this is a private header, and not installed.  The internals of
29
       connections are private and subject to change without notice.
30
       connections are private and subject to change without notice.
30
       A subset can be accessed using R_ext/Connections.h but read
31
       A subset can be accessed using R_ext/Connections.h but read
31
       the warning in that file for details. */
32
       the warning in that file for details. */
Line 70... Line 71...
70
#define con_pushback	Rf_con_pushback
71
#define con_pushback	Rf_con_pushback
71
 
72
 
72
int Rconn_fgetc(Rconnection con);
73
int Rconn_fgetc(Rconnection con);
73
int Rconn_ungetc(int c, Rconnection con);
74
int Rconn_ungetc(int c, Rconnection con);
74
size_t Rconn_getline(Rconnection con, char *buf, size_t bufsize);
75
size_t Rconn_getline(Rconnection con, char *buf, size_t bufsize);
75
int Rconn_printf(Rconnection con, const char *format, ...)
76
int Rconn_printf(Rconnection con, const char *format, ...) R_PRINTF_FORMAT(2, 3);
76
#ifdef __GNUC__
-
 
77
__attribute__ ((format (printf, 2, 3)))
-
 
78
#endif
-
 
79
;
-
 
80
Rconnection getConnection(int n);
77
Rconnection getConnection(int n);
81
Rconnection getConnection_no_err(int n);
78
Rconnection getConnection_no_err(int n);
82
Rboolean switch_stdout(int icon, int closeOnExit);
79
Rboolean switch_stdout(int icon, int closeOnExit);
83
void init_con(Rconnection new, const char *description, int enc,
80
void init_con(Rconnection new, const char *description, int enc,
84
	      const char * const mode);
81
	      const char * const mode);