summaryrefslogtreecommitdiff
path: root/lib/libform
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libform')
-rw-r--r--lib/libform/fld_arg.c19
-rw-r--r--lib/libform/fld_attr.c10
-rw-r--r--lib/libform/fld_current.c15
-rw-r--r--lib/libform/fld_def.c41
-rw-r--r--lib/libform/fld_dup.c9
-rw-r--r--lib/libform/fld_ftchoice.c14
-rw-r--r--lib/libform/fld_ftlink.c10
-rw-r--r--lib/libform/fld_info.c21
-rw-r--r--lib/libform/fld_just.c12
-rw-r--r--lib/libform/fld_link.c9
-rw-r--r--lib/libform/fld_max.c9
-rw-r--r--lib/libform/fld_move.c9
-rw-r--r--lib/libform/fld_newftyp.c14
-rw-r--r--lib/libform/fld_opts.c18
-rw-r--r--lib/libform/fld_pad.c12
-rw-r--r--lib/libform/fld_page.c12
-rw-r--r--lib/libform/fld_stat.c12
-rw-r--r--lib/libform/fld_type.c12
-rw-r--r--lib/libform/fld_user.c12
-rw-r--r--lib/libform/form.h207
-rw-r--r--lib/libform/form.priv.h36
-rw-r--r--lib/libform/frm_cursor.c9
-rw-r--r--lib/libform/frm_data.c12
-rw-r--r--lib/libform/frm_def.c23
-rw-r--r--lib/libform/frm_driver.c52
-rw-r--r--lib/libform/frm_hook.c10
-rw-r--r--lib/libform/frm_opts.c18
-rw-r--r--lib/libform/frm_page.c12
-rw-r--r--lib/libform/frm_post.c12
-rw-r--r--lib/libform/frm_req_name.c12
-rw-r--r--lib/libform/frm_scale.c9
-rw-r--r--lib/libform/frm_sub.c12
-rw-r--r--lib/libform/frm_user.c12
-rw-r--r--lib/libform/frm_win.c12
-rw-r--r--lib/libform/fty_alnum.c6
-rw-r--r--lib/libform/fty_alpha.c6
-rw-r--r--lib/libform/fty_enum.c6
-rw-r--r--lib/libform/fty_int.c6
-rw-r--r--lib/libform/fty_ipv4.c10
-rw-r--r--lib/libform/fty_num.c6
-rw-r--r--lib/libform/fty_regex.c6
41 files changed, 417 insertions, 347 deletions
diff --git a/lib/libform/fld_arg.c b/lib/libform/fld_arg.c
index babe4661fd2..5087cd986fc 100644
--- a/lib/libform/fld_arg.c
+++ b/lib/libform/fld_arg.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_arg.c,v 1.3 1999/05/17 03:04:09 millert Exp $ */
+/* $OpenBSD: fld_arg.c,v 1.4 2001/01/22 18:02:11 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: fld_arg.c,v 1.4 1999/05/16 17:16:04 juergen Exp $")
+MODULE_ID("$From: fld_arg.c,v 1.5 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -62,10 +62,12 @@ MODULE_ID("$From: fld_arg.c,v 1.4 1999/05/16 17:16:04 juergen Exp $")
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid argument
+--------------------------------------------------------------------------*/
-int set_fieldtype_arg(FIELDTYPE * typ,
- void * (* const make_arg)(va_list *),
- void * (* const copy_arg)(const void *),
- void (* const free_arg)(void *))
+NCURSES_EXPORT(int)
+set_fieldtype_arg
+ (FIELDTYPE * typ,
+ void * (* const make_arg)(va_list *),
+ void * (* const copy_arg)(const void *),
+ void (* const free_arg)(void *))
{
if ( !typ || !make_arg )
RETURN(E_BAD_ARGUMENT);
@@ -85,7 +87,8 @@ int set_fieldtype_arg(FIELDTYPE * typ,
|
| Return Values : Pointer to structure or NULL if none is defined.
+--------------------------------------------------------------------------*/
-void *field_arg(const FIELD * field)
+NCURSES_EXPORT(void *)
+field_arg (const FIELD * field)
{
return Normalize_Field(field)->arg;
}
diff --git a/lib/libform/fld_attr.c b/lib/libform/fld_attr.c
index 1aa350c3390..01f71c99008 100644
--- a/lib/libform/fld_attr.c
+++ b/lib/libform/fld_attr.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_attr.c,v 1.3 1999/05/17 03:04:10 millert Exp $ */
+/* $OpenBSD: fld_attr.c,v 1.4 2001/01/22 18:02:11 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 *
@@ -33,14 +33,14 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: fld_attr.c,v 1.4 1999/05/16 17:16:30 juergen Exp $")
+MODULE_ID("$From: fld_attr.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*----------------------------------------------------------------------------
Field-Attribute manipulation routines
--------------------------------------------------------------------------*/
/* "Template" macro to generate a function to set a fields attribute */
#define GEN_FIELD_ATTR_SET_FCT( name ) \
-int set_field_ ## name (FIELD * field, chtype attr)\
+NCURSES_IMPEXP int NCURSES_API set_field_ ## name (FIELD * field, chtype attr)\
{\
int res = E_BAD_ARGUMENT;\
if ( attr==A_NORMAL || ((attr & A_ATTRIBUTES)==attr) )\
@@ -59,7 +59,7 @@ int set_field_ ## name (FIELD * field, chtype attr)\
/* "Template" macro to generate a function to get a fields attribute */
#define GEN_FIELD_ATTR_GET_FCT( name ) \
-chtype field_ ## name (const FIELD * field)\
+NCURSES_IMPEXP chtype NCURSES_API field_ ## name (const FIELD * field)\
{\
return ( A_ATTRIBUTES & (Normalize_Field( field ) -> name) );\
}
diff --git a/lib/libform/fld_current.c b/lib/libform/fld_current.c
index bca92b4135a..530dfbd69c5 100644
--- a/lib/libform/fld_current.c
+++ b/lib/libform/fld_current.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_current.c,v 1.3 1999/05/17 03:04:10 millert Exp $ */
+/* $OpenBSD: fld_current.c,v 1.4 2001/01/22 18:02:11 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: fld_current.c,v 1.4 1999/05/16 17:16:46 juergen Exp $")
+MODULE_ID("$From: fld_current.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -48,7 +48,8 @@ MODULE_ID("$From: fld_current.c,v 1.4 1999/05/16 17:16:46 juergen Exp $")
| E_INVALID_FIELD - current field can't be left
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_current_field(FORM * form, FIELD * field)
+NCURSES_EXPORT(int)
+set_current_field (FORM * form, FIELD * field)
{
int err = E_OK;
@@ -103,7 +104,8 @@ int set_current_field(FORM * form, FIELD * field)
|
| Return Values : Pointer to the current field.
+--------------------------------------------------------------------------*/
-FIELD *current_field(const FORM * form)
+NCURSES_EXPORT(FIELD *)
+current_field (const FORM * form)
{
return Normalize_Form(form)->current;
}
@@ -118,7 +120,8 @@ FIELD *current_field(const FORM * form)
| Return Values : >= 0 : field index
| -1 : fieldpointer invalid or field not connected
+--------------------------------------------------------------------------*/
-int field_index(const FIELD * field)
+NCURSES_EXPORT(int)
+field_index (const FIELD * field)
{
return ( (field && field->form) ? field->index : -1 );
}
diff --git a/lib/libform/fld_def.c b/lib/libform/fld_def.c
index ecf876c274f..9ae030440e0 100644
--- a/lib/libform/fld_def.c
+++ b/lib/libform/fld_def.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_def.c,v 1.5 1999/05/17 03:04:11 millert Exp $ */
+/* $OpenBSD: fld_def.c,v 1.6 2001/01/22 18:02:12 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: fld_def.c,v 1.12 1999/05/16 17:37:48 juergen Exp $")
+MODULE_ID("$From: fld_def.c,v 1.13 2000/12/10 02:09:38 tom Exp $")
/* this can't be readonly */
static FIELD default_field = {
@@ -65,7 +65,7 @@ static FIELD default_field = {
(char *)0 /* usrptr */
};
-FIELD *_nc_Default_Field = &default_field;
+NCURSES_EXPORT_VAR(FIELD *) _nc_Default_Field = &default_field;
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -81,8 +81,9 @@ FIELD *_nc_Default_Field = &default_field;
| Return Values : Pointer to argument structure. Maybe NULL.
| In case of an error in *err an errorcounter is increased.
+--------------------------------------------------------------------------*/
-TypeArgument*
-_nc_Make_Argument(const FIELDTYPE *typ, va_list *ap, int *err)
+NCURSES_EXPORT(TypeArgument*)
+_nc_Make_Argument
+(const FIELDTYPE *typ, va_list *ap, int *err)
{
TypeArgument *res = (TypeArgument *)0;
TypeArgument *p;
@@ -123,9 +124,10 @@ _nc_Make_Argument(const FIELDTYPE *typ, va_list *ap, int *err)
| Return Values : Pointer to argument structure. Maybe NULL.
| In case of an error in *err an errorcounter is increased.
+--------------------------------------------------------------------------*/
-TypeArgument*
-_nc_Copy_Argument(const FIELDTYPE *typ,
- const TypeArgument *argp, int *err)
+NCURSES_EXPORT(TypeArgument*)
+_nc_Copy_Argument
+ (const FIELDTYPE *typ,
+ const TypeArgument *argp, int *err)
{
TypeArgument *res = (TypeArgument *)0;
TypeArgument *p;
@@ -168,8 +170,9 @@ _nc_Copy_Argument(const FIELDTYPE *typ,
|
| Return Values : -
+--------------------------------------------------------------------------*/
-void
-_nc_Free_Argument(const FIELDTYPE * typ, TypeArgument * argp)
+NCURSES_EXPORT(void)
+_nc_Free_Argument
+(const FIELDTYPE * typ, TypeArgument * argp)
{
if (!typ || !(typ->status & _HAS_ARGS))
return;
@@ -197,8 +200,9 @@ _nc_Free_Argument(const FIELDTYPE * typ, TypeArgument * argp)
| Return Values : TRUE - copy worked
| FALSE - error occured
+--------------------------------------------------------------------------*/
-bool
-_nc_Copy_Type(FIELD *dst, FIELD const *src)
+NCURSES_EXPORT(bool)
+_nc_Copy_Type
+(FIELD *dst, FIELD const *src)
{
int err = 0;
@@ -230,8 +234,8 @@ _nc_Copy_Type(FIELD *dst, FIELD const *src)
|
| Return Values : -
+--------------------------------------------------------------------------*/
-void
-_nc_Free_Type(FIELD *field)
+NCURSES_EXPORT(void)
+_nc_Free_Type (FIELD *field)
{
assert(field);
if (field->type)
@@ -255,7 +259,9 @@ _nc_Free_Type(FIELD *field)
|
| Return Values : Pointer to the new field or NULL if failure.
+--------------------------------------------------------------------------*/
-FIELD *new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf)
+NCURSES_EXPORT(FIELD *)
+new_field
+(int rows, int cols, int frow, int fcol, int nrow, int nbuf)
{
FIELD *New_Field = (FIELD *)0;
int err = E_BAD_ARGUMENT;
@@ -319,7 +325,8 @@ FIELD *new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf)
| E_BAD_ARGUMENT - invalid field pointer
| E_CONNECTED - field is connected
+--------------------------------------------------------------------------*/
-int free_field(FIELD * field)
+NCURSES_EXPORT(int)
+free_field (FIELD * field)
{
if (!field)
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/fld_dup.c b/lib/libform/fld_dup.c
index ab7d8e7165f..3671141705a 100644
--- a/lib/libform/fld_dup.c
+++ b/lib/libform/fld_dup.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_dup.c,v 1.3 1999/05/17 03:04:12 millert Exp $ */
+/* $OpenBSD: fld_dup.c,v 1.4 2001/01/22 18:02:12 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: fld_dup.c,v 1.4 1999/05/16 17:17:08 juergen Exp $")
+MODULE_ID("$From: fld_dup.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -49,7 +49,8 @@ MODULE_ID("$From: fld_dup.c,v 1.4 1999/05/16 17:17:08 juergen Exp $")
|
| Return Values : Pointer to the new field or NULL if failure
+--------------------------------------------------------------------------*/
-FIELD *dup_field(FIELD * field, int frow, int fcol)
+NCURSES_EXPORT(FIELD *)
+dup_field (FIELD * field, int frow, int fcol)
{
FIELD *New_Field = (FIELD *)0;
int err = E_BAD_ARGUMENT;
diff --git a/lib/libform/fld_ftchoice.c b/lib/libform/fld_ftchoice.c
index 3d660050070..bf102348924 100644
--- a/lib/libform/fld_ftchoice.c
+++ b/lib/libform/fld_ftchoice.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_ftchoice.c,v 1.3 1999/05/17 03:04:13 millert Exp $ */
+/* $OpenBSD: fld_ftchoice.c,v 1.4 2001/01/22 18:02:12 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: fld_ftchoice.c,v 1.4 1999/05/16 17:17:21 juergen Exp $")
+MODULE_ID("$From: fld_ftchoice.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -48,9 +48,11 @@ MODULE_ID("$From: fld_ftchoice.c,v 1.4 1999/05/16 17:17:21 juergen Exp $")
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid arguments
+--------------------------------------------------------------------------*/
-int set_fieldtype_choice(FIELDTYPE * typ,
- bool (* const next_choice) (FIELD *,const void *),
- bool (* const prev_choice) (FIELD *,const void *))
+NCURSES_EXPORT(int)
+set_fieldtype_choice
+ (FIELDTYPE * typ,
+ bool (* const next_choice) (FIELD *,const void *),
+ bool (* const prev_choice) (FIELD *,const void *))
{
if ( !typ || !next_choice || !prev_choice )
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/fld_ftlink.c b/lib/libform/fld_ftlink.c
index c3d2fe69023..07557e59234 100644
--- a/lib/libform/fld_ftlink.c
+++ b/lib/libform/fld_ftlink.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_ftlink.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_ftlink.c,v 1.4 2001/01/22 18:02:12 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: fld_ftlink.c,v 1.4 1999/05/16 17:17:33 juergen Exp $")
+MODULE_ID("$From: fld_ftlink.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -50,7 +50,9 @@ MODULE_ID("$From: fld_ftlink.c,v 1.4 1999/05/16 17:17:33 juergen Exp $")
|
| Return Values : Fieldtype pointer or NULL if error occured.
+--------------------------------------------------------------------------*/
-FIELDTYPE *link_fieldtype(FIELDTYPE * type1, FIELDTYPE * type2)
+NCURSES_EXPORT(FIELDTYPE *)
+link_fieldtype
+(FIELDTYPE * type1, FIELDTYPE * type2)
{
FIELDTYPE *nftyp = (FIELDTYPE *)0;
diff --git a/lib/libform/fld_info.c b/lib/libform/fld_info.c
index 9520673229d..da868e6c1d4 100644
--- a/lib/libform/fld_info.c
+++ b/lib/libform/fld_info.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_info.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_info.c,v 1.4 2001/01/22 18:02:12 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: fld_info.c,v 1.4 1999/05/16 17:17:52 juergen Exp $")
+MODULE_ID("$From: fld_info.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -48,10 +48,12 @@ MODULE_ID("$From: fld_info.c,v 1.4 1999/05/16 17:17:52 juergen Exp $")
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid field pointer
+--------------------------------------------------------------------------*/
-int field_info(const FIELD *field,
- int *rows, int *cols,
- int *frow, int *fcol,
- int *nrow, int *nbuf)
+NCURSES_EXPORT(int)
+field_info
+ (const FIELD *field,
+ int *rows, int *cols,
+ int *frow, int *fcol,
+ int *nrow, int *nbuf)
{
if (!field)
RETURN(E_BAD_ARGUMENT);
@@ -77,8 +79,9 @@ int field_info(const FIELD *field,
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid argument
+--------------------------------------------------------------------------*/
-int dynamic_field_info(const FIELD *field,
- int *drows, int *dcols, int *maxgrow)
+NCURSES_EXPORT(int)
+dynamic_field_info
+(const FIELD *field, int *drows, int *dcols, int *maxgrow)
{
if (!field)
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/fld_just.c b/lib/libform/fld_just.c
index 52bdb3a760a..61db459b6e7 100644
--- a/lib/libform/fld_just.c
+++ b/lib/libform/fld_just.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_just.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_just.c,v 1.4 2001/01/22 18:02:12 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: fld_just.c,v 1.5 1999/05/16 17:18:06 juergen Exp $")
+MODULE_ID("$From: fld_just.c,v 1.6 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: fld_just.c,v 1.5 1999/05/16 17:18:06 juergen Exp $")
| E_BAD_ARGUMENT - one of the arguments was incorrect
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_field_just(FIELD * field, int just)
+NCURSES_EXPORT(int)
+set_field_just (FIELD * field, int just)
{
int res = E_BAD_ARGUMENT;
@@ -75,7 +76,8 @@ int set_field_just(FIELD * field, int just)
|
| Return Values : The justification type.
+--------------------------------------------------------------------------*/
-int field_just(const FIELD * field)
+NCURSES_EXPORT(int)
+field_just (const FIELD * field)
{
return Normalize_Field( field )->just;
}
diff --git a/lib/libform/fld_link.c b/lib/libform/fld_link.c
index 0dc5c09defb..8ee22de0067 100644
--- a/lib/libform/fld_link.c
+++ b/lib/libform/fld_link.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_link.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_link.c,v 1.4 2001/01/22 18:02:12 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: fld_link.c,v 1.4 1999/05/16 17:18:18 juergen Exp $")
+MODULE_ID("$From: fld_link.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -50,7 +50,8 @@ MODULE_ID("$From: fld_link.c,v 1.4 1999/05/16 17:18:18 juergen Exp $")
|
| Return Values : Pointer to the new field or NULL if failure
+--------------------------------------------------------------------------*/
-FIELD *link_field(FIELD * field, int frow, int fcol)
+NCURSES_EXPORT(FIELD *)
+link_field (FIELD * field, int frow, int fcol)
{
FIELD *New_Field = (FIELD *)0;
int err = E_BAD_ARGUMENT;
diff --git a/lib/libform/fld_max.c b/lib/libform/fld_max.c
index 8d1e34c115d..64ca77bfde4 100644
--- a/lib/libform/fld_max.c
+++ b/lib/libform/fld_max.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_max.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_max.c,v 1.4 2001/01/22 18:02:13 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: fld_max.c,v 1.4 1999/05/16 17:18:34 juergen Exp $")
+MODULE_ID("$From: fld_max.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: fld_max.c,v 1.4 1999/05/16 17:18:34 juergen Exp $")
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid argument
+--------------------------------------------------------------------------*/
-int set_max_field(FIELD *field, int maxgrow)
+NCURSES_EXPORT(int)
+set_max_field (FIELD *field, int maxgrow)
{
if (!field || (maxgrow<0))
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/fld_move.c b/lib/libform/fld_move.c
index 137079dc426..3fe67e621f2 100644
--- a/lib/libform/fld_move.c
+++ b/lib/libform/fld_move.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_move.c,v 1.3 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_move.c,v 1.4 2001/01/22 18:02:13 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: fld_move.c,v 1.4 1999/05/16 17:38:51 juergen Exp $")
+MODULE_ID("$From: fld_move.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -47,7 +47,8 @@ MODULE_ID("$From: fld_move.c,v 1.4 1999/05/16 17:38:51 juergen Exp $")
| E_BAD_ARGUMENT - invalid argument passed
| E_CONNECTED - field is connected
+--------------------------------------------------------------------------*/
-int move_field(FIELD *field, int frow, int fcol)
+NCURSES_EXPORT(int)
+move_field (FIELD *field, int frow, int fcol)
{
if ( !field || (frow<0) || (fcol<0) )
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/fld_newftyp.c b/lib/libform/fld_newftyp.c
index 27950ca91bd..4abd3d5f16d 100644
--- a/lib/libform/fld_newftyp.c
+++ b/lib/libform/fld_newftyp.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_newftyp.c,v 1.4 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_newftyp.c,v 1.5 2001/01/22 18:02:13 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: fld_newftyp.c,v 1.5 1999/05/16 17:18:54 juergen Exp $")
+MODULE_ID("$From: fld_newftyp.c,v 1.6 2000/12/10 02:09:38 tom Exp $")
static FIELDTYPE const default_fieldtype = {
0, /* status */
@@ -50,7 +50,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
@@ -67,7 +67,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 *) )
{
@@ -104,7 +105,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);
diff --git a/lib/libform/fld_opts.c b/lib/libform/fld_opts.c
index c298ece38c7..2a2bbea6f39 100644
--- a/lib/libform/fld_opts.c
+++ b/lib/libform/fld_opts.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_opts.c,v 1.4 1999/05/17 03:04:14 millert Exp $ */
+/* $OpenBSD: fld_opts.c,v 1.5 2001/01/22 18:02:13 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: fld_opts.c,v 1.6 1999/05/16 17:19:06 juergen Exp $")
+MODULE_ID("$From: fld_opts.c,v 1.7 2000/12/10 02:09:38 tom Exp $")
/*----------------------------------------------------------------------------
Field-Options manipulation routines
@@ -51,7 +51,8 @@ MODULE_ID("$From: fld_opts.c,v 1.6 1999/05/16 17:19:06 juergen Exp $")
| E_BAD_ARGUMENT - invalid options
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_field_opts(FIELD * field, Field_Options opts)
+NCURSES_EXPORT(int)
+set_field_opts (FIELD * field, Field_Options opts)
{
int res = E_BAD_ARGUMENT;
opts &= ALL_FIELD_OPTS;
@@ -68,7 +69,8 @@ int set_field_opts(FIELD * field, Field_Options opts)
|
| Return Values : The options.
+--------------------------------------------------------------------------*/
-Field_Options field_opts(const FIELD * field)
+NCURSES_EXPORT(Field_Options)
+field_opts (const FIELD * field)
{
return ALL_FIELD_OPTS & Normalize_Field( field )->opts;
}
@@ -85,7 +87,8 @@ Field_Options field_opts(const FIELD * field)
| E_BAD_ARGUMENT - invalid options
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int field_opts_on(FIELD * field, Field_Options opts)
+NCURSES_EXPORT(int)
+field_opts_on (FIELD * field, Field_Options opts)
{
int res = E_BAD_ARGUMENT;
@@ -110,7 +113,8 @@ int field_opts_on(FIELD * field, Field_Options opts)
| E_BAD_ARGUMENT - invalid options
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int field_opts_off(FIELD * field, Field_Options opts)
+NCURSES_EXPORT(int)
+field_opts_off (FIELD * field, Field_Options opts)
{
int res = E_BAD_ARGUMENT;
diff --git a/lib/libform/fld_pad.c b/lib/libform/fld_pad.c
index 0623fb1e032..5d2e4dfdceb 100644
--- a/lib/libform/fld_pad.c
+++ b/lib/libform/fld_pad.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_pad.c,v 1.3 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: fld_pad.c,v 1.4 2001/01/22 18:02:13 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: fld_pad.c,v 1.4 1999/05/16 17:38:58 juergen Exp $")
+MODULE_ID("$From: fld_pad.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: fld_pad.c,v 1.4 1999/05/16 17:38:58 juergen Exp $")
| E_BAD_ARGUMENT - invalid field pointer or pad character
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_field_pad(FIELD * field, int ch)
+NCURSES_EXPORT(int)
+set_field_pad (FIELD * field, int ch)
{
int res = E_BAD_ARGUMENT;
@@ -72,7 +73,8 @@ int set_field_pad(FIELD * field, int ch)
|
| Return Values : The pad character.
+--------------------------------------------------------------------------*/
-int field_pad(const FIELD * field)
+NCURSES_EXPORT(int)
+field_pad (const FIELD * field)
{
return Normalize_Field( field )->pad;
}
diff --git a/lib/libform/fld_page.c b/lib/libform/fld_page.c
index caf19a523dc..3e37d022917 100644
--- a/lib/libform/fld_page.c
+++ b/lib/libform/fld_page.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_page.c,v 1.3 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: fld_page.c,v 1.4 2001/01/22 18:02:13 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: fld_page.c,v 1.4 1999/05/16 17:19:37 juergen Exp $")
+MODULE_ID("$From: fld_page.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: fld_page.c,v 1.4 1999/05/16 17:19:37 juergen Exp $")
| Return Values : E_OK - success
| E_CONNECTED - field is connected
+--------------------------------------------------------------------------*/
-int set_new_page(FIELD * field, bool new_page_flag)
+NCURSES_EXPORT(int)
+set_new_page (FIELD * field, bool new_page_flag)
{
Normalize_Field(field);
if (field->form)
@@ -70,7 +71,8 @@ int set_new_page(FIELD * field, bool new_page_flag)
| Return Values : TRUE - field starts a new page
| FALSE - field doesn't start a new page
+--------------------------------------------------------------------------*/
-bool new_page(const FIELD * field)
+NCURSES_EXPORT(bool)
+new_page (const FIELD * field)
{
return (Normalize_Field(field)->status & _NEWPAGE) ? TRUE : FALSE;
}
diff --git a/lib/libform/fld_stat.c b/lib/libform/fld_stat.c
index c0316412fbc..297f09022c1 100644
--- a/lib/libform/fld_stat.c
+++ b/lib/libform/fld_stat.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_stat.c,v 1.5 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: fld_stat.c,v 1.6 2001/01/22 18:02:13 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: fld_stat.c,v 1.6 1999/05/16 17:19:48 juergen Exp $")
+MODULE_ID("$From: fld_stat.c,v 1.7 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -45,7 +45,8 @@ MODULE_ID("$From: fld_stat.c,v 1.6 1999/05/16 17:19:48 juergen Exp $")
|
| Return Values : E_OK - success
+--------------------------------------------------------------------------*/
-int set_field_status(FIELD * field, bool status)
+NCURSES_EXPORT(int)
+set_field_status (FIELD * field, bool status)
{
Normalize_Field( field );
@@ -67,7 +68,8 @@ int set_field_status(FIELD * field, bool status)
| Return Values : TRUE - buffer has been changed
| FALSE - buffer has not been changed
+--------------------------------------------------------------------------*/
-bool field_status(const FIELD * field)
+NCURSES_EXPORT(bool)
+field_status (const FIELD * field)
{
return ((Normalize_Field(field)->status & _CHANGED) ? TRUE : FALSE);
}
diff --git a/lib/libform/fld_type.c b/lib/libform/fld_type.c
index e0f9c1346df..dd3754c5c27 100644
--- a/lib/libform/fld_type.c
+++ b/lib/libform/fld_type.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_type.c,v 1.5 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: fld_type.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: fld_type.c,v 1.9 1999/05/16 17:19:59 juergen Exp $")
+MODULE_ID("$From: fld_type.c,v 1.10 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -47,7 +47,8 @@ MODULE_ID("$From: fld_type.c,v 1.9 1999/05/16 17:19:59 juergen Exp $")
| Return Values : E_OK - success
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_field_type(FIELD *field,FIELDTYPE *type, ...)
+NCURSES_EXPORT(int)
+set_field_type (FIELD *field,FIELDTYPE *type, ...)
{
va_list ap;
int res = E_SYSTEM_ERROR;
@@ -86,7 +87,8 @@ int set_field_type(FIELD *field,FIELDTYPE *type, ...)
|
| Return Values : Pointer to fieldtype of NULL if none is defined.
+--------------------------------------------------------------------------*/
-FIELDTYPE *field_type(const FIELD * field)
+NCURSES_EXPORT(FIELDTYPE *)
+field_type (const FIELD * field)
{
return Normalize_Field(field)->type;
}
diff --git a/lib/libform/fld_user.c b/lib/libform/fld_user.c
index cede0078c0d..2e08d902fbc 100644
--- a/lib/libform/fld_user.c
+++ b/lib/libform/fld_user.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: fld_user.c,v 1.5 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: fld_user.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: fld_user.c,v 1.8 1999/05/16 17:20:09 juergen Exp $")
+MODULE_ID("$From: fld_user.c,v 1.9 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -45,7 +45,8 @@ MODULE_ID("$From: fld_user.c,v 1.8 1999/05/16 17:20:09 juergen Exp $")
|
| Return Values : E_OK - on success
+--------------------------------------------------------------------------*/
-int set_field_userptr(FIELD * field, void *usrptr)
+NCURSES_EXPORT(int)
+set_field_userptr (FIELD * field, void *usrptr)
{
Normalize_Field( field )->usrptr = usrptr;
RETURN(E_OK);
@@ -61,7 +62,8 @@ int set_field_userptr(FIELD * field, void *usrptr)
| Return Values : Value of pointer. If no such pointer has been set,
| NULL is returned
+--------------------------------------------------------------------------*/
-void *field_userptr(const FIELD *field)
+NCURSES_EXPORT(void *)
+field_userptr (const FIELD *field)
{
return Normalize_Field( field )->usrptr;
}
diff --git a/lib/libform/form.h b/lib/libform/form.h
index 4f78a8c578b..f0ce4260a2b 100644
--- a/lib/libform/form.h
+++ b/lib/libform/form.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: form.h,v 1.5 1999/05/17 03:04:15 millert Exp $ */
+/* $OpenBSD: form.h,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 *
@@ -248,140 +248,135 @@ typedef void (*Form_Hook)(FORM *);
/*************************
* standard field types *
*************************/
-extern FIELDTYPE *TYPE_ALPHA,
- *TYPE_ALNUM,
- *TYPE_ENUM,
- *TYPE_INTEGER,
- *TYPE_NUMERIC,
- *TYPE_REGEXP;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALPHA;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALNUM;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ENUM;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_INTEGER;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_NUMERIC;
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_REGEXP;
/************************************
* built-in additional field types *
* They are not defined in SVr4 *
************************************/
-extern FIELDTYPE *TYPE_IPV4; /* Internet IP Version 4 address */
+extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_IPV4; /* Internet IP Version 4 address */
/***********************
* Default objects *
***********************/
-extern FORM *_nc_Default_Form;
-extern FIELD *_nc_Default_Field;
+extern NCURSES_EXPORT_VAR(FORM *) _nc_Default_Form;
+extern NCURSES_EXPORT_VAR(FIELD *) _nc_Default_Field;
/***********************
* FIELDTYPE routines *
***********************/
-extern FIELDTYPE
- *new_fieldtype(
+extern NCURSES_EXPORT(FIELDTYPE *) new_fieldtype (
bool (* const field_check)(FIELD *,const void *),
bool (* const char_check)(int,const void *)),
*link_fieldtype(FIELDTYPE *,FIELDTYPE *);
-extern int free_fieldtype(FIELDTYPE *),
- set_fieldtype_arg(FIELDTYPE *,
+extern NCURSES_EXPORT(int) free_fieldtype (FIELDTYPE *);
+extern NCURSES_EXPORT(int) 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 *,
+ void (* const free_arg)(void *));
+extern NCURSES_EXPORT(int) set_fieldtype_choice (FIELDTYPE *,
bool (* const next_choice)(FIELD *,const void *),
bool (* const prev_choice)(FIELD *,const void *));
/*******************
* FIELD routines *
*******************/
-extern FIELD *new_field(int,int,int,int,int,int),
- *dup_field(FIELD *,int,int),
- *link_field(FIELD *,int,int);
-
-extern int free_field(FIELD *),
- field_info(const FIELD *,int *,int *,int *,int *,int *,int *),
- dynamic_field_info(const FIELD *,int *,int *,int *),
- set_max_field( FIELD *,int),
- move_field(FIELD *,int,int),
- set_field_type(FIELD *,FIELDTYPE *,...),
- set_new_page(FIELD *,bool),
- set_field_just(FIELD *,int),
- field_just(const FIELD *),
- set_field_fore(FIELD *,chtype),
- set_field_back(FIELD *,chtype),
- set_field_pad(FIELD *,int),
- field_pad(const FIELD *),
- set_field_buffer(FIELD *,int,const char *),
- set_field_status(FIELD *,bool),
- set_field_userptr(FIELD *, void *),
- set_field_opts(FIELD *,Field_Options),
- field_opts_on(FIELD *,Field_Options),
- field_opts_off(FIELD *,Field_Options);
-
-extern chtype field_fore(const FIELD *),
- field_back(const FIELD *);
-
-extern bool new_page(const FIELD *),
- field_status(const FIELD *);
-
-extern void *field_arg(const FIELD *);
-
-extern void *field_userptr(const FIELD *);
-
-extern FIELDTYPE
- *field_type(const FIELD *);
-
-extern char* field_buffer(const FIELD *,int);
-
-extern Field_Options
- field_opts(const FIELD *);
+extern NCURSES_EXPORT(FIELD *) new_field (int,int,int,int,int,int);
+extern NCURSES_EXPORT(FIELD *) dup_field (FIELD *,int,int);
+extern NCURSES_EXPORT(FIELD *) link_field (FIELD *,int,int);
+
+extern NCURSES_EXPORT(int) free_field (FIELD *);
+extern NCURSES_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *);
+extern NCURSES_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *);
+extern NCURSES_EXPORT(int) set_max_field ( FIELD *,int);
+extern NCURSES_EXPORT(int) move_field (FIELD *,int,int);
+extern NCURSES_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...);
+extern NCURSES_EXPORT(int) set_new_page (FIELD *,bool);
+extern NCURSES_EXPORT(int) set_field_just (FIELD *,int);
+extern NCURSES_EXPORT(int) field_just (const FIELD *);
+extern NCURSES_EXPORT(int) set_field_fore (FIELD *,chtype);
+extern NCURSES_EXPORT(int) set_field_back (FIELD *,chtype);
+extern NCURSES_EXPORT(int) set_field_pad (FIELD *,int);
+extern NCURSES_EXPORT(int) field_pad (const FIELD *);
+extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
+extern NCURSES_EXPORT(int) set_field_status (FIELD *,bool);
+extern NCURSES_EXPORT(int) set_field_userptr (FIELD *, void *);
+extern NCURSES_EXPORT(int) set_field_opts (FIELD *,Field_Options);
+extern NCURSES_EXPORT(int) field_opts_on (FIELD *,Field_Options);
+extern NCURSES_EXPORT(int) field_opts_off (FIELD *,Field_Options);
+
+extern NCURSES_EXPORT(chtype) field_fore (const FIELD *);
+extern NCURSES_EXPORT(chtype) field_back (const FIELD *);
+
+extern NCURSES_EXPORT(bool) new_page (const FIELD *);
+extern NCURSES_EXPORT(bool) field_status (const FIELD *);
+
+extern NCURSES_EXPORT(void *) field_arg (const FIELD *);
+
+extern NCURSES_EXPORT(void *) field_userptr (const FIELD *);
+
+extern NCURSES_EXPORT(FIELDTYPE *) field_type (const FIELD *);
+
+extern NCURSES_EXPORT(char *) field_buffer (const FIELD *,int);
+
+extern NCURSES_EXPORT(Field_Options) field_opts (const FIELD *);
/******************
* FORM routines *
******************/
-extern FORM *new_form(FIELD **);
-
-extern FIELD **form_fields(const FORM *),
- *current_field(const FORM *);
-
-extern WINDOW *form_win(const FORM *),
- *form_sub(const FORM *);
-
-extern Form_Hook
- form_init(const FORM *),
- form_term(const FORM *),
- field_init(const FORM *),
- field_term(const FORM *);
-
-extern int free_form(FORM *),
- set_form_fields(FORM *,FIELD **),
- field_count(const FORM *),
- set_form_win(FORM *,WINDOW *),
- set_form_sub(FORM *,WINDOW *),
- set_current_field(FORM *,FIELD *),
- field_index(const FIELD *),
- set_form_page(FORM *,int),
- form_page(const FORM *),
- scale_form(const FORM *,int *,int *),
- set_form_init(FORM *,Form_Hook),
- set_form_term(FORM *,Form_Hook),
- set_field_init(FORM *,Form_Hook),
- set_field_term(FORM *,Form_Hook),
- post_form(FORM *),
- unpost_form(FORM *),
- pos_form_cursor(FORM *),
- form_driver(FORM *,int),
- set_form_userptr(FORM *,void *),
- set_form_opts(FORM *,Form_Options),
- form_opts_on(FORM *,Form_Options),
- form_opts_off(FORM *,Form_Options),
- form_request_by_name(const char *);
-
-extern const char
- *form_request_name(int);
-
-extern void *form_userptr(const FORM *);
-
-extern Form_Options
- form_opts(const FORM *);
-
-extern bool data_ahead(const FORM *),
- data_behind(const FORM *);
+
+extern NCURSES_EXPORT(FORM *) new_form (FIELD **);
+
+extern NCURSES_EXPORT(FIELD **)form_fields (const FORM *);
+extern NCURSES_EXPORT(FIELD *) current_field (const FORM *);
+
+extern NCURSES_EXPORT(WINDOW *) form_win (const FORM *);
+extern NCURSES_EXPORT(WINDOW *) form_sub (const FORM *);
+
+extern NCURSES_EXPORT(Form_Hook) form_init (const FORM *);
+extern NCURSES_EXPORT(Form_Hook) form_term (const FORM *);
+extern NCURSES_EXPORT(Form_Hook) field_init (const FORM *);
+extern NCURSES_EXPORT(Form_Hook) field_term (const FORM *);
+
+extern NCURSES_EXPORT(int) free_form (FORM *);
+extern NCURSES_EXPORT(int) set_form_fields (FORM *,FIELD **);
+extern NCURSES_EXPORT(int) field_count (const FORM *);
+extern NCURSES_EXPORT(int) set_form_win (FORM *,WINDOW *);
+extern NCURSES_EXPORT(int) set_form_sub (FORM *,WINDOW *);
+extern NCURSES_EXPORT(int) set_current_field (FORM *,FIELD *);
+extern NCURSES_EXPORT(int) field_index (const FIELD *);
+extern NCURSES_EXPORT(int) set_form_page (FORM *,int);
+extern NCURSES_EXPORT(int) form_page (const FORM *);
+extern NCURSES_EXPORT(int) scale_form (const FORM *,int *,int *);
+extern NCURSES_EXPORT(int) set_form_init (FORM *,Form_Hook);
+extern NCURSES_EXPORT(int) set_form_term (FORM *,Form_Hook);
+extern NCURSES_EXPORT(int) set_field_init (FORM *,Form_Hook);
+extern NCURSES_EXPORT(int) set_field_term (FORM *,Form_Hook);
+extern NCURSES_EXPORT(int) post_form (FORM *);
+extern NCURSES_EXPORT(int) unpost_form (FORM *);
+extern NCURSES_EXPORT(int) pos_form_cursor (FORM *);
+extern NCURSES_EXPORT(int) form_driver (FORM *,int);
+extern NCURSES_EXPORT(int) set_form_userptr (FORM *,void *);
+extern NCURSES_EXPORT(int) set_form_opts (FORM *,Form_Options);
+extern NCURSES_EXPORT(int) form_opts_on (FORM *,Form_Options);
+extern NCURSES_EXPORT(int) form_opts_off (FORM *,Form_Options);
+extern NCURSES_EXPORT(int) form_request_by_name (const char *);
+
+extern NCURSES_EXPORT(const char *) form_request_name (int);
+
+extern NCURSES_EXPORT(void *) form_userptr (const FORM *);
+
+extern NCURSES_EXPORT(Form_Options) form_opts (const FORM *);
+
+extern NCURSES_EXPORT(bool) data_ahead (const FORM *);
+extern NCURSES_EXPORT(bool) data_behind (const FORM *);
#ifdef __cplusplus
}
diff --git a/lib/libform/form.priv.h b/lib/libform/form.priv.h
index 39d8d4b1b9e..f2770a65642 100644
--- a/lib/libform/form.priv.h
+++ b/lib/libform/form.priv.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: form.priv.h,v 1.5 1999/05/17 03:04:16 millert Exp $ */
+/* $OpenBSD: form.priv.h,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 *
@@ -112,19 +112,19 @@ typedef struct typearg {
#define C_BLANK ' '
#define is_blank(c) ((c)==C_BLANK)
-extern const FIELDTYPE* _nc_Default_FieldType;
-
-extern TypeArgument* _nc_Make_Argument(const FIELDTYPE*,va_list*,int*);
-extern TypeArgument *_nc_Copy_Argument(const FIELDTYPE*,const TypeArgument*, int*);
-extern void _nc_Free_Argument(const FIELDTYPE*,TypeArgument*);
-extern bool _nc_Copy_Type(FIELD*, FIELD const *);
-extern void _nc_Free_Type(FIELD *);
-
-extern int _nc_Synchronize_Attributes(FIELD*);
-extern int _nc_Synchronize_Options(FIELD*,Field_Options);
-extern int _nc_Set_Form_Page(FORM*,int,FIELD*);
-extern int _nc_Refresh_Current_Field(FORM*);
-extern FIELD* _nc_First_Active_Field(FORM*);
-extern bool _nc_Internal_Validation(FORM*);
-extern int _nc_Set_Current_Field(FORM*,FIELD*);
-extern int _nc_Position_Form_Cursor(FORM*);
+extern NCURSES_EXPORT_VAR(const FIELDTYPE *) _nc_Default_FieldType;
+
+extern NCURSES_EXPORT(TypeArgument *) _nc_Make_Argument (const FIELDTYPE*,va_list*,int*);
+extern NCURSES_EXPORT(TypeArgument *) _nc_Copy_Argument (const FIELDTYPE*,const TypeArgument*, int*);
+extern NCURSES_EXPORT(void) _nc_Free_Argument (const FIELDTYPE*,TypeArgument*);
+extern NCURSES_EXPORT(bool) _nc_Copy_Type (FIELD*, FIELD const *);
+extern NCURSES_EXPORT(void) _nc_Free_Type (FIELD *);
+
+extern NCURSES_EXPORT(int) _nc_Synchronize_Attributes (FIELD*);
+extern NCURSES_EXPORT(int) _nc_Synchronize_Options (FIELD*,Field_Options);
+extern NCURSES_EXPORT(int) _nc_Set_Form_Page (FORM*,int,FIELD*);
+extern NCURSES_EXPORT(int) _nc_Refresh_Current_Field (FORM*);
+extern NCURSES_EXPORT(FIELD *) _nc_First_Active_Field (FORM*);
+extern NCURSES_EXPORT(bool) _nc_Internal_Validation (FORM*);
+extern NCURSES_EXPORT(int) _nc_Set_Current_Field (FORM*,FIELD*);
+extern NCURSES_EXPORT(int) _nc_Position_Form_Cursor (FORM*);
diff --git a/lib/libform/frm_cursor.c b/lib/libform/frm_cursor.c
index f1112a32f41..8eec04c5b46 100644
--- a/lib/libform/frm_cursor.c
+++ b/lib/libform/frm_cursor.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_cursor.c,v 1.3 1999/05/17 03:04:16 millert Exp $ */
+/* $OpenBSD: frm_cursor.c,v 1.4 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: frm_cursor.c,v 1.4 1999/05/16 17:20:19 juergen Exp $")
+MODULE_ID("$From: frm_cursor.c,v 1.5 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -49,7 +49,8 @@ MODULE_ID("$From: frm_cursor.c,v 1.4 1999/05/16 17:20:19 juergen Exp $")
| E_BAD_ARGUMENT - Invalid form pointer
| E_NOT_POSTED - Form is not posted
+--------------------------------------------------------------------------*/
-int pos_form_cursor(FORM * form)
+NCURSES_EXPORT(int)
+pos_form_cursor (FORM * form)
{
int res;
diff --git a/lib/libform/frm_data.c b/lib/libform/frm_data.c
index 06f11ccd7c2..7f6dde0fd07 100644
--- a/lib/libform/frm_data.c
+++ b/lib/libform/frm_data.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_data.c,v 1.5 1999/05/17 03:04:16 millert Exp $ */
+/* $OpenBSD: frm_data.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_data.c,v 1.6 1999/05/16 17:20:29 juergen Exp $")
+MODULE_ID("$From: frm_data.c,v 1.7 2000/12/10 02:09:38 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: frm_data.c,v 1.6 1999/05/16 17:20:29 juergen Exp $")
| Return Values : TRUE - there are off-screen data behind
| FALSE - there are no off-screen data behind
+--------------------------------------------------------------------------*/
-bool data_behind(const FORM *form)
+NCURSES_EXPORT(bool)
+data_behind (const FORM *form)
{
bool result = FALSE;
@@ -103,7 +104,8 @@ static char * After_Last_Non_Pad_Position(char *buffer, int len, int pad)
| Return Values : TRUE - there are off-screen data ahead
| FALSE - there are no off-screen data ahead
+--------------------------------------------------------------------------*/
-bool data_ahead(const FORM *form)
+NCURSES_EXPORT(bool)
+data_ahead (const FORM *form)
{
bool result = FALSE;
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);
}
diff --git a/lib/libform/frm_driver.c b/lib/libform/frm_driver.c
index 1e60d49de2b..f6178015d6d 100644
--- a/lib/libform/frm_driver.c
+++ b/lib/libform/frm_driver.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_driver.c,v 1.6 1999/05/17 03:04:16 millert Exp $ */
+/* $OpenBSD: frm_driver.c,v 1.7 2001/01/22 18:02:15 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: frm_driver.c,v 1.35 1999/05/16 17:20:52 juergen Exp $")
+MODULE_ID("$From: frm_driver.c,v 1.37 2000/12/10 02:09:38 tom Exp $")
/*----------------------------------------------------------------------------
This is the core module of the form library. It contains the majority
@@ -560,8 +560,8 @@ static bool Field_Grown(FIELD * field, int amount)
| E_SYSTEM_ERROR - form has no current field or
| field-window
+--------------------------------------------------------------------------*/
-int
-_nc_Position_Form_Cursor(FORM * form)
+NCURSES_EXPORT(int)
+_nc_Position_Form_Cursor (FORM * form)
{
FIELD *field;
WINDOW *formwin;
@@ -601,8 +601,8 @@ _nc_Position_Form_Cursor(FORM * form)
| E_BAD_ARGUMENT - invalid form pointer
| E_SYSTEM_ERROR - general error
+--------------------------------------------------------------------------*/
-int
-_nc_Refresh_Current_Field(FORM * form)
+NCURSES_EXPORT(int)
+_nc_Refresh_Current_Field (FORM * form)
{
WINDOW *formwin;
FIELD *field;
@@ -959,7 +959,8 @@ static int Synchronize_Linked_Fields(FIELD * field)
| E_BAD_ARGUMENT - invalid field pointer
| E_SYSTEM_ERROR - some severe basic error
+--------------------------------------------------------------------------*/
-int _nc_Synchronize_Attributes(FIELD * field)
+NCURSES_EXPORT(int)
+_nc_Synchronize_Attributes (FIELD * field)
{
FORM *form;
int res = E_OK;
@@ -1017,8 +1018,9 @@ int _nc_Synchronize_Attributes(FIELD * field)
| E_BAD_ARGUMENT - invalid field pointer
| E_SYSTEM_ERROR - some severe basic error
+--------------------------------------------------------------------------*/
-int
-_nc_Synchronize_Options(FIELD *field, Field_Options newopts)
+NCURSES_EXPORT(int)
+_nc_Synchronize_Options
+(FIELD *field, Field_Options newopts)
{
Field_Options oldopts;
Field_Options changed_opts;
@@ -1115,8 +1117,9 @@ _nc_Synchronize_Options(FIELD *field, Field_Options newopts)
| E_BAD_ARGUMENT - invalid form or field pointer
| E_SYSTEM_ERROR - some severe basic error
+--------------------------------------------------------------------------*/
-int
-_nc_Set_Current_Field(FORM *form, FIELD *newfield)
+NCURSES_EXPORT(int)
+_nc_Set_Current_Field
+(FORM *form, FIELD *newfield)
{
FIELD *field;
WINDOW *new_window;
@@ -2688,8 +2691,8 @@ static bool Check_Field(FIELDTYPE *typ, FIELD *field, TypeArgument *argp)
| Return Values : TRUE - field is valid
| FALSE - field is invalid
+--------------------------------------------------------------------------*/
-bool
-_nc_Internal_Validation(FORM *form)
+NCURSES_EXPORT(bool)
+_nc_Internal_Validation (FORM *form)
{
FIELD *field;
@@ -2778,8 +2781,8 @@ INLINE static FIELD *Next_Field_On_Page(FIELD * field)
|
| Return Values : Pointer to calculated field.
+--------------------------------------------------------------------------*/
-FIELD*
-_nc_First_Active_Field(FORM * form)
+NCURSES_EXPORT(FIELD*)
+_nc_First_Active_Field (FORM * form)
{
FIELD **last_on_page = &form->field[form->page[form->curpage].pmax];
FIELD *proposed = Next_Field_On_Page(*last_on_page);
@@ -3285,8 +3288,9 @@ static int FN_Down_Field(FORM * form)
| Return Values : E_OK - success
| != E_OK - error from subordinate call
+--------------------------------------------------------------------------*/
-int
-_nc_Set_Form_Page(FORM * form, int page, FIELD * field)
+NCURSES_EXPORT(int)
+_nc_Set_Form_Page
+(FORM * form, int page, FIELD * field)
{
int res = E_OK;
@@ -3639,7 +3643,8 @@ static const Binding_Info bindings[MAX_FORM_COMMAND - MIN_FORM_COMMAND + 1] =
| E_REQUEST_DENIED - request failed
| E_UNKNOWN_COMMAND - command not known
+--------------------------------------------------------------------------*/
-int form_driver(FORM * form, int c)
+NCURSES_EXPORT(int)
+form_driver (FORM * form, int c)
{
const Binding_Info* BI = (Binding_Info *)0;
int res = E_UNKNOWN_COMMAND;
@@ -3738,7 +3743,9 @@ int form_driver(FORM * form, int c)
| E_BAD_ARGUMENT - invalid argument
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_field_buffer(FIELD * field, int buffer, const char * value)
+NCURSES_EXPORT(int)
+set_field_buffer
+(FIELD * field, int buffer, const char * value)
{
char *s, *p;
int res = E_OK;
@@ -3780,7 +3787,7 @@ int set_field_buffer(FIELD * field, int buffer, const char * value)
unsigned int i;
for(i=len; i<vlen; i++)
- if (!isprint(value[i]))
+ if (!isprint((unsigned char)value[i]))
RETURN(E_BAD_ARGUMENT);
}
len = vlen;
@@ -3834,7 +3841,8 @@ int set_field_buffer(FIELD * field, int buffer, const char * value)
|
| Return Values : Pointer to buffer or NULL if arguments were invalid.
+--------------------------------------------------------------------------*/
-char *field_buffer(const FIELD * field, int buffer)
+NCURSES_EXPORT(char *)
+field_buffer (const FIELD * field, int buffer)
{
if (field && (buffer >= 0) && (buffer <= field->nbuf))
return Address_Of_Nth_Buffer(field,buffer);
diff --git a/lib/libform/frm_hook.c b/lib/libform/frm_hook.c
index 5378dcec0ec..8b4c3dfc8e5 100644
--- a/lib/libform/frm_hook.c
+++ b/lib/libform/frm_hook.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_hook.c,v 1.5 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_hook.c,v 1.6 2001/01/22 18:02:15 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,11 +34,11 @@
#include "form.priv.h"
-MODULE_ID("$From: frm_hook.c,v 1.8 1999/05/16 17:21:04 juergen Exp $")
+MODULE_ID("$From: frm_hook.c,v 1.9 2000/12/10 02:09:37 tom Exp $")
/* "Template" macro to generate function to set application specific hook */
#define GEN_HOOK_SET_FUNCTION( typ, name ) \
-int set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\
+NCURSES_IMPEXP int NCURSES_API set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\
{\
(Normalize_Form( form ) -> typ ## name) = func ;\
RETURN(E_OK);\
@@ -46,7 +46,7 @@ int set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\
/* "Template" macro to generate function to get application specific hook */
#define GEN_HOOK_GET_FUNCTION( typ, name ) \
-Form_Hook typ ## _ ## name ( const FORM *form )\
+NCURSES_IMPEXP Form_Hook NCURSES_API typ ## _ ## name ( const FORM *form )\
{\
return ( Normalize_Form( form ) -> typ ## name );\
}
diff --git a/lib/libform/frm_opts.c b/lib/libform/frm_opts.c
index 813f083c815..300493d518e 100644
--- a/lib/libform/frm_opts.c
+++ b/lib/libform/frm_opts.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_opts.c,v 1.6 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_opts.c,v 1.7 2001/01/22 18:02:15 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_opts.c,v 1.8 1999/05/16 17:38:05 juergen Exp $")
+MODULE_ID("$From: frm_opts.c,v 1.9 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: frm_opts.c,v 1.8 1999/05/16 17:38:05 juergen Exp $")
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid options
+--------------------------------------------------------------------------*/
-int set_form_opts(FORM * form, Form_Options opts)
+NCURSES_EXPORT(int)
+set_form_opts (FORM * form, Form_Options opts)
{
opts &= ALL_FORM_OPTS;
if (opts & ~ALL_FORM_OPTS)
@@ -66,7 +67,8 @@ int set_form_opts(FORM * form, Form_Options opts)
|
| Return Values : The option flags.
+--------------------------------------------------------------------------*/
-Form_Options form_opts(const FORM * form)
+NCURSES_EXPORT(Form_Options)
+form_opts (const FORM * form)
{
return (Normalize_Form(form)->opts & ALL_FORM_OPTS);
}
@@ -81,7 +83,8 @@ Form_Options form_opts(const FORM * form)
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid options
+--------------------------------------------------------------------------*/
-int form_opts_on(FORM * form, Form_Options opts)
+NCURSES_EXPORT(int)
+form_opts_on (FORM * form, Form_Options opts)
{
opts &= ALL_FORM_OPTS;
if (opts & ~ALL_FORM_OPTS)
@@ -103,7 +106,8 @@ int form_opts_on(FORM * form, Form_Options opts)
| Return Values : E_OK - success
| E_BAD_ARGUMENT - invalid options
+--------------------------------------------------------------------------*/
-int form_opts_off(FORM * form, Form_Options opts)
+NCURSES_EXPORT(int)
+form_opts_off (FORM * form, Form_Options opts)
{
opts &= ALL_FORM_OPTS;
if (opts & ~ALL_FORM_OPTS)
diff --git a/lib/libform/frm_page.c b/lib/libform/frm_page.c
index fc75138c0bd..fbad21e25cf 100644
--- a/lib/libform/frm_page.c
+++ b/lib/libform/frm_page.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_page.c,v 1.3 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_page.c,v 1.4 2001/01/22 18:02:15 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_page.c,v 1.5 1999/05/16 17:21:26 juergen Exp $")
+MODULE_ID("$From: frm_page.c,v 1.6 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -48,7 +48,8 @@ MODULE_ID("$From: frm_page.c,v 1.5 1999/05/16 17:21:26 juergen Exp $")
| E_INVALID_FIELD - current field can't be left
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int set_form_page(FORM * form, int page)
+NCURSES_EXPORT(int)
+set_form_page (FORM * form, int page)
{
int err = E_OK;
@@ -94,7 +95,8 @@ int set_form_page(FORM * form, int page)
| Return Values : >= 0 : current page number
| -1 : invalid form pointer
+--------------------------------------------------------------------------*/
-int form_page(const FORM * form)
+NCURSES_EXPORT(int)
+form_page (const FORM * form)
{
return Normalize_Form(form)->curpage;
}
diff --git a/lib/libform/frm_post.c b/lib/libform/frm_post.c
index 7ad1db1b543..4027c5f29f8 100644
--- a/lib/libform/frm_post.c
+++ b/lib/libform/frm_post.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_post.c,v 1.3 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_post.c,v 1.4 2001/01/22 18:02:15 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 *
@@ -33,7 +33,7 @@
****************************************************************************/
#include "form.priv.h"
-MODULE_ID("$From: frm_post.c,v 1.4 1999/05/16 17:21:39 juergen Exp $")
+MODULE_ID("$From: frm_post.c,v 1.5 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -48,7 +48,8 @@ MODULE_ID("$From: frm_post.c,v 1.4 1999/05/16 17:21:39 juergen Exp $")
| E_NO_ROOM - form doesn't fit into subwindow
| E_SYSTEM_ERROR - system error
+--------------------------------------------------------------------------*/
-int post_form(FORM * form)
+NCURSES_EXPORT(int)
+post_form (FORM * form)
{
WINDOW *formwin;
int err;
@@ -95,7 +96,8 @@ int post_form(FORM * form)
| E_NOT_POSTED - form isn't posted
| E_BAD_STATE - called from a hook routine
+--------------------------------------------------------------------------*/
-int unpost_form(FORM * form)
+NCURSES_EXPORT(int)
+unpost_form (FORM * form)
{
if (!form)
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/frm_req_name.c b/lib/libform/frm_req_name.c
index a97e9bae69e..069fe6df1d6 100644
--- a/lib/libform/frm_req_name.c
+++ b/lib/libform/frm_req_name.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_req_name.c,v 1.4 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_req_name.c,v 1.5 2001/01/22 18:02:16 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 *
@@ -39,7 +39,7 @@
#include "form.priv.h"
-MODULE_ID("$From: frm_req_name.c,v 1.7 1999/05/16 17:21:53 juergen Exp $")
+MODULE_ID("$From: frm_req_name.c,v 1.8 2000/12/10 02:09:37 tom Exp $")
static const char *request_names[ MAX_FORM_COMMAND - MIN_FORM_COMMAND + 1 ] = {
"NEXT_PAGE" ,
@@ -115,7 +115,8 @@ static const char *request_names[ MAX_FORM_COMMAND - MIN_FORM_COMMAND + 1 ] = {
| Return Values : Pointer to name - on success
| NULL - on invalid request code
+--------------------------------------------------------------------------*/
-const char *form_request_name( int request )
+NCURSES_EXPORT(const char *)
+form_request_name ( int request )
{
if ( (request < MIN_FORM_COMMAND) || (request > MAX_FORM_COMMAND) )
{
@@ -136,7 +137,8 @@ const char *form_request_name( int request )
| Return Values : Request Id - on success
| E_NO_MATCH - request not found
+--------------------------------------------------------------------------*/
-int form_request_by_name( const char *str )
+NCURSES_EXPORT(int)
+form_request_by_name ( const char *str )
{
/* because the table is so small, it doesn't really hurt
to run sequentially through it.
diff --git a/lib/libform/frm_scale.c b/lib/libform/frm_scale.c
index 207fedd8ef7..45ef3c1c8a3 100644
--- a/lib/libform/frm_scale.c
+++ b/lib/libform/frm_scale.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_scale.c,v 1.3 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_scale.c,v 1.4 2001/01/22 18:02:16 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_scale.c,v 1.4 1999/05/16 17:22:02 juergen Exp $")
+MODULE_ID("$From: frm_scale.c,v 1.5 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -46,7 +46,8 @@ MODULE_ID("$From: frm_scale.c,v 1.4 1999/05/16 17:22:02 juergen Exp $")
| E_BAD_ARGUMENT - invalid form pointer
| E_NOT_CONNECTED - no fields connected to form
+--------------------------------------------------------------------------*/
-int scale_form(const FORM * form, int * rows, int * cols)
+NCURSES_EXPORT(int)
+scale_form (const FORM * form, int * rows, int * cols)
{
if ( !form )
RETURN(E_BAD_ARGUMENT);
diff --git a/lib/libform/frm_sub.c b/lib/libform/frm_sub.c
index e0c8b48c137..6a6f50278b5 100644
--- a/lib/libform/frm_sub.c
+++ b/lib/libform/frm_sub.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_sub.c,v 1.3 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_sub.c,v 1.4 2001/01/22 18:02:16 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_sub.c,v 1.4 1999/05/16 17:22:11 juergen Exp $")
+MODULE_ID("$From: frm_sub.c,v 1.5 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -45,7 +45,8 @@ MODULE_ID("$From: frm_sub.c,v 1.4 1999/05/16 17:22:11 juergen Exp $")
| Return Values : E_OK - success
| E_POSTED - form is posted
+--------------------------------------------------------------------------*/
-int set_form_sub(FORM * form, WINDOW * win)
+NCURSES_EXPORT(int)
+set_form_sub (FORM * form, WINDOW * win)
{
if (form && (form->status & _POSTED))
RETURN(E_POSTED);
@@ -62,7 +63,8 @@ int set_form_sub(FORM * form, WINDOW * win)
|
| Return Values : The pointer to the Subwindow.
+--------------------------------------------------------------------------*/
-WINDOW *form_sub(const FORM * form)
+NCURSES_EXPORT(WINDOW *)
+form_sub (const FORM * form)
{
const FORM* f = Normalize_Form( form );
return Get_Form_Window(f);
diff --git a/lib/libform/frm_user.c b/lib/libform/frm_user.c
index dfb583dd080..96bfab481ab 100644
--- a/lib/libform/frm_user.c
+++ b/lib/libform/frm_user.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_user.c,v 1.5 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_user.c,v 1.6 2001/01/22 18:02:16 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_user.c,v 1.8 1999/05/16 17:22:21 juergen Exp $")
+MODULE_ID("$From: frm_user.c,v 1.9 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -45,7 +45,8 @@ MODULE_ID("$From: frm_user.c,v 1.8 1999/05/16 17:22:21 juergen Exp $")
|
| Return Values : E_OK - on success
+--------------------------------------------------------------------------*/
-int set_form_userptr(FORM * form, void *usrptr)
+NCURSES_EXPORT(int)
+set_form_userptr (FORM * form, void *usrptr)
{
Normalize_Form(form)->usrptr = usrptr;
RETURN(E_OK);
@@ -61,7 +62,8 @@ int set_form_userptr(FORM * form, void *usrptr)
| Return Values : Value of pointer. If no such pointer has been set,
| NULL is returned
+--------------------------------------------------------------------------*/
-void *form_userptr(const FORM * form)
+NCURSES_EXPORT(void *)
+form_userptr (const FORM * form)
{
return Normalize_Form(form)->usrptr;
}
diff --git a/lib/libform/frm_win.c b/lib/libform/frm_win.c
index a850e1c4832..d428b6d274c 100644
--- a/lib/libform/frm_win.c
+++ b/lib/libform/frm_win.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: frm_win.c,v 1.5 1999/05/17 03:04:17 millert Exp $ */
+/* $OpenBSD: frm_win.c,v 1.6 2001/01/22 18:02:16 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_win.c,v 1.8 1999/05/16 17:22:32 juergen Exp $")
+MODULE_ID("$From: frm_win.c,v 1.9 2000/12/10 02:09:37 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -45,7 +45,8 @@ MODULE_ID("$From: frm_win.c,v 1.8 1999/05/16 17:22:32 juergen Exp $")
| Return Values : E_OK - success
| E_POSTED - form is posted
+--------------------------------------------------------------------------*/
-int set_form_win(FORM * form, WINDOW * win)
+NCURSES_EXPORT(int)
+set_form_win (FORM * form, WINDOW * win)
{
if (form && (form->status & _POSTED))
RETURN(E_POSTED);
@@ -62,7 +63,8 @@ int set_form_win(FORM * form, WINDOW * win)
|
| Return Values : The pointer to the Window or stdscr if there is none.
+--------------------------------------------------------------------------*/
-WINDOW *form_win(const FORM * form)
+NCURSES_EXPORT(WINDOW *)
+form_win (const FORM * form)
{
const FORM* f = Normalize_Form( form );
return (f->win ? f->win : stdscr);
diff --git a/lib/libform/fty_alnum.c b/lib/libform/fty_alnum.c
index 1dcb080a630..7fb7ee74d2b 100644
--- a/lib/libform/fty_alnum.c
+++ b/lib/libform/fty_alnum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_alnum.c,v 1.5 1999/05/17 03:04:18 millert Exp $ */
+/* $OpenBSD: fty_alnum.c,v 1.6 2001/01/22 18:02:16 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_alnum.c,v 1.9 1999/05/16 17:22:49 juergen Exp $")
+MODULE_ID("$From: fty_alnum.c,v 1.10 2000/12/09 23:46:12 tom Exp $")
typedef struct {
int width;
@@ -134,6 +134,6 @@ static FIELDTYPE typeALNUM = {
NULL
};
-FIELDTYPE* TYPE_ALNUM = &typeALNUM;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALNUM = &typeALNUM;
/* fty_alnum.c ends here */
diff --git a/lib/libform/fty_alpha.c b/lib/libform/fty_alpha.c
index f955a2bf1a0..579a675c575 100644
--- a/lib/libform/fty_alpha.c
+++ b/lib/libform/fty_alpha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_alpha.c,v 1.5 1999/05/17 03:04:18 millert Exp $ */
+/* $OpenBSD: fty_alpha.c,v 1.6 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_alpha.c,v 1.9 1999/05/16 17:22:58 juergen Exp $")
+MODULE_ID("$From: fty_alpha.c,v 1.10 2000/12/09 23:46:12 tom Exp $")
typedef struct {
int width;
@@ -135,6 +135,6 @@ static FIELDTYPE typeALPHA = {
NULL
};
-FIELDTYPE* TYPE_ALPHA = &typeALPHA;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALPHA = &typeALPHA;
/* fty_alpha.c ends here */
diff --git a/lib/libform/fty_enum.c b/lib/libform/fty_enum.c
index 42aebc38098..adf61a7c384 100644
--- a/lib/libform/fty_enum.c
+++ b/lib/libform/fty_enum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_enum.c,v 1.8 2000/10/22 18:27:24 millert Exp $ */
+/* $OpenBSD: fty_enum.c,v 1.9 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_enum.c,v 1.14 2000/10/18 09:28:19 juergen Exp $")
+MODULE_ID("$From: fty_enum.c,v 1.15 2000/12/09 23:46:12 tom Exp $")
typedef struct {
char **kwds;
@@ -292,6 +292,6 @@ static FIELDTYPE typeENUM = {
Previous_Enum
};
-FIELDTYPE* TYPE_ENUM = &typeENUM;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ENUM = &typeENUM;
/* fty_enum.c ends here */
diff --git a/lib/libform/fty_int.c b/lib/libform/fty_int.c
index 741e12979b7..cc6dc34d3bd 100644
--- a/lib/libform/fty_int.c
+++ b/lib/libform/fty_int.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_int.c,v 1.5 1999/05/17 03:04:18 millert Exp $ */
+/* $OpenBSD: fty_int.c,v 1.6 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_int.c,v 1.10 1999/05/16 17:23:22 juergen Exp $")
+MODULE_ID("$From: fty_int.c,v 1.11 2000/12/09 23:46:12 tom Exp $")
typedef struct {
int precision;
@@ -157,6 +157,6 @@ static FIELDTYPE typeINTEGER = {
NULL
};
-FIELDTYPE* TYPE_INTEGER = &typeINTEGER;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_INTEGER = &typeINTEGER;
/* fty_int.c ends here */
diff --git a/lib/libform/fty_ipv4.c b/lib/libform/fty_ipv4.c
index 8f0badd15af..162c96f9090 100644
--- a/lib/libform/fty_ipv4.c
+++ b/lib/libform/fty_ipv4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_ipv4.c,v 1.3 1998/07/24 02:37:46 millert Exp $ */
+/* $OpenBSD: fty_ipv4.c,v 1.4 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_ipv4.c,v 1.2 1997/04/26 22:06:00 tom Exp $")
+MODULE_ID("$From: fty_ipv4.c,v 1.4 2000/12/09 23:46:12 tom Exp $")
/*---------------------------------------------------------------------------
| Facility : libnform
@@ -34,13 +34,13 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp GCC_UNUSED)
int num = 0, len;
unsigned int d1, d2, d3, d4;
- if(isdigit(*bp)) /* Must start with digit */
+ if(isdigit((unsigned char)*bp)) /* Must start with digit */
{
num = sscanf(bp, "%u.%u.%u.%u%n", &d1, &d2, &d3, &d4, &len);
if (num == 4)
{
bp += len; /* Make bp point to what sscanf() left */
- while (*bp && isspace(*bp))
+ while (*bp && isspace((unsigned char)*bp))
bp++; /* Allow trailing whitespace */
}
}
@@ -78,6 +78,6 @@ static FIELDTYPE typeIPV4 = {
NULL
};
-FIELDTYPE* TYPE_IPV4 = &typeIPV4;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_IPV4 = &typeIPV4;
/* fty_ipv4.c ends here */
diff --git a/lib/libform/fty_num.c b/lib/libform/fty_num.c
index f0b72d1a599..7e3b76fc367 100644
--- a/lib/libform/fty_num.c
+++ b/lib/libform/fty_num.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_num.c,v 1.5 1999/05/17 03:04:18 millert Exp $ */
+/* $OpenBSD: fty_num.c,v 1.6 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_num.c,v 1.13 1999/05/16 17:23:30 juergen Exp $")
+MODULE_ID("$From: fty_num.c,v 1.14 2000/12/09 23:46:12 tom Exp $")
#if HAVE_LOCALE_H
#include <locale.h>
@@ -192,6 +192,6 @@ static FIELDTYPE typeNUMERIC = {
NULL
};
-FIELDTYPE* TYPE_NUMERIC = &typeNUMERIC;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_NUMERIC = &typeNUMERIC;
/* fty_num.c ends here */
diff --git a/lib/libform/fty_regex.c b/lib/libform/fty_regex.c
index fad041867ad..8910777da19 100644
--- a/lib/libform/fty_regex.c
+++ b/lib/libform/fty_regex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fty_regex.c,v 1.6 1999/05/17 03:04:18 millert Exp $ */
+/* $OpenBSD: fty_regex.c,v 1.7 2001/01/22 18:02:17 millert Exp $ */
/*
@@ -15,7 +15,7 @@
#include "form.priv.h"
-MODULE_ID("$From: fty_regex.c,v 1.14 1999/05/16 17:23:38 juergen Exp $")
+MODULE_ID("$From: fty_regex.c,v 1.15 2000/12/09 23:46:12 tom Exp $")
#if HAVE_REGEX_H_FUNCS /* We prefer POSIX regex */
#include <regex.h>
@@ -254,6 +254,6 @@ static FIELDTYPE typeREGEXP = {
NULL
};
-FIELDTYPE* TYPE_REGEXP = &typeREGEXP;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_REGEXP = &typeREGEXP;
/* fty_regex.c ends here */