diff options
author | 2001-01-22 18:01:32 +0000 | |
---|---|---|
committer | 2001-01-22 18:01:32 +0000 | |
commit | 84af20cee44481ef9eb2070c76702603863c1a4c (patch) | |
tree | b232b1727be5b5b1854432f2b87c149f7522cb9d /lib/libform/frm_def.c | |
parent | fix memory leaks in SSH2 key exchange; ok markus@ (diff) | |
download | wireguard-openbsd-84af20cee44481ef9eb2070c76702603863c1a4c.tar.xz wireguard-openbsd-84af20cee44481ef9eb2070c76702603863c1a4c.zip |
Update to ncurses-5.2-20010114
Diffstat (limited to 'lib/libform/frm_def.c')
-rw-r--r-- | lib/libform/frm_def.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/lib/libform/frm_def.c b/lib/libform/frm_def.c index 4678166e6d2..ac123147d4a 100644 --- a/lib/libform/frm_def.c +++ b/lib/libform/frm_def.c @@ -1,7 +1,7 @@ -/* $OpenBSD: frm_def.c,v 1.5 1999/05/17 03:04:16 millert Exp $ */ +/* $OpenBSD: frm_def.c,v 1.6 2001/01/22 18:02:14 millert Exp $ */ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998,2000 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -34,7 +34,7 @@ #include "form.priv.h" -MODULE_ID("$From: frm_def.c,v 1.9 1999/05/16 17:20:43 juergen Exp $") +MODULE_ID("$From: frm_def.c,v 1.10 2000/12/10 02:09:38 tom Exp $") /* this can't be readonly */ static FORM default_form = { @@ -62,7 +62,7 @@ static FORM default_form = { NULL /* fieldterm */ }; -FORM *_nc_Default_Form = &default_form; +NCURSES_EXPORT_VAR(FORM *) _nc_Default_Form = &default_form; /*--------------------------------------------------------------------------- | Facility : libnform @@ -271,7 +271,8 @@ INLINE static int Associate_Fields(FORM *form, FIELD **fields) | | Return Values : Pointer to form. NULL if error occured. +--------------------------------------------------------------------------*/ -FORM *new_form(FIELD ** fields) +NCURSES_EXPORT(FORM *) +new_form (FIELD ** fields) { int err = E_SYSTEM_ERROR; @@ -303,7 +304,8 @@ FORM *new_form(FIELD ** fields) | E_BAD_ARGUMENT - invalid form pointer | E_POSTED - form is posted +--------------------------------------------------------------------------*/ -int free_form(FORM * form) +NCURSES_EXPORT(int) +free_form (FORM * form) { if ( !form ) RETURN(E_BAD_ARGUMENT); @@ -329,7 +331,8 @@ int free_form(FORM * form) | E_BAD_ARGUMENT - invalid form pointer | E_POSTED - form is posted +--------------------------------------------------------------------------*/ -int set_form_fields(FORM * form, FIELD ** fields) +NCURSES_EXPORT(int) +set_form_fields (FORM * form, FIELD ** fields) { FIELD **old; int res; @@ -357,7 +360,8 @@ int set_form_fields(FORM * form, FIELD ** fields) | | Return Values : Pointer to field array +--------------------------------------------------------------------------*/ -FIELD **form_fields(const FORM * form) +NCURSES_EXPORT(FIELD **) +form_fields (const FORM * form) { return (Normalize_Form( form )->field); } @@ -370,7 +374,8 @@ FIELD **form_fields(const FORM * form) | | Return Values : Number of fields, -1 if none are defined +--------------------------------------------------------------------------*/ -int field_count(const FORM * form) +NCURSES_EXPORT(int) +field_count (const FORM * form) { return (Normalize_Form( form )->maxfield); } |