The R Project SVN R

Rev

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

Rev 25948 Rev 25961
Line 15... Line 15...
15
 *  You should have received a copy of the GNU General Public License
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 */
18
 */
19
 
19
 
20
#define PARSE_NULL		0
-
 
21
#define PARSE_OK		1
-
 
22
#define PARSE_INCOMPLETE	2
20
#include <R_ext/Parse.h>
23
#define PARSE_ERROR		3
-
 
24
#define PARSE_EOF		4
-
 
25
 
21
 
26
	/* Parse A Single Expression */
22
	/* Parse A Single Expression */
27
 
23
 
28
SEXP R_Parse1File(FILE*, int, int*);
24
SEXP R_Parse1File(FILE*, int, ParseStatus *);
29
SEXP R_Parse1Buffer(IoBuffer*, int, int*);
25
SEXP R_Parse1Buffer(IoBuffer*, int, ParseStatus *);
30
SEXP R_Parse1Vector(TextBuffer*, int, int *);
26
SEXP R_Parse1Vector(TextBuffer*, int, ParseStatus *);
31
SEXP R_Parse1General(int (*)(), int (*)(), int, int *);
27
SEXP R_Parse1General(int (*)(), int (*)(), int, ParseStatus *);
32
 
28
 
33
	/* Parse Several Expressions */
29
	/* Parse Several Expressions */
34
 
30
 
35
SEXP R_ParseFile(FILE*, int, int*);
31
SEXP R_ParseFile(FILE*, int, ParseStatus *);
36
SEXP R_ParseBuffer(IoBuffer*, int, int*, SEXP);
32
SEXP R_ParseBuffer(IoBuffer*, int, ParseStatus *, SEXP);
37
SEXP R_ParseVector(SEXP, int, int *);
33
/* SEXP R_ParseVector(SEXP, int, ParseStatus *); in R_ext/Parse.h */
38
SEXP R_ParseGeneral(int (*)(), int (*)(), int, int *);
34
SEXP R_ParseGeneral(int (*)(), int (*)(), int, ParseStatus *);
-
 
35
 
-
 
36
 
-
 
37
#ifndef HAVE_RCONNECTION_TYPEDEF
-
 
38
typedef struct Rconn  *Rconnection;
-
 
39
#define HAVE_RCONNECTION_TYPEDEF
-
 
40
#endif
-
 
41
SEXP R_ParseConn(Rconnection con, int n, ParseStatus *status);