xref: /original-bsd/contrib/ed/extern.h (revision 541b0a81)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)extern.h	8.1 (Berkeley) 05/31/93
8  */
9 
10 #include <sys/cdefs.h>
11 
12 void	 a __P((FILE *, int *));
13 
14 #ifdef STDIO
15 long	add_line __P((char *, long));
16 #endif
17 #ifdef DBI
18 recno_t	 add_line __P((char *, long));
19 #endif
20 #ifdef MEMORY
21 char	*add_line __P((char *, long));
22 #endif
23 
24 int	 address_check __P((LINE *, LINE *));
25 LINE	*address_conv __P((LINE *, FILE *, int *));
26 void	 bang __P((FILE *, int *));
27 void	 c __P((FILE *, int *));
28 void	 cmd_loop __P((FILE *, int *));
29 void	 d __P((FILE *, int *));
30 void	 d_do __P((void));
31 int	 dig_num_conv __P((FILE *, int *));
32 void	 e __P((FILE *, int *));
33 void	 e2 __P((FILE *, int *));
34 void	 ed_exit __P((int));
35 int	 edwrite __P((FILE *, LINE *, LINE *));
36 void	 equal __P((FILE *, int *));
37 void	 f __P((FILE *, int *));
38 char	*filename __P((FILE *, int *));
39 void	 g __P((FILE *, int *));
40 #ifdef STDIO
41 void     get_line __P((long, int));
42 #endif
43 #ifdef DBI
44 void	 get_line __P((recno_t, int));
45 #endif
46 #ifdef MEMORY
47 void     get_line __P((char *, int));
48 #endif;
49 LINE	*get_mark __P((FILE *, int *));
50 char	*get_pattern __P((int, FILE *, int *, int));
51 void	 i __P((FILE *, int *));
52 long	 input_lines __P((FILE *, int *));
53 void	 j __P((FILE *, int *));
54 void	 ku_chk __P((LINE *, LINE *, LINE *));
55 void	 l __P((FILE *, int *));
56 int	 line_number __P((LINE *));
57 void	 m __P((FILE *, int *));
58 LINE	*num_to_address __P((int, int *));
59 void	 p __P((FILE *, int *, int));
60 void	 q __P((FILE *, int *));
61 void	 r __P((FILE *, int *));
62 int	 rol __P((FILE *, int *));
63 void	 s __P((FILE *, int *));
64 LINE	*search __P((FILE *, int *));
65 LINE	*search_r __P((FILE *, int *));
66 void	 set_mark __P((FILE *, int *));
67 void	 t __P((FILE *, int *));
68 void	 u __P((FILE *, int *));
69 void	 u_add_stk __P((LINE **));
70 void	 u_clr_stk __P((void));
71 void	 u_pop_n_swap __P((LINE **));
72 void	 undo __P((void));
73 __dead void do_hup __P((void));
74 void	 w __P((FILE *, int *));
75 void	 z __P((FILE *, int *));
76 
77 #ifdef REG_STARTEND
78 char	*re_replace __P((char *, size_t, regmatch_t [], char *));
79 int	 regexec_n __P((regex_t *,
80 	    char *, size_t, regmatch_t [], int, int, size_t, int));
81 #else
82 char	*re_replace __P((char *, size_t, regmatch_t [], char *, size_t));
83 int	 regexec_n __P((regex_t *,
84 	    char *, size_t, regmatch_t [], int, int, size_t *, int));
85 #endif
86