Lines Matching defs:sfdt
33 #define VCSFERROR(dc,m) ((dc)->sfdt->errorf ? ((*(dc)->sfdt->errorf)(m), -1) : -1 )
43 Vcsfdata_t* sfdt; /* initialization parameters */
244 if(sfdc->sfdt->type&VCSF_PLAIN)
257 vcioputc(sfdc->io, (sfdc->sfdt->type&VCSF_VCDIFF) ? 0 : VC_HEADER3);
263 if(!(sfdc->sfdt->type&VCSF_VCDIFF) )
419 sfdc->sfdt->trans = buf;
516 else if(sfdc->sfdt->type & VCSF_TRANS)
898 if(!(sfdc->sfdt->type&VCSF_PLAIN) )
920 if(sfdc->sfdt->type&VCSF_FREE)
921 free(sfdc->sfdt);
967 Vcsfio_t* vcsfio(Sfio_t* sf, Vcsfdata_t* sfdt, int type)
971 Vcsfdata_t* sfdt; /* data to initialize stream */
981 if(!sfdt && type == VC_DECODE)
982 { sfdt = &dflt; /* assuming coded header data */
983 memset(sfdt, 0, sizeof(Vcsfdata_t));
986 if(!sf || !sfdt )
991 if(sfdt->type & VCSF_VCDIFF) /* special case for RFC3284 header */
992 { sfdt->type &= ~VCSF_PLAIN;
995 else trans = sfdt->trans;
998 #define errorsfio(s) do { if(sfdt->errorf) (*sfdt->errorf)(s); goto error; } while(0)
1000 if(!(sfdc = (Sfdc_t*)calloc(1,sizeof(Sfdc_t) + (sfdt == &dflt ? sizeof(dflt) : 0))) )
1002 sfdt->type = -1;
1014 if(sfdt == &dflt)
1015 { sfdt = (Vcsfdata_t*)(sfdc + 1);
1016 *sfdt = dflt;
1018 sfdc->sfdt = sfdt; /* init parameters */
1020 wsize = getwindow(sfdt->window, &wmeth);
1028 if((sfdc->vc->meth->type & VC_MTSOURCE) && sfdt->source)
1029 { if(!(sfdc->vcwdc.srcf = sfopen(0,sfdt->source,"rb")) )
1057 sfdt->type = -1;
1063 if(sfdt->type & VCSF_PLAIN)
1071 sfdt->type |= VCSF_TRANS;
1074 { sfdt->type = 0;
1083 sfdt->type = 1;
1089 if((sfdc->vc->meth->type & VC_MTSOURCE) && sfdt->source)
1090 { if(!(sfdc->vcwdc.srcf = sfopen(0,sfdt->source,"rb")) )