form.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. /****************************************************************************
  2. * Copyright 2018-2019,2020 Thomas E. Dickey *
  3. * Copyright 1998-2016,2017 Free Software Foundation, Inc. *
  4. * *
  5. * Permission is hereby granted, free of charge, to any person obtaining a *
  6. * copy of this software and associated documentation files (the *
  7. * "Software"), to deal in the Software without restriction, including *
  8. * without limitation the rights to use, copy, modify, merge, publish, *
  9. * distribute, distribute with modifications, sublicense, and/or sell *
  10. * copies of the Software, and to permit persons to whom the Software is *
  11. * furnished to do so, subject to the following conditions: *
  12. * *
  13. * The above copyright notice and this permission notice shall be included *
  14. * in all copies or substantial portions of the Software. *
  15. * *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
  17. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
  18. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
  19. * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
  20. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
  21. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
  22. * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
  23. * *
  24. * Except as contained in this notice, the name(s) of the above copyright *
  25. * holders shall not be used in advertising or otherwise to promote the *
  26. * sale, use or other dealings in this Software without prior written *
  27. * authorization. *
  28. ****************************************************************************/
  29. /****************************************************************************
  30. * Author: Juergen Pfeifer, 1995,1997 *
  31. ****************************************************************************/
  32. /* $Id: form.h,v 0.30 2020/02/02 23:34:34 tom Exp $ */
  33. #ifndef FORM_H
  34. #define FORM_H
  35. /* *INDENT-OFF*/
  36. #include <curses.h>
  37. #include <eti.h>
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. #ifndef FORM_PRIV_H
  42. typedef void *FIELD_CELL;
  43. #endif
  44. #ifndef NCURSES_FIELD_INTERNALS
  45. #define NCURSES_FIELD_INTERNALS /* nothing */
  46. #endif
  47. typedef int Form_Options;
  48. typedef int Field_Options;
  49. /**********
  50. * _PAGE *
  51. **********/
  52. typedef struct pagenode
  53. #if !NCURSES_OPAQUE_FORM
  54. {
  55. short pmin; /* index of first field on page */
  56. short pmax; /* index of last field on page */
  57. short smin; /* index of top leftmost field on page */
  58. short smax; /* index of bottom rightmost field on page */
  59. }
  60. #endif /* !NCURSES_OPAQUE_FORM */
  61. _PAGE;
  62. /**********
  63. * FIELD *
  64. **********/
  65. typedef struct fieldnode
  66. #if 1 /* not yet: !NCURSES_OPAQUE_FORM */
  67. {
  68. unsigned short status; /* flags */
  69. short rows; /* size in rows */
  70. short cols; /* size in cols */
  71. short frow; /* first row */
  72. short fcol; /* first col */
  73. int drows; /* dynamic rows */
  74. int dcols; /* dynamic cols */
  75. int maxgrow; /* maximum field growth */
  76. int nrow; /* off-screen rows */
  77. short nbuf; /* additional buffers */
  78. short just; /* justification */
  79. short page; /* page on form */
  80. short index; /* into form -> field */
  81. int pad; /* pad character */
  82. chtype fore; /* foreground attribute */
  83. chtype back; /* background attribute */
  84. Field_Options opts; /* options */
  85. struct fieldnode * snext; /* sorted order pointer */
  86. struct fieldnode * sprev; /* sorted order pointer */
  87. struct fieldnode * link; /* linked field chain */
  88. struct formnode * form; /* containing form */
  89. struct typenode * type; /* field type */
  90. void * arg; /* argument for type */
  91. FIELD_CELL * buf; /* field buffers */
  92. void * usrptr; /* user pointer */
  93. /*
  94. * The wide-character configuration requires extra information. Because
  95. * there are existing applications that manipulate the members of FIELD
  96. * directly, we cannot make the struct opaque, except by changing the ABI.
  97. * Offsets of members up to this point are the same in the narrow- and
  98. * wide-character configuration. But note that the type of buf depends on
  99. * the configuration, and is made opaque for that reason.
  100. */
  101. NCURSES_FIELD_INTERNALS
  102. }
  103. #endif /* NCURSES_OPAQUE_FORM */
  104. FIELD;
  105. /*********
  106. * FORM *
  107. *********/
  108. typedef struct formnode
  109. #if 1 /* not yet: !NCURSES_OPAQUE_FORM */
  110. {
  111. unsigned short status; /* flags */
  112. short rows; /* size in rows */
  113. short cols; /* size in cols */
  114. int currow; /* current row in field window */
  115. int curcol; /* current col in field window */
  116. int toprow; /* in scrollable field window */
  117. int begincol; /* in horiz. scrollable field */
  118. short maxfield; /* number of fields */
  119. short maxpage; /* number of pages */
  120. short curpage; /* index into page */
  121. Form_Options opts; /* options */
  122. WINDOW * win; /* window */
  123. WINDOW * sub; /* subwindow */
  124. WINDOW * w; /* window for current field */
  125. FIELD ** field; /* field [maxfield] */
  126. FIELD * current; /* current field */
  127. _PAGE * page; /* page [maxpage] */
  128. void * usrptr; /* user pointer */
  129. void (*forminit)(struct formnode *);
  130. void (*formterm)(struct formnode *);
  131. void (*fieldinit)(struct formnode *);
  132. void (*fieldterm)(struct formnode *);
  133. }
  134. #endif /* !NCURSES_OPAQUE_FORM */
  135. FORM;
  136. /**************
  137. * FIELDTYPE *
  138. **************/
  139. typedef struct typenode
  140. #if !NCURSES_OPAQUE_FORM
  141. {
  142. unsigned short status; /* flags */
  143. long ref; /* reference count */
  144. struct typenode * left; /* ptr to operand for | */
  145. struct typenode * right; /* ptr to operand for | */
  146. void* (*makearg)(va_list *); /* make fieldtype arg */
  147. void* (*copyarg)(const void *); /* copy fieldtype arg */
  148. void (*freearg)(void *); /* free fieldtype arg */
  149. #if NCURSES_INTEROP_FUNCS
  150. union {
  151. bool (*ofcheck)(FIELD *,const void *); /* field validation */
  152. bool (*gfcheck)(FORM*,FIELD *,const void*); /* generic field validation */
  153. } fieldcheck;
  154. union {
  155. bool (*occheck)(int,const void *); /* character validation */
  156. bool (*gccheck)(int,FORM*,
  157. FIELD*,const void*); /* generic char validation */
  158. } charcheck;
  159. union {
  160. bool (*onext)(FIELD *,const void *); /* enumerate next value */
  161. bool (*gnext)(FORM*,FIELD*,const void*); /* generic enumerate next */
  162. } enum_next;
  163. union {
  164. bool (*oprev)(FIELD *,const void *); /* enumerate prev value */
  165. bool (*gprev)(FORM*,FIELD*,const void*); /* generic enumerate prev */
  166. } enum_prev;
  167. void* (*genericarg)(void*); /* Alternate Arg method */
  168. #else
  169. bool (*fcheck)(FIELD *,const void *); /* field validation */
  170. bool (*ccheck)(int,const void *); /* character validation */
  171. bool (*next)(FIELD *,const void *); /* enumerate next value */
  172. bool (*prev)(FIELD *,const void *); /* enumerate prev value */
  173. #endif
  174. }
  175. #endif /* !NCURSES_OPAQUE_FORM */
  176. FIELDTYPE;
  177. typedef void (*Form_Hook)(FORM *);
  178. /***************************
  179. * miscellaneous #defines *
  180. ***************************/
  181. /* field justification */
  182. #define NO_JUSTIFICATION (0)
  183. #define JUSTIFY_LEFT (1)
  184. #define JUSTIFY_CENTER (2)
  185. #define JUSTIFY_RIGHT (3)
  186. /* field options */
  187. #define O_VISIBLE (0x0001U)
  188. #define O_ACTIVE (0x0002U)
  189. #define O_PUBLIC (0x0004U)
  190. #define O_EDIT (0x0008U)
  191. #define O_WRAP (0x0010U)
  192. #define O_BLANK (0x0020U)
  193. #define O_AUTOSKIP (0x0040U)
  194. #define O_NULLOK (0x0080U)
  195. #define O_PASSOK (0x0100U)
  196. #define O_STATIC (0x0200U)
  197. #define O_DYNAMIC_JUSTIFY (0x0400U) /* ncurses extension */
  198. #define O_NO_LEFT_STRIP (0x0800U) /* ncurses extension */
  199. #define O_EDGE_INSERT_STAY (0x1000U) /* ncurses extension */
  200. #define O_INPUT_LIMIT (0x2000U) /* ncurses extension */
  201. /* form options */
  202. #define O_NL_OVERLOAD (0x0001U)
  203. #define O_BS_OVERLOAD (0x0002U)
  204. /* form driver commands */
  205. #define REQ_NEXT_PAGE (KEY_MAX + 1) /* move to next page */
  206. #define REQ_PREV_PAGE (KEY_MAX + 2) /* move to previous page */
  207. #define REQ_FIRST_PAGE (KEY_MAX + 3) /* move to first page */
  208. #define REQ_LAST_PAGE (KEY_MAX + 4) /* move to last page */
  209. #define REQ_NEXT_FIELD (KEY_MAX + 5) /* move to next field */
  210. #define REQ_PREV_FIELD (KEY_MAX + 6) /* move to previous field */
  211. #define REQ_FIRST_FIELD (KEY_MAX + 7) /* move to first field */
  212. #define REQ_LAST_FIELD (KEY_MAX + 8) /* move to last field */
  213. #define REQ_SNEXT_FIELD (KEY_MAX + 9) /* move to sorted next field */
  214. #define REQ_SPREV_FIELD (KEY_MAX + 10) /* move to sorted prev field */
  215. #define REQ_SFIRST_FIELD (KEY_MAX + 11) /* move to sorted first field */
  216. #define REQ_SLAST_FIELD (KEY_MAX + 12) /* move to sorted last field */
  217. #define REQ_LEFT_FIELD (KEY_MAX + 13) /* move to left to field */
  218. #define REQ_RIGHT_FIELD (KEY_MAX + 14) /* move to right to field */
  219. #define REQ_UP_FIELD (KEY_MAX + 15) /* move to up to field */
  220. #define REQ_DOWN_FIELD (KEY_MAX + 16) /* move to down to field */
  221. #define REQ_NEXT_CHAR (KEY_MAX + 17) /* move to next char in field */
  222. #define REQ_PREV_CHAR (KEY_MAX + 18) /* move to prev char in field */
  223. #define REQ_NEXT_LINE (KEY_MAX + 19) /* move to next line in field */
  224. #define REQ_PREV_LINE (KEY_MAX + 20) /* move to prev line in field */
  225. #define REQ_NEXT_WORD (KEY_MAX + 21) /* move to next word in field */
  226. #define REQ_PREV_WORD (KEY_MAX + 22) /* move to prev word in field */
  227. #define REQ_BEG_FIELD (KEY_MAX + 23) /* move to first char in field */
  228. #define REQ_END_FIELD (KEY_MAX + 24) /* move after last char in fld */
  229. #define REQ_BEG_LINE (KEY_MAX + 25) /* move to beginning of line */
  230. #define REQ_END_LINE (KEY_MAX + 26) /* move after last char in line */
  231. #define REQ_LEFT_CHAR (KEY_MAX + 27) /* move left in field */
  232. #define REQ_RIGHT_CHAR (KEY_MAX + 28) /* move right in field */
  233. #define REQ_UP_CHAR (KEY_MAX + 29) /* move up in field */
  234. #define REQ_DOWN_CHAR (KEY_MAX + 30) /* move down in field */
  235. #define REQ_NEW_LINE (KEY_MAX + 31) /* insert/overlay new line */
  236. #define REQ_INS_CHAR (KEY_MAX + 32) /* insert blank char at cursor */
  237. #define REQ_INS_LINE (KEY_MAX + 33) /* insert blank line at cursor */
  238. #define REQ_DEL_CHAR (KEY_MAX + 34) /* delete char at cursor */
  239. #define REQ_DEL_PREV (KEY_MAX + 35) /* delete char before cursor */
  240. #define REQ_DEL_LINE (KEY_MAX + 36) /* delete line at cursor */
  241. #define REQ_DEL_WORD (KEY_MAX + 37) /* delete word at cursor */
  242. #define REQ_CLR_EOL (KEY_MAX + 38) /* clear to end of line */
  243. #define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */
  244. #define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */
  245. #define REQ_OVL_MODE (KEY_MAX + 41) /* begin overlay mode */
  246. #define REQ_INS_MODE (KEY_MAX + 42) /* begin insert mode */
  247. #define REQ_SCR_FLINE (KEY_MAX + 43) /* scroll field forward a line */
  248. #define REQ_SCR_BLINE (KEY_MAX + 44) /* scroll field backward a line */
  249. #define REQ_SCR_FPAGE (KEY_MAX + 45) /* scroll field forward a page */
  250. #define REQ_SCR_BPAGE (KEY_MAX + 46) /* scroll field backward a page */
  251. #define REQ_SCR_FHPAGE (KEY_MAX + 47) /* scroll field forward half page */
  252. #define REQ_SCR_BHPAGE (KEY_MAX + 48) /* scroll field backward half page */
  253. #define REQ_SCR_FCHAR (KEY_MAX + 49) /* horizontal scroll char */
  254. #define REQ_SCR_BCHAR (KEY_MAX + 50) /* horizontal scroll char */
  255. #define REQ_SCR_HFLINE (KEY_MAX + 51) /* horizontal scroll line */
  256. #define REQ_SCR_HBLINE (KEY_MAX + 52) /* horizontal scroll line */
  257. #define REQ_SCR_HFHALF (KEY_MAX + 53) /* horizontal scroll half line */
  258. #define REQ_SCR_HBHALF (KEY_MAX + 54) /* horizontal scroll half line */
  259. #define REQ_VALIDATION (KEY_MAX + 55) /* validate field */
  260. #define REQ_NEXT_CHOICE (KEY_MAX + 56) /* display next field choice */
  261. #define REQ_PREV_CHOICE (KEY_MAX + 57) /* display prev field choice */
  262. #define MIN_FORM_COMMAND (KEY_MAX + 1) /* used by form_driver */
  263. #define MAX_FORM_COMMAND (KEY_MAX + 57) /* used by form_driver */
  264. #if defined(MAX_COMMAND)
  265. # if (MAX_FORM_COMMAND > MAX_COMMAND)
  266. # error Something is wrong -- MAX_FORM_COMMAND is greater than MAX_COMMAND
  267. # elif (MAX_COMMAND != (KEY_MAX + 128))
  268. # error Something is wrong -- MAX_COMMAND is already inconsistently defined.
  269. # endif
  270. #else
  271. # define MAX_COMMAND (KEY_MAX + 128)
  272. #endif
  273. /*************************
  274. * standard field types *
  275. *************************/
  276. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALPHA;
  277. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ALNUM;
  278. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_ENUM;
  279. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_INTEGER;
  280. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_NUMERIC;
  281. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_REGEXP;
  282. /************************************
  283. * built-in additional field types *
  284. * They are not defined in SVr4 *
  285. ************************************/
  286. extern NCURSES_EXPORT_VAR(FIELDTYPE *) TYPE_IPV4; /* Internet IP Version 4 address */
  287. /***********************
  288. * FIELDTYPE routines *
  289. ***********************/
  290. extern NCURSES_EXPORT(FIELDTYPE *) new_fieldtype (
  291. bool (* const field_check)(FIELD *,const void *),
  292. bool (* const char_check)(int,const void *));
  293. extern NCURSES_EXPORT(FIELDTYPE *) link_fieldtype(
  294. FIELDTYPE *, FIELDTYPE *);
  295. extern NCURSES_EXPORT(int) free_fieldtype (FIELDTYPE *);
  296. extern NCURSES_EXPORT(int) set_fieldtype_arg (FIELDTYPE *,
  297. void * (* const make_arg)(va_list *),
  298. void * (* const copy_arg)(const void *),
  299. void (* const free_arg)(void *));
  300. extern NCURSES_EXPORT(int) set_fieldtype_choice (FIELDTYPE *,
  301. bool (* const next_choice)(FIELD *,const void *),
  302. bool (* const prev_choice)(FIELD *,const void *));
  303. /*******************
  304. * FIELD routines *
  305. *******************/
  306. extern NCURSES_EXPORT(FIELD *) new_field (int,int,int,int,int,int);
  307. extern NCURSES_EXPORT(FIELD *) dup_field (FIELD *,int,int);
  308. extern NCURSES_EXPORT(FIELD *) link_field (FIELD *,int,int);
  309. extern NCURSES_EXPORT(int) free_field (FIELD *);
  310. extern NCURSES_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *);
  311. extern NCURSES_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *);
  312. extern NCURSES_EXPORT(int) set_max_field ( FIELD *,int);
  313. extern NCURSES_EXPORT(int) move_field (FIELD *,int,int);
  314. extern NCURSES_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...);
  315. extern NCURSES_EXPORT(int) set_new_page (FIELD *,bool);
  316. extern NCURSES_EXPORT(int) set_field_just (FIELD *,int);
  317. extern NCURSES_EXPORT(int) field_just (const FIELD *);
  318. extern NCURSES_EXPORT(int) set_field_fore (FIELD *,chtype);
  319. extern NCURSES_EXPORT(int) set_field_back (FIELD *,chtype);
  320. extern NCURSES_EXPORT(int) set_field_pad (FIELD *,int);
  321. extern NCURSES_EXPORT(int) field_pad (const FIELD *);
  322. extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
  323. extern NCURSES_EXPORT(int) set_field_status (FIELD *,bool);
  324. extern NCURSES_EXPORT(int) set_field_userptr (FIELD *, void *);
  325. extern NCURSES_EXPORT(int) set_field_opts (FIELD *,Field_Options);
  326. extern NCURSES_EXPORT(int) field_opts_on (FIELD *,Field_Options);
  327. extern NCURSES_EXPORT(int) field_opts_off (FIELD *,Field_Options);
  328. extern NCURSES_EXPORT(chtype) field_fore (const FIELD *);
  329. extern NCURSES_EXPORT(chtype) field_back (const FIELD *);
  330. extern NCURSES_EXPORT(bool) new_page (const FIELD *);
  331. extern NCURSES_EXPORT(bool) field_status (const FIELD *);
  332. extern NCURSES_EXPORT(void *) field_arg (const FIELD *);
  333. extern NCURSES_EXPORT(void *) field_userptr (const FIELD *);
  334. extern NCURSES_EXPORT(FIELDTYPE *) field_type (const FIELD *);
  335. extern NCURSES_EXPORT(char *) field_buffer (const FIELD *,int);
  336. extern NCURSES_EXPORT(Field_Options) field_opts (const FIELD *);
  337. /******************
  338. * FORM routines *
  339. ******************/
  340. extern NCURSES_EXPORT(FORM *) new_form (FIELD **);
  341. extern NCURSES_EXPORT(FIELD **) form_fields (const FORM *);
  342. extern NCURSES_EXPORT(FIELD *) current_field (const FORM *);
  343. extern NCURSES_EXPORT(WINDOW *) form_win (const FORM *);
  344. extern NCURSES_EXPORT(WINDOW *) form_sub (const FORM *);
  345. extern NCURSES_EXPORT(Form_Hook) form_init (const FORM *);
  346. extern NCURSES_EXPORT(Form_Hook) form_term (const FORM *);
  347. extern NCURSES_EXPORT(Form_Hook) field_init (const FORM *);
  348. extern NCURSES_EXPORT(Form_Hook) field_term (const FORM *);
  349. extern NCURSES_EXPORT(int) free_form (FORM *);
  350. extern NCURSES_EXPORT(int) set_form_fields (FORM *,FIELD **);
  351. extern NCURSES_EXPORT(int) field_count (const FORM *);
  352. extern NCURSES_EXPORT(int) set_form_win (FORM *,WINDOW *);
  353. extern NCURSES_EXPORT(int) set_form_sub (FORM *,WINDOW *);
  354. extern NCURSES_EXPORT(int) set_current_field (FORM *,FIELD *);
  355. extern NCURSES_EXPORT(int) unfocus_current_field (FORM *);
  356. extern NCURSES_EXPORT(int) field_index (const FIELD *);
  357. extern NCURSES_EXPORT(int) set_form_page (FORM *,int);
  358. extern NCURSES_EXPORT(int) form_page (const FORM *);
  359. extern NCURSES_EXPORT(int) scale_form (const FORM *,int *,int *);
  360. extern NCURSES_EXPORT(int) set_form_init (FORM *,Form_Hook);
  361. extern NCURSES_EXPORT(int) set_form_term (FORM *,Form_Hook);
  362. extern NCURSES_EXPORT(int) set_field_init (FORM *,Form_Hook);
  363. extern NCURSES_EXPORT(int) set_field_term (FORM *,Form_Hook);
  364. extern NCURSES_EXPORT(int) post_form (FORM *);
  365. extern NCURSES_EXPORT(int) unpost_form (FORM *);
  366. extern NCURSES_EXPORT(int) pos_form_cursor (FORM *);
  367. extern NCURSES_EXPORT(int) form_driver (FORM *,int);
  368. # if NCURSES_WIDECHAR
  369. extern NCURSES_EXPORT(int) form_driver_w (FORM *,int,wchar_t);
  370. # endif
  371. extern NCURSES_EXPORT(int) set_form_userptr (FORM *,void *);
  372. extern NCURSES_EXPORT(int) set_form_opts (FORM *,Form_Options);
  373. extern NCURSES_EXPORT(int) form_opts_on (FORM *,Form_Options);
  374. extern NCURSES_EXPORT(int) form_opts_off (FORM *,Form_Options);
  375. extern NCURSES_EXPORT(int) form_request_by_name (const char *);
  376. extern NCURSES_EXPORT(const char *) form_request_name (int);
  377. extern NCURSES_EXPORT(void *) form_userptr (const FORM *);
  378. extern NCURSES_EXPORT(Form_Options) form_opts (const FORM *);
  379. extern NCURSES_EXPORT(bool) data_ahead (const FORM *);
  380. extern NCURSES_EXPORT(bool) data_behind (const FORM *);
  381. #if NCURSES_SP_FUNCS
  382. extern NCURSES_EXPORT(FORM *) NCURSES_SP_NAME(new_form) (SCREEN*, FIELD **);
  383. #endif
  384. #ifdef __cplusplus
  385. }
  386. #endif
  387. /* *INDENT-ON*/
  388. #endif /* FORM_H */