"Fossies" - the Fresh Open Source Software Archive  

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

gethelp.cpp  (bed-3.0.3.src.tar.xz):gethelp.cpp  (bed-3.1.0.src.tar.xz)
#include "editor.h" #include "editor.h"
#ifdef HAVE_TCSETATTR
#include <termios.h> #include <termios.h>
#endif
#include <signal.h> #include <signal.h>
#include "system.h" #include "system.h"
#include "main.h" #include "main.h"
#include "cursesinit.h" #include "cursesinit.h"
#include "shell.h" #include "shell.h"
struct help { struct help {
int (Editor::*proc)(void) ; int (Editor::*proc)(void) ;
// char *name; // char *name;
char *text; char *text;
skipping to change at line 36 skipping to change at line 38
#include "crc.c" #include "crc.c"
#define castcast (int (Editor::**)(void)) #define castcast (int (Editor::**)(void))
//#define compfunctie(x,y) (*(castcast x) == *(castcast y)) //#define compfunctie(x,y) (*(castcast x) == *(castcast y))
extern int startterminal; extern int startterminal;
extern struct termios starttermios; extern struct termios starttermios;
extern void otherscreen(void); extern void otherscreen(void);
extern void bedscreen(void) ; extern void bedscreen(void) ;
#define shellstop #define shellstop
typedef void (*sighan_t) (int); typedef void (*sighan_t) (int);
#ifndef NOSIGNALS
#ifdef shellstop #ifdef shellstop
sighan_t oldstop= SIG_IGN; sighan_t oldstop= SIG_IGN;
#endif #endif
sighan_t oldcont= SIG_DFL; sighan_t oldcont= SIG_DFL;
#endif
void otherscreen(void) void otherscreen(void)
{ {
//reset_shell_mode(); //reset_shell_mode();
#ifndef NOSIGNALS
oldcont=signal(SIGCONT,SIG_IGN); oldcont=signal(SIGCONT,SIG_IGN);
#ifdef shellstop #ifdef shellstop
oldstop=signal(SIGTSTP,SIG_DFL); oldstop=signal(SIGTSTP,SIG_DFL);
#endif #endif
#endif
#ifndef NOENDWIN #ifndef NOENDWIN
if(!isendwin()) if(!isendwin())
endwin(); endwin();
#ifdef HAVE_TCSETATTR
if(!startterminal) if(!startterminal)
tcsetattr(STDIN_FILENO, TCSANOW ,&starttermios ); tcsetattr(STDIN_FILENO, TCSANOW ,&starttermios );
#endif #endif
#endif
SHOWCURSOR; SHOWCURSOR;
} }
void bedscreen(void) { void bedscreen(void) {
if(isendwin()) if(isendwin())
wrefresh(stdscr); wrefresh(stdscr);
if(curses_init_curses.isresized()) { if(curses_init_curses.isresized()) {
resized(); resized();
rewriteall(); rewriteall();
} }
#ifndef PDCURSES #ifndef PDCURSES
#endif #endif
HIDECURSOR; HIDECURSOR;
#ifndef NOSIGNALS
#ifdef shellstop #ifdef shellstop
signal(SIGTSTP, oldstop); signal(SIGTSTP, oldstop);
#endif #endif
signal(SIGCONT,oldcont); signal(SIGCONT,oldcont);
#endif
} }
int compfunctie(const char * const x,const char *const y) { int compfunctie(const char * const x,const char *const y) {
int (Editor::**px)(void)=castcast x; int (Editor::**px)(void)=castcast x;
int (Editor::**py)(void)=castcast y; int (Editor::**py)(void)=castcast y;
return memcmp(px, py, sizeof(int (Editor::*)(void))); return memcmp(px, py, sizeof(int (Editor::*)(void)));
} }
#define hashfunctie(str) block_crc((unsigned char*)str, sizeof(int (Editor::*)(v oid))) #define hashfunctie(str) block_crc((unsigned char*)str, sizeof(int (Editor::*)(v oid)))
#define Hash HashHelp #define Hash HashHelp
#include "hash.h" #include "hash.h"
static int helpnr=20+sizeof(helplist)/sizeof(helplist[0]); static int helpnr=20+sizeof(helplist)/sizeof(helplist[0]);
 End of changes. 10 change blocks. 
0 lines changed or deleted 10 lines changed or added

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