"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/select.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.

select.cpp  (bed-3.0.3.src.tar.xz):select.cpp  (bed-3.1.0.src.tar.xz)
skipping to change at line 30 skipping to change at line 30
#include "editor.h" #include "editor.h"
#include "main.h" #include "main.h"
#include "system.h" #include "system.h"
#include "editlimits.cpp" #include "editlimits.cpp"
#include "myalloc.h" #include "myalloc.h"
#include "screen.h" #include "screen.h"
#ifdef _WIN32 #ifdef _WIN32
#include "win.h" #include "win.h"
#endif #endif
#include "misc.h" #include "misc.h"
int Editor::lensel=0; OFFTYPE Editor::lensel=0;
int Editor::seloffset=0; int Editor::seloffset=0;
char *Editor::selbuf=NULL; char *Editor::selbuf=NULL;
Editor *selectioneditor=NULL; Editor *selectioneditor=NULL;
Editor *getselectioneditor(void) { Editor *getselectioneditor(void) {
return selectioneditor; return selectioneditor;
} }
Editor *setselectioneditor(Editor *ed) { Editor *setselectioneditor(Editor *ed) {
Editor *olded=selectioneditor; Editor *olded=selectioneditor;
selectioneditor=ed; selectioneditor=ed;
skipping to change at line 78 skipping to change at line 78
setselect(OFFTYPEINVALID); setselect(OFFTYPEINVALID);
updated=0; updated=0;
} }
return 0; return 0;
} }
//MAXSELBUF: can do without looking //MAXSELBUF: can do without looking
OFFTYPE Editor::getselect(void) { OFFTYPE Editor::getselect(void) {
return selectpos; return selectpos;
} }
int getselbuf(char **buf) { OFFTYPE getselbuf(char **buf) {
if(!Editor::selbuf) if(!Editor::selbuf)
return -1; return -1;
*buf=Editor::selbuf+Editor::seloffset; *buf=Editor::selbuf+Editor::seloffset;
return Editor::lensel; return Editor::lensel;
} }
int Editor::getselbuf(char **buf) { OFFTYPE Editor::getselbuf(char **buf) {
return ::getselbuf(buf); return ::getselbuf(buf);
} }
int putselbuf(char *buf,int len) { int putselbuf(char *buf,int len) {
INCDEST(); INCDEST();
if(Editor::selbuf) if(Editor::selbuf)
alignedfree( Editor::selbuf); alignedfree( Editor::selbuf);
Editor::selbuf= myallocar( char,len); Editor::selbuf= myallocar( char,len);
memmove(Editor::selbuf,buf,len); memmove(Editor::selbuf,buf,len);
Editor::lensel=len; Editor::lensel=len;
Editor::seloffset=0; Editor::seloffset=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)