The R Project SVN R

Rev

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

Rev 89790 Rev 89813
Line 249... Line 249...
249
    HANDLE done;
249
    HANDLE done;
250
} completionrequest;
250
} completionrequest;
251
 
251
 
252
 /* Fill a text buffer with user typed console input. */
252
 /* Fill a text buffer with user typed console input. */
253
int
253
int
254
#ifdef AFTER_RJAVA_FIX
-
 
255
R_ReadConsole(const char *prompt, unsigned char *buf, int len,
254
R_ReadConsole(const char *prompt, unsigned char *buf, int len,
256
	      int addtohistory)
255
	      int addtohistory)
257
#else
-
 
258
R_ReadConsole(char *prompt, unsigned char *buf, int len,
-
 
259
	      int addtohistory)
-
 
260
#endif
-
 
261
// work-around for non-matching declaration in rJava
-
 
262
{
256
{
263
    R_ProcessEvents();
257
    R_ProcessEvents();
264
    int res = ptr_ReadConsole(prompt, buf, len, addtohistory);
258
    int res = ptr_ReadConsole(prompt, buf, len, addtohistory);
265
    if (R_interrupts_pending)
259
    if (R_interrupts_pending)
266
        onintrNoResume();
260
        onintrNoResume();