From 05a884c675b0fb7693e46502c57f3cd663c5691d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 6 Nov 2001 08:40:07 -0500 Subject: [PATCH] Removed a function which used va_start (did not compile on Sun with gcc) --- Source/CursesDialog/form/fld_type.c | 41 ----------------------------- Source/CursesDialog/form/form.h | 4 --- 2 files changed, 45 deletions(-) diff --git a/Source/CursesDialog/form/fld_type.c b/Source/CursesDialog/form/fld_type.c index 1e0657c81..6c9def2c9 100644 --- a/Source/CursesDialog/form/fld_type.c +++ b/Source/CursesDialog/form/fld_type.c @@ -34,47 +34,6 @@ MODULE_ID("$Id$") -/*--------------------------------------------------------------------------- -| Facility : libnform -| Function : int set_field_type(FIELD *field, FIELDTYPE *type,...) -| -| Description : Associate the specified fieldtype with the field. -| Certain field types take additional arguments. Look -| at the spec of the field types ! -| -| Return Values : E_OK - success -| E_SYSTEM_ERROR - system error -+--------------------------------------------------------------------------*/ -int set_field_type(FIELD *field,FIELDTYPE *type, ...) -{ - va_list ap; - int res = E_SYSTEM_ERROR; - int err = 0; - - va_start(ap,type); - - Normalize_Field(field); - _nc_Free_Type(field); - - field->type = type; - field->arg = (void *)_nc_Make_Argument(field->type,&ap,&err); - - if (err) - { - _nc_Free_Argument(field->type,(TypeArgument *)(field->arg)); - field->type = (FIELDTYPE *)0; - field->arg = (void *)0; - } - else - { - res = E_OK; - if (field->type) - field->type->ref++; - } - - va_end(ap); - RETURN(res); -} /*--------------------------------------------------------------------------- | Facility : libnform diff --git a/Source/CursesDialog/form/form.h b/Source/CursesDialog/form/form.h index 245398551..d0777daf9 100644 --- a/Source/CursesDialog/form/form.h +++ b/Source/CursesDialog/form/form.h @@ -277,10 +277,6 @@ extern FIELDTYPE *link_fieldtype(FIELDTYPE *,FIELDTYPE *); extern int free_fieldtype(FIELDTYPE *), - set_fieldtype_arg(FIELDTYPE *, - void * (* const make_arg)(va_list *), - void * (* const copy_arg)(const void *), - void (* const free_arg)(void *)), set_fieldtype_choice (FIELDTYPE *, bool (* const next_choice)(FIELD *,const void *), bool (* const prev_choice)(FIELD *,const void *));