Displaying 6 results from an estimated 6 matches for "consolebufcnt".
2012 Jan 13
0
WISHLIST: Be able to timeout readline()/stdin via setTimeLimit in all consoles
...SEXP op, SEXP args, SEXP rho)
{
...
while ((c = ConsoleGetchar())!= '\n' && c != R_EOF) {
if (bufp >= &buffer[MAXELTSIZE - 2]) continue;
*bufp++ = c;
}
...
}
with ConsoleGetchar():
/* used by readline() and menu() */
static int ConsoleGetchar(void)
{
if (--ConsoleBufCnt < 0) {
ConsoleBuf[CONSOLE_BUFFER_SIZE] = '\0';
if (R_ReadConsole(ConsolePrompt, ConsoleBuf,
CONSOLE_BUFFER_SIZE, 0) == 0) {
R_ClearerrConsole();
return R_EOF;
}
ConsoleBufp = ConsoleBuf;
ConsoleBufCnt = strlen((char *)ConsoleBuf);
ConsoleBufCnt--;
}
/* at thi...
1997 Dec 31
0
R-beta: small patch for R-0.61 on SGI Irix 5.3
...I waited for 0.61. This had the same
problem, which appears to be fixed by the following patch:
*** scan.c.000 Fri Nov 21 00:06:43 1997
--- scan.c Wed Dec 31 12:11:05 1997
***************
*** 27,33 ****
static char ConsoleBuf[CONSOLE_BUFFER_SIZE];
static char *ConsoleBufp;
! static char ConsoleBufCnt;
static char ConsolePrompt[32];
static void InitConsoleGetchar()
--- 27,33 ----
static char ConsoleBuf[CONSOLE_BUFFER_SIZE];
static char *ConsoleBufp;
! static int ConsoleBufCnt;
static char ConsolePrompt[32];
static void InitConsoleGetchar()
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
1998 Jan 06
1
R-beta: Dec alpha
R ran find on our Sun until it was stolen. I have now set up R on one of
our Dec Alphas OSF1 V4.0 386. R-0.49 configures builds and runs fine
except that the glm command crashes R. R-0.60.1 configures builds and
runs until a cis entered. I think the problem is the floating point
conventions but before I get in over my head a question
Has anyone used glm successfully on Alphas OSF1 V4.0 386?
1998 Jan 11
0
R-beta: New version 0.61.1
...releases are bugfix releases now)
BUG FIXES
o Return statements of the form return(x,y) will now return
a list with named components.
o Parsing of nested "if" statments was broken. This is fixed now.
(Reported by Paul Gilbert).
o Wrong declaration of ConsoleBufCnt in src/main/scan.c caused crash
in Irix (George White <gwhite at bodnext.bio.dfo.ca>)
o if(nmatch = 0) bug in src/main/character.c fixed (Doug Bates)
o R_alloc/S_alloc fixes. The former allocated 4 times more than
needed, the latter zeroed half of what it got, si...
1998 Jan 11
0
R-beta: New version 0.61.1
...releases are bugfix releases now)
BUG FIXES
o Return statements of the form return(x,y) will now return
a list with named components.
o Parsing of nested "if" statments was broken. This is fixed now.
(Reported by Paul Gilbert).
o Wrong declaration of ConsoleBufCnt in src/main/scan.c caused crash
in Irix (George White <gwhite at bodnext.bio.dfo.ca>)
o if(nmatch = 0) bug in src/main/character.c fixed (Doug Bates)
o R_alloc/S_alloc fixes. The former allocated 4 times more than
needed, the latter zeroed half of what it got, si...
1999 Mar 25
4
readline() (PR#147)
Dear R developers,
I have found the following bug with readline() in R 0.63.3:
if you execute the menu-function and then the readline() function, then
readline() prompts "Selection:"
> a <- readline()
hello
> a
[1] "hallo"
> a <- menu(c("a", "b"), title="bitte:")
bitte:
1:a
2:b
Selection: 2
> a <- readline()
Selection: