diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-06 13:40:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-06 13:40:07 (GMT) |
commit | 05a884c675b0fb7693e46502c57f3cd663c5691d (patch) | |
tree | e41c1819f03612afe7b440596bf2541620574bf4 /Source/CursesDialog/form | |
parent | 4848c81428b8b8218eb86f23451ff32d78c039cd (diff) | |
download | CMake-05a884c675b0fb7693e46502c57f3cd663c5691d.zip CMake-05a884c675b0fb7693e46502c57f3cd663c5691d.tar.gz CMake-05a884c675b0fb7693e46502c57f3cd663c5691d.tar.bz2 |
Removed a function which used va_start (did not compile on Sun with gcc)
Diffstat (limited to 'Source/CursesDialog/form')
-rw-r--r-- | Source/CursesDialog/form/fld_type.c | 41 | ||||
-rw-r--r-- | Source/CursesDialog/form/form.h | 4 |
2 files changed, 0 insertions, 45 deletions
diff --git a/Source/CursesDialog/form/fld_type.c b/Source/CursesDialog/form/fld_type.c index 1e0657c..6c9def2 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 2453985..d0777da 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 *)); |