llib-lform 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. /****************************************************************************
  2. * Copyright (c) 1998 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 <dickey@clark.net> 1996,1997 *
  30. ****************************************************************************/
  31. /* LINTLIBRARY */
  32. /* ./fld_arg.c */
  33. #include "form.priv.h"
  34. #undef set_fieldtype_arg
  35. int set_fieldtype_arg(
  36. FIELDTYPE *typ,
  37. void *(*const make_arg)(
  38. va_list *p1),
  39. void *(*const copy_arg)(
  40. const void *p1),
  41. void (*const free_arg)(
  42. void *p1))
  43. { return(*(int *)0); }
  44. #undef field_arg
  45. void *field_arg(
  46. const FIELD *field)
  47. { return(*(void **)0); }
  48. /* ./fld_attr.c */
  49. #undef set_field_fore
  50. int set_field_fore(
  51. FIELD *field,
  52. chtype attr)
  53. { return(*(int *)0); }
  54. #undef field_fore
  55. chtype field_fore(
  56. const FIELD *field)
  57. { return(*(chtype *)0); }
  58. #undef set_field_back
  59. int set_field_back(
  60. FIELD *field,
  61. chtype attr)
  62. { return(*(int *)0); }
  63. #undef field_back
  64. chtype field_back(
  65. const FIELD *field)
  66. { return(*(chtype *)0); }
  67. /* ./fld_current.c */
  68. #undef set_current_field
  69. int set_current_field(
  70. FORM *form,
  71. FIELD *field)
  72. { return(*(int *)0); }
  73. #undef current_field
  74. FIELD *current_field(
  75. const FORM *form)
  76. { return(*(FIELD **)0); }
  77. #undef field_index
  78. int field_index(
  79. const FIELD *field)
  80. { return(*(int *)0); }
  81. /* ./fld_def.c */
  82. #undef _nc_Default_Field
  83. FIELD *_nc_Default_Field;
  84. #undef _nc_Make_Argument
  85. TypeArgument *_nc_Make_Argument(
  86. const FIELDTYPE *typ,
  87. va_list *ap,
  88. int *err)
  89. { return(*(TypeArgument **)0); }
  90. #undef _nc_Copy_Argument
  91. TypeArgument *_nc_Copy_Argument(
  92. const FIELDTYPE *typ,
  93. const TypeArgument *argp,
  94. int *err)
  95. { return(*(TypeArgument **)0); }
  96. #undef _nc_Free_Argument
  97. void _nc_Free_Argument(
  98. const FIELDTYPE *typ,
  99. TypeArgument *argp)
  100. { /* void */ }
  101. #undef _nc_Copy_Type
  102. bool _nc_Copy_Type(
  103. FIELD *dst,
  104. FIELD const *src)
  105. { return(*(bool *)0); }
  106. #undef _nc_Free_Type
  107. void _nc_Free_Type(
  108. FIELD *field)
  109. { /* void */ }
  110. #undef new_field
  111. FIELD *new_field(
  112. int rows,
  113. int cols,
  114. int frow,
  115. int fcol,
  116. int nrow,
  117. int nbuf)
  118. { return(*(FIELD **)0); }
  119. #undef free_field
  120. int free_field(
  121. FIELD *field)
  122. { return(*(int *)0); }
  123. /* ./fld_dup.c */
  124. #undef dup_field
  125. FIELD *dup_field(
  126. FIELD *field,
  127. int frow,
  128. int fcol)
  129. { return(*(FIELD **)0); }
  130. /* ./fld_ftchoice.c */
  131. #undef set_fieldtype_choice
  132. int set_fieldtype_choice(
  133. FIELDTYPE *typ,
  134. bool (*const next_choice)(
  135. FIELD *p1,
  136. const void *p2),
  137. bool (*const prev_choice)(
  138. FIELD *p1,
  139. const void *p2))
  140. { return(*(int *)0); }
  141. /* ./fld_ftlink.c */
  142. #undef link_fieldtype
  143. FIELDTYPE *link_fieldtype(
  144. FIELDTYPE *type1,
  145. FIELDTYPE *type2)
  146. { return(*(FIELDTYPE **)0); }
  147. /* ./fld_info.c */
  148. #undef field_info
  149. int field_info(
  150. const FIELD *field,
  151. int *rows,
  152. int *cols,
  153. int *frow,
  154. int *fcol,
  155. int *nrow,
  156. int *nbuf)
  157. { return(*(int *)0); }
  158. #undef dynamic_field_info
  159. int dynamic_field_info(
  160. const FIELD *field,
  161. int *drows,
  162. int *dcols,
  163. int *maxgrow)
  164. { return(*(int *)0); }
  165. /* ./fld_just.c */
  166. #undef set_field_just
  167. int set_field_just(
  168. FIELD *field,
  169. int just)
  170. { return(*(int *)0); }
  171. #undef field_just
  172. int field_just(
  173. const FIELD *field)
  174. { return(*(int *)0); }
  175. /* ./fld_link.c */
  176. #undef link_field
  177. FIELD *link_field(
  178. FIELD *field,
  179. int frow,
  180. int fcol)
  181. { return(*(FIELD **)0); }
  182. /* ./fld_max.c */
  183. #undef set_max_field
  184. int set_max_field(
  185. FIELD *field,
  186. int maxgrow)
  187. { return(*(int *)0); }
  188. /* ./fld_move.c */
  189. #undef move_field
  190. int move_field(
  191. FIELD *field,
  192. int frow,
  193. int fcol)
  194. { return(*(int *)0); }
  195. /* ./fld_newftyp.c */
  196. #undef _nc_Default_FieldType
  197. const FIELDTYPE *_nc_Default_FieldType = {0};
  198. #undef new_fieldtype
  199. FIELDTYPE *new_fieldtype(
  200. bool (*const field_check)(
  201. FIELD *p1,
  202. const void *p2),
  203. bool (*const char_check)(
  204. int p1,
  205. const void *p2))
  206. { return(*(FIELDTYPE **)0); }
  207. #undef free_fieldtype
  208. int free_fieldtype(
  209. FIELDTYPE *typ)
  210. { return(*(int *)0); }
  211. /* ./fld_opts.c */
  212. #undef set_field_opts
  213. int set_field_opts(
  214. FIELD *field,
  215. Field_Options opts)
  216. { return(*(int *)0); }
  217. #undef field_opts
  218. Field_Options field_opts(
  219. const FIELD *field)
  220. { return(*(Field_Options *)0); }
  221. #undef field_opts_on
  222. int field_opts_on(
  223. FIELD *field,
  224. Field_Options opts)
  225. { return(*(int *)0); }
  226. #undef field_opts_off
  227. int field_opts_off(
  228. FIELD *field,
  229. Field_Options opts)
  230. { return(*(int *)0); }
  231. /* ./fld_pad.c */
  232. #undef set_field_pad
  233. int set_field_pad(
  234. FIELD *field,
  235. int ch)
  236. { return(*(int *)0); }
  237. #undef field_pad
  238. int field_pad(
  239. const FIELD *field)
  240. { return(*(int *)0); }
  241. /* ./fld_page.c */
  242. #undef set_new_page
  243. int set_new_page(
  244. FIELD *field,
  245. bool new_page_flag)
  246. { return(*(int *)0); }
  247. #undef new_page
  248. bool new_page(
  249. const FIELD *field)
  250. { return(*(bool *)0); }
  251. /* ./fld_stat.c */
  252. #undef set_field_status
  253. int set_field_status(
  254. FIELD *field,
  255. bool status)
  256. { return(*(int *)0); }
  257. #undef field_status
  258. bool field_status(
  259. const FIELD *field)
  260. { return(*(bool *)0); }
  261. /* ./fld_type.c */
  262. #undef set_field_type
  263. int set_field_type(
  264. FIELD *field,
  265. FIELDTYPE *type,
  266. ...)
  267. { return(*(int *)0); }
  268. #undef field_type
  269. FIELDTYPE *field_type(
  270. const FIELD *field)
  271. { return(*(FIELDTYPE **)0); }
  272. /* ./fld_user.c */
  273. #undef set_field_userptr
  274. int set_field_userptr(
  275. FIELD *field,
  276. void *usrptr)
  277. { return(*(int *)0); }
  278. #undef field_userptr
  279. void *field_userptr(
  280. const FIELD *field)
  281. { return(*(void **)0); }
  282. /* ./frm_cursor.c */
  283. #undef pos_form_cursor
  284. int pos_form_cursor(
  285. FORM *form)
  286. { return(*(int *)0); }
  287. /* ./frm_data.c */
  288. #undef data_behind
  289. bool data_behind(
  290. const FORM *form)
  291. { return(*(bool *)0); }
  292. #undef data_ahead
  293. bool data_ahead(
  294. const FORM *form)
  295. { return(*(bool *)0); }
  296. /* ./frm_def.c */
  297. #undef _nc_Default_Form
  298. FORM *_nc_Default_Form;
  299. #undef new_form
  300. FORM *new_form(
  301. FIELD **fields)
  302. { return(*(FORM **)0); }
  303. #undef free_form
  304. int free_form(
  305. FORM *form)
  306. { return(*(int *)0); }
  307. #undef set_form_fields
  308. int set_form_fields(
  309. FORM *form,
  310. FIELD **fields)
  311. { return(*(int *)0); }
  312. #undef form_fields
  313. FIELD **form_fields(
  314. const FORM *form)
  315. { return(*(FIELD ***)0); }
  316. #undef field_count
  317. int field_count(
  318. const FORM *form)
  319. { return(*(int *)0); }
  320. /* ./frm_driver.c */
  321. #undef _nc_Position_Form_Cursor
  322. int _nc_Position_Form_Cursor(
  323. FORM *form)
  324. { return(*(int *)0); }
  325. #undef _nc_Refresh_Current_Field
  326. int _nc_Refresh_Current_Field(
  327. FORM *form)
  328. { return(*(int *)0); }
  329. #undef _nc_Synchronize_Attributes
  330. int _nc_Synchronize_Attributes(
  331. FIELD *field)
  332. { return(*(int *)0); }
  333. #undef _nc_Synchronize_Options
  334. int _nc_Synchronize_Options(
  335. FIELD *field,
  336. Field_Options newopts)
  337. { return(*(int *)0); }
  338. #undef _nc_Set_Current_Field
  339. int _nc_Set_Current_Field(
  340. FORM *form,
  341. FIELD *newfield)
  342. { return(*(int *)0); }
  343. #undef _nc_Internal_Validation
  344. bool _nc_Internal_Validation(
  345. FORM *form)
  346. { return(*(bool *)0); }
  347. #undef _nc_First_Active_Field
  348. FIELD *_nc_First_Active_Field(
  349. FORM *form)
  350. { return(*(FIELD **)0); }
  351. #undef _nc_Set_Form_Page
  352. int _nc_Set_Form_Page(
  353. FORM *form,
  354. int page,
  355. FIELD *field)
  356. { return(*(int *)0); }
  357. typedef struct {
  358. int keycode;
  359. int (*cmd)(FORM *);
  360. } Binding_Info;
  361. #undef form_driver
  362. int form_driver(
  363. FORM *form,
  364. int c)
  365. { return(*(int *)0); }
  366. #undef set_field_buffer
  367. int set_field_buffer(
  368. FIELD *field,
  369. int buffer,
  370. const char *value)
  371. { return(*(int *)0); }
  372. #undef field_buffer
  373. char *field_buffer(
  374. const FIELD *field,
  375. int buffer)
  376. { return(*(char **)0); }
  377. /* ./frm_hook.c */
  378. #undef set_field_init
  379. int set_field_init(
  380. FORM *form,
  381. Form_Hook func)
  382. { return(*(int *)0); }
  383. #undef field_init
  384. Form_Hook field_init(
  385. const FORM *form)
  386. { return(*(Form_Hook *)0); }
  387. #undef set_field_term
  388. int set_field_term(
  389. FORM *form,
  390. Form_Hook func)
  391. { return(*(int *)0); }
  392. #undef field_term
  393. Form_Hook field_term(
  394. const FORM *form)
  395. { return(*(Form_Hook *)0); }
  396. #undef set_form_init
  397. int set_form_init(
  398. FORM *form,
  399. Form_Hook func)
  400. { return(*(int *)0); }
  401. #undef form_init
  402. Form_Hook form_init(
  403. const FORM *form)
  404. { return(*(Form_Hook *)0); }
  405. #undef set_form_term
  406. int set_form_term(
  407. FORM *form,
  408. Form_Hook func)
  409. { return(*(int *)0); }
  410. #undef form_term
  411. Form_Hook form_term(
  412. const FORM *form)
  413. { return(*(Form_Hook *)0); }
  414. /* ./frm_opts.c */
  415. #undef set_form_opts
  416. int set_form_opts(
  417. FORM *form,
  418. Form_Options opts)
  419. { return(*(int *)0); }
  420. #undef form_opts
  421. Form_Options form_opts(
  422. const FORM *form)
  423. { return(*(Form_Options *)0); }
  424. #undef form_opts_on
  425. int form_opts_on(
  426. FORM *form,
  427. Form_Options opts)
  428. { return(*(int *)0); }
  429. #undef form_opts_off
  430. int form_opts_off(
  431. FORM *form,
  432. Form_Options opts)
  433. { return(*(int *)0); }
  434. /* ./frm_page.c */
  435. #undef set_form_page
  436. int set_form_page(
  437. FORM *form,
  438. int page)
  439. { return(*(int *)0); }
  440. #undef form_page
  441. int form_page(
  442. const FORM *form)
  443. { return(*(int *)0); }
  444. /* ./frm_post.c */
  445. #undef post_form
  446. int post_form(
  447. FORM *form)
  448. { return(*(int *)0); }
  449. #undef unpost_form
  450. int unpost_form(
  451. FORM *form)
  452. { return(*(int *)0); }
  453. /* ./frm_req_name.c */
  454. #undef form_request_name
  455. const char *form_request_name(
  456. int request)
  457. { return(*(const char **)0); }
  458. #undef form_request_by_name
  459. int form_request_by_name(
  460. const char *str)
  461. { return(*(int *)0); }
  462. /* ./frm_scale.c */
  463. #undef scale_form
  464. int scale_form(
  465. const FORM *form,
  466. int *rows,
  467. int *cols)
  468. { return(*(int *)0); }
  469. /* ./frm_sub.c */
  470. #undef set_form_sub
  471. int set_form_sub(
  472. FORM *form,
  473. WINDOW *win)
  474. { return(*(int *)0); }
  475. #undef form_sub
  476. WINDOW *form_sub(
  477. const FORM *form)
  478. { return(*(WINDOW **)0); }
  479. /* ./frm_user.c */
  480. #undef set_form_userptr
  481. int set_form_userptr(
  482. FORM *form,
  483. void *usrptr)
  484. { return(*(int *)0); }
  485. #undef form_userptr
  486. void *form_userptr(
  487. const FORM *form)
  488. { return(*(void **)0); }
  489. /* ./frm_win.c */
  490. #undef set_form_win
  491. int set_form_win(
  492. FORM *form,
  493. WINDOW *win)
  494. { return(*(int *)0); }
  495. #undef form_win
  496. WINDOW *form_win(
  497. const FORM *form)
  498. { return(*(WINDOW **)0); }
  499. /* ./fty_alnum.c */
  500. typedef struct {
  501. int width;
  502. } alnumARG;
  503. #undef TYPE_ALNUM
  504. FIELDTYPE *TYPE_ALNUM;
  505. /* ./fty_alpha.c */
  506. typedef struct {
  507. int width;
  508. } alphaARG;
  509. #undef TYPE_ALPHA
  510. FIELDTYPE *TYPE_ALPHA;
  511. /* ./fty_enum.c */
  512. typedef struct {
  513. char **kwds;
  514. int count;
  515. bool checkcase;
  516. bool checkunique;
  517. } enumARG;
  518. #undef TYPE_ENUM
  519. FIELDTYPE *TYPE_ENUM;
  520. /* ./fty_int.c */
  521. typedef struct {
  522. int precision;
  523. long low;
  524. long high;
  525. } integerARG;
  526. #undef TYPE_INTEGER
  527. FIELDTYPE *TYPE_INTEGER;
  528. /* ./fty_ipv4.c */
  529. #undef TYPE_IPV4
  530. FIELDTYPE *TYPE_IPV4;
  531. /* ./fty_num.c */
  532. #include <locale.h>
  533. typedef struct {
  534. int precision;
  535. double low;
  536. double high;
  537. struct lconv* L;
  538. } numericARG;
  539. #undef TYPE_NUMERIC
  540. FIELDTYPE *TYPE_NUMERIC;
  541. /* ./fty_regex.c */
  542. #include <regex.h>
  543. typedef struct
  544. {
  545. regex_t *pRegExp;
  546. unsigned long *refCount;
  547. } RegExp_Arg;
  548. #undef TYPE_REGEXP
  549. FIELDTYPE *TYPE_REGEXP;