Displaying 2 results from an estimated 2 matches for "namesymbol".
2005 Sep 18
0
Updated rawConnection() patch
...XP, SEXP, SEXP);
SEXP do_download(SEXP, SEXP, SEXP, SEXP);
--- ./src/include/Rconnections.h.orig 2005-08-03 08:50:36.000000000 -0700
+++ ./src/include/Rconnections.h 2005-09-17 23:56:01.875475000 -0700
@@ -94,8 +94,7 @@
typedef struct outtextconn {
int len; /* number of lines */
- SEXP namesymbol;
- SEXP data;
+ SEXP namesymbol, data, venv;
char *lastline;
int lastlinelength; /* buffer size */
} *Routtextconn;
--- ./src/library/base/man/rawconnections.Rd.orig 2005-09-18 11:37:18.004405000 -0700
+++ ./src/library/base/man/rawconnections.Rd 2005-09-18 11:37:00.535655300 -0700...
2005 Aug 22
2
RFC: "loop connections"
...con)
+{
+ Routloopconn this = (Routloopconn)con->private;
+ SEXP tmp;
+ int idx = ConnIndex(con);
+
+ PROTECT(tmp = lengthgets(this->data, this->len + size*nitems));
+ memcpy(RAW(tmp)+this->len, ptr, size*nitems);
+ this->len += size*nitems;
+ defineVar(this->namesymbol, tmp, VECTOR_ELT(OutTextData, idx));
+ this->data = tmp;
+ UNPROTECT(1);
+ return nitems;
+}
+
+static void outloop_init(Rconnection con, char *mode, int idx)
{
- Routtextconn this = (Routtextconn)con->private;
+ Routloopconn this = (Routloopconn)con->private;
+ int st =...