home *** CD-ROM | disk | FTP | other *** search
- /* ==( bench/userfunc.c )== */
-
- /* ----------------------------------------------- */
- /* Pro-C - Copyright (C) 1988, 1989 Vestronix Inc. */
- /* Modification to this source is not supported */
- /* by Vestronix Inc. */
- /* All Rights Reserved */
- /* ----------------------------------------------- */
- /* Written Bob 1-May-90 */
- /* ----------------------------------------------- */
- /* %W% (%H% %T%) */
-
- /*
- * Modifications
- *
- * 10-May-90 Geo - 1.32 Merge
- */
-
- #include <stdio.h>
- #include <bench.h>
- #include <field.h>
- #include <proc.io>
-
- /*
- * User funcdtion to force inquire mode on an update x-ref link
- * May-10-90
- */
-
- int forceinq(fld)
- FIELD *fld;
- {
- extern int glob_mode;
-
- if (glob_mode == K_F5)
- return;
-
- /*
- * if using function keys and F5 for inquire mode
- * 1) use F5 for function keys
- * 2) use I for menus
- */
- unget_inchar(K_F5);
-
- /*
- * return control back to driving table
- */
- unget_inchar(K_ESC);
-
- if (fld->f_pre != (int (*)())0)
- (*fld->f_pre)(fld);
-
- return(TRUE);
- }
-
-
- int forcepop(fld)
- FIELD *fld;
- {
- unget_inchar(K_F6);
- return(TRUE);
- }
-
-
-