The R Project SVN R

Rev

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

Rev 63007 Rev 63025
Line 39... Line 39...
39
    PROTECT_INDEX SrcFileProt;	/* The SrcFile may change */
39
    PROTECT_INDEX SrcFileProt;	/* The SrcFile may change */
40
    PROTECT_INDEX OriginalProt; /* ditto */
40
    PROTECT_INDEX OriginalProt; /* ditto */
41
    SEXP data;			/* Detailed info on parse */
41
    SEXP data;			/* Detailed info on parse */
42
    SEXP text;
42
    SEXP text;
43
    SEXP ids;
43
    SEXP ids;
44
    PROTECT_INDEX DATA_INDEX;
-
 
45
    PROTECT_INDEX TEXT_INDEX;
-
 
46
    PROTECT_INDEX ID_INDEX;
-
 
47
    int data_count;
44
    int data_count;
48
    				/* Position information about the current parse */
45
    				/* Position information about the current parse */
49
    int xxlineno;		/* Line number according to #line directives */
46
    int xxlineno;		/* Line number according to #line directives */
50
    int xxcolno;		/* Character number on line */
47
    int xxcolno;		/* Character number on line */
51
    int xxbyteno;		/* Byte number on line */
48
    int xxbyteno;		/* Byte number on line */
52
    int xxparseno;              /* Line number ignoring #line directives */
49
    int xxparseno;              /* Line number ignoring #line directives */
53
    
50
    
54
    SrcRefState* prevState;
51
    SrcRefState* prevState;
55
};
52
};
56
 
53
 
-
 
54
void InitParser(void);
-
 
55
 
57
void R_InitSrcRefState(SrcRefState *state);
56
void R_InitSrcRefState(void);
58
void R_FinalizeSrcRefState(void);
57
void R_FinalizeSrcRefState(void);
59
 
58
 
60
SEXP R_Parse1Buffer(IoBuffer*, int, ParseStatus *); /* in ReplIteration,
59
SEXP R_Parse1Buffer(IoBuffer*, int, ParseStatus *); /* in ReplIteration,
61
						       R_ReplDLLdo1 */
60
						       R_ReplDLLdo1 */
62
SEXP R_ParseBuffer(IoBuffer*, int, ParseStatus *, SEXP, SEXP); /* in source.c */
61
SEXP R_ParseBuffer(IoBuffer*, int, ParseStatus *, SEXP, SEXP); /* in source.c */
63
SEXP R_Parse1File(FILE*, int, ParseStatus *, SrcRefState *); /* in R_ReplFile */
62
SEXP R_Parse1File(FILE*, int, ParseStatus *); /* in R_ReplFile */
64
SEXP R_ParseFile(FILE*, int, ParseStatus *, SEXP);  /* in edit.c */
63
SEXP R_ParseFile(FILE*, int, ParseStatus *, SEXP);  /* in edit.c */
65
 
64
 
66
#ifndef HAVE_RCONNECTION_TYPEDEF
65
#ifndef HAVE_RCONNECTION_TYPEDEF
67
typedef struct Rconn  *Rconnection;
66
typedef struct Rconn  *Rconnection;
68
#define HAVE_RCONNECTION_TYPEDEF
67
#define HAVE_RCONNECTION_TYPEDEF