"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/filter.cpp" between
bed-3.0.3.src.tar.xz and bed-3.1.0.src.tar.xz

About: bed is an adjustable data format binary editor.

filter.cpp  (bed-3.0.3.src.tar.xz):filter.cpp  (bed-3.1.0.src.tar.xz)
skipping to change at line 73 skipping to change at line 73
memcpy(filtersnames[filtersnr],str,len+1); memcpy(filtersnames[filtersnr],str,len+1);
filtersfuncs[filtersnr++]=func; filtersfuncs[filtersnr++]=func;
return filtersnames[filtersnr-1]; return filtersnames[filtersnr-1];
} }
//s/=\(.*\);/(\1),/g //s/=\(.*\);/(\1),/g
int Filter::error(void) { int Filter::error(void) {
return err; return err;
} }
static char noconvstr[]=""; static char noconvstr[]="";
char *Filter::convstr(void) { char *Filter::convstr(void) const {
return noconvstr; return noconvstr;
} }
int Filter::equal(Filter *fil) { int Filter::equal(const Filter *fil) const {
if(strcmp(fil->label,label)) if(strcmp(fil->label,label))
return 0; return 0;
if(fil->bytesscreen!=bytesscreen) if(fil->bytesscreen!=bytesscreen)
return 0; return 0;
if(fil->bytesfile!=bytesfile) if(fil->bytesfile!=bytesfile)
return 0; return 0;
return 1; return 1;
} }
int Filter::setpart(ScreenPart *p) { int Filter::setpart(ScreenPart *p) {
skipping to change at line 366 skipping to change at line 366
if((byt=filters[i]->chbytesback(byt))<0) if((byt=filters[i]->chbytesback(byt))<0)
return -1; return -1;
filters[i]->err=0; filters[i]->err=0;
} }
if(byt>0&&bytes!=byt) { if(byt>0&&bytes!=byt) {
bytes=byt; bytes=byt;
editor->shouldreinit=1; editor->shouldreinit=1;
} }
return byt; return byt;
} }
int ScreenPart::equal(ScreenPart *part) { int ScreenPart::equal(const ScreenPart *part) const {
if(strcmp(part->getname(),getname())) if(strcmp(part->getname(),getname()))
return 0; return 0;
if(bytes!=part->bytes) if(bytes!=part->bytes)
return 0; return 0;
if(type!=part->type) if(type!=part->type)
return 0; return 0;
if(firstfilter!=part->firstfilter) if(firstfilter!=part->firstfilter)
return 0; return 0;
if(lastfilter!=part->lastfilter) if(lastfilter!=part->lastfilter)
return 0; return 0;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)