📄 diff.h
字号:
/* "@(#)diff.h 4.1 ULTRIX 7/17/90" *//************************************************************************ * * * Copyright (c) 1988 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//************************************************************************ * Modification History * -------------------- * * 10-Nov-88 Tim N * Started with new source from 4.3-5. * This 4.3-5 source had id: * diff.h 4.7 85/08/16 ************************************************************************//* * diff - common declarations */#include <stdio.h>#include <ctype.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/dir.h>#include <signal.h>/* * Output format options */int opt;#define D_NORMAL 0 /* Normal output */#define D_EDIT -1 /* Editor script out */#define D_REVERSE 1 /* Reverse editor script */#define D_CONTEXT 2 /* Diff with context */#define D_IFDEF 3 /* Diff with merged #ifdef's */#define D_NREVERSE 4 /* Reverse ed script with numbered lines and no trailing . */int tflag; /* expand tabs on output *//* * Algorithm related options */int hflag; /* -h, use halfhearted DIFFH */int bflag; /* ignore blanks in comparisons */int wflag; /* totally ignore blanks in comparisons */int iflag; /* ignore case in comparisons *//* * Options on hierarchical diffs. */int lflag; /* long output format with header */int rflag; /* recursively trace directories */int sflag; /* announce files which are same */char *start; /* do file only if name >= this *//* * Variables for -I D_IFDEF option. */int wantelses; /* -E */char *ifdef1; /* String for -1 */char *ifdef2; /* String for -2 */char *endifname; /* What we will print on next #endif */int inifdef;/* * Variables for -c context option. */int context; /* lines of context to be printed *//* * State for exit status. */int status;int anychange;char *tempfile; /* used when comparing against std input *//* * Variables for diffdir. */char **diffargv; /* option list to pass to recursive diffs *//* * Input file names. * With diffdir, file1 and file2 are allocated BUFSIZ space, * and padded with a '/', and then efile0 and efile1 point after * the '/'. */char *file1, *file2, *efile1, *efile2;struct stat stb1, stb2;char *malloc(), *talloc(), *ralloc();char *savestr(), *splice(), *splicen();char *mktemp(), *copytemp(), *rindex();int done();extern char diffh[], diff[], pr[];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -