llib-lform 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. /****************************************************************************
  2. * Copyright (c) 1998-2002,2005 Free Software Foundation, Inc. *
  3. * *
  4. * Permission is hereby granted, free of charge, to any person obtaining a *
  5. * copy of this software and associated documentation files (the *
  6. * "Software"), to deal in the Software without restriction, including *
  7. * without limitation the rights to use, copy, modify, merge, publish, *
  8. * distribute, distribute with modifications, sublicense, and/or sell *
  9. * copies of the Software, and to permit persons to whom the Software is *
  10. * furnished to do so, subject to the following conditions: *
  11. * *
  12. * The above copyright notice and this permission notice shall be included *
  13. * in all copies or substantial portions of the Software. *
  14. * *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
  16. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
  18. * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
  19. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
  20. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
  21. * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
  22. * *
  23. * Except as contained in this notice, the name(s) of the above copyright *
  24. * holders shall not be used in advertising or otherwise to promote the *
  25. * sale, use or other dealings in this Software without prior written *
  26. * authorization. *
  27. ****************************************************************************/
  28. /****************************************************************************
  29. * Author: Thomas E. Dickey 1996,1997,2002,2005 *
  30. ****************************************************************************/
  31. /* LINTLIBRARY */
  32. /* ./f_trace.c */
  33. #include "form.priv.h"
  34. #undef _nc_retrace_field_ptr
  35. FIELD **_nc_retrace_field_ptr(
  36. FIELD **code)
  37. { return(*(FIELD ***)0); }
  38. #undef _nc_retrace_field
  39. FIELD *_nc_retrace_field(
  40. FIELD *code)
  41. { return(*(FIELD **)0); }
  42. #undef _nc_retrace_field_type
  43. FIELDTYPE *_nc_retrace_field_type(
  44. FIELDTYPE *code)
  45. { return(*(FIELDTYPE **)0); }
  46. #undef _nc_retrace_form
  47. FORM *_nc_retrace_form(
  48. FORM *code)
  49. { return(*(FORM **)0); }
  50. #undef _nc_retrace_form_hook
  51. Form_Hook _nc_retrace_form_hook(
  52. Form_Hook code)
  53. { return(*(Form_Hook *)0); }
  54. /* ./fld_arg.c */
  55. #undef set_fieldtype_arg
  56. int set_fieldtype_arg(
  57. FIELDTYPE *typ,
  58. void *(*const make_arg)(
  59. va_list *p1),
  60. void *(*const copy_arg)(
  61. const void *p1),
  62. void (*const free_arg)(
  63. void *p1))
  64. { return(*(int *)0); }
  65. #undef field_arg
  66. void *field_arg(
  67. const FIELD *field)
  68. { return(*(void **)0); }
  69. /* ./fld_attr.c */
  70. #undef set_field_fore
  71. int set_field_fore(
  72. FIELD *field,
  73. chtype attr)
  74. { return(*(int *)0); }
  75. #undef field_fore
  76. chtype field_fore(
  77. const FIELD *field)
  78. { return(*(chtype *)0); }
  79. #undef set_field_back
  80. int set_field_back(
  81. FIELD *field,
  82. chtype attr)
  83. { return(*(int *)0); }
  84. #undef field_back
  85. chtype field_back(
  86. const FIELD *field)
  87. { return(*(chtype *)0); }
  88. /* ./fld_current.c */
  89. #undef set_current_field
  90. int set_current_field(
  91. FORM *form,
  92. FIELD *field)
  93. { return(*(int *)0); }
  94. #undef current_field
  95. FIELD *current_field(
  96. const FORM *form)
  97. { return(*(FIELD **)0); }
  98. #undef field_index
  99. int field_index(
  100. const FIELD *field)
  101. { return(*(int *)0); }
  102. /* ./fld_def.c */
  103. #undef _nc_Default_Field
  104. FIELD *_nc_Default_Field;
  105. #undef _nc_Make_Argument
  106. TypeArgument *_nc_Make_Argument(
  107. const FIELDTYPE *typ,
  108. va_list *ap,
  109. int *err)
  110. { return(*(TypeArgument **)0); }
  111. #undef _nc_Copy_Argument
  112. TypeArgument *_nc_Copy_Argument(
  113. const FIELDTYPE *typ,
  114. const TypeArgument *argp,
  115. int *err)
  116. { return(*(TypeArgument **)0); }
  117. #undef _nc_Free_Argument
  118. void _nc_Free_Argument(
  119. const FIELDTYPE *typ,
  120. TypeArgument *argp)
  121. { /* void */ }
  122. #undef _nc_Copy_Type
  123. NCURSES_BOOL _nc_Copy_Type(
  124. FIELD *dst,
  125. FIELD const *src)
  126. { return(*(NCURSES_BOOL *)0); }
  127. #undef _nc_Free_Type
  128. void _nc_Free_Type(
  129. FIELD *field)
  130. { /* void */ }
  131. #undef new_field
  132. FIELD *new_field(
  133. int rows,
  134. int cols,
  135. int frow,
  136. int fcol,
  137. int nrow,
  138. int nbuf)
  139. { return(*(FIELD **)0); }
  140. #undef free_field
  141. int free_field(
  142. FIELD *field)
  143. { return(*(int *)0); }
  144. /* ./fld_dup.c */
  145. #undef dup_field
  146. FIELD *dup_field(
  147. FIELD *field,
  148. int frow,
  149. int fcol)
  150. { return(*(FIELD **)0); }
  151. /* ./fld_ftchoice.c */
  152. #undef set_fieldtype_choice
  153. int set_fieldtype_choice(
  154. FIELDTYPE *typ,
  155. NCURSES_BOOL (*const next_choice)(
  156. FIELD *p1,
  157. const void *p2),
  158. NCURSES_BOOL (*const prev_choice)(
  159. FIELD *p1,
  160. const void *p2))
  161. { return(*(int *)0); }
  162. /* ./fld_ftlink.c */
  163. #undef link_fieldtype
  164. FIELDTYPE *link_fieldtype(
  165. FIELDTYPE *type1,
  166. FIELDTYPE *type2)
  167. { return(*(FIELDTYPE **)0); }
  168. /* ./fld_info.c */
  169. #undef field_info
  170. int field_info(
  171. const FIELD *field,
  172. int *rows,
  173. int *cols,
  174. int *frow,
  175. int *fcol,
  176. int *nrow,
  177. int *nbuf)
  178. { return(*(int *)0); }
  179. #undef dynamic_field_info
  180. int dynamic_field_info(
  181. const FIELD *field,
  182. int *drows,
  183. int *dcols,
  184. int *maxgrow)
  185. { return(*(int *)0); }
  186. /* ./fld_just.c */
  187. #undef set_field_just
  188. int set_field_just(
  189. FIELD *field,
  190. int just)
  191. { return(*(int *)0); }
  192. #undef field_just
  193. int field_just(
  194. const FIELD *field)
  195. { return(*(int *)0); }
  196. /* ./fld_link.c */
  197. #undef link_field
  198. FIELD *link_field(
  199. FIELD *field,
  200. int frow,
  201. int fcol)
  202. { return(*(FIELD **)0); }
  203. /* ./fld_max.c */
  204. #undef set_max_field
  205. int set_max_field(
  206. FIELD *field,
  207. int maxgrow)
  208. { return(*(int *)0); }
  209. /* ./fld_move.c */
  210. #undef move_field
  211. int move_field(
  212. FIELD *field,
  213. int frow,
  214. int fcol)
  215. { return(*(int *)0); }
  216. /* ./fld_newftyp.c */
  217. #undef _nc_Default_FieldType
  218. const FIELDTYPE *_nc_Default_FieldType = {0};
  219. #undef new_fieldtype
  220. FIELDTYPE *new_fieldtype(
  221. NCURSES_BOOL (*const field_check)(
  222. FIELD *p1,
  223. const void *p2),
  224. NCURSES_BOOL (*const char_check)(
  225. int p1,
  226. const void *p2))
  227. { return(*(FIELDTYPE **)0); }
  228. #undef free_fieldtype
  229. int free_fieldtype(
  230. FIELDTYPE *typ)
  231. { return(*(int *)0); }
  232. /* ./fld_opts.c */
  233. #undef set_field_opts
  234. int set_field_opts(
  235. FIELD *field,
  236. Field_Options opts)
  237. { return(*(int *)0); }
  238. #undef field_opts
  239. Field_Options field_opts(
  240. const FIELD *field)
  241. { return(*(Field_Options *)0); }
  242. #undef field_opts_on
  243. int field_opts_on(
  244. FIELD *field,
  245. Field_Options opts)
  246. { return(*(int *)0); }
  247. #undef field_opts_off
  248. int field_opts_off(
  249. FIELD *field,
  250. Field_Options opts)
  251. { return(*(int *)0); }
  252. /* ./fld_pad.c */
  253. #undef set_field_pad
  254. int set_field_pad(
  255. FIELD *field,
  256. int ch)
  257. { return(*(int *)0); }
  258. #undef field_pad
  259. int field_pad(
  260. const FIELD *field)
  261. { return(*(int *)0); }
  262. /* ./fld_page.c */
  263. #undef set_new_page
  264. int set_new_page(
  265. FIELD *field,
  266. NCURSES_BOOL new_page_flag)
  267. { return(*(int *)0); }
  268. #undef new_page
  269. NCURSES_BOOL new_page(
  270. const FIELD *field)
  271. { return(*(NCURSES_BOOL *)0); }
  272. /* ./fld_stat.c */
  273. #undef set_field_status
  274. int set_field_status(
  275. FIELD *field,
  276. NCURSES_BOOL status)
  277. { return(*(int *)0); }
  278. #undef field_status
  279. NCURSES_BOOL field_status(
  280. const FIELD *field)
  281. { return(*(NCURSES_BOOL *)0); }
  282. /* ./fld_type.c */
  283. #undef set_field_type
  284. int set_field_type(
  285. FIELD *field,
  286. FIELDTYPE *type,
  287. ...)
  288. { return(*(int *)0); }
  289. #undef field_type
  290. FIELDTYPE *field_type(
  291. const FIELD *field)
  292. { return(*(FIELDTYPE **)0); }
  293. /* ./fld_user.c */
  294. #undef set_field_userptr
  295. int set_field_userptr(
  296. FIELD *field,
  297. void *usrptr)
  298. { return(*(int *)0); }
  299. #undef field_userptr
  300. void *field_userptr(
  301. const FIELD *field)
  302. { return(*(void **)0); }
  303. /* ./frm_cursor.c */
  304. #undef pos_form_cursor
  305. int pos_form_cursor(
  306. FORM *form)
  307. { return(*(int *)0); }
  308. /* ./frm_data.c */
  309. #undef data_behind
  310. NCURSES_BOOL data_behind(
  311. const FORM *form)
  312. { return(*(NCURSES_BOOL *)0); }
  313. #undef data_ahead
  314. NCURSES_BOOL data_ahead(
  315. const FORM *form)
  316. { return(*(NCURSES_BOOL *)0); }
  317. /* ./frm_def.c */
  318. #undef _nc_Default_Form
  319. FORM *_nc_Default_Form;
  320. #undef new_form
  321. FORM *new_form(
  322. FIELD **fields)
  323. { return(*(FORM **)0); }
  324. #undef free_form
  325. int free_form(
  326. FORM *form)
  327. { return(*(int *)0); }
  328. #undef set_form_fields
  329. int set_form_fields(
  330. FORM *form,
  331. FIELD **fields)
  332. { return(*(int *)0); }
  333. #undef form_fields
  334. FIELD **form_fields(
  335. const FORM *form)
  336. { return(*(FIELD ***)0); }
  337. #undef field_count
  338. int field_count(
  339. const FORM *form)
  340. { return(*(int *)0); }
  341. /* ./frm_driver.c */
  342. #undef _nc_Position_Form_Cursor
  343. int _nc_Position_Form_Cursor(
  344. FORM *form)
  345. { return(*(int *)0); }
  346. #undef _nc_Refresh_Current_Field
  347. int _nc_Refresh_Current_Field(
  348. FORM *form)
  349. { return(*(int *)0); }
  350. #undef _nc_Synchronize_Attributes
  351. int _nc_Synchronize_Attributes(
  352. FIELD *field)
  353. { return(*(int *)0); }
  354. #undef _nc_Synchronize_Options
  355. int _nc_Synchronize_Options(
  356. FIELD *field,
  357. Field_Options newopts)
  358. { return(*(int *)0); }
  359. #undef _nc_Set_Current_Field
  360. int _nc_Set_Current_Field(
  361. FORM *form,
  362. FIELD *newfield)
  363. { return(*(int *)0); }
  364. #undef _nc_Internal_Validation
  365. NCURSES_BOOL _nc_Internal_Validation(
  366. FORM *form)
  367. { return(*(NCURSES_BOOL *)0); }
  368. #undef _nc_First_Active_Field
  369. FIELD *_nc_First_Active_Field(
  370. FORM *form)
  371. { return(*(FIELD **)0); }
  372. #undef _nc_Set_Form_Page
  373. int _nc_Set_Form_Page(
  374. FORM *form,
  375. int page,
  376. FIELD *field)
  377. { return(*(int *)0); }
  378. typedef struct
  379. {
  380. int keycode;
  381. int (*cmd) (FORM *);
  382. }
  383. Binding_Info;
  384. #undef form_driver
  385. int form_driver(
  386. FORM *form,
  387. int c)
  388. { return(*(int *)0); }
  389. #undef set_field_buffer
  390. int set_field_buffer(
  391. FIELD *field,
  392. int buffer,
  393. const char *value)
  394. { return(*(int *)0); }
  395. #undef field_buffer
  396. char *field_buffer(
  397. const FIELD *field,
  398. int buffer)
  399. { return(*(char **)0); }
  400. /* ./frm_hook.c */
  401. #undef set_field_init
  402. int set_field_init(
  403. FORM *form,
  404. Form_Hook func)
  405. { return(*(int *)0); }
  406. #undef field_init
  407. Form_Hook field_init(
  408. const FORM *form)
  409. { return(*(Form_Hook *)0); }
  410. #undef set_field_term
  411. int set_field_term(
  412. FORM *form,
  413. Form_Hook func)
  414. { return(*(int *)0); }
  415. #undef field_term
  416. Form_Hook field_term(
  417. const FORM *form)
  418. { return(*(Form_Hook *)0); }
  419. #undef set_form_init
  420. int set_form_init(
  421. FORM *form,
  422. Form_Hook func)
  423. { return(*(int *)0); }
  424. #undef form_init
  425. Form_Hook form_init(
  426. const FORM *form)
  427. { return(*(Form_Hook *)0); }
  428. #undef set_form_term
  429. int set_form_term(
  430. FORM *form,
  431. Form_Hook func)
  432. { return(*(int *)0); }
  433. #undef form_term
  434. Form_Hook form_term(
  435. const FORM *form)
  436. { return(*(Form_Hook *)0); }
  437. /* ./frm_opts.c */
  438. #undef set_form_opts
  439. int set_form_opts(
  440. FORM *form,
  441. Form_Options opts)
  442. { return(*(int *)0); }
  443. #undef form_opts
  444. Form_Options form_opts(
  445. const FORM *form)
  446. { return(*(Form_Options *)0); }
  447. #undef form_opts_on
  448. int form_opts_on(
  449. FORM *form,
  450. Form_Options opts)
  451. { return(*(int *)0); }
  452. #undef form_opts_off
  453. int form_opts_off(
  454. FORM *form,
  455. Form_Options opts)
  456. { return(*(int *)0); }
  457. /* ./frm_page.c */
  458. #undef set_form_page
  459. int set_form_page(
  460. FORM *form,
  461. int page)
  462. { return(*(int *)0); }
  463. #undef form_page
  464. int form_page(
  465. const FORM *form)
  466. { return(*(int *)0); }
  467. /* ./frm_post.c */
  468. #undef post_form
  469. int post_form(
  470. FORM *form)
  471. { return(*(int *)0); }
  472. #undef unpost_form
  473. int unpost_form(
  474. FORM *form)
  475. { return(*(int *)0); }
  476. /* ./frm_req_name.c */
  477. #undef form_request_name
  478. const char *form_request_name(
  479. int request)
  480. { return(*(const char **)0); }
  481. #undef form_request_by_name
  482. int form_request_by_name(
  483. const char *str)
  484. { return(*(int *)0); }
  485. /* ./frm_scale.c */
  486. #undef scale_form
  487. int scale_form(
  488. const FORM *form,
  489. int *rows,
  490. int *cols)
  491. { return(*(int *)0); }
  492. /* ./frm_sub.c */
  493. #undef set_form_sub
  494. int set_form_sub(
  495. FORM *form,
  496. WINDOW *win)
  497. { return(*(int *)0); }
  498. #undef form_sub
  499. WINDOW *form_sub(
  500. const FORM *form)
  501. { return(*(WINDOW **)0); }
  502. /* ./frm_user.c */
  503. #undef set_form_userptr
  504. int set_form_userptr(
  505. FORM *form,
  506. void *usrptr)
  507. { return(*(int *)0); }
  508. #undef form_userptr
  509. void *form_userptr(
  510. const FORM *form)
  511. { return(*(void **)0); }
  512. /* ./frm_win.c */
  513. #undef set_form_win
  514. int set_form_win(
  515. FORM *form,
  516. WINDOW *win)
  517. { return(*(int *)0); }
  518. #undef form_win
  519. WINDOW *form_win(
  520. const FORM *form)
  521. { return(*(WINDOW **)0); }
  522. /* ./fty_alnum.c */
  523. typedef struct
  524. {
  525. int width;
  526. }
  527. alnumARG;
  528. #undef TYPE_ALNUM
  529. FIELDTYPE *TYPE_ALNUM;
  530. /* ./fty_alpha.c */
  531. typedef struct
  532. {
  533. int width;
  534. }
  535. alphaARG;
  536. #undef TYPE_ALPHA
  537. FIELDTYPE *TYPE_ALPHA;
  538. /* ./fty_enum.c */
  539. typedef struct
  540. {
  541. char **kwds;
  542. int count;
  543. NCURSES_BOOL checkcase;
  544. NCURSES_BOOL checkunique;
  545. }
  546. enumARG;
  547. #undef TYPE_ENUM
  548. FIELDTYPE *TYPE_ENUM;
  549. /* ./fty_int.c */
  550. typedef struct
  551. {
  552. int precision;
  553. long low;
  554. long high;
  555. }
  556. integerARG;
  557. #undef TYPE_INTEGER
  558. FIELDTYPE *TYPE_INTEGER;
  559. /* ./fty_ipv4.c */
  560. #undef TYPE_IPV4
  561. FIELDTYPE *TYPE_IPV4;
  562. /* ./fty_num.c */
  563. #include <locale.h>
  564. typedef struct
  565. {
  566. int precision;
  567. double low;
  568. double high;
  569. struct lconv *L;
  570. }
  571. numericARG;
  572. #undef TYPE_NUMERIC
  573. FIELDTYPE *TYPE_NUMERIC;
  574. /* ./fty_regex.c */
  575. #include <regex.h>
  576. typedef struct
  577. {
  578. regex_t *pRegExp;
  579. unsigned long *refCount;
  580. }
  581. RegExp_Arg;
  582. #undef TYPE_REGEXP
  583. FIELDTYPE *TYPE_REGEXP;