home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / src / proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-05-24  |  5.7 KB  |  247 lines

  1. /* vi:set ts=8 sts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved    by Bram Moolenaar
  4.  *
  5.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  6.  * Do ":help credits" in Vim to see a list of people who contributed.
  7.  */
  8.  
  9. /*
  10.  * proto.h: include the (automatically generated) function prototypes
  11.  */
  12.  
  13. /*
  14.  * Don't include these while generating prototypes.  Prevents problems when
  15.  * files are missing.
  16.  */
  17. #if !defined(PROTO) && !defined(NOPROTO)
  18.  
  19. /*
  20.  * Machine-dependent routines.
  21.  */
  22. /* avoid errors in function prototypes */
  23. # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK)
  24. #  define Display int
  25. #  define Widget int
  26. # endif
  27. # ifndef FEAT_GUI_GTK
  28. #  define GdkEvent int
  29. #  define GdkEventKey int
  30. # endif
  31. # ifndef FEAT_X11
  32. #  define XImage int
  33. # endif
  34.  
  35. # ifdef AMIGA
  36. #  include "os_amiga.pro"
  37. # endif
  38. # if defined(UNIX) || defined(__EMX__) || defined(VMS)
  39. #  include "os_unix.pro"
  40. # endif
  41. # if defined(MSDOS) || defined(WIN16)
  42. #  include "os_msdos.pro"
  43. # endif
  44. # ifdef WIN16
  45.    typedef LPSTR LPWSTR;
  46.    typedef LPCSTR LPCWSTR;
  47.    typedef int LPBOOL;
  48. #  include "os_win16.pro"
  49. #  include "os_mswin.pro"
  50. # endif
  51. # ifdef WIN3264
  52. #  include "os_win32.pro"
  53. #  include "os_mswin.pro"
  54. #  if (defined(__GNUC__) && !defined(__MINGW32__)) \
  55.     || (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
  56. extern int _stricoll __ARGS((char *a, char *b));
  57. #  endif
  58. # endif
  59. # ifdef VMS
  60. #  include "os_vms.pro"
  61. # endif
  62. # ifdef __BEOS__
  63. #  include "os_beos.pro"
  64. # endif
  65. # ifdef MACOS
  66. #  include "os_mac.pro"
  67. # endif
  68. # ifdef RISCOS
  69. #  include "os_riscos.pro"
  70. # endif
  71. # ifdef __QNX__
  72. #  include "os_qnx.pro"
  73. # endif
  74.  
  75. # include "buffer.pro"
  76. # include "charset.pro"
  77. # ifdef FEAT_CSCOPE
  78. #  include "if_cscope.pro"
  79. # endif
  80. # include "diff.pro"
  81. # include "digraph.pro"
  82. # include "edit.pro"
  83. # include "eval.pro"
  84. # include "ex_cmds.pro"
  85. # include "ex_cmds2.pro"
  86. # include "ex_docmd.pro"
  87. # include "ex_eval.pro"
  88. # include "ex_getln.pro"
  89. # include "fileio.pro"
  90. # include "fold.pro"
  91. # include "getchar.pro"
  92. # ifdef FEAT_HANGULIN
  93. #  include "hangulin.pro"
  94. # endif
  95. # include "main.pro"
  96. # include "mark.pro"
  97. # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
  98.     /* These prototypes cannot be produced automatically and conflict with
  99.      * the old-style prototypes in message.c. */
  100. int
  101. #ifdef __BORLANDC__
  102. _RTLENTRYF
  103. #endif
  104. smsg __ARGS((char_u *, ...));
  105. int
  106. #ifdef __BORLANDC__
  107. _RTLENTRYF
  108. #endif
  109. smsg_attr __ARGS((int, char_u *, ...));
  110. # endif
  111. # include "memfile.pro"
  112. # include "memline.pro"
  113. # ifdef FEAT_MENU
  114. #  include "menu.pro"
  115. # endif
  116. # include "message.pro"
  117. # include "misc1.pro"
  118. # include "misc2.pro"
  119. #ifndef HAVE_STRPBRK        /* not generated automatically from misc2.c */
  120. char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset));
  121. #endif
  122. #ifndef HAVE_QSORT
  123. /* Use our own qsort(), don't define the prototype when not used. */
  124. void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)));
  125. #endif
  126. # include "move.pro"
  127. # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \
  128.     || defined(FEAT_POSTSCRIPT)
  129. #  include "mbyte.pro"
  130. # endif
  131. # include "normal.pro"
  132. # include "ops.pro"
  133. # include "option.pro"
  134. # include "quickfix.pro"
  135. # include "regexp.pro"
  136. # include "screen.pro"
  137. # include "search.pro"
  138. # include "syntax.pro"
  139. # include "tag.pro"
  140. # include "term.pro"
  141. # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS))
  142. #  include "termlib.pro"
  143. # endif
  144. # include "ui.pro"
  145. # include "undo.pro"
  146. # include "version.pro"
  147. # include "window.pro"
  148.  
  149. # ifdef FEAT_PYTHON
  150. #  include "if_python.pro"
  151. # endif
  152.  
  153. # ifdef FEAT_TCL
  154. #  include "if_tcl.pro"
  155. # endif
  156.  
  157. # ifdef FEAT_RUBY
  158. #  include "if_ruby.pro"
  159. # endif
  160.  
  161. # ifdef FEAT_GUI
  162. #  include "gui.pro"
  163. #  if defined(UNIX) || defined(MACOS)
  164. #   include "pty.pro"
  165. #  endif
  166. #  if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
  167. extern int putenv __ARGS((const char *string));        /* from pty.c */
  168. #   ifdef USE_VIMPTY_GETENV
  169. extern char_u *vimpty_getenv __ARGS((const char_u *string));    /* from pty.c */
  170. #   endif
  171. #  endif
  172. #  ifdef FEAT_GUI_W16
  173. #   include "gui_w16.pro"
  174. #  endif
  175. #  ifdef FEAT_GUI_W32
  176. #   include "gui_w32.pro"
  177. #  endif
  178. #  ifdef FEAT_GUI_GTK
  179. #   include "gui_gtk.pro"
  180. #   include "gui_gtk_x11.pro"
  181. #  endif
  182. #  ifdef FEAT_GUI_MOTIF
  183. #   include "gui_motif.pro"
  184. #  endif
  185. #  ifdef FEAT_GUI_ATHENA
  186. #   include "gui_athena.pro"
  187. #ifdef FEAT_BROWSE
  188. extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg));
  189. #endif
  190. #  endif
  191. #  ifdef FEAT_GUI_BEOS
  192. #   include "gui_beos.pro"
  193. #  endif
  194. #  ifdef FEAT_GUI_MAC
  195. #   include "gui_mac.pro"
  196. #  endif
  197. #  ifdef FEAT_GUI_X11
  198. #   include "gui_x11.pro"
  199. #  endif
  200. #  if defined(FEAT_GUI_AMIGA)
  201. #    include "gui_amiga.pro"
  202. #  endif
  203. #  ifdef RISCOS
  204. #   include "gui_riscos.pro"
  205. #  endif
  206. #  ifdef FEAT_GUI_PHOTON
  207. #   include "gui_photon.pro"
  208. #  endif
  209. #  ifdef FEAT_SUN_WORKSHOP
  210. #   include "workshop.pro"
  211. #  endif
  212. #  ifdef FEAT_NETBEANS_INTG
  213. #   include "netbeans.pro"
  214. #  endif
  215. # endif    /* FEAT_GUI */
  216.  
  217. # ifdef FEAT_OLE
  218. #  include "if_ole.pro"
  219. # endif
  220. # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
  221. #  include "if_xcmdsrv.pro"
  222. # endif
  223.  
  224. /*
  225.  * The perl include files pollute the namespace, therfore proto.h must be
  226.  * included before the perl include files.  But then CV is not defined, which
  227.  * is used in if_perl.pro.  To get around this, the perl prototype files are
  228.  * not included here for the perl files.  Use a dummy define for CV for the
  229.  * other files.
  230.  */
  231. #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
  232. # define CV void
  233. # ifdef __BORLANDC__
  234. #  pragma option -pc
  235. # endif
  236. # include "if_perl.pro"
  237. # ifdef __BORLANDC__
  238. #  pragma option -p.
  239. # endif
  240. # include "if_perlsfio.pro"
  241. #endif
  242.  
  243. #ifdef __BORLANDC__
  244. # define _PROTO_H
  245. #endif
  246. #endif /* !PROTO && !NOPROTO */
  247.