"Fossies" - the Fresh Open Source Software Archive  

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

About: bed is an adjustable data format binary editor.

editup.cpp  (bed-3.0.2.src.tar.xz):editup.cpp  (bed-3.0.3.src.tar.xz)
skipping to change at line 413 skipping to change at line 413
static int previousposmax=50; static int previousposmax=50;
extern int wantsignal; extern int wantsignal;
#ifndef NOSIGNALS #ifndef NOSIGNALS
extern void omnihandler(int signum) ; extern void omnihandler(int signum) ;
extern void actionsignal(int sig) ; extern void actionsignal(int sig) ;
#else #else
#define actionsignal( sig) #define actionsignal( sig)
#endif #endif
#define testmarks
int Editor::processkeyonce(void) { int Editor::processkeyonce(void) {
int key,ret; int key,ret;
void *procedure; void *procedure;
key=ggetch(editscreen); key=ggetch(editscreen);
testmarks
if(!commandmode) { if(!commandmode) {
while(((parts[mode]->addchar(key))>=0)) { while(((parts[mode]->addchar(key))>=0)) {
changed=1; changed=1;
if(showfileinfo) { if(showfileinfo) {
datainfo(); datainfo();
showfileinfo=0; showfileinfo=0;
} }
showposition(); showposition();
wrefresh(editscreen); wrefresh(editscreen);
return key; return key;
// key=ggetch(editscreen); // key=ggetch(editscreen);
} }
if(previouspos[previouspositer%previousposmax]!=(editpos+filepos) ) { if(previouspos[previouspositer%previousposmax]!=(editpos+filepos) ) {
previousposhead=++previouspositer; previousposhead=++previouspositer;
previouspos[(previouspositer%previousposmax)]=editpos+fil epos; previouspos[(previouspositer%previousposmax)]=editpos+fil epos;
} }
} }
while(!(procedure=lookkey(keyedit,key))) { while(!(procedure=lookkey(keyedit,key))) {
testmarks
DEBUGGING("once voor endkey"); DEBUGGING("once voor endkey");
if(endkey(keyedit)) { if(endkey(keyedit)) {
beep(); beep();
flushinp(); flushinp();
return -1; return -1;
} }
DEBUGGING("NA"); DEBUGGING("NA");
key=ggetch(editscreen); key=ggetch(editscreen);
} }
testmarks
traceproc(this,procproc(keyedit,procedure) ); traceproc(this,procproc(keyedit,procedure) );
ret= callproc(procproc(keyedit,procedure) ); ret= callproc(procproc(keyedit,procedure) );
toscreen(); toscreen();
if(wantsignal) { if(wantsignal) {
int oldsig =wantsignal; int oldsig =wantsignal;
wantsignal=0; wantsignal=0;
actionsignal(oldsig) ; actionsignal(oldsig) ;
} }
if(justopened==1) { if(justopened==1) {
justopened=2; justopened=2;
skipping to change at line 523 skipping to change at line 526
} }
showposition(); showposition();
wrefresh(editscreen); wrefresh(editscreen);
key=ggetch(editscreen); key=ggetch(editscreen);
} }
if(previouspos[previouspositer%previousposmax]!=(editpos+filepos) ) { if(previouspos[previouspositer%previousposmax]!=(editpos+filepos) ) {
previousposhead=++previouspositer; previousposhead=++previouspositer;
previouspos[(previouspositer%previousposmax)]=editpos+fil epos; previouspos[(previouspositer%previousposmax)]=editpos+fil epos;
} }
} }
testmarks
while(!(procedure=lookkey(keyedit,key))) { while(!(procedure=lookkey(keyedit,key))) {
DEBUGGING("voor endkey "); DEBUGGING("voor endkey ");
testmarks
if(endkey(keyedit)) { if(endkey(keyedit)) {
beep(); beep();
flushinp(); flushinp();
return -1; return -1;
} }
DEBUGGING("na "); DEBUGGING("na ");
key=ggetch(editscreen); key=ggetch(editscreen);
} }
testmarks
traceproc(this,procproc(keyedit,procedure) ); traceproc(this,procproc(keyedit,procedure) );
DEBUGGING("voor callproc"); DEBUGGING("voor callproc");
ret= callproc(procproc(keyedit,procedure) ); ret= callproc(procproc(keyedit,procedure) );
DEBUGGING("NA"); DEBUGGING("NA");
testmarks
} while(edits[editfocus]==this); } while(edits[editfocus]==this);
return ret; return ret;
} }
int Editor::altatkey(void) { int Editor::altatkey(void) {
void *procedure; void *procedure;
unsigned char keys[2]={27,0}; unsigned char keys[2]={27,0};
output("Alt-"); output("Alt-");
keys[1]=ggetch(editscreen); keys[1]=ggetch(editscreen);
message("Alt-%c",keys[1]); message("Alt-%c",keys[1]);
 End of changes. 8 change blocks. 
1 lines changed or deleted 9 lines changed or added

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