The R Project SVN R

Rev

Rev 27016 | Rev 29902 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27016 Rev 27032
Line 1302... Line 1302...
1302
		buf = (char *) realloc(buf, buf_size);
1302
		buf = (char *) realloc(buf, buf_size);
1303
		if(!buf)
1303
		if(!buf)
1304
		    error("cannot allocate buffer in readTableHead");
1304
		    error("cannot allocate buffer in readTableHead");
1305
	    }
1305
	    }
1306
	    if(quote && c == quote) quote = 0;
1306
	    if(quote && c == quote) quote = 0;
1307
	    else if(!skip && strchr(data.quoteset, c)) quote = c;
1307
	    else if(!quote && !skip && strchr(data.quoteset, c)) quote = c;
1308
	    if(empty && !skip)
1308
	    if(empty && !skip)
1309
		if(c != ' ' && c != '\t' && c != data.comchar) empty = FALSE;
1309
		if(c != ' ' && c != '\t' && c != data.comchar) empty = FALSE;
1310
	    if(!quote && !skip && c == data.comchar) skip = TRUE;
1310
	    if(!quote && !skip && c == data.comchar) skip = TRUE;
1311
	    if(quote || c != '\n') buf[nbuf++] = c; else break;
1311
	    if(quote || c != '\n') buf[nbuf++] = c; else break;
1312
	}
1312
	}