]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/llib-lform
ncurses 6.0 - patch 20171007
[ncurses.git] / form / llib-lform
index 4fda154519c5b46be00e353c4d3214172acf5d29..35941e975a9392725010c7af6f91829bb1ba262f 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1998-2015,2017 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            *
  ****************************************************************************/
 
 /****************************************************************************
- *  Author: Thomas E. Dickey <dickey@clark.net> 1996,1997                   *
+ *  Author: Thomas E. Dickey       1996-on                                  *
  ****************************************************************************/
 /* LINTLIBRARY */
 
-/* ./fld_arg.c */
+/* ./f_trace.c */
+
+#include <form.priv.h>
+
+#undef _nc_retrace_field_ptr
+FIELD  **_nc_retrace_field_ptr(
+               FIELD   **code)
+               { return(*(FIELD ***)0); }
+
+#undef _nc_retrace_field
+FIELD  *_nc_retrace_field(
+               FIELD   *code)
+               { return(*(FIELD **)0); }
 
-#include "form.priv.h"
+#undef _nc_retrace_field_type
+FIELDTYPE *_nc_retrace_field_type(
+               FIELDTYPE *code)
+               { return(*(FIELDTYPE **)0); }
+
+#undef _nc_retrace_form
+FORM   *_nc_retrace_form(
+               FORM    *code)
+               { return(*(FORM **)0); }
+
+#undef _nc_retrace_form_hook
+Form_Hook _nc_retrace_form_hook(
+               Form_Hook code)
+               { return(*(Form_Hook *)0); }
+
+/* ./fld_arg.c */
 
 #undef set_fieldtype_arg
 int    set_fieldtype_arg(
@@ -83,6 +110,11 @@ int set_current_field(
                FIELD   *field)
                { return(*(int *)0); }
 
+#undef unfocus_current_field
+int    unfocus_current_field(
+               FORM    *const form)
+               { return(*(int *)0); }
+
 #undef current_field
 FIELD  *current_field(
                const FORM *form)
@@ -119,10 +151,10 @@ void      _nc_Free_Argument(
                { /* void */ }
 
 #undef _nc_Copy_Type
-bool   _nc_Copy_Type(
+NCURSES_BOOL _nc_Copy_Type(
                FIELD   *dst, 
                FIELD const *src)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 #undef _nc_Free_Type
 void   _nc_Free_Type(
@@ -158,10 +190,10 @@ FIELD     *dup_field(
 #undef set_fieldtype_choice
 int    set_fieldtype_choice(
                FIELDTYPE *typ, 
-               bool    (*const next_choice)(
+               NCURSES_BOOL (*const next_choice)(
                FIELD   *p1, 
                const void *p2), 
-               bool    (*const prev_choice)(
+               NCURSES_BOOL (*const prev_choice)(
                FIELD   *p1, 
                const void *p2))
                { return(*(int *)0); }
@@ -237,14 +269,14 @@ int       move_field(
 /* ./fld_newftyp.c */
 
 #undef _nc_Default_FieldType
-const FIELDTYPE *_nc_Default_FieldType = {0};
+FIELDTYPE *_nc_Default_FieldType;
 
 #undef new_fieldtype
 FIELDTYPE *new_fieldtype(
-               bool    (*const field_check)(
+               NCURSES_BOOL (*const field_check)(
                FIELD   *p1, 
                const void *p2), 
-               bool    (*const char_check)(
+               NCURSES_BOOL (*const char_check)(
                int     p1, 
                const void *p2))
                { return(*(FIELDTYPE **)0); }
@@ -297,26 +329,26 @@ int       field_pad(
 #undef set_new_page
 int    set_new_page(
                FIELD   *field, 
-               bool    new_page_flag)
+               NCURSES_BOOL new_page_flag)
                { return(*(int *)0); }
 
 #undef new_page
-bool   new_page(
+NCURSES_BOOL new_page(
                const FIELD *field)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 /* ./fld_stat.c */
 
 #undef set_field_status
 int    set_field_status(
                FIELD   *field, 
-               bool    status)
+               NCURSES_BOOL status)
                { return(*(int *)0); }
 
 #undef field_status
-bool   field_status(
+NCURSES_BOOL field_status(
                const FIELD *field)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 /* ./fld_type.c */
 
@@ -345,29 +377,6 @@ void       *field_userptr(
                const FIELD *field)
                { return(*(void **)0); }
 
-/* ./frm_adabind.c */
-
-#undef _nc_ada_normalize_field_opts
-void   _nc_ada_normalize_field_opts(
-               int     *opt)
-               { /* void */ }
-
-#undef _nc_ada_normalize_form_opts
-void   _nc_ada_normalize_form_opts(
-               int     *opt)
-               { /* void */ }
-
-#undef _nc_ada_getvarg
-void   *_nc_ada_getvarg(
-               va_list *ap)
-               { return(*(void **)0); }
-
-#undef _nc_get_field
-FIELD  *_nc_get_field(
-               const FORM *frm, 
-               int     idx)
-               { return(*(FIELD **)0); }
-
 /* ./frm_cursor.c */
 
 #undef pos_form_cursor
@@ -378,20 +387,26 @@ int       pos_form_cursor(
 /* ./frm_data.c */
 
 #undef data_behind
-bool   data_behind(
+NCURSES_BOOL data_behind(
                const FORM *form)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 #undef data_ahead
-bool   data_ahead(
+NCURSES_BOOL data_ahead(
                const FORM *form)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 /* ./frm_def.c */
 
 #undef _nc_Default_Form
 FORM   *_nc_Default_Form;
 
+#undef new_form_sp
+FORM   *new_form_sp(
+               SCREEN  *sp, 
+               FIELD   **fields)
+               { return(*(FORM **)0); }
+
 #undef new_form
 FORM   *new_form(
                FIELD   **fields)
@@ -420,6 +435,13 @@ int        field_count(
 
 /* ./frm_driver.c */
 
+#undef _nc_get_fieldbuffer
+void   _nc_get_fieldbuffer(
+               FORM    *form, 
+               FIELD   *field, 
+               char    *buf)
+               { /* void */ }
+
 #undef _nc_Position_Form_Cursor
 int    _nc_Position_Form_Cursor(
                FORM    *form)
@@ -441,6 +463,11 @@ int        _nc_Synchronize_Options(
                Field_Options newopts)
                { return(*(int *)0); }
 
+#undef _nc_Unset_Current_Field
+void   _nc_Unset_Current_Field(
+               FORM    *form)
+               { /* void */ }
+
 #undef _nc_Set_Current_Field
 int    _nc_Set_Current_Field(
                FORM    *form, 
@@ -448,9 +475,9 @@ int _nc_Set_Current_Field(
                { return(*(int *)0); }
 
 #undef _nc_Internal_Validation
-bool   _nc_Internal_Validation(
+NCURSES_BOOL _nc_Internal_Validation(
                FORM    *form)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 #undef _nc_First_Active_Field
 FIELD  *_nc_First_Active_Field(
@@ -464,10 +491,12 @@ int       _nc_Set_Form_Page(
                FIELD   *field)
                { return(*(int *)0); }
 
-typedef struct {
-  int keycode;           
-  int (*cmd)(FORM *);    
-} Binding_Info;
+typedef struct
+{
+  int keycode; 
+  int (*cmd) (FORM *); 
+}
+Binding_Info;
 
 #undef form_driver
 int    form_driver(
@@ -646,72 +675,172 @@ WINDOW   *form_win(
 
 /* ./fty_alnum.c */
 
-typedef struct {
-  int width;
-} alnumARG;
+typedef struct
+  {
+    int width;
+  }
+alnumARG;
 
 #undef TYPE_ALNUM
 FIELDTYPE *TYPE_ALNUM;
 
+#undef _nc_TYPE_ALNUM
+FIELDTYPE *_nc_TYPE_ALNUM(void)
+               { return(*(FIELDTYPE **)0); }
+
 /* ./fty_alpha.c */
 
-typedef struct {
-  int width;
-} alphaARG;
+typedef struct
+  {
+    int width;
+  }
+alphaARG;
 
 #undef TYPE_ALPHA
 FIELDTYPE *TYPE_ALPHA;
 
+#undef _nc_TYPE_ALPHA
+FIELDTYPE *_nc_TYPE_ALPHA(void)
+               { return(*(FIELDTYPE **)0); }
+
 /* ./fty_enum.c */
 
-typedef struct {
-  char **kwds;
-  int  count;
-  bool checkcase;
-  bool checkunique;
-} enumARG;
+typedef struct
+  {
+    char **kwds;
+    int count;
+    NCURSES_BOOL checkcase;
+    NCURSES_BOOL checkunique;
+  }
+enumARG;
+
+typedef struct
+  {
+    char **kwds;
+    int ccase;
+    int cunique;
+  }
+enumParams;
 
 #undef TYPE_ENUM
 FIELDTYPE *TYPE_ENUM;
 
+#undef _nc_TYPE_ENUM
+FIELDTYPE *_nc_TYPE_ENUM(void)
+               { return(*(FIELDTYPE **)0); }
+
+/* ./fty_generic.c */
+
+#undef _nc_generic_fieldtype
+FIELDTYPE *_nc_generic_fieldtype(
+               NCURSES_BOOL (*const field_check)(
+               FORM    *p1, 
+               FIELD   *p2, 
+               const void *p3), 
+               NCURSES_BOOL (*const char_check)(
+               int     p1, 
+               FORM    *p2, 
+               FIELD   *p3, 
+               const void *p4), 
+               NCURSES_BOOL (*const next)(
+               FORM    *p1, 
+               FIELD   *p2, 
+               const void *p3), 
+               NCURSES_BOOL (*const prev)(
+               FORM    *p1, 
+               FIELD   *p2, 
+               const void *p3), 
+               void    (*freecallback)(
+               void    *p1))
+               { return(*(FIELDTYPE **)0); }
+
+#undef _nc_set_generic_fieldtype
+int    _nc_set_generic_fieldtype(
+               FIELD   *field, 
+               FIELDTYPE *ftyp, 
+               int     (*argiterator)(
+               void    **p1))
+               { return(*(int *)0); }
+
+#undef _nc_form_cursor
+WINDOW *_nc_form_cursor(
+               const FORM *form, 
+               int     *pRow, 
+               int     *pCol)
+               { return(*(WINDOW **)0); }
+
 /* ./fty_int.c */
 
-typedef struct {
-  int precision;
-  long low;
-  long high;
-} integerARG;
+typedef struct
+  {
+    int precision;
+    long low;
+    long high;
+  }
+integerARG;
+
+typedef struct
+  {
+    int precision;
+    long low;
+    long high;
+  }
+integerPARM;
 
 #undef TYPE_INTEGER
 FIELDTYPE *TYPE_INTEGER;
 
+#undef _nc_TYPE_INTEGER
+FIELDTYPE *_nc_TYPE_INTEGER(void)
+               { return(*(FIELDTYPE **)0); }
+
 /* ./fty_ipv4.c */
+
 #undef TYPE_IPV4
 FIELDTYPE *TYPE_IPV4;
 
+#undef _nc_TYPE_IPV4
+FIELDTYPE *_nc_TYPE_IPV4(void)
+               { return(*(FIELDTYPE **)0); }
+
 /* ./fty_num.c */
 
-#include <locale.h>
+typedef struct
+  {
+    int precision;
+    double low;
+    double high;
+    struct lconv *L;
+  }
+numericARG;
 
-typedef struct {
-  int    precision;
-  double low;
-  double high;
-  struct lconv* L;
-} numericARG;
+typedef struct
+  {
+    int precision;
+    double low;
+    double high;
+  }
+thisPARM;
 
 #undef TYPE_NUMERIC
 FIELDTYPE *TYPE_NUMERIC;
 
-/* ./fty_regex.c */
+#undef _nc_TYPE_NUMERIC
+FIELDTYPE *_nc_TYPE_NUMERIC(void)
+               { return(*(FIELDTYPE **)0); }
 
-#include <regex.h>
+/* ./fty_regex.c */
 
 typedef struct
-{
-  regex_t *pRegExp;
-  unsigned long *refCount;
-} RegExp_Arg;
+  {
+    regex_t *pRegExp;
+    unsigned long *refCount;
+  }
+RegExp_Arg;
 
 #undef TYPE_REGEXP
 FIELDTYPE *TYPE_REGEXP;
+
+#undef _nc_TYPE_REGEXP
+FIELDTYPE *_nc_TYPE_REGEXP(void)
+               { return(*(FIELDTYPE **)0); }