home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / editor / beav / prototyp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  7.8 KB  |  313 lines

  1. /* generated by MKPTYPES (and edited a bit) */
  2.  
  3. /* basic.c */
  4. bool backchar(int f, int n, int k);
  5. bool forwchar(int f, int n, int k);
  6. bool move_ptr(WINDOW *wp, long len, bool dot, bool fix, bool rel);
  7. bool wind_on_dot(WINDOW *wp);
  8. bool gotobob(void);
  9. bool gotoeob(void);
  10. bool forwline(int f, int n, int k);
  11. bool backline(int f, int n, int k);
  12. bool forwpage(int f, int n, int k);
  13. bool backpage(int f, int n, int k);
  14. bool setmark(void);
  15. bool swapmark(void);
  16. bool gotoline(int f, int n, int k);
  17.  
  18. /* buffer.c */
  19. bool usebuffer(void);
  20. bool use_buffer(void);
  21. bool _usebuffer(char *bufn);
  22. bool killbuffer(void);
  23. bool _killbuffer(char *bufn);
  24. bool listbuffers(void);
  25. bool showsavebuf(void);
  26. bool popblist(void);
  27. bool makelist(void);
  28. bool addline(char *text);
  29. bool anycb(void);
  30. BUFFER *bfind(char *bname, int cflag);
  31. BUFFER *bcreate(char *bname);
  32. bool bclear(BUFFER *bp);
  33. bool next_buf(void);
  34. bool prev_buf(void);
  35. bool yank_buffer(void);
  36. bool _yankbuffer(char *bufn);
  37. bool buffername(void);
  38. bool killablebufs(BUFFER *bp);
  39. bool onebuf(BUFFER *bp);
  40. void funky_name(char *bname, int n);
  41. bool pickone(void);
  42. bool bufsizlock(void);
  43. void b_append_l(BUFFER *buf_p, LINE *lp);
  44. bool b_append_c(BUFFER *buf_p, int ch);
  45. void save_buf_init(void);
  46. void save_buf_home(void);
  47. D16 get_save_char(void);
  48.  
  49. /* display.c */
  50. void vtinit(void);
  51. void vtfree(void);
  52. void vttidy(void);
  53. void vtmove(int row, int col);
  54. void vtputc(int c);
  55. bool vtputd(WINDOW *wp, int row);
  56. void bin_to_text(char *bin_buf, char *txt_buf, uint len, ROW_FMT *fmt_ptr);
  57. D16 get_int(uchar *w_buf);
  58. D32 get_long(uchar *w_buf);
  59. D64 get_double(uchar *w_buf);
  60. uint fill_buf(WINDOW *wp, LINE *lin, uint lin_off, char *w_buff, uint cnt);
  61. void vteeol(void);
  62. void update(void);
  63. uint get_currow(WINDOW *wp);
  64. uint get_curcol(WINDOW *wp);
  65. void modeline(WINDOW *wp);
  66. void writ_echo(char *buf);
  67. bool print(void);
  68.  
  69. /* ebcdic.c */
  70. char to_ebcdic(int ch);
  71.  
  72. /* echo.c */
  73. void eerase(void);
  74. bool eyesno(char *sp);
  75. bool ereply(char *fp, char *buf, int nbuf, char *arg);
  76. bool eread(char *fp, char *buf, int nbuf, int flag, char *ap);
  77. int getxtra(SYMBOL *sp1, SYMBOL *sp2, int cpos);
  78. void eformat(char *fp, char *ap);
  79. void eputi(int i, int r);
  80. void eputs(char *s);
  81. void eputc(int c);
  82. void err_echo(char *buf);
  83.  
  84. /* extend.c */
  85. bool bindtokey(void);
  86. bool extend(int f, int n, int k);
  87. bool help(void);
  88. void sort_buf(BUFFER *b_ptr, int cnt);
  89. bool wallchart(int f, int n, int k);
  90. void check_extend(char *sfname);
  91. char *flook(char *fname, int hflag);
  92. bool load_extend(void);
  93. int find_keyval(char *name);
  94.  
  95. /* file.c */
  96. bool fileread(void);
  97. bool fileinsert(void);
  98. bool file_visit(int f, int n, int k);
  99. bool viewfile(void);
  100. bool filevisit(void);
  101. bool load_file(char *fname, A32 start, A32 end);
  102. bool readin(char fname[], A32 start, A32 end);
  103. void makename(char bname[], char fname[]);
  104. bool filewrite(void);
  105. bool filesave(void);
  106. bool writeout(char *fn, A32 start, A32 end, int mode);
  107. bool filename(void);
  108. bool parse_f_name(char *fn, A32 *start, A32 *end);
  109.  
  110. /* fileio.c */
  111. char ffropen(char *fn);
  112. #ifdef AMIGA
  113. A32 file_len(char *fname);
  114. #else
  115. A32 file_len(void);
  116. #endif
  117. bool ffwopen(char *fn, int mode);
  118. bool ffclose(void);
  119. bool ffputline(char buf[], int nbuf);
  120. bool ffgetline(char *buf, LPOS nbuf, LPOS *rbuf);
  121. A32 ffseek(A32 posn);
  122. bool fbackupfile(char *fname);
  123. void adjustcase(char *fn);
  124. int isvalid(char *name);
  125.  
  126. /* format.c */
  127. void init_fmt(void);
  128.  
  129. /* kbd.c */
  130. int getkey(void);
  131. int getctl(void);
  132. void keyname(char *cp, int k);
  133.  
  134. /* line.c */
  135. LINE *lalloc(int size);
  136. void lfree(LINE *lp);
  137. void lchange(int flag);
  138. LINE *l_break_in_two(LINE *lp, LPOS lo, LPOS extra);
  139. bool linsert(int n, int c);
  140. bool ldelete(A32 n_bytes, int kflag);
  141. void lreplace(int n, int c);
  142. bool lrepl_str(int plen, LINE *rstr, LINE *mstr);
  143. void l_fix_up(LINE *line);
  144.  
  145. /* main.c */
  146. void main(int argc, char *argv[]);
  147. bool execute(int c, int f, int n);
  148. void edinit(char bname[]);
  149. bool flush_all(void);
  150. bool flushnquit(int f, int n, int k);
  151. bool quit(int f, int n, int k);
  152. bool ctlxlp(int f, int n, int k);
  153. bool ctlxrp(int f, int n, int k);
  154. bool ctlxe(int f, int n, int k);
  155. bool ctrlg(int f, int n, int k);
  156. bool showversion(int f, int n, int k);
  157. void _lowercase(char *s);
  158. bool autosave(void);
  159.  
  160. /* random.c */
  161. bool showcpos(int f, int n, int k);
  162. bool twiddle(void);
  163. bool quote(int f, int n, int k);
  164. bool insert_toggle(void);
  165. bool selfinsert(int f, int n, int k);
  166. bool insertunit(int f, int n, int k);
  167. bool fill_out(void);
  168. bool dec_chr_ok(char *char_buf, char *max_str, int chr, int pos);
  169. void set_mode_vars(void);
  170. bool asciimode(void);
  171. bool ebcdicmode(void);
  172. bool floatmode(void);
  173. bool decimalmode(void);
  174. bool hexmode(void);
  175. bool octalmode(void);
  176. bool binarymode(void);
  177. bool dispshift(int f, int n, int k);
  178. bool forwdel(int f, int n, int k);
  179. bool backdel(int f, int n, int k);
  180. bool dispsize1(void);
  181. bool dispsize2(void);
  182. bool dispsize4(void);
  183. bool dispswapbyte(int f, int n, int k);
  184. bool yank(int f, int n, int k);
  185. bool linkwind(void);
  186. void bad_key(int key);
  187. bool n_way_combine(int f, int n, int k);
  188. bool n_way_split(int f, int n, int k);
  189. void wind_on_dot_all(void);
  190.  
  191. /* region.c */
  192. bool killregion(int f, int n, int k);
  193. bool copyregion(int f, int n, int k);
  194. bool getregion(REGION *rp);
  195. bool save_region(int f, int n, int k);
  196.  
  197. /* search.c */
  198. bool forwsearch(void);
  199. bool backsearch(void);
  200. bool searchagain(void);
  201. bool queryrepl(int f, int n, int k);
  202. bool replaceit(void);
  203. bool forwsrch(void);
  204. bool backsrch(void);
  205. bool readpattern(void);
  206. bool recall(void);
  207. void next_pat(void);
  208. bool compare(void);
  209.  
  210. /* spawn.c */
  211. bool spawncli(int f, int n, int k);
  212.  
  213. /* symbol.c */
  214. SYMBOL *symlookup(char *cp);
  215. int symhash(char *cp);
  216. void keymapinit(void);
  217. void keyadd(int new, bool (*funcp )(void ), char *name, int modify);
  218. void keydup(int new, char *name);
  219.  
  220. /* tcap.c */
  221. void putpad(char *str);
  222. void tcapopen(void);
  223. void tcapclose(void);
  224. void tcapmove(int row, int col);
  225. void tcapeeol(void);
  226. void tcapeeop(void);
  227. void tcaprev(int state);
  228. void putnpad(char *str, int n);
  229.  
  230. /* termcap.c */
  231. #ifdef OS2
  232. int tgetent(char *bp, char *name);
  233. int tgetflag(char *id);
  234. int tgetnum(char *id);
  235. char *tgetstr(char *id, char **area);
  236. char *do_esc(char *out, char *in);
  237. char *tgoto(char *cm, int destcol, int destline);
  238. void tputs(char *cp, int affcnt, int (*outc )(int ));
  239. #endif
  240.  
  241. /* termio.c */
  242. #ifdef UNIX
  243. void ttopen(void);
  244. void ttclose(void);
  245. void ttraw(void);
  246. void ttcooked(void);
  247. int ttputc(int c);
  248. void ttflush(void);
  249. int ttgetc(void);
  250. int ttkeyready(void);
  251. #endif
  252.  
  253. /* text.c */
  254.  
  255. /* tty.c */
  256. void ttinit(void);
  257. void tttidy(void);
  258. void ttmove(int row, int col);
  259. void tteeol(void);
  260. void tteeop(void);
  261. void ttbeep(void);
  262. void asciiparm(int n);
  263. void ttnowindow(void);
  264. void ttcolor(int color);
  265.  
  266. /* ttyio.c */
  267. #ifdef MSDOS
  268. void ttopen(void);
  269. void ttclose(void);
  270. void ttflush(void);
  271. int ttputc(int c);
  272. void putline(int row, int startcol, int stringsize, char *string);
  273. int ttkeyready(void);
  274. int ttgetc(void);
  275. void ttraw(void);
  276. void ttcooked(void);
  277. void set_crt_type(void);
  278. #endif
  279.  
  280. /* ttykbd.c */
  281. void ungetkey(int k);
  282. int getkbd(void);
  283. void ttykeymapinit(void);
  284. char *keystrings(int key);
  285.  
  286. /* wangpc.c */
  287. void is_wang(void);
  288. #ifdef MSDOS
  289. int getsysconfig(union REGS *outregs, struct SREGS *segregs);
  290. #endif
  291. char getscreenstate(void);
  292.  
  293. /* window.c */
  294. bool reposition(void);
  295. bool nextwind(void);
  296. bool prevwind(void);
  297. bool mvdnwind(int f, int n, int k);
  298. bool mvupwind(int f, int n, int k);
  299. bool onlywind(void);
  300. bool delwind(void);
  301. bool splitwind(void);
  302. bool enlargewind(int f, int n, int k);
  303. bool shrinkwind(int f, int n, int k);
  304. WINDOW *wpopup(void);
  305. bool refresh(void);
  306. bool screen_rows(int f, int n, int k);
  307.  
  308. /* word.c */
  309. bool backunit(int f, int n, int k);
  310. bool forwunit(int f, int n, int k);
  311. bool delfunit(int f, int n, int k);
  312. bool delbunit(int f, int n, int k);
  313.