The R Project SVN R

Rev

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

Rev 14560 Rev 14561
Line 213... Line 213...
213
	    SET_STRING_ELT(tvec, j, STRING_ELT(ssNA_STRING, 0));
213
	    SET_STRING_ELT(tvec, j, STRING_ELT(ssNA_STRING, 0));
214
    SETLEVELS(tvec, 0);
214
    SETLEVELS(tvec, 0);
215
    return (tvec);
215
    return (tvec);
216
}
216
}
217
 
217
 
-
 
218
static void closewin_cend(void *data)
-
 
219
{
-
 
220
    closewin();
-
 
221
}
-
 
222
 
218
SEXP RX11_dataentry(SEXP call, SEXP op, SEXP args, SEXP rho)
223
SEXP RX11_dataentry(SEXP call, SEXP op, SEXP args, SEXP rho)
219
{
224
{
220
    SEXP tvec2, tvec, colmodes, indata;
225
    SEXP tvec2, tvec, colmodes, indata;
221
    SEXPTYPE type;
226
    SEXPTYPE type;
222
    int i, j,len, nprotect, tmp;
227
    int i, j,len, nprotect, tmp;
Line 295... Line 300...
295
	errorcall(call, "invalid device");
300
	errorcall(call, "invalid device");
296
 
301
 
297
    /* set up a context which will close the window if there is an error */
302
    /* set up a context which will close the window if there is an error */
298
    begincontext(&cntxt, CTXT_CCODE, R_NilValue, R_NilValue, R_NilValue,
303
    begincontext(&cntxt, CTXT_CCODE, R_NilValue, R_NilValue, R_NilValue,
299
		 R_NilValue);
304
		 R_NilValue);
300
    cntxt.cend = &closewin;
305
    cntxt.cend = &closewin_cend;
-
 
306
    cntxt.cenddata = NULL;
301
 
307
 
302
    highlightrect();
308
    highlightrect();
303
 
309
 
304
    eventloop();
310
    eventloop();
305
 
311