search for: xxgetc

Displaying 6 results from an estimated 6 matches for "xxgetc".

Did you mean: fgetc
2009 Mar 20
2
Why does the lexical analyzer drop comments ?
It happens in the token function in gram.c:     c = SkipSpace();     if (c == '#') c = SkipComment(); and then SkipComment goes like that: static int SkipComment(void) {     int c;     while ((c = xxgetc()) != '\n' && c != R_EOF) ;     if (c == R_EOF) EndOfFile = 2;     return c; } which effectively drops comments. Would it be possible to keep the information somewhere ? The source code says this:  *  The function yylex() scans the input, breaking it into  *  tokens which are...
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
...mLatex.y (revision 84714) > +++ src/library/tools/src/gramLatex.y (working copy) > @@ -846,8 +846,8 @@ > > TEXT_PUSH('\\'); TEXT_PUSH('v'); TEXT_PUSH('e'); TEXT_PUSH('r'); > TEXT_PUSH('b'); > TEXT_PUSH(c); > - while ((c = xxgetc()) != delim) TEXT_PUSH(c); > - TEXT_PUSH(c); > + while (((c = xxgetc()) != delim) && c != R_EOF) TEXT_PUSH(c); > + if (c != R_EOF) TEXT_PUSH(c); > > PRESERVE_SV(yylval = mkString2(stext, bp - stext)); > if(stext != st0) free(stext); > > This seems...
2003 Apr 16
0
vignette segfault bt
...egal instruction. 0x080786ff in file_fgetc (con=0xbfffc830) at connections.c:289 289 this->wpos = ftell(this->fp); (gdb) bt #0 0x080786ff in file_fgetc (con=0xbfffc830) at connections.c:289 #1 0x080a9ce1 in con_getc () at /ext/R/cvs/R-devel/src/main/gram.y:1130 #2 0x080a881b in xxgetc () at /ext/R/cvs/R-devel/src/main/gram.y:287 #3 0x080aa947 in SymbolValue (c=255) at /ext/R/cvs/R-devel/src/main/gram.y:1673 #4 0x080aab01 in token () at /ext/R/cvs/R-devel/src/main/gram.y:1744 #5 0x080aaefa in Rf_yylex () at /ext/R/cvs/R-devel/src/main/gram.y:1886 #6 0x080a87e4 in Rf_yypar...
2008 Jan 04
1
Unicode whitespace
It would be nice if R ignored more unicode white space characters. For example, if I have "\u2028" in a command (which I get from a line-break in keynote) I get the following error: > qplot(carat, price, data = diamonds, colour=clarity) Error: unexpected input in "qplot(carat, price, data = diamonds, ?" And occasionally have such problems when copying and pasting from
2004 Jun 25
4
Bug in parse(text = <long polynom>) (PR#7022)
Merci beaucoup, Jean, for the bug report -- which I'm no "completeing" to R-bugs >>>>> "Jean" == Jean Coursol <coursol@cristal.math.u-psud.fr> >>>>> on Thu, 24 Jun 2004 15:22:37 +0200 (CEST) writes: Jean> I was exploring the polynom library with students: <and found a segmentation fault from parsing a long expression>
2003 Apr 05
0
sweave/gc segfault bt
...n fault. 0x080784ff in file_fgetc (con=0xbfffc8a0) at connections.c:291 291 fseek(this->fp, this->rpos, SEEK_SET); (gdb) bt #0 0x080784ff in file_fgetc (con=0xbfffc8a0) at connections.c:291 #1 0x080a9f12 in con_getc () at /ext/R/cvs/R-devel/src/main/gram.y:1130 #2 0x080a8a2b in xxgetc () at /ext/R/cvs/R-devel/src/main/gram.y:287 #3 0x080aab78 in SymbolValue (c=0) at /ext/R/cvs/R-devel/src/main/gram.y:1673 #4 0x080aad30 in token () at /ext/R/cvs/R-devel/src/main/gram.y:1744 #5 0x080ab12a in Rf_yylex () at /ext/R/cvs/R-devel/src/main/gram.y:1886 #6 0x080a89f4 in Rf_yyparse ()...