Displaying 2 results from an estimated 2 matches for "r_iobufferputc".
2013 May 25
0
segfault when using browser() in Rprofile.site
...314==
R version 3.0.1 Patched (2013-05-24 r62797) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
<snip>
Called from: top level
Browse[1]> ls()
==31314== Invalid write of size 1
==31314== at 0x4CF07D: R_IoBufferPutc (iosupport.c:135)
==31314== by 0x4D3C5C: Rf_ReplIteration (main.c:222)
==31314== by 0x4D4047: R_ReplConsole (main.c:307)
==31314== by 0x4D4353: do_browser (main.c:1137)
==31314== by 0x4B1E86: Rf_eval (eval.c:639)
==31314== by 0x4D22F0: R_ReplFile (main.c:101)
==31314== by 0x4D23FF...
2007 Jan 18
0
Emulating a REPL in frontends
...SEXP R_DLLGenericEplDo1 (unsigned char *buffer, ParseStatus *parse_status, Rboolean set_last_sym_value, int print_mode, Rboolean do_toplevel_callbacks)
{
int c;
ParseStatus status;
SEXP value;
SEXP rho = R_GlobalEnv;
Rboolean wasDisplayed = FALSE;
while((c = *buffer++)) {
R_IoBufferPutc(c, &R_ConsoleIob);
if(c == ';' || c == '\n') break;
}
R_PPStackTop = 0;
R_CurrentExpr = R_Parse1Buffer(&R_ConsoleIob, 0, &status);
if(parse_status) *parse_status = status;
switch(status) {
case PARSE_NULL:
R_IoBufferWriteReset(&R_ConsoleIob...