"Fossies" - the Fresh Open Source Software Archive  

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

keyconfig.cpp  (bed-3.0.3.src.tar.xz):keyconfig.cpp  (bed-3.1.0.src.tar.xz)
skipping to change at line 143 skipping to change at line 143
const int maxkeys=40; const int maxkeys=40;
unsigned char keys[maxkeys]; unsigned char keys[maxkeys];
int nr,j,i; int nr,j,i;
FILE *fp; FILE *fp;
void *procedure; void *procedure;
scrollok(stdscr,1); scrollok(stdscr,1);
nl(); nl();
clear(); clear();
if(!filename) { if(!filename) {
#ifdef Windows //#ifdef Windows
#ifdef __CYGWIN__
filename =(char * )alloca(BEDSMAXPATH) ; filename =(char * )alloca(BEDSMAXPATH) ;
#endif #endif
char *conf=getenv(CONFFILE); char *conf=getenv(CONFFILE);
if(!conf) if(!conf)
conf=getenv(CONFVAR); conf=getenv(CONFVAR);
if(conf) { if(conf) {
#ifdef Windows #ifdef __CYGWIN__
absunixpath(conf,filename); absunixpath(conf,filename);
#else #else
filename=conf; filename=conf;
#endif #endif
} }
else { else {
#ifndef _WIN32 //#ifndef _WIN32
#ifndef __CYGWIN__
filename =(char * const)alloca(BEDSMAXPATH) ; filename =(char * const)alloca(BEDSMAXPATH) ;
#else #else
// conf=getenv("LOCALAPPDATA"); // conf=getenv("LOCALAPPDATA");
conf=getenv("APPDATA"); conf=getenv("APPDATA");
if(conf) { if(conf) {
absunixpath(conf,filename); absunixpath(conf,filename);
strcat(filename,"/" CONFFILE); strcat(filename,"/" CONFFILE);
} }
else else
 End of changes. 3 change blocks. 
3 lines changed or deleted 5 lines changed or added

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