edit.c (221715) | edit.c (237613) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2011 Mark Nudelman | 2 * Copyright (C) 1984-2012 Mark Nudelman |
3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * | 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * |
7 * For more information about less, or for information on how to 8 * contact the author, see the README file. | 7 * For more information, see the README file. |
9 */ 10 11 12#include "less.h" 13#if HAVE_STAT 14#include <sys/stat.h> 15#endif 16 --- 288 unchanged lines hidden (view full) --- 305#if MSDOS_COMPILER==DJGPPC 306 /* 307 * Setting stdin to binary by default causes 308 * Ctrl-C to not raise SIGINT. We must undo 309 * that side-effect. 310 */ 311 __djgpp_set_ctrl_c(1); 312#endif | 8 */ 9 10 11#include "less.h" 12#if HAVE_STAT 13#include <sys/stat.h> 14#endif 15 --- 288 unchanged lines hidden (view full) --- 304#if MSDOS_COMPILER==DJGPPC 305 /* 306 * Setting stdin to binary by default causes 307 * Ctrl-C to not raise SIGINT. We must undo 308 * that side-effect. 309 */ 310 __djgpp_set_ctrl_c(1); 311#endif |
312 } else if (strcmp(open_filename, FAKE_EMPTYFILE) == 0) 313 { 314 f = -1; 315 chflags |= CH_NODATA; |
|
313 } else if (strcmp(open_filename, FAKE_HELPFILE) == 0) 314 { 315 f = -1; 316 chflags |= CH_HELPFILE; 317 } else if ((parg.p_string = bad_file(open_filename)) != NULL) 318 { 319 /* 320 * It looks like a bad file. Don't try to open it. --- 498 unchanged lines hidden --- | 316 } else if (strcmp(open_filename, FAKE_HELPFILE) == 0) 317 { 318 f = -1; 319 chflags |= CH_HELPFILE; 320 } else if ((parg.p_string = bad_file(open_filename)) != NULL) 321 { 322 /* 323 * It looks like a bad file. Don't try to open it. --- 498 unchanged lines hidden --- |