ed.h (50471) | ed.h (77407) |
---|---|
1/* ed.h: type and constant definitions for the ed editor. */ 2/* 3 * Copyright (c) 1993 Andrew Moore 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp | 1/* ed.h: type and constant definitions for the ed editor. */ 2/* 3 * Copyright (c) 1993 Andrew Moore 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp |
28 * $FreeBSD: head/bin/ed/ed.h 50471 1999-08-27 23:15:48Z peter $ | 28 * $FreeBSD: head/bin/ed/ed.h 77407 2001-05-29 18:03:14Z imp $ |
29 */ 30 | 29 */ 30 |
31#include <sys/param.h> /* for MAXPATHLEN */ | 31#include |
32#include <errno.h> | 32#include <errno.h> |
33#if defined(sun) || defined(__NetBSD__) 34# include <limits.h> 35#endif | 33#include <limits.h> |
36#include <regex.h> 37#include <signal.h> 38#include <stdio.h> 39#include <stdlib.h> 40#include <string.h> 41#include <unistd.h> 42 43#define ERR (-2) 44#define EMOD (-3) 45#define FATAL (-4) 46 | 34#include <regex.h> 35#include <signal.h> 36#include <stdio.h> 37#include <stdlib.h> 38#include <string.h> 39#include <unistd.h> 40 41#define ERR (-2) 42#define EMOD (-3) 43#define FATAL (-4) 44 |
47#ifndef MAXPATHLEN 48# define MAXPATHLEN 255 /* _POSIX_PATH_MAX */ 49#endif 50 | |
51#define MINBUFSZ 512 /* minimum buffer size - must be > 0 */ 52#define SE_MAX 30 /* max subexpressions in a regular expression */ 53#ifdef INT_MAX 54# define LINECHARS INT_MAX /* max chars per line */ 55#else 56# define LINECHARS MAXINT /* max chars per line */ 57#endif 58 --- 235 unchanged lines hidden --- | 45#define MINBUFSZ 512 /* minimum buffer size - must be > 0 */ 46#define SE_MAX 30 /* max subexpressions in a regular expression */ 47#ifdef INT_MAX 48# define LINECHARS INT_MAX /* max chars per line */ 49#else 50# define LINECHARS MAXINT /* max chars per line */ 51#endif 52 --- 235 unchanged lines hidden --- |