"Fossies" - the Fresh Open Source Software Archive  

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

edit.cc  (bed-3.0.3.src.tar.xz):edit.cc  (bed-3.1.0.src.tar.xz)
skipping to change at line 133 skipping to change at line 133
if(guiprogram(prog,progname)) { if(guiprogram(prog,progname)) {
returngui( 1); returngui( 1);
} }
return 0; return 0;
} }
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
int guiprogram(const char *progname) { int guiprogram(const char *progname) {
HANDLE han; HANDLE han;
char prog[MAX_PATH],*fpart; char prog[MAX_PATH],*fpart;
const char *progptr
#ifdef __CYGWIN__
=prog;
winpath(progname ,prog); winpath(progname ,prog);
#else
=progname;
#endif
if((han=CreateFile( if((han=CreateFile(
prog , progptr ,
GENERIC_READ , // access (read-write) mode GENERIC_READ , // access (read-write) mode
FILE_SHARE_READ , // share mode FILE_SHARE_READ , // share mode
NULL, // address of security descriptor NULL, // address of security descriptor
OPEN_EXISTING, // how to create OPEN_EXISTING, // how to create
FILE_ATTRIBUTE_READONLY, // file attributes FILE_ATTRIBUTE_READONLY, // file attributes
NULL // handle of file with attributes to copy NULL // handle of file with attributes to copy
) )==INVALID_HANDLE_VALUE) { ) )==INVALID_HANDLE_VALUE) {
if(!SearchPath( NULL, if(!SearchPath( NULL,
progname, // address of filename progname, // address of filename
".exe", // address of extension ".exe", // address of extension
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added

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