home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / efunc.h < prev    next >
C/C++ Source or Header  |  1998-11-10  |  10KB  |  290 lines

  1. /*
  2.  * $Id: efunc.h,v 4.68 1998/11/11 00:51:05 hubert Exp $
  3.  *
  4.  * Program:    Pine's composer and pico's function declarations
  5.  *
  6.  *
  7.  * Michael Seibel
  8.  * Networks and Distributed Computing
  9.  * Computing and Communications
  10.  * University of Washington
  11.  * Administration Builiding, AG-44
  12.  * Seattle, Washington, 98195, USA
  13.  * Internet: mikes@cac.washington.edu
  14.  *
  15.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16.  *
  17.  *
  18.  * Pine and Pico are registered trademarks of the University of Washington.
  19.  * No commercial use of these trademarks may be made without prior written
  20.  * permission of the University of Washington.
  21.  * 
  22.  * Pine, Pico, and Pilot software and its included text are Copyright
  23.  * 1989-1998 by the University of Washington.
  24.  * 
  25.  * The full text of our legal notices is contained in the file called
  26.  * CPYRIGHT, included with this distribution.
  27.  *
  28.  */
  29. /*    EFUNC.H:    MicroEMACS function declarations and names
  30.  
  31.         This file list all the C code functions used by MicroEMACS
  32.     and the names to use to bind keys to them. To add functions,
  33.     declare it here in both the extern function list and the name
  34.     binding table.
  35.  
  36.     Update History:
  37.  
  38.     Daniel Lawrence
  39. */
  40.  
  41. #ifndef    EFUNC_H
  42. #define    EFUNC_H
  43.  
  44.  
  45. /*    External function declarations        */
  46. /* attach.c */
  47. extern    int AskAttach PROTO((char *, char *, char *));
  48. extern    int SyncAttach PROTO((void));
  49. extern    int intag PROTO((char *, int));
  50. extern    char *prettysz PROTO((off_t));
  51. extern  int AttachError PROTO((void));
  52. extern    char *QuoteAttach PROTO((char *));
  53.  
  54. /* basic.c */
  55. extern    int gotobol PROTO((int, int));
  56. extern    int backchar PROTO((int, int));
  57. extern    int gotoeol PROTO((int, int));
  58. extern    int forwchar PROTO((int, int));
  59. extern    int gotoline PROTO((int, int));
  60. extern    int gotobob PROTO((int, int));
  61. extern    int gotoeob PROTO((int, int));
  62. extern    int forwline PROTO((int, int));
  63. extern    int backline PROTO((int, int));
  64. extern    int gotobop PROTO((int, int));
  65. extern    int gotoeop PROTO((int, int));
  66. extern    int forwpage PROTO((int, int));
  67. extern    int backpage PROTO((int, int));
  68. extern  int scrollupline PROTO((int, int));
  69. extern  int scrolldownline PROTO((int, int));
  70. extern  int scrollto PROTO((int, int));
  71. extern    int setmark PROTO((int, int));
  72. extern    int swapmark PROTO((int, int));
  73. extern    int setimark PROTO((int, int));
  74. extern    int swapimark PROTO((int, int));
  75. extern    int mousepress PROTO((int, int));
  76.  
  77. /* bind.c */
  78. extern    int whelp PROTO((int, int));
  79. extern    int wscrollw PROTO((int, int, char **, int));
  80. extern    int normal PROTO((int, int (*)[2], int));
  81. extern    int rebindfunc PROTO((int (*)(int, int),int (*)(int, int)));
  82. extern    int bindtokey PROTO((int c, int (*) PROTO((int, int))));
  83.  
  84. /* browse.c */
  85. extern    int FileBrowse PROTO((char *, int, char *, int, char *, int));
  86. extern    int ResizeBrowser PROTO((void));
  87. extern    int set_browser_title PROTO((char *));
  88.  
  89. /* buffer.c */
  90. extern    int anycb PROTO((void));
  91. extern    struct BUFFER *bfind PROTO((char *, int, int));
  92. extern    int bclear PROTO((struct BUFFER *));
  93. extern    int packbuf PROTO((char **, int *, int));
  94. extern    int readbuf PROTO((char **));
  95.  
  96. /* composer.c */
  97. extern    int InitMailHeader PROTO((struct pico_struct *));
  98. extern    int ResizeHeader PROTO((void));
  99. extern    int HeaderEditor PROTO((int, int));
  100. extern    void PaintHeader PROTO((int, int));
  101. extern    int ArrangeHeader PROTO((void));
  102. extern    int ToggleHeader PROTO((int));
  103. extern    int HeaderLen PROTO((void));
  104. extern    int UpdateHeader PROTO((int));
  105. extern    int entry_line PROTO((int, int));
  106. extern    int call_builder PROTO((struct headerentry *, int *, char **));
  107. extern    void call_expander PROTO((void));
  108. extern    int ShowPrompt PROTO((void));
  109. extern    int packheader PROTO((void));
  110. extern    int zotheader PROTO((void));
  111. extern    void display_for_send PROTO((void));
  112. extern    VARS_TO_SAVE *save_pico_state PROTO((void));
  113. extern    void restore_pico_state PROTO((VARS_TO_SAVE *));
  114. extern    void free_pico_state PROTO((VARS_TO_SAVE *));
  115.  
  116. /* display.c */
  117. extern    int vtinit PROTO((void));
  118. extern    int vtterminalinfo PROTO((int));
  119. extern    int vttidy PROTO((void));
  120. extern    int update PROTO((void));
  121. extern    int modeline PROTO((struct WINDOW *));
  122. extern    int movecursor PROTO((int, int));
  123. extern    int clearcursor PROTO((void));
  124. extern    void mlerase PROTO((void));
  125. extern    int mlyesno PROTO((char *, int));
  126. extern    int mlreply PROTO((char *, char *, int, int, EXTRAKEYS *));
  127. extern    int mlreplyd PROTO((char *, char *, int, int, EXTRAKEYS *));
  128. extern    void emlwrite PROTO((char *, void *));
  129. extern    int mlwrite PROTO((char *, void *));
  130. extern    int scrolldown PROTO((struct WINDOW *, int, int));
  131. extern    int scrollup PROTO((struct WINDOW *, int, int));
  132. extern    int pprints PROTO((int, int));
  133. extern    int doton PROTO((int *, unsigned int *));
  134. extern    int resize_pico PROTO((int, int));
  135. extern    int zotdisplay PROTO((void));
  136. extern    int pputc PROTO((int, int));
  137. extern    int pputs PROTO((char *, int));
  138. extern    int peeol PROTO((void));
  139. extern    CELL *pscr PROTO((int, int));
  140. extern    int pclear PROTO((int, int));
  141. extern    int pinsert PROTO((CELL));
  142. extern    int pdel PROTO((void));
  143. extern    void wstripe PROTO((int, int, char *, int));
  144. extern    int wkeyhelp PROTO((KEYMENU *));
  145.  
  146. /* file.c */
  147. extern    int fileread PROTO((int, int));
  148. extern    int insfile PROTO((int, int));
  149. extern    int readin PROTO((char *, int));
  150. extern    int filewrite PROTO((int, int));
  151. extern    int filesave PROTO((int, int));
  152. extern    int writeout PROTO((char *, int));
  153. extern    char *writetmp PROTO((int, char *));
  154. extern    int filename PROTO((int, int));
  155. extern    int in_oper_tree PROTO((char *));
  156.  
  157. /* fileio.c */
  158. extern    int ffropen PROTO((char *));
  159. extern    int ffputline PROTO((CELL *, int));
  160. extern    int ffgetline PROTO((char *, int, int));
  161.  
  162. /* line.c */
  163. extern    struct LINE *lalloc PROTO((int));
  164. extern    int lfree PROTO((struct LINE *));
  165. extern    int lchange PROTO((int));
  166. extern    int linsert PROTO((int, int));
  167. extern    int geninsert PROTO((LINE **, int *, LINE *, int, int, int, long *));
  168. extern    int lnewline PROTO((void));
  169. extern    int ldelete PROTO((long, int (*) PROTO((int))));
  170. extern    int lisblank PROTO((struct LINE *));
  171. extern    int kdelete PROTO((void));
  172. extern    int kinsert PROTO((int));
  173. extern    int kremove PROTO((int));
  174. extern    int ksize PROTO((void));
  175. extern    int fdelete PROTO((void));
  176. extern    int finsert PROTO((int));
  177. extern    int fremove PROTO((int));
  178.  
  179. /* os.c */
  180. extern    int Raw PROTO((int));
  181. extern    void xonxoff_proc PROTO((int));
  182. extern    void crlf_proc PROTO((int));
  183. extern    void intr_proc PROTO((int));
  184. extern    void flush_input PROTO((void));
  185. extern    void bit_strip_off PROTO((void));
  186. extern    void quit_char_off PROTO((void));
  187. extern    int ttisslow PROTO((void));
  188. extern    int input_ready PROTO((int));
  189. extern    int read_one_char PROTO((void));
  190. extern    SigType (*posix_signal PROTO((int, SigType (*)())))();
  191. extern    int posix_sigunblock PROTO((int));
  192. extern    int ttopen PROTO((void));
  193. extern    void ttresize PROTO((void));
  194. extern    int ttclose PROTO((void));
  195. extern    int ttputc PROTO((int));
  196. extern    int ttflush PROTO((void));
  197. extern    int ttgetc PROTO((int, int (*)(), void (*)()));
  198. extern    int simple_ttgetc PROTO((int (*)(), void (*)()));
  199. extern    int ttgetwinsz PROTO((int *, int *));
  200. extern    int GetKey PROTO((void));
  201. extern    int alt_editor PROTO((int, int));
  202. extern    int picosigs PROTO((void));
  203. #ifdef    JOB_CONTROL
  204. extern    int bktoshell PROTO((void));
  205. #endif
  206. extern    int fallowc PROTO((int));
  207. extern    int fexist PROTO((char *, char *, off_t *));
  208. extern    int isdir PROTO((char *, long *, time_t *));
  209. extern    char *gethomedir PROTO((int *));
  210. extern    int homeless PROTO((char *));
  211. extern    char *errstr PROTO((int));
  212. extern    char *getfnames PROTO((char *, char *, int *, char *));
  213. extern    void fioperr PROTO((int, char *));
  214. extern    int fixpath PROTO((char *, int));
  215. extern    int compresspath PROTO((char *, char *, int));
  216. extern    void tmpname PROTO((char *, char *));
  217. extern  char *temp_nam PROTO((char *, char *));
  218. extern    void makename PROTO((char *, char *));
  219. extern    int copy PROTO((char *, char *));
  220. extern    int ffwopen PROTO((char *, int));
  221. extern    int ffclose PROTO((void));
  222. extern    int ffelbowroom PROTO((void));
  223. extern    FILE *P_open PROTO((char *));
  224. extern    int P_close PROTO((FILE *));
  225. extern    int worthit PROTO((int *));
  226. extern    int o_insert PROTO((int));
  227. extern    int o_delete PROTO((void));
  228. extern    int pico_new_mail PROTO((void));
  229. extern    int time_to_check PROTO((void));
  230. extern    int sstrcasecmp PROTO((const QSType *, const QSType *));
  231. extern    int strucmp PROTO((char *, char *));
  232. extern    int struncmp PROTO((char *, char *, int));
  233. extern    int chkptinit PROTO((char *, int));
  234. extern    void set_collation PROTO((void));
  235. extern    int (*pcollator)();
  236. #ifdef    MOUSE
  237. extern    unsigned long pico_mouse PROTO((unsigned, int, int));
  238. #endif
  239.  
  240. /* pico.c */
  241. extern    int pico PROTO((struct pico_struct *));
  242. extern    int edinit PROTO((char *));
  243. extern    int execute PROTO((int, int, int));
  244. extern    int quickexit PROTO((int, int));
  245. extern    int abort_composer PROTO((int, int));
  246. extern    int suspend_composer PROTO((int, int));
  247. extern    int wquit PROTO((int, int));
  248. extern    int ctrlg PROTO((int, int));
  249. extern    int rdonly PROTO((void));
  250. extern    int pico_help PROTO((char **, char *, int));
  251. extern    int zotedit PROTO((void));
  252.  
  253. /* random.c */
  254. extern    int showcpos PROTO((int, int));
  255. extern    int tab PROTO((int, int));
  256. extern    int newline PROTO((int, int));
  257. extern    int forwdel PROTO((int, int));
  258. extern    int backdel PROTO((int, int));
  259. extern    int killtext PROTO((int, int));
  260. extern    int yank PROTO((int, int));
  261.  
  262. /* region.c */
  263. extern    int killregion PROTO((int, int));
  264. extern    int deleteregion PROTO((int, int));
  265. extern    int markregion PROTO((int));
  266.  
  267. /* search.c */
  268. extern    int forwsearch PROTO((int, int));
  269. extern    int readpattern PROTO((char *));
  270. extern    int forscan PROTO((int *, char *, LINE *, int, int));
  271.  
  272. /* spell.c */
  273. #ifdef    SPELLER
  274. extern    int spell PROTO((int, int));
  275. #endif
  276.  
  277. /* window.c */
  278. extern    int  refresh PROTO((int, int));
  279. extern    void redraw_pico_for_callback();
  280.  
  281. /* word.c */
  282. extern    int wrapword PROTO((void));
  283. extern    int backword PROTO((int, int));
  284. extern    int forwword PROTO((int, int));
  285. extern    int fillpara PROTO((int, int));
  286. extern    int inword PROTO((void));
  287. extern    int quote_match PROTO((char *, LINE *));
  288.  
  289. #endif    /* EFUNC_H */
  290.