"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "main.c" between
less-580.tar.gz and less-581.tar.gz

About: less is a file pager (a program that displays text files similar to "more" or "pg"). Beta version.

main.c  (less-580):main.c  (less-581)
skipping to change at line 83 skipping to change at line 83
char *s; char *s;
#ifdef __EMX__ #ifdef __EMX__
_response(&argc, &argv); _response(&argc, &argv);
_wildcard(&argc, &argv); _wildcard(&argc, &argv);
#endif #endif
progname = *argv++; progname = *argv++;
argc--; argc--;
#if SECURE
secure = 1;
#else
secure = 0; secure = 0;
s = lgetenv("LESSSECURE"); s = lgetenv("LESSSECURE");
if (!isnullenv(s)) if (!isnullenv(s))
secure = 1; secure = 1;
#endif
#ifdef WIN32 #ifdef WIN32
if (getenv("HOME") == NULL) if (getenv("HOME") == NULL)
{ {
/* /*
* If there is no HOME environment variable, * If there is no HOME environment variable,
* try the concatenation of HOMEDRIVE + HOMEPATH. * try the concatenation of HOMEDRIVE + HOMEPATH.
*/ */
char *drive = getenv("HOMEDRIVE"); char *drive = getenv("HOMEDRIVE");
char *path = getenv("HOMEPATH"); char *path = getenv("HOMEPATH");
skipping to change at line 295 skipping to change at line 299
{ {
/* /*
* We displayed some messages on error output * We displayed some messages on error output
* (file descriptor 2; see flush()). * (file descriptor 2; see flush()).
* Before erasing the screen contents, wait for a keystroke. * Before erasing the screen contents, wait for a keystroke.
*/ */
less_printf("Press RETURN to continue ", NULL_PARG); less_printf("Press RETURN to continue ", NULL_PARG);
get_return(); get_return();
putchr('\n'); putchr('\n');
} }
init();
set_output(1); set_output(1);
init();
commands(); commands();
quit(QUIT_OK); quit(QUIT_OK);
/*NOTREACHED*/ /*NOTREACHED*/
return (0); return (0);
} }
/* /*
* Copy a string to a "safe" place * Copy a string to a "safe" place
* (that is, to a buffer allocated by calloc). * (that is, to a buffer allocated by calloc).
*/ */
 End of changes. 4 change blocks. 
1 lines changed or deleted 5 lines changed or added

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