Lines Matching defs:rsep
39 int rsep; /* or record separator */
50 { "rsep", "Rows are separated by 'rsep=character'.", (Void_t*)TR_SEPARATOR },
51 { "fsep", "This is equivalent to 'rsep'.", (Void_t*)TR_SEPARATOR },
58 static ssize_t transflip(Vcchar_t* data, ssize_t dtsz, int rsep, Vcchar_t* flip)
60 static ssize_t transflip(data, dtsz, rsep, flip)
63 int rsep;
71 if(data[dtsz-1] != rsep)
76 if(data[z] == rsep)
85 { if(data[z] == rsep)
102 if(byte == rsep) /* record is done */
115 static ssize_t unflip(Vcchar_t* data, ssize_t dtsz, int rsep, Vcchar_t* flip)
117 static ssize_t unflip(data, dtsz, rsep, flip)
120 int rsep;
127 if(data[dtsz-1] != rsep)
132 if(data[z] == rsep)
150 if(data[z] == rsep) /* this record is done */
176 if(data[z] == rsep) /* this record is done */
361 int rsep; /* if >= 0, record separator for var-length table */
376 if((rsep = ctxt->rsep) < 0 && trans->ctxt->rsep >= 0 )
377 rsep = trans->ctxt->rsep;
378 if(rsep >= 0)
384 if(rsep >= 0) /* var-length table */
386 if(dt[z] == rsep)
404 z = 2*sizeof(ssize_t); /* for coding ncols or rsep */
408 if(rsep >= 0)
409 { if((nrows = transflip((Vcchar_t*)data, sz, rsep, output)) < 0)
428 vcioputc(&io, rsep);
449 int rsep; /* if >= 0, record separator for var-length table */
465 rsep = -1; ncols = nrows = 0;
470 rsep = vciogetc(&io);
473 { if((rsep = ctxt->rsep) < 0)
474 rsep = trans->ctxt->rsep;
475 if(rsep < 0)
480 if(rsep < 0 && ncols <= 0)
489 if(rsep < 0) /* fixed-length data */
498 if(rsep < 0)
500 else if(unflip(dt, z, rsep, output) < 0)
547 ctxt->rsep = val[0];
552 ctxt->rsep = -1;
570 ctxt->rsep = -1;