1 /****************************************************************************
2 * Copyright (c) 2011 Free Software Foundation, Inc. *
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: *
12 * The above copyright notice and this permission notice shall be included *
13 * in all copies or substantial portions of the Software. *
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. *
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 *
27 ****************************************************************************/
29 /****************************************************************************
30 * Author: Nicolas Boulenguez, 2011 *
31 ****************************************************************************/
35 $Id: c_varargs_to_ada.c,v 1.4 2011/03/19 19:07:39 tom Exp $
36 --------------------------------------------------------------------------*/
40 #include <c_varargs_to_ada.h>
43 set_field_type_alnum(FIELD *field,
46 return set_field_type(field, TYPE_ALNUM, minimum_width);
50 set_field_type_alpha(FIELD *field,
53 return set_field_type(field, TYPE_ALPHA, minimum_width);
57 set_field_type_enum(FIELD *field,
62 return set_field_type(field, TYPE_ENUM, value_list, case_sensitive,
67 set_field_type_integer(FIELD *field,
72 return set_field_type(field, TYPE_INTEGER, precision, minimum, maximum);
76 set_field_type_numeric(FIELD *field,
81 return set_field_type(field, TYPE_NUMERIC, precision, minimum, maximum);
85 set_field_type_regexp(FIELD *field,
86 char *regular_expression)
88 return set_field_type(field, TYPE_REGEXP, regular_expression);
92 set_field_type_ipv4(FIELD *field)
94 return set_field_type(field, TYPE_IPV4);
98 set_field_type_user(FIELD *field,
102 return set_field_type(field, fieldtype, arg);
106 void_star_make_arg(va_list *list)
108 return va_arg(*list, void *);
113 _traces(const char *fmt, char *arg)