]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/src/c_varargs_to_ada.h
ncurses 6.1 - patch 20181110
[ncurses.git] / Ada95 / src / c_varargs_to_ada.h
1 /****************************************************************************
2  * Copyright (c) 2011,2015 Free Software Foundation, Inc.                   *
3  *                                                                          *
4  * Permission is hereby granted, free of charge, to any person obtaining a  *
5  * copy of this software and associated documentation files (the            *
6  * "Software"), to deal in the Software without restriction, including      *
7  * without limitation the rights to use, copy, modify, merge, publish,      *
8  * distribute, distribute with modifications, sublicense, and/or sell       *
9  * copies of the Software, and to permit persons to whom the Software is    *
10  * furnished to do so, subject to the following conditions:                 *
11  *                                                                          *
12  * The above copyright notice and this permission notice shall be included  *
13  * in all copies or substantial portions of the Software.                   *
14  *                                                                          *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18  * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22  *                                                                          *
23  * Except as contained in this notice, the name(s) of the above copyright   *
24  * holders shall not be used in advertising or otherwise to promote the     *
25  * sale, use or other dealings in this Software without prior written       *
26  * authorization.                                                           *
27  ****************************************************************************/
28
29 /* $Id: c_varargs_to_ada.h,v 1.4 2015/08/06 23:08:47 tom Exp $ */
30
31 #ifndef __C_VARARGS_TO_ADA_H
32 #define __C_VARARGS_TO_ADA_H
33
34 #ifdef HAVE_CONFIG_H
35 #include <ncurses_cfg.h>
36 #else
37 #include <ncurses.h>
38 #endif
39
40 #include <stdlib.h>
41
42 #include <form.h>
43
44 extern int set_field_type_alnum(FIELD * /* field */ ,
45                                 int /* minimum_width */ );
46
47 extern int set_field_type_alpha(FIELD * /* field */ ,
48                                 int /* minimum_width */ );
49
50 extern int set_field_type_enum(FIELD * /* field */ ,
51                                char ** /* value_list */ ,
52                                int /* case_sensitive */ ,
53                                int /* unique_match */ );
54
55 extern int set_field_type_integer(FIELD * /* field */ ,
56                                   int /* precision */ ,
57                                   long /* minimum */ ,
58                                   long /* maximum */ );
59
60 extern int set_field_type_numeric(FIELD * /* field */ ,
61                                   int /* precision */ ,
62                                   double /* minimum */ ,
63                                   double /* maximum */ );
64
65 extern int set_field_type_regexp(FIELD * /* field */ ,
66                                  char * /* regular_expression */ );
67
68 extern int set_field_type_ipv4(FIELD * /* field */ );
69
70 extern int set_field_type_user(FIELD * /* field */ ,
71                                FIELDTYPE * /* fieldtype */ ,
72                                void * /* arg */ );
73
74 extern void *void_star_make_arg(va_list * /* list */ );
75
76 #ifdef TRACE
77 extern void _traces(const char *        /* fmt */
78                     ,char * /* arg */ );
79 #endif
80
81 #endif /* __C_VARARGS_TO_ADA_H */