aboutsummaryrefslogtreecommitdiff
path: root/src/proto.h
blob: fa538cc2d10f9fa74d49cef66cf9397c58cbbe8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* vi:set ts=8 sts=4 sw=4:
 *
 * VIM - Vi IMproved	by Bram Moolenaar
 *
 * Do ":help uganda"  in Vim to read copying and usage conditions.
 * Do ":help credits" in Vim to see a list of people who contributed.
 */

/*
 * proto.h: include the (automatically generated) function prototypes
 */

/*
 * Don't include these while generating prototypes.  Prevents problems when
 * files are missing.
 */
#if !defined(PROTO) && !defined(NOPROTO)

/*
 * Machine-dependent routines.
 */
/* avoid errors in function prototypes */
#  define Display int
#  define Widget int
#  define GdkEvent int
#  define GdkEventKey int
#  define XImage int

# if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
/* These prototypes cannot be produced automatically and conflict with
 * the old-style prototypes in message.c. */
int
smsg(char_u *, ...);

int
smsg_attr(int, char_u *, ...);

int
vim_snprintf_add(char *, size_t, char *, ...);

int
vim_snprintf(char *, size_t, char *, ...);

#  if defined(HAVE_STDARG_H)
int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs);
#  endif
# endif

#ifndef HAVE_STRPBRK        /* not generated automatically from misc2.c */
char_u *vim_strpbrk(char_u *s, char_u *charset);
#endif

/* Ugly solution for "BalloonEval" not being defined while it's used in some
 * .pro files. */
#  define BalloonEval int

#endif /* !PROTO && !NOPROTO */