|
1 | | -/* $Header$ */ |
| 1 | +/* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/ed.decls.h,v 2.0 1991/03/26 02:59:29 christos Exp $ */ |
2 | 2 | /* |
3 | 3 | * ed.decls.h: Editor external definitions |
4 | 4 | */ |
| 5 | +/*- |
| 6 | + * Copyright (c) 1980, 1991 The Regents of the University of California. |
| 7 | + * All rights reserved. |
| 8 | + * |
| 9 | + * Redistribution and use in source and binary forms, with or without |
| 10 | + * modification, are permitted provided that the following conditions |
| 11 | + * are met: |
| 12 | + * 1. Redistributions of source code must retain the above copyright |
| 13 | + * notice, this list of conditions and the following disclaimer. |
| 14 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 15 | + * notice, this list of conditions and the following disclaimer in the |
| 16 | + * documentation and/or other materials provided with the distribution. |
| 17 | + * 3. All advertising materials mentioning features or use of this software |
| 18 | + * must display the following acknowledgement: |
| 19 | + * This product includes software developed by the University of |
| 20 | + * California, Berkeley and its contributors. |
| 21 | + * 4. Neither the name of the University nor the names of its contributors |
| 22 | + * may be used to endorse or promote products derived from this software |
| 23 | + * without specific prior written permission. |
| 24 | + * |
| 25 | + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
| 26 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 27 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 28 | + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
| 29 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 30 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 31 | + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 32 | + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 33 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 34 | + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 35 | + * SUCH DAMAGE. |
| 36 | + */ |
5 | 37 | #ifndef _h_ed_decls |
6 | 38 | #define _h_ed_decls |
7 | 39 |
|
8 | 40 | /* |
9 | 41 | * ed.chared.c |
10 | 42 | */ |
11 | | -extern int InsertStr(); |
12 | | -extern void DeleteBack(); |
| 43 | +extern int InsertStr __P((Char *)); |
| 44 | +extern void DeleteBack __P((int)); |
13 | 45 |
|
14 | 46 | /* |
15 | 47 | * ed.init.c |
16 | 48 | */ |
17 | | -extern void ed_Init(); |
18 | | -extern int Cookedmode(); |
19 | | -extern int Rawmode(); |
20 | | -extern void ed_set_tty_eight_bit(); |
| 49 | +extern void check_window_size __P((int)); |
21 | 50 | #ifdef SIG_WINDOW |
22 | | -extern sigret_t window_change(); |
| 51 | +extern sigret_t window_change __P((int)); |
23 | 52 | #endif |
24 | | -extern void QuoteModeOn(); |
25 | | -extern void QuoteModeOff(); |
26 | | -extern void ResetInLine(); |
27 | | -extern int Load_input_line(); |
| 53 | +extern void ed_Init __P((void)); |
| 54 | +extern int Cookedmode __P((void)); |
| 55 | +extern int Rawmode __P((void)); |
| 56 | +extern void ed_set_tty_eight_bit __P((void)); |
| 57 | + |
| 58 | +extern void QuoteModeOn __P((void)); |
| 59 | +extern void QuoteModeOff __P((void)); |
| 60 | +extern void ResetInLine __P((void)); |
| 61 | +extern int Load_input_line __P((void)); |
28 | 62 |
|
29 | 63 | /* |
30 | 64 | * ed.screen.c |
31 | 65 | */ |
32 | | -extern void check_window_size(); |
33 | | -extern void SetAttributes(); |
34 | | -extern void so_write(); |
35 | | -extern void ClearScreen(); |
36 | | -extern void MoveToLine(); |
37 | | -extern void MoveToChar(); |
38 | | -extern void ClearEOL(); |
39 | | -extern void Insert_write(); |
40 | | -extern void DeleteChars(); |
41 | | -extern void TellTC(); |
42 | | -extern void SetTC(); |
43 | | -extern void EchoTC(); |
44 | | -extern void BindArrowKeys(); |
45 | | -extern int CanWeTab(); |
46 | | -extern void ChangeSize(); |
47 | | -extern int GetSize(); |
48 | | -extern void ClearToBottom(); |
49 | | -extern void GetTermCaps(); |
| 66 | +extern void SetAttributes __P((int)); |
| 67 | +extern void so_write __P((Char *, int)); |
| 68 | +extern void ClearScreen __P((void)); |
| 69 | +extern void MoveToLine __P((int)); |
| 70 | +extern void MoveToChar __P((int)); |
| 71 | +extern void ClearEOL __P((int)); |
| 72 | +extern void Insert_write __P((Char *, int)); |
| 73 | +extern void DeleteChars __P((int)); |
| 74 | +extern void TellTC __P((char *)); |
| 75 | +extern void SetTC __P((char *, char *)); |
| 76 | +extern void EchoTC __P((Char **)); |
| 77 | +extern void BindArrowKeys __P((void)); |
| 78 | +extern void Beep __P((void)); |
| 79 | +extern int CanWeTab __P((void)); |
| 80 | +extern void ChangeSize __P((int, int)); |
| 81 | +extern int GetSize __P((int *, int *)); |
| 82 | +extern void ClearToBottom __P((void)); |
| 83 | +extern void GetTermCaps __P((void)); |
50 | 84 |
|
51 | 85 | /* |
52 | 86 | * ed.defns.c |
53 | 87 | */ |
54 | | -extern void ed_InitNLSMaps(); |
| 88 | +extern void ed_InitNLSMaps __P((void)); |
55 | 89 | #ifdef DEBUG_EDIT |
56 | | -extern void CheckMaps(); |
| 90 | +extern void CheckMaps __P((void)); |
57 | 91 | #endif |
58 | | -extern void ed_InitMaps(); |
59 | | -extern void ed_InitEmacsMaps(); |
60 | | -extern void ed_InitVIMaps(); |
| 92 | +extern void ed_InitMaps __P((void)); |
| 93 | +extern void ed_InitEmacsMaps __P((void)); |
| 94 | +extern void ed_InitVIMaps __P((void)); |
61 | 95 |
|
62 | 96 | /* |
63 | 97 | * ed.inputl.c |
64 | 98 | */ |
65 | | -extern int Inputl(); |
66 | | -extern int GetNextChar(); |
| 99 | +extern int Inputl __P((void)); |
| 100 | +extern int GetNextChar __P((Char *)); |
| 101 | +extern void PushMacro __P((Char *)); |
67 | 102 |
|
68 | 103 | /* |
69 | 104 | * ed.refresh.c |
70 | 105 | */ |
71 | | -extern void ClearLines(); |
72 | | -extern void ClearDisp(); |
73 | | -extern void Refresh(); |
74 | | -extern void Beep(); |
75 | | -extern void RefCursor(); |
76 | | -extern void RefPlusOne(); |
77 | | -extern void PastBottom(); |
| 106 | +extern void ClearLines __P((void)); |
| 107 | +extern void ClearDisp __P((void)); |
| 108 | +extern void Refresh __P((void)); |
| 109 | +extern void RefCursor __P((void)); |
| 110 | +extern void RefPlusOne __P((void)); |
| 111 | +extern void PastBottom __P((void)); |
78 | 112 |
|
79 | 113 | /* |
80 | 114 | * ed.xmap.c |
81 | 115 | */ |
82 | | -extern void AddXkeyCmd(); |
83 | | -extern void AddXkey(); |
84 | | -extern void ClearXkey(); |
85 | | -extern int GetXkey(); |
86 | | -extern void ResetXmap(); |
87 | | -extern int DeleteXkey(); |
88 | | -extern void PrintXkey(); |
| 116 | +extern void AddXkeyCmd __P((Char *, int)); |
| 117 | +extern void AddXkey __P((Char *, Char *)); |
| 118 | +extern void ClearXkey __P((KEYCMD *, Char *)); |
| 119 | +extern int GetXkey __P((Char *, Char **)); |
| 120 | +extern void ResetXmap __P((int)); |
| 121 | +extern int DeleteXkey __P((Char *)); |
| 122 | +extern void PrintXkey __P((Char *)); |
89 | 123 |
|
90 | | -#endif /* _h_ed_decls */ |
| 124 | +#endif /* _h_ed_decls */ |
0 commit comments