Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / common / extern.h
bloba5c57c4ae32d82e25abdeb41b6dea0391684259d
1 /* $NetBSD: extern.h,v 1.2 2008/12/05 22:51:42 christos Exp $ */
3 /* Do not edit: automatically built by build/distrib. */
4 SCR *api_fscreen __P((int, char *));
5 int api_aline __P((SCR *, db_recno_t, char *, size_t));
6 int api_extend __P((SCR *, db_recno_t));
7 int api_dline __P((SCR *, db_recno_t));
8 int api_gline __P((SCR *, db_recno_t, CHAR_T **, size_t *));
9 int api_iline __P((SCR *, db_recno_t, CHAR_T *, size_t));
10 int api_lline __P((SCR *, db_recno_t *));
11 int api_sline __P((SCR *, db_recno_t, CHAR_T *, size_t));
12 int api_getmark __P((SCR *, int, MARK *));
13 int api_setmark __P((SCR *, int, MARK *));
14 int api_nextmark __P((SCR *, int, char *));
15 int api_getcursor __P((SCR *, MARK *));
16 int api_setcursor __P((SCR *, MARK *));
17 void api_emessage __P((SCR *, char *));
18 void api_imessage __P((SCR *, char *));
19 int api_edit __P((SCR *, char *, SCR **, int));
20 int api_escreen __P((SCR *));
21 int api_swscreen __P((SCR *, SCR *));
22 int api_map __P((SCR *, char *, char *, size_t));
23 int api_unmap __P((SCR *, char *));
24 int api_opts_get __P((SCR *, const CHAR_T *, char **, int *));
25 int api_opts_set __P((SCR *, const CHAR_T *, const char *, u_long, int));
26 int api_run_str __P((SCR *, char *));
27 TAGQ * api_tagq_new __P((SCR*, char*));
28 void api_tagq_add __P((SCR*, TAGQ*, char*, char *, char *));
29 int api_tagq_push __P((SCR*, TAGQ**));
30 void api_tagq_free __P((SCR*, TAGQ*));
31 int cut __P((SCR *, CHAR_T *, MARK *, MARK *, int));
32 int cut_line __P((SCR *, db_recno_t, size_t, size_t, CB *));
33 void cut_close __P((WIN *));
34 TEXT *text_init __P((SCR *, const CHAR_T *, size_t, size_t));
35 void text_lfree __P((TEXTH *));
36 void text_free __P((TEXT *));
37 int db_eget __P((SCR *, db_recno_t, CHAR_T **, size_t *, int *));
38 int db_get __P((SCR *, db_recno_t, u_int32_t, CHAR_T **, size_t *));
39 int db_delete __P((SCR *, db_recno_t));
40 int db_append __P((SCR *, int, db_recno_t, const CHAR_T *, size_t));
41 int db_insert __P((SCR *, db_recno_t, CHAR_T *, size_t));
42 int db_set __P((SCR *, db_recno_t, CHAR_T *, size_t));
43 int db_exist __P((SCR *, db_recno_t));
44 int db_last __P((SCR *, db_recno_t *));
45 void db_err __P((SCR *, db_recno_t));
46 int scr_update __P((SCR *sp, db_recno_t lno,
47 lnop_t op, int current));
48 void update_cache __P((SCR *sp, lnop_t op, db_recno_t lno));
49 int line_insdel __P((SCR *sp, lnop_t op, db_recno_t lno));
50 int del __P((SCR *, MARK *, MARK *, int));
51 FREF *file_add __P((SCR *, const char *));
52 int file_init __P((SCR *, FREF *, char *, int));
53 int file_end __P((SCR *, EXF *, int));
54 int file_write __P((SCR *, MARK *, MARK *, char *, int));
55 int file_m1 __P((SCR *, int, int));
56 int file_m2 __P((SCR *, int));
57 int file_m3 __P((SCR *, int));
58 int file_aw __P((SCR *, int));
59 void set_alt_name __P((SCR *, const char *));
60 lockr_t file_lock __P((SCR *, char *, int *, int, int));
61 GS * gs_init __P((char*));
62 WIN * gs_new_win __P((GS *gp));
63 int win_end __P((WIN *wp));
64 void gs_end __P((GS *));
65 int v_key_init __P((SCR *));
66 void v_key_ilookup __P((SCR *));
67 size_t v_key_len __P((SCR *, ARG_CHAR_T));
68 u_char *v_key_name __P((SCR *, ARG_CHAR_T));
69 int v_key_val __P((SCR *, ARG_CHAR_T));
70 int v_event_push __P((SCR *, EVENT *, const CHAR_T *, size_t, u_int));
71 int v_event_get __P((SCR *, EVENT *, int, u_int32_t));
72 void v_event_err __P((SCR *, EVENT *));
73 int v_event_flush __P((SCR *, u_int));
74 int log_init __P((SCR *, EXF *));
75 int log_end __P((SCR *, EXF *));
76 int log_cursor __P((SCR *));
77 int log_line __P((SCR *, db_recno_t, u_int));
78 int log_mark __P((SCR *, LMARK *));
79 int log_backward __P((SCR *, MARK *));
80 int log_setline __P((SCR *));
81 int log_forward __P((SCR *, MARK *));
82 int log_init __P((SCR *, EXF *));
83 int log_end __P((SCR *, EXF *));
84 int log_cursor __P((SCR *));
85 int log_line __P((SCR *, db_recno_t, u_int));
86 int log_mark __P((SCR *, LMARK *));
87 int log_backward __P((SCR *, MARK *));
88 int log_setline __P((SCR *));
89 int log_forward __P((SCR *, MARK *));
90 int editor __P((WIN *, int, char *[]));
91 int mark_init __P((SCR *, EXF *));
92 int mark_end __P((SCR *, EXF *));
93 int mark_get __P((SCR *, ARG_CHAR_T, MARK *, mtype_t));
94 int mark_set __P((SCR *, ARG_CHAR_T, MARK *, int));
95 int mark_insdel __P((SCR *, lnop_t, db_recno_t));
96 void msgq __P((SCR *, mtype_t, const char *, ...))
97 __attribute__((__format__(__printf__, 3, 4)));
98 void msgq_wstr __P((SCR *, mtype_t, const CHAR_T *, const char *));
99 void msgq_str __P((SCR *, mtype_t, const char *, const char *));
100 void mod_rpt __P((SCR *));
101 void msgq_status __P((SCR *, db_recno_t, u_int));
102 int msg_open __P((SCR *, const char *));
103 void msg_close __P((GS *));
104 const char *msg_cmsg __P((SCR *, cmsg_t, size_t *));
105 const char *msg_cat __P((SCR *, const char *, size_t *));
106 char *msg_print __P((SCR *, const char *, int *));
107 void thread_init __P((GS *gp));
108 int opts_init __P((SCR *, int *));
109 int opts_set __P((SCR *, ARGS *[], const char *));
110 int o_set __P((SCR *, int, u_int, const char *, u_long));
111 int opts_empty __P((SCR *, int, int));
112 void opts_dump __P((SCR *, enum optdisp));
113 int opts_save __P((SCR *, FILE *));
114 OPTLIST const *opts_search __P((const CHAR_T *));
115 void opts_nomatch __P((SCR *, const CHAR_T *));
116 int opts_copy __P((SCR *, SCR *));
117 void opts_free __P((SCR *));
118 int f_altwerase __P((SCR *, OPTION *, const char *, u_long *));
119 int f_columns __P((SCR *, OPTION *, const char *, u_long *));
120 int f_lines __P((SCR *, OPTION *, const char *, u_long *));
121 int f_lisp __P((SCR *, OPTION *, const char *, u_long *));
122 int f_msgcat __P((SCR *, OPTION *, const char *, u_long *));
123 int f_paragraph __P((SCR *, OPTION *, const char *, u_long *));
124 int f_print __P((SCR *, OPTION *, const char *, u_long *));
125 int f_readonly __P((SCR *, OPTION *, const char *, u_long *));
126 int f_recompile __P((SCR *, OPTION *, const char *, u_long *));
127 int f_reformat __P((SCR *, OPTION *, const char *, u_long *));
128 int f_section __P((SCR *, OPTION *, const char *, u_long *));
129 int f_ttywerase __P((SCR *, OPTION *, const char *, u_long *));
130 int f_w300 __P((SCR *, OPTION *, const char *, u_long *));
131 int f_w1200 __P((SCR *, OPTION *, const char *, u_long *));
132 int f_w9600 __P((SCR *, OPTION *, const char *, u_long *));
133 int f_window __P((SCR *, OPTION *, const char *, u_long *));
134 int f_encoding __P((SCR *, OPTION *, const char *, u_long *));
135 void thread_init __P((GS *gp));
136 int put __P((SCR *, CB *, CHAR_T *, MARK *, MARK *, int));
137 int rcv_tmp __P((SCR *, EXF *, char *));
138 int rcv_init __P((SCR *));
139 int rcv_sync __P((SCR *, u_int));
140 int rcv_list __P((SCR *));
141 int rcv_read __P((SCR *, FREF *));
142 int screen_init __P((GS *, SCR *, SCR **));
143 int screen_end __P((SCR *));
144 SCR *screen_next __P((SCR *));
145 int f_search __P((SCR *,
146 MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int));
147 int b_search __P((SCR *,
148 MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int));
149 void search_busy __P((SCR *, busy_t));
150 int seq_set __P((SCR *, CHAR_T *,
151 size_t, CHAR_T *, size_t, CHAR_T *, size_t, seq_t, int));
152 int seq_delete __P((SCR *, CHAR_T *, size_t, seq_t));
153 int seq_mdel __P((SEQ *));
154 SEQ *seq_find
155 __P((SCR *, SEQ **, EVENT *, CHAR_T *, size_t, seq_t, int *));
156 void seq_close __P((GS *));
157 int seq_dump __P((SCR *, seq_t, int));
158 int seq_save __P((SCR *, FILE *, const char *, seq_t));
159 int e_memcmp __P((CHAR_T *, EVENT *, size_t));
160 void vtrace_end __P((void));
161 void vtrace_init __P((char *));
162 void vtrace __P((const char *, ...))
163 __attribute__((__format__(__printf__, 1, 2)));
164 void *binc __P((SCR *, void *, size_t *, size_t));
165 int nonblank __P((SCR *, db_recno_t, size_t *));
166 const char *tail __P((const char *));
167 char *v_strdup __P((SCR *, const char *, size_t));
168 CHAR_T *v_wstrdup __P((SCR *, const CHAR_T *, size_t));
169 enum nresult nget_uslong __P((SCR *, u_long *, const CHAR_T *, CHAR_T **, int));
170 enum nresult nget_slong __P((SCR *, long *, const CHAR_T *, CHAR_T **, int));
171 #ifdef USE_DB4_LOGGING
172 int __vi_marker_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
173 u_int32_t));
174 int __vi_marker_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
175 void *));
176 int __vi_marker_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
177 void *));
178 int __vi_marker_read __P((DB_ENV *, void *, __vi_marker_args **));
179 int __vi_cursor_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
180 u_int32_t, db_recno_t, size_t));
181 int __vi_cursor_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
182 void *));
183 int __vi_cursor_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
184 void *));
185 int __vi_cursor_read __P((DB_ENV *, void *, __vi_cursor_args **));
186 int __vi_mark_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
187 LMARK *));
188 int __vi_mark_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
189 void *));
190 int __vi_mark_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
191 void *));
192 int __vi_mark_read __P((DB_ENV *, void *, __vi_mark_args **));
193 int __vi_change_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t,
194 u_int32_t, db_recno_t));
195 int __vi_change_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
196 void *));
197 int __vi_change_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops,
198 void *));
199 int __vi_change_read __P((DB_ENV *, void *, __vi_change_args **));
200 int __vi_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *,
201 DB_LSN *, db_recops, void *), size_t *));
202 int __vi_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *,
203 DB_LSN *, db_recops, void *), size_t *));
204 int __vi_init_recover __P((DB_ENV *));
205 #endif
206 #ifdef USE_DB4_LOGGING
207 int __vi_marker_recover
208 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
209 int __vi_cursor_recover
210 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
211 int __vi_mark_recover
212 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
213 int __vi_change_recover
214 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
215 int __vi_log_truncate __P((EXF *ep));
216 int __vi_log_dispatch __P((DB_ENV *dbenv, DBT *data, DB_LSN *lsn, db_recops ops));
217 int __vi_log_traverse __P((SCR *sp, undo_t undo, MARK *));
218 #endif