"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/examples/bitcontains.cc" between
bed-3.0.0.src.tar.xz and bed-3.0.1.src.tar.xz

About: bed is an adjustable data format binary editor.

bitcontains.cc  (bed-3.0.0.src.tar.xz):bitcontains.cc  (bed-3.0.1.src.tar.xz)
skipping to change at line 105 skipping to change at line 105
BitContain(BitContain const &rev): Contains(rev) BitContain(BitContain const &rev): Contains(rev)
{ {
if(filterpresent(this)) { if(filterpresent(this)) {
filnr=firstfilter; filnr=firstfilter;
fil=(Bitfield *)filters[firstfilter]; fil=(Bitfield *)filters[firstfilter];
} }
else { else {
filnr=-1;fil=NULL; filnr=-1;fil=NULL;
} }
} }
int calcsizes(void) { int calcsizes(void) override{
Contains::calcsizes(); Contains::calcsizes();
if(!filterpresent(this)) { if(!filterpresent(this)) {
for(int i=firstfilter;i<lastfilter;i++) for(int i=firstfilter;i<lastfilter;i++)
if( filters[i]->name==filtername(Bitfield)) { if( filters[i]->name==filtername(Bitfield)) {
filnr=i; filnr=i;
goto found; goto found;
} }
return bytes; return bytes;
} }
found: found:
skipping to change at line 192 skipping to change at line 192
if(res>=0) { if(res>=0) {
if(filterpresent(this)) { if(filterpresent(this)) {
subpart(active)->calcsizes(); subpart(active)->calcsizes();
((Bitfield *)filters[filnr])->chbytespos(active,s ubpart(active)->bytes); ((Bitfield *)filters[filnr])->chbytespos(active,s ubpart(active)->bytes);
calcsizes(); calcsizes();
} }
} }
return res; return res;
} }
int userconfig(int kind) { int userconfig(int kind) override{
switch(kind) { switch(kind) {
case 0:return editor->bitfield(); case 0:return editor->bitfield();
default: return editor->changebitfield(kind); default: return editor->changebitfield(kind);
}; };
} }
friend int Editor::changebitfield(int kind) ; friend int Editor::changebitfield(int kind) ;
}; };
parentd(Contains,BitContain) parentd(Contains,BitContain)
datatype(BitContain) datatype(BitContain)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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