"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/examples/index2table.h" 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.

index2table.h  (bed-3.0.3.src.tar.xz):index2table.h  (bed-3.1.0.src.tar.xz)
skipping to change at line 32 skipping to change at line 32
public: public:
int tableoffset; int tableoffset;
int ptrbase; int ptrbase;
int maxintable; int maxintable;
int doedit; int doedit;
Editor *edit; Editor *edit;
Index2table(int fbytes,int sbytes,int off=0,int len=INT_MAX,int pbase=0); Index2table(int fbytes,int sbytes,int off=0,int len=INT_MAX,int pbase=0);
Index2table(int fb,int sb,const char *conv); Index2table(int fb,int sb,const char *conv);
Index2table(Index2table const &rev); Index2table(Index2table const &rev);
virtual int setpart(ScreenPart *p) override ; virtual int setpart(ScreenPart *p) override ;
virtual char *convstr(void) override ; virtual char *convstr(void) const override ;
~Index2table() ; ~Index2table() ;
virtual Filter *newone(void) const override ; virtual Filter *newone(void) const override ;
virtual int chbytes(int b) override ; virtual int chbytes(int b) override ;
virtual int chbytesback(int b) override ; virtual int chbytesback(int b) override ;
virtual int fromfile(const unsigned char * const input,unsigned char *con st output) const override ; virtual int fromfile(const unsigned char * const input,unsigned char *con st output) const override ;
virtual int tofile(const unsigned char * const input,unsigned char * cons t output) override ; virtual int tofile(const unsigned char * const input,unsigned char * cons t output) override ;
virtual int equal(Filter *fil) override ; virtual int equal(const Filter *fil) const override ;
}; };
extern char *filtername(Index2table) ; extern char *filtername(Index2table) ;
#define index2tablefindfunction(nam,procedure) \ #define index2tablefindfunction(nam,procedure) \
extern char *filtername(nam);\ extern char *filtername(nam);\
Filter *get##nam(int fb,int sb,const char *opts,ScreenPart *part=NULL) {\ Filter *get##nam(int fb,int sb,const char *opts,ScreenPart *part=NULL) {\
int start,len,startpos;\ int start,len,startpos;\
if((start=part->editor->procedure(len,startpos))<0) return NULL;\ if((start=part->editor->procedure(len,startpos))<0) return NULL;\
Index2table *sym= new Index2table(fb,sb,start,len);\ Index2table *sym= new Index2table(fb,sb,start,len);\
if(!sym) return NULL;\ if(!sym) return NULL;\
sym->name=sym->label=filtername(nam);\ sym->name=sym->label=filtername(nam);\
 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)