summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/form/fld_newftyp.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
committerpeter <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
commitb7ada7f2444f41b672faef4f93e446bdf8584cf9 (patch)
treee83b2ef47811e687a6c54035c9af6d4a2b7f14e1 /contrib/ncurses/form/fld_newftyp.c
parenta81407a537bfd1ab9e48c69007eb6b30e66d271b (diff)
downloadFreeBSD-src-b7ada7f2444f41b672faef4f93e446bdf8584cf9.zip
FreeBSD-src-b7ada7f2444f41b672faef4f93e446bdf8584cf9.tar.gz
Import ncurses-5.2-20010512 onto the vendor branch
Obtained from: ftp://dickey.his.com/ncurses/
Diffstat (limited to 'contrib/ncurses/form/fld_newftyp.c')
-rw-r--r--contrib/ncurses/form/fld_newftyp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/ncurses/form/fld_newftyp.c b/contrib/ncurses/form/fld_newftyp.c
index 68b1692..e0c8b33 100644
--- a/contrib/ncurses/form/fld_newftyp.c
+++ b/contrib/ncurses/form/fld_newftyp.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * 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 *
@@ -32,7 +32,7 @@
#include "form.priv.h"
-MODULE_ID("$Id: fld_newftyp.c,v 1.5 1999/05/16 17:18:54 juergen Exp $")
+MODULE_ID("$Id: fld_newftyp.c,v 1.6 2000/12/10 02:09:38 tom Exp $")
static FIELDTYPE const default_fieldtype = {
0, /* status */
@@ -48,7 +48,7 @@ static FIELDTYPE const default_fieldtype = {
NULL /* enumerate previous function */
};
-const FIELDTYPE* _nc_Default_FieldType = &default_fieldtype;
+NCURSES_EXPORT_VAR(const FIELDTYPE*) _nc_Default_FieldType = &default_fieldtype;
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -65,7 +65,8 @@ const FIELDTYPE* _nc_Default_FieldType = &default_fieldtype;
|
| Return Values : Fieldtype pointer or NULL if error occured
+--------------------------------------------------------------------------*/
-FIELDTYPE *new_fieldtype(
+NCURSES_EXPORT(FIELDTYPE *)
+new_fieldtype (
bool (* const field_check)(FIELD *,const void *),
bool (* const char_check) (int,const void *) )
{
@@ -102,7 +103,8 @@ FIELDTYPE *new_fieldtype(
| E_CONNECTED - there are fields referencing the type
| E_BAD_ARGUMENT - invalid fieldtype pointer
+--------------------------------------------------------------------------*/
-int free_fieldtype(FIELDTYPE *typ)
+NCURSES_EXPORT(int)
+free_fieldtype (FIELDTYPE *typ)
{
if (!typ)
RETURN(E_BAD_ARGUMENT);
OpenPOWER on IntegriCloud