cbslib_h

/*
**	Copyright 1991-2017, Fermi Research Alliance, LLC.  All rights reserved.
*/
/******************************************************************************/
/* cbslib.h
**
**	function prototypes and defined constants for argument values for
**	second generation CLIB routines
**
**	V0.1	B S Hendricks / Accelerator Controls		01-Jun-94
**	Added function prototype case insensitivity definitions
**
**	V0.2	R Neswold / Accelerator Controls                13-Mar-95
**	Added declarations for the linked list library
**
*/
/******************************************************************************/

#ifndef CBSLIB_DEFINED				/* do this only once */
#define	CBSLIB_DEFINED

//    #include <X11/X.h>				/* correct case should be X11/X.h */
    #include <stdio.h>
    #include <stdarg.h>
    #include <stddef.h>				/* needed for size_t definition */
    #include <string>				/* for C++ std::string */
    #include "cnsparam.h"
    #include "cns_data_structs.h"
    #include "clib.h"
    #include "clib_memory.h"
    #include "scriptor.h"
    #include "nodedefs.h"
    #include "acnet_errors.h"                   /* CLIB_OK, etc. returned by various functions */
    #include "numeric_conversions.h"
    #include "alarmsapp.h"

/******************************************************************************/
/*
**	defined constants for argument values
*/
/******************************************************************************/

    #define	CBS_FALSE		0
    #define	CBS_TRUE		1

    #define	LINE_THIN		1
    #define	LINE_THICK		2

/*
**  srlex ...
*/
    #define	SRL_ALL			-1	/* all items */
    #define	SRL_WMOD		0	/* write mode */
    #define	SRL_CMOD		0	/* color mode */
    #define	SRL_FMOD		1	/* fill mode */
    #define	SRL_TSIZ		2	/* text size */
    #define	SRL_TROT		3	/* text size and rotation */
    #define	SRL_TWRT		4	/* text write */
    #define	SRL_VID			5	/* video mode */
    #define	SRL_VWID		6	/* vector width */
    #define	SRL_PDEF		7	/* pattern definition */
    #define	SRL_PSIZ		8	/* pattern defintion */

/*
** error_display...
*/
    #define	LOG_NONE		0	/* write to no log */
    #define	LOG_SHR			1	/* use program log */
    #define	LOG_PROGRAM		1	/* use program log */
    #define	LOG_LCL			2	/* use console log */
    #define	LOG_CONSOLE		2	/* use console log */
    #define	LOG_BOTH		3	/* use both logs */

    #define	TV_PERM			0	/* write to TV */
    #define	TV_ACK			-1	/* write to acknowledge window */

    #define	ERR_NONE		1	/* write message only */
    #define	ERR_ACNET		2	/* decode acnet type error */
    #define	ERR_INT			3	/* decode integer error */
    #define	ERR_SYS			4	/* decode VMS system error */
    #define	ERR_DEVNAM		5	/* include ACNET device name */
    #define	ERR_RTL			6	/* decode C RTL error */

    #define	ERR_SIMPLE_DISPLAY	0	/* simply display message */
    #define	ERR_ACKNOWLEDGE		-1	/* display requiring acknowledge message */

    #define	ERR_NO_DISPLAY		-1	/* no display wanted */
    #define	ERR_LOG_ONLY		-1	/* log errors only (no display wanted) */

    #define	ERR_MAXLEN		256	/* maximum length of error_display message */

    #define	ERR_UTILEN		6	/* length of UTI identifier string */

    #define	ERR_DEFAULT_PRIORITY	-1	/* default error message priority */

    #define	ERR_NO_ERASE		0	/* disable automatic error erases */

    #define	ERR_DISABLE_CLIPPING	0	/* disable error clipping */

    #define	ERR_NONCNS_MESSAGE_LIMIT	1000	/* noncns printf default limit **/

    #define	ERR_LOG_IT		(TRUE)	/* write this message to a log file */
    #define	ERR_NO_LOG		(FALSE)	/* don't write this message to a log file */

    #define	ERR_USE_WINDOW_MANAGER	(TRUE)	/* display using window manager routines */
    #define	ERR_USE_TV_ROUTINES	(FALSE)	/* display using primitive TV routines */

    #define	ERR_OPT_NONE			0	/* no options selected */
    #define	ERR_DISABLE_ERROR_TEXT		0	/* display ACNET facility text and error number */
    #define	ERR_OPT_DISABLE_ERROR_TEXT	0	/* display ACNET facility text and error number */
    #define	ERR_ENABLE_ERROR_TEXT		1	/* display full ACNET error text */
    #define	ERR_OPT_ENABLE_ERROR_TEXT	1	/* display full ACNET error text */
    #define	ERR_OPT_HORIZONTAL_SCROLL	2	/* display full ACNET error text */

    #define	ERR_IMBEDDED_DISABLED		0	/* embedded error and informational messages are disabled */
    #define	ERR_IMBEDDED_ALL_ENABLED	1	/* embedded error and informational messages are enabled */
    #define	ERR_IMBEDDED_ERRORS_ENABLED	3	/* embedded error messages are enabled (but informational messages are disabled) */

    #define	ERR_EMBEDDED_DISABLED		0	/* embedded error and informational messages are disabled */
    #define	ERR_EMBEDDED_ALL_ENABLED	1	/* embedded error and informational messages are enabled */
    #define	ERR_EMBEDDED_ERRORS_ENABLED	3	/* embedded error messages are enabled (but informational messages are disabled) */

/*
** logging facility...
*/
    #define	LOG_INF			0	/* write informational message to log */
    #define	LOG_ERROR		1	/* write error message to log */

    #define	LOG_FULL		0	/* display full log message */
    #define	LOG_TEXT		1	/* display only the text of the log message */
    #define	LOG_DATETEXT		2	/* display the text of the log message as well as its date */

    #define	LOG_NO_FILTER		0	/* no filter */
    #define	LOG_FILTER_ON_TYPE	1	/* filter on message type */
    #define	LOG_FILTER_ON_PRIORITY	2	/* filter on message priority */
    #define	LOG_FILTER_ON_AUTHOR	3	/* filter on message author */
    #define	LOG_FILTER_ON_MESSAGE	4	/* filter on message text */

//    #define	LOG_MESSLEN		80	/* length of log message text */
    #define	LOG_MESSLEN		128	/* length of log message text */
    #define	LOG_NAMLEN		8	/* length of log file name */
    #define	LOG_AUTLEN		6	/* length of log author string */
    #define	LOG_AUTLEN_FULL		10	/* full length of log author string (including console info) */
    #define	LOG_MATCHLEN		20	/* number of characters to match for substring search */

    #define	LOG_ENTRY_TEXT		1	/* user interrupt on text */
    #define	LOG_ENTRY_HEADER	2	/* user interrupt on entry header */
    #define	LOG_ENTRY_DATE_TEXT	3	/* user interrupt on date and text */

typedef struct  LOG_KBD_INFO			/* users return data */
    {
    int     entry_type;     /* type of log entry selected */
    char    *entry_text;        /* pointer to log entry text-string */
    int     entry_offset;       /* user offset into text */
    } __attribute__((packed)) LOG_KBD_INFO;

typedef void (*LOG_KBD_ROUTINE)(LOG_KBD_INFO *entry_kbd);	/* user's routine */

typedef void (*log_read_function)(LOG_KBD_INFO *entry_kbd);	/* log_read interrupt callback function */

/*
** window manager...
*/
    #define	WMNGR_NO_SPECIAL	0	/* no special interrupts detected */
    #define	WMNGR_EXPOSED		1	/* a window has been exposed */
    #define	WMNGR_SCROLL_UP		2	/* scroll window up one line */
    #define	WMNGR_SCROLL_UP_PAGE	3	/* scroll window up one page */
    #define	WMNGR_SCROLL_DOWN	4	/* scroll window down one line */
    #define	WMNGR_SCROLL_DOWN_PAGE	5	/* scroll window down one page */
    #define	WMNGR_MOVE		6	/* a window move request has been made */
    #define	WMNGR_RESIZE		7	/* a window resize request has been made */
    #define	WMNGR_WINDOW_POPPED	8	/* window was popped to the front */
    #define	WMNGR_SCROLL_STATUS	9	/* interrupt in scroll status field */
    #define	WMNGR_DRAG_SCROLL_BAR	10	/* drag scroll bar */
    #define	WMNGR_SCROLL_LEFT	11	/* scroll window left one character */
    #define	WMNGR_SCROLL_LEFT_PAGE	12	/* scroll window left one character */
    #define	WMNGR_SCROLL_RIGHT	13	/* scroll window right one character */
    #define	WMNGR_SCROLL_RIGHT_PAGE	14	/* scroll window right one character */
    #define	WMNGR_DRAG_HSCROLL_BAR	15	/* drag horizontal scroll bar */
    #define	WMNGR_FIND_TEXT		16	/* find action taken */
    #define	WMNGR_OCCLUDED		17	/* a window has been occluded */
    #define	WMNGR_USER_OPERATION	100	/* a program-specific operation has occurred */

    #define	WMNGR_OP_TYPE_NONE	0	/* no window operation is in progress */
    #define	WMNGR_OP_TYPE_EXPOSING	1	/* a window is being exposed */
    #define	WMNGR_OP_TYPE_MOVING	6	/* a window is being moved */
    #define	WMNGR_OP_TYPE_RESIZING	7	/* a window is being resized */
    #define	WMNGR_OP_TYPE_OCCLUDING	17	/* a window is being occluded */

    #define	WMNGR_OPT_NONE		0	/* no options selected */
    #define	WMNGR_OPT_USE_DIALOG	1	/* use dialog windows */
    #define	WMNGR_OPT_ALLOW_TRUNCATED	2	/* allow truncated values */
    #define	WMNGR_OPT_SCREEN_COORDS	4	/* treat coordinates as screen coordinates */
    #define	WMNGR_OPT_NO_HIGHLIGHT	8	/* suppress automatic highlighting */

    #define	WMNGR_WHOLE_WINDOW	1	/* act on the entire window */
    #define	WMNGR_SCROLL_BUFFER	2	/* act only on the scroll buffer */

    #define	WMNGR_TOP_BORDER	0x80000002	/* indicates window top border */
    #define	WMNGR_BOTTOM_BORDER	0x80000003	/* indicates window bottom border */

    #define	WMNGR_INVARG		0x80000004	/* indicates invalid passed argument */
    #define	WMNGR_NO_WINDOW		0x80000005	/* indicates window does not exist */

    #define	WMNGR_INITIAL_ROW	0x80000000	/* initial row for sequential I/O */

    #define	WMNGR_SAVE		0
    #define	WMNGR_RESTORE		1

    #define	WMNGR_UP		0	/* scroll up */
    #define	WMNGR_DOWN		1	/* scroll down */

    #define	WMNGR_LEFT		4	/* scroll left */
    #define	WMNGR_RIGHT		8	/* scroll right */

    #define	WMNGR_OUTSIDE		0
    #define	WMNGR_INSIDE		1
    #define	WMNGR_BORDER		2

    #define	WMNGR_NO_DISPLAY		0	/* don't display */
    #define	WMNGR_DISPLAY_ALWAYS		1	/* display at all times */
    #define	WMNGR_DISPLAY_WHEN_NEEDED	2	/* display only when prescribed conditions are met */

    #define	WMNGR_BACKGROUND		0	/* background text ID */
    #define	WMNGR_ALL_WINDOWS		(WMNGR_BACKGROUND - 1)	/* act on all windows */
    #define	WMNGR_INVALID_ID		(WMNGR_BACKGROUND - 2)	/* invalid window ID */
    #define	WMNGR_CURRENT_WINDOW		0x8000	/* indicates window currently being accessed */
    #define	WMNGR_WHOLE_DISPLAY		0x8001	/* whole visible display */
    #define	WMNGR_NEXT_WINDOW_CREATED	0x8002	/* indicates ID of next window to be created */
    #define	WMNGR_LAST_WINDOW_DELETED	0x8003	/* indicates ID of last window deleted */
    #define	WMNGR_ERROR_WINDOW		0x8004	/* indicates ID of error display window */

    #define	WMNGR_INVALID_ROW	0x80000004	/* invalid row number */
    #define	WMNGR_INVALID_COLUMN	0x80000004	/* invalid column number */

    #define	WMNGR_NO_DRAW		1	/* don't draw window image */
    #define	WMNGR_DRAW_IT		0	/* draw window image */

    #define	WMNGR_NO_CLIP		0	/* clipping is disabled */
    #define	WMNGR_CLIP_IT		1	/* clipping is enabled */

    #define	WMNGR_NOT_POPUP		0	/* is not a popup window */
    #define	WMNGR_IS_POPUP		1	/* is a popup window */

    #define	WMNGR_NO_SCROLL		0	/* no scroll bar requested */
    #define	WMNGR_SCROLL_IT		1	/* make a vertical scroll bar */
    #define	WMNGR_SCROLL_DISABLED	2	/* make a vertical scroll bar, but disable the indicator */
    #define	WMNGR_VERT_SCROLL_IT	(WMNGR_SCROLL_IT | WMNGR_SCROLL_DISABLED)	/* make a vertical scroll bar */
    #define	WMNGR_HORZ_SCROLL_IT	4	/* make a horizontal scroll bar */

    #define	WMNGR_NO_MOVE		0	/* moving and resizing disabled */
    #define	WMNGR_MOVE_IT		2	/* moving is enabled */
    #define	WMNGR_RESIZE_IT		3	/* resizing is enabled */
    #define	WMNGR_MOVE_AND_RESIZE	1	/* moving and resizing enabled */

    #define	WMNGR_REPAINT		0	/* repaint occluded windows */
    #define	WMNGR_RESTORE_BKGND	1	/* save and restore underlying text */
    #define	WMNGR_RESTORE_BACKGROUND	(WMNGR_RESTORE_BKGND)	/* save and restore underlying text */
    #define	WMNGR_POPUP		(WMNGR_RESTORE_BKGND)	/* save and restore underlying text */

    #define	WMNGR_BORDER_NONE	0
    #define	WMNGR_BORDER_THIN	LINE_THIN
    #define	WMNGR_BORDER_THICK	LINE_THICK

    #define	WMNGR_THIN_LINE		LINE_THIN	/* thin line */
    #define	WMNGR_THICK_LINE	LINE_THICK	/* thick line */

    #define	WMNGR_RESIZE_BOTH	0	/* resize both dimensions */
    #define	WMNGR_RESIZE_HEIGHT	1	/* resize height only */
    #define	WMNGR_RESIZE_WIDTH	2	/* resize width only */

    #define	WMNGR_LEAVE_WINDOW	0	/* leave window where it is */
    #define	WMNGR_POP_WINDOW	1	/* pop window to the front */

    #define	WMNGR_LEAVE_SCREEN	0	/* leave screen size as it is */
    #define	WMNGR_RESTORE_SCREEN	1	/* restore previous screen size */

    #define	WMNGR_RESTORE_CURSOR	-1	/* restore cursor position to where it was when the window was created */
    #define	WMNGR_LEAVE_CURSOR	0	/* leave cursor where it is */

    #define	WMNGR_INT_INIT		1	/* active on initialize interrupt */
    #define	WMNGR_INT_TERM		2	/* active on terminate interrupt */
    #define	WMNGR_INT_KBD		4	/* active on keyboard interrupts */
    #define	WMNGR_INT_PER		8	/* active on periodic interrupts */
    #define	WMNGR_INT_KEYUP		0x20	/* active on key up interrupts */
    #define	WMNGR_INT_DOUBLE	0x40	/* active on double clicks */
    #define	WMNGR_INT_KBD_LX	0x80	/* active on keyboard interrupts in an LX window */
    #define	WMNGR_INT_FOCUSIN	0x100	/* active on TV focus in events */
    #define	WMNGR_INT_FOCUSOUT	0x200	/* active on TV focus out events */
    #define	WMNGR_INT_SHIFT_KBD	0x400	/* active on shift click events */
    #define	WMNGR_INT_CTRL_KBD	0x800	/* active on control click events */
    #define	WMNGR_INT_ALT_KBD	0x1000	/* active on alt click events */
    #define	WMNGR_INT_SHIFT_KBD_LX	0x2000	/* active on shift click events in an LX window */
    #define	WMNGR_INT_CTRL_KBD_LX	0x4000	/* active on control click events in an LX window */
    #define	WMNGR_INT_ALT_KBD_LX	0x8000	/* active on alt click events in an LX window */
    #define	WMNGR_INT_RIGHT_CLICK	0x10000	/* active on right mouse click events */
    #define	WMNGR_INT_BTN3		0x10000	/* active on right mouse click events */
    #define	WMNGR_INT_ALL		\
(WMNGR_INT_INIT | WMNGR_INT_TERM | WMNGR_INT_KBD | WMNGR_INT_PER |\
 WMNGR_INT_KEYUP | WMNGR_INT_DOUBLE | WMNGR_INT_KBD_LX |\
 WMNGR_INT_FOCUSIN | WMNGR_INT_FOCUSOUT | WMNGR_INT_SHIFT_KBD |\
 WMNGR_INT_CTRL_KBD | WMNGR_INT_ALT_KBD |\
 WMNGR_INT_SHIFT_KBD_LX | WMNGR_INT_CTRL_KBD_LX | WMNGR_INT_ALT_KBD_LX |\
 WMNGR_INT_RIGHT_CLICK)
    #define	WMNGR_INT_ENTER_FIELD	0x40000000	/* active on entering a callback field */
    #define	WMNGR_INT_LEAVE_FIELD	0x80000000	/* active on leaving a callback field */

    #define	WMNGR_INT_ALL_KBD	(WMNGR_INT_KBD |\
WMNGR_INT_SHIFT_KBD | WMNGR_INT_CTRL_KBD | WMNGR_INT_ALT_KBD)	/* active on all keyboard interrupts in a TV window */
    #define	WMNGR_INT_ALL_KBD_LX	(WMNGR_INT_KBD_LX |\
WMNGR_INT_SHIFT_KBD_LX | WMNGR_INT_CTRL_KBD_LX | WMNGR_INT_ALT_KBD_LX)	/* active on all keyboard interrupts in an LX window */

    #define	WMNGR_DFLT_CALLBACK_PRIORITY	0	/* default window callback priority */
    #define	WMNGR_MIN_CALLBACK_PRIORITY	0	/* minimum window callback priority */
    #define	WMNGR_MAX_CALLBACK_PRIORITY	255	/* maximum window callback priority */

    #define	WMNGR_NO_ENDS		0	/* no special end characters */
    #define	WMNGR_TEES		1	/* use 'tees' as line end characters */
    #define	WMNGR_TOP_CORNERS	2	/* use top corners as line end characters */
    #define	WMNGR_LEFT_CORNERS	2	/* use left corners as line end characters */
    #define	WMNGR_BOT_CORNERS	3	/* use bottom corners as line end characters */
    #define	WMNGR_RIGHT_CORNERS	3	/* use right corners as line end characters */

    #define	WMNGR_INTERSECT_LINES	1	/* preserve line intersections */
    #define	WMNGR_NO_INTERSECT_LINES	0	/* ignore line intersections */

    #define	WMNGR_OPT_INTERSECT_LINES	1	/* preserve line intersections */
    #define	WMNGR_OPT_NO_INTERSECT_LINES	0	/* ignore line intersections */

    #define	WMNGR_CENTER_IT		-1	/* argument value for window_create to center the window in that plane */
    #define	WMNGR_CENTER		0x80000001	/* argument value for window_create to center the window in that plane */
    #define	WMNGR_ENTIRE_WINDOW	0x80000008	/* entire window */
    #define	WMNGR_ENTIRE_INTERIOR	0x80000009	/* interior of window */
    #define	WMNGR_ENTIRE_LINE	0x8000000A	/* use entire line */

    #define	WMNGR_FIT_TITLE		0x8000000E	/* size window to fit title */

    #define	WMNGR_AUTO_SIZE		0x8000000F	/* auto size window */

    #define	WMNGR_CENTER_TO_WIN	0x40000000	/* center relative to another window */
    #define	WMNGR_ALIGN_TO_WIN	0x20000000	/* align relative to a coordinate in another window */
    #define	WMNGR_ALIGN_TO_WHOLE_WIN	0x10000000	/* align relative to another window */
    #define	WMNGR_CENTER_TO_WHOLE_WIN	(WMNGR_CENTER_TO_WIN | WMNGR_ALIGN_TO_WHOLE_WIN)	/* center to entire window */
    #define	WMNGR_ALIGN_TO_ABOVE	0x08000000	/* align above a window location */
    #define	WMNGR_ALIGN_TO_BELOW	0x04000000	/* align below a window location */
    #define	WMNGR_ALIGN_TO_ABOVE_OR_BELOW	0x0C000000	/* align above or below a window location */
    #define	WMNGR_ALIGN_TO_LEFT	0x08000000	/* align to the left of a window location */
    #define	WMNGR_ALIGN_TO_RIGHT	0x04000000	/* align to the right of a window location */
    #define	WMNGR_ALIGN_TO_LEFT_OR_RIGHT	0x0C000000	/* align to the left or right of a window location */
    #define	WMNGR_ALIGN_TO_MENUBAR	0x02000000	/* align relative to a menu bar field */
    #define	WMNGR_ALIGN_ABOVE_WHOLE_WIN	(WMNGR_ALIGN_TO_ABOVE | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position above entire window */
    #define	WMNGR_ALIGN_BELOW_WHOLE_WIN	(WMNGR_ALIGN_TO_BELOW | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position below entire window */
    #define	WMNGR_ALIGN_ABOVE_OR_BELOW_WHOLE_WIN	(WMNGR_ALIGN_TO_ABOVE_OR_BELOW | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position above or below entire window */
    #define	WMNGR_ALIGN_LEFT_WHOLE_WIN	(WMNGR_ALIGN_TO_LEFT | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position to the left of entire window */
    #define	WMNGR_ALIGN_RIGHT_WHOLE_WIN	(WMNGR_ALIGN_TO_RIGHT | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position to the right of entire window */
    #define	WMNGR_ALIGN_LEFT_OR_RIGHT_WHOLE_WIN	(WMNGR_ALIGN_TO_LEFT_OR_RIGHT | WMNGR_ALIGN_TO_WHOLE_WIN)	/* position to the left or right of entire window */
    #define	WMNGR_WANT_POS_ERROR	0x02000000	/* return error if window cannot be placed at the requested location */

    #define	WMNGR_SPECIAL_COORD_MASK	0xFE000000	/* special coordinate mask */

    #define	WMNGR_CENTER_HOR	1	/* center horizontally */
    #define	WMNGR_CENTER_VER	2	/* center vertically */
    #define	WMNGR_CENTER_BOTH	3	/* center in both planes */
    #define	WMNGR_ALIGN_HORZ	4	/* center horizontally */
    #define	WMNGR_ALIGN_VERT	8	/* center vertically */
    #define	WMNGR_ALIGN_BOTH	0xC	/* center in both planes */
    #define	WMNGR_CENTER_ALIGN_HORZ	0x10	/* center horizontally relative to a window coordinate */
    #define	WMNGR_CENTER_ALIGN_VERT	0x20	/* center vertically relative to a window coordinate */
    #define	WMNGR_CENTER_ALIGN_BOTH	0x30	/* center in both planes relative to window coordinates */
    #define	WMNGR_ALIGN_ABOVE	0x40	/* align above the desired position */
    #define	WMNGR_ALIGN_BELOW	0x80	/* align below the desired position */
    #define	WMNGR_ALIGN_ABOVE_OR_BELOW	0xC0	/* align above or below the desired position */
    #define	WMNGR_ALIGN_LEFT	0x100	/* align to the left of the desired position */
    #define	WMNGR_ALIGN_RIGHT	0x200	/* align to the right of the desired position */
    #define	WMNGR_ALIGN_LEFT_OR_RIGHT	0x300	/* align to the left or right of the desired position */
    #define	WMNGR_ALIGN_ABOVE_WIN	0x400	/* position above the window */
    #define	WMNGR_ALIGN_BELOW_WIN	0x800	/* position below the window */
    #define	WMNGR_ALIGN_ABOVE_OR_BELOW_WIN	0xC00	/* position above or below the window */
    #define	WMNGR_ALIGN_LEFT_WIN	0x1000	/* position to the left of the window */
    #define	WMNGR_ALIGN_RIGHT_WIN	0x2000	/* position to the right of the window */
    #define	WMNGR_ALIGN_LEFT_OR_RIGHT_WIN	0x3000	/* position to the left or right of the window */

    #define	WMNGR_POS_ERROR_NONE	0	/* don't report any positioning errors */
    #define	WMNGR_POS_ERROR_HORZ	1	/* report only horizontal positioning errors */
    #define	WMNGR_POS_ERROR_VERT	2	/* report only vertical positioning errors */
    #define	WMNGR_POS_ERROR_BOTH	3	/* report any positioning errors */

    #define	WMNGR_UPPER_CASE	0	/* convert to upper case */
    #define	WMNGR_MIXED_CASE	1	/* allow mixed case */
    #define	WMNGR_LOWER_CASE	2	/* convert to lower case */

    #define	WMNGR_MIN_SIZE		3	/* minimum allowable window size when resizing */

    #define	WMNGR_BORDER_WIDTH	1	/* width of a window border */

    #define	WMNGR_SCROLLBAR_WIDTH	2	/* width of a scrollbar */

    #define	WMNGR_TITLE_MARGIN	2	/* minimum offset from left border of window to start of title */
    #define	WMNGR_SCROLL_TITLE_MARGIN	4	/* minimum offset from left border of window with scrollbar to start of title */

    #define	WMNGR_MAX_HANDLE_LEN	64	/* maximum number of characters in a window handle */

    #define	WMNGR_DEFAULT_SCROLL_LINE_LIMIT	5000	/* default limit of scroll buffer lines */

    #define	WMNGR_DESTRUCTOR_FUNC	0	/* function called when window is deleted */
    #define	WMNGR_SCROLL_FUNC	1	/* function called when window is scrolled */
    #define	WMNGR_RESIZE_FUNC	2	/* function called when window is resized */
    #define	WMNGR_MOVE_FUNC		3	/* function called when the window is moved */
    #define	WMNGR_EXPOSE_FUNC	4	/* function called when the window is popped to the top */
    #define	WMNGR_OCCLUDE_FUNC	5	/* function called when the window is occluded */

    #define	WMNGR_HAS_BORDER	1	/* check for presence of border */
    #define	WMNGR_HAS_TITLE		2	/* check for presence of title */
    #define	WMNGR_HAS_SCROLLBAR	4	/* check for presence of scroll bar */
    #define	WMNGR_HAS_SCROLLSTATUS	8	/* check for presence of scroll status region */
    #define	WMNGR_HAS_MENUBAR	0x10	/* check for presence of menu bar */
    #define	WMNGR_HAS_HANDLE	0x20	/* check for presence of handle */
    #define	WMNGR_HAS_HORZ_SCROLLBAR	0x40	/* check for presence of horizontal scroll bar */

    #define	WMNGR_DISABLE		0	/* disable requested feature */
    #define	WMNGR_ENABLE		1	/* enable requested feature */
    #define	WMNGR_ENABLE_USER	2	/* enable feature for user windows */

    #define	WMNGR_PREVIOUS		0x80000100	/* access previous entry */
    #define	WMNGR_NEXT		0x80000101	/* access next entry */
    #define	WMNGR_FIRST		0x80000102	/* access first entry */
    #define	WMNGR_LAST		0x80000103	/* access last entry */

    #define	WMNGR_ERASE		0x80000108	/* erase text */
    #define	WMNGR_DELETE		0x80000109	/* delete text */

    #define	WMNGR_LAST_IO_LINE	0x80000006	/* access last line written to */
    #define	WMNGR_NEXT_LINE		0x80000007	/* access next line in the window */

    #define	WMNGR_TITLE_LINE	0x8000000B	/* title line */
    #define	WMNGR_HEADER_LINE	0x8000000C	/* header line */
    #define	WMNGR_FOOTER_LINE	0x8000000D	/* footer line */

    #define	WMNGR_ALL_TYPES		0x80000102

    #define	WMNGR_ENUMERATED_ARGS	0	/* specific arguments follow */
    #define	WMNGR_FUNCTION_ARGS	1	/* function pointer arguments follow */
    #define	WMNGR_NUMERIC_RANGE_ARGS	10	/* numeric range arguments follow */
    #define	WMNGR_DATA_TYPE_ARGS	11	/* data type arguments follow */

    #define	WMNGR_PARAM_LINE_LENGTH	1	/* request line length */
    #define	WMNGR_PARAM_CLIPPING	2	/* request clipping state */
    #define	WMNGR_PARAM_SCROLL_LIMIT	4	/* request scroll buffer limit */
    #define	WMNGR_PARAM_RESIZE_MODE	8	/* request window resize mode */
    #define	WMNGR_PARAM_HSCROLL_INC	0x10	/* request minimum horizontal scroll increment */
    #define	WMNGR_PARAM_VSCROLL_INC	0x20	/* request minimum vertical scroll increment */
    #define	WMNGR_PARAM_SCROLLBAR	0x40	/* request vertical scroll bar */
    #define	WMNGR_PARAM_HORZ_SCROLLBAR	0x80	/* request horizontal scroll bar */
    #define	WMNGR_PARAM_OCCLUDED_INTS	0x100	/* request occluded interrupt handling */
    #define	WMNGR_PARAM_SCROLL_IO	0x200	/* request scroll buffer I/O handling */
    #define	WMNGR_PARAM_RESTORE_MODE	0x400	/* request screen restore mode */
    #define	WMNGR_PARAM_HSCROLL_PAGE_INC	0x800	/* request horizontal page scroll increment */
    #define	WMNGR_PARAM_VSCROLL_PAGE_INC	0x1000	/* request vertical page scroll increment */
    #define	WMNGR_PARAM_BORDER_COLOR	0x2000	/* request border color */
    #define	WMNGR_PARAM_BORDER_STYLE	0x4000	/* request border style */
    #define	WMNGR_PARAM_TITLE_COLOR	0x8000	/* request title color */
    #define	WMNGR_PARAM_POPUP	0x10000	/* request popup status */
    #define	WMNGR_PARAM_TOTAL_LINES	0x20000	/* request total number of lines in the window's scroll buffer */
    #define	WMNGR_PARAM_OCCLUDED_MOVES	0x40000	/* request occluded move handling */
    #define	WMNGR_PARAM_SCROLL_OFFSET	0x80000	/* request vertical scroll offset */
    #define	WMNGR_PARAM_HSCROLL_OFFSET	0x100000	/* request horizontal scroll offset */
    #define	WMNGR_PARAM_LINES_BELOW	0x200000	/* request number of scroll buffer lines below the visible window */
    #define	WMNGR_PARAM_LINES_VISIBLE	0x400000	/* request number of scroll buffer lines in the visible window */

    #define	WMNGR_COPY_TO_GRAPHICS	1	/* copy TV window to graphics window */
    #define	WMNGR_COPY_TO_PRINTER	2	/* copy TV window to printer */
    #define	WMNGR_COPY_TO_MAIL	4	/* copy TV window to mail message */
    #define	WMNGR_COPY_TO_EXCEL	8	/* copy TV window to Excel compatible file */
    #define	WMNGR_COPY_TO_PASTE	0x10	/* copy TV window to console paste buffer */
    #define	WMNGR_COPY_TO_FILE	0x20	/* copy TV window to text file */

    #define	WMNGR_NO_HELP		0	/* not a help entry */
    #define	WMNGR_BY_WINDOW_ID	1	/* access via window ID */
    #define	WMNGR_BY_WINDOW_HANDLE	2	/* access via window handle */
    #define	WMNGR_BY_HANDLE		2	/* access via object handle */
    #define	WMNGR_BY_FUNCTION	4	/* treat argument as function */
    #define	WMNGR_BY_FILE_NAME	8	/* treat argument as file name */
    #define	WMNGR_BY_CONSOLE_HELP	0x10	/* treat argument as console help level specification */
    #define	WMNGR_BY_URL		0x20	/* treat argument as WWW URL */
    #define	WMNGR_BY_TEXT_STRING	0x40	/* treat argument as simple text string */
    #define	WMNGR_BY_LABEL		0x40	/* treat argument as label string */
    #define	WMNGR_BY_XCHAR_STRING	0x80	/* treat argument as an XCHAR text string */

    #define	WMNGR_ABSOLUTE_COORDS	1	/* absolute screen coordinates */
    #define	WMNGR_WINDOW_COORDS	2	/* window coordinates */
    #define	WMNGR_INTERRUPT_COORDS	4	/* interrupt coordinates */
    #define	WMNGR_AUTO_COORDS	8	/* automatically calculated coordinates */

    #define	WMNGR_LOCAL_WINDOW	1	/* use local window */
    #define	WMNGR_REMOTE_WINDOW	2	/* use remote window */

    #define	WMNGR_OCC_INTS_ENABLED	1	/* occluded interrupts are enabled */
    #define	WMNGR_OCC_INTS_DISABLED	0	/* occluded interrupts are disabled */

    #define	WMNGR_OCC_MOVES_ENABLED	1	/* occluded moves are enabled */
    #define	WMNGR_OCC_MOVES_DISABLED	0	/* occluded moves are disabled */

    #define	WMNGR_SCROLLIO_ENABLED	1	/* scroll buffer I/O is enabled */
    #define	WMNGR_SCROLLIO_DISABLED	0	/* scroll buffer I/O is disabled */

    #define	WMNGR_DECIMAL		1	/* use decimal numeric text */
    #define	WMNGR_HEX		2	/* use hexadecimal numeric text */

    #define	WMNGR_ALL_KEYS		0	/* respond to any key */

    #define	WMNGR_ALL_MODIFIER_MASK	-1		/* all modifier mask */
    #define	WMNGR_NO_MODIFIER_MASK	0		/* no modifier mask */
    #define	WMNGR_SHIFT_MASK	ShiftMask	/* shift key mask */
    #define	WMNGR_LOCK_MASK		LockMask	/* lock key mask */
    #define	WMNGR_CTRL_MASK		ControlMask	/* control key mask */
    #define	WMNGR_ALT_MASK		Mod1Mask	/* alt (or compose) key mask */
    #define	WMNGR_COMPOSE_MASK	Mod2Mask	/* compose key mask */
    #define	WMNGR_BUTTON1_MASK	Button1Mask	/* mouse button 1 mask */
    #define	WMNGR_BUTTON2_MASK	Button2Mask	/* mouse button 2 mask */
    #define	WMNGR_BUTTON3_MASK	Button3Mask	/* mouse button 3 mask */

    #define	WMNGR_CB_OPT_NONE		0	/* no options selected */
    #define	WMNGR_CB_OPT_ADD_IF_EXISTS	1	/* add duplicate callback as long as it aligns with the current one */
    #define	WMNGR_CB_OPT_DELETE_IF_LAST	1	/* delete field if removing last callback */
    #define	WMNGR_CB_OPT_ALWAYS_EXEC_PERIODIC	2	/* always execute periodic callback even if the cursor is not in the window */

    #define	WMNGR_CREATE_CALLBACK	1		/* callback to be executed after a window is created */
    #define	WMNGR_CHANGE_CALLBACK	2		/* callback to be executed after a window is modified */
    #define	WMNGR_PRE_CREATE_CALLBACK	4	/* callback to be executed just before a window is created */
    #define	WMNGR_PRE_DELETE_CALLBACK	8	/* callback to be executed just before a window is deleted */
    #define	WMNGR_DELETE_CALLBACK	0x10		/* callback to be executed after a window is deleted */
    #define	WMNGR_DELETE_REQUEST_CALLBACK	0x20	/* callback to be executed when a window is requested to be deleted */
    #define	WMNGR_CHANGE_PARAM_CALLBACK	0x40	/* callback to be executed after a global parameter is modified */

    #define	WMNGR_CHANGE_HANDLE	3		/* change handle */
    #define	WMNGR_CHANGE_TITLE	5		/* change title */
    #define	WMNGR_CHANGE_LINE_LENGTH	(WMNGR_PARAM_LINE_LENGTH)	/* change line length */
    #define	WMNGR_CHANGE_CLIPPING		(WMNGR_PARAM_CLIPPING)		/* change clipping state */
    #define	WMNGR_CHANGE_SCROLL_LIMIT	(WMNGR_PARAM_SCROLL_LIMIT)	/* change scroll buffer limit */
    #define	WMNGR_CHANGE_RESIZE_MODE	(WMNGR_PARAM_RESIZE_MODE)	/* change window resize mode */
    #define	WMNGR_CHANGE_HSCROLL_INC	(WMNGR_PARAM_HSCROLL_INC)	/* change minimum horizontal scroll increment */
    #define	WMNGR_CHANGE_VSCROLL_INC	(WMNGR_PARAM_VSCROLL_INC)	/* change minimum vertical scroll increment */
    #define	WMNGR_CHANGE_SCROLLBAR		(WMNGR_PARAM_SCROLLBAR)		/* change vertical scroll bar */
    #define	WMNGR_CHANGE_HORZ_SCROLLBAR	(WMNGR_PARAM_HORZ_SCROLLBAR)	/* change horizontal scroll bar */
    #define	WMNGR_CHANGE_HSCROLL_PAGE_INC	(WMNGR_PARAM_HSCROLL_PAGE_INC)	/* change horizontal page scroll increment */
    #define	WMNGR_CHANGE_VSCROLL_PAGE_INC	(WMNGR_PARAM_VSCROLL_PAGE_INC)	/* change vertical page scroll increment */
    #define	WMNGR_CHANGE_KEY_ECHO		0x40001				/* change key press echo */
    #define	WMNGR_CHANGE_KEY_CASE		0x40002				/* change key press case */
    #define	WMNGR_CHANGE_KEY_COLOR		0x40003				/* change key press color */

    #define	WMNGR_DONT_CHANGE	0	/* don't change the present value */
    #define	WMNGR_CLEAR_IT		1	/* clear (blank) the present value */

    #define	WMNGR_CNTRL_CLOSE	1	/* support close function */
    #define	WMNGR_CNTRL_MOVE	2	/* support move function */
    #define	WMNGR_CNTRL_RESIZE	4	/* support resize function */
    #define	WMNGR_CNTRL_LOWER	8	/* support lower function */
    #define	WMNGR_CNTRL_HELP	0x10	/* support help function */
    #define	WMNGR_CNTRL_MAIL	0x20	/* support mail function */

/*
** inptxt...
*/
    #define	INPTXT_MAX_STRING	(MAX_TV_COLS - 6) /* max string length for INPTXT */

/*
** menu routines...
*/
    #define	MENU_RESTORE_LAST	2	/* restore last menu setup values */

    #define	MENU_CREATE_TYP		0	/* create the menu */
    #define	MENU_UPDATE_TYP		1	/* update menu highlighting */
    #define	MENU_SERVICE_TYP	2	/* service menu interrupts */
    #define	MENU_DELETE_TYP		3	/* delete a menu */

    #define	MENU_TOP		-1	/* use the last menu created */
    #define	TOP_MENU		-1	/* use the last menu created */

    #define	MENU_DISABLED_ENTRY	0	/* disabled menu entry */
    #define	MENU_ENABLED_ENTRY	1	/* enabled menu entry */
    #define	MENU_SEPARATOR		2	/* menu separator entry */

    #define	MENU_OPT_NONE		0	/* no special menu options requested */
    #define	MENU_OPT_FIT_WINDOW	1	/* resize the background window if necessary to fit the menu */
    #define	MENU_OPT_SIZE_TO_TITLE	2	/* resize the menu if necessary to fit the title and banner lines */
    #define	MENU_OPT_HEADER_SEPARATOR	4	/* insert a separator line between the header line and the menu entries */
    #define	MENU_OPT_SAME_FUNCTION	8	/* use the same function for all menu entries */
    #define	MENU_OPT_NO_BUBBLE_HELP	0x10	/* disable bubble help */
    #define	MENU_OPT_CENTER_DEFAULT	0x20	/* center default menu selection */
    #define	MENU_OPT_TRUNCATE_BLANKS	0x40	/* truncate trailing blanks in menu text */
    #define	MENU_OPT_WANT_SHORT_TEXT	0x80	/* use shorter menu text */
    #define	MENU_OPT_ROW_MAJOR	0x100	/* display the menu by rows */
    #define	MENU_OPT_COLUMN_MAJOR	0x200	/* display the menu by columns */

/*
** dialog box routines...
*/
    #define	DIALOG_RESTORE_LAST	2	/* restore last dialog box setup values */

    #define	DIALOG_OPT_NONE		0	/* no options requested */
    #define	DIALOG_PERSISTENT	0	/* create persistent dialog */
    #define	DIALOG_OPT_PERSISTENT	0	/* create persistent dialog */
    #define	DIALOG_POPUP		1	/* create popup dialog */
    #define	DIALOG_OPT_POPUP	1	/* create popup dialog */
    #define	DIALOG_ALLOW_EDITS	0	/* allow the dialog to modify values */
    #define	DIALOG_OPT_ALLOW_EDITS	0	/* allow the dialog to modify values */
    #define	DIALOG_DISPLAY_ONLY	2	/* dialog will only display values (no modification) */
    #define	DIALOG_OPT_DISPLAY_ONLY	2	/* dialog will only display values (no modification) */

    #define	DIALOG_DISABLED_ENTRY	0	/* disabled dialog entry */
    #define	DIALOG_ENABLED_ENTRY	1	/* enabled dialog entry */

/*
** wnlib...
*/
    #define	WN_BACKGROUND		0	/* background graphic window ID */
    #define	WN_ALL_WINDOWS		(WN_BACKGROUND - 1)	/* act on all windows */

    #define	WN_SCREEN_1		5	/* graphics screen #1 */
    #define	WN_SCREEN_2		10	/* graphics screen #2 */

    #define	WN_INVALID_ID		-1	/* invalid graphic window ID */

    #define	WN_CENTER_IT		(-32768.0)	/* center text flag */
    #define	WN_JUSTIFY_MIN		(-32769.0)	/* align text to minimum flag */
    #define	WN_JUSTIFY_MAX		(-32770.0)	/* align text to maximum flag */

    #define	WN_CENTER_IT_PIXEL	-32768	/* center flag */

    #define	WN_HORZ			0	/* horizontal plane */
    #define	WN_VERT			1	/* vertical plane */
    #define	WN_HORZ_TOP		2	/* horizontal plane (top of plot) */
    #define	WN_VERT_RIGHT		3	/* vertical plane (right side of plot) */

    #define	WN_TOP_COORD		1	/* coordinate specifies the top of the window */
    #define	WN_BOTTOM_COORD		2	/* coordinate specifies the bottom of the window */

    #define	WN_DEFAULT_BKGD_WIDTH	640	/* default width of the background window */
    #define	WN_DEFAULT_BKGD_HEIGHT	512	/* default height of the background window */
    #define	WN_MIN_BKGD_WIDTH	100	/* minimum width of the background window */
    #define	WN_MIN_BKGD_HEIGHT	100	/* minimum height of the background window */
    #define	WN_MAX_BKGD_WIDTH	2048	/* maximum width of the background window */
    #define	WN_MAX_BKGD_HEIGHT	2048	/* maximum height of the background window */

    #define	WN_NO_GRID		0	/* don't make a grid */
    #define	WN_MAKE_GRID		1	/* make a grid */

    #define	WN_NORMAL_NOTATION	0	/* use normal float notation */
    #define	WN_SCIENTIFIC_NOTATION	2	/* use scientific notation */
    #define	WN_SCIENTIFIC_NOTATION_X	0x10	/* use scientific notation (x axis only) */
    #define	WN_SCIENTIFIC_NOTATION_Y	0x20	/* use scientific notation (y axis only) */

    #define	WN_SQUEEZE_NO_LABEL	0	/* don't squeeze labels */
    #define	WN_SQUEEZE_X_LABEL	4	/* squeeze x labels */
    #define	WN_SQUEEZE_Y_LABEL	8	/* squeeze y labels */
    #define	WN_SQUEEZE_BOTH_LABELS	(WN_SQUEEZE_X_LABEL | WN_SQUEEZE_Y_LABEL)	/* squeeze x and y labels */
    #define	WN_SQUEEZE_LABEL	(WN_SQUEEZE_X_LABEL | WN_SQUEEZE_Y_LABEL)	/* squeeze labels */

    #define	WN_INVERT_NO_TICK_MARKS	0	/* don't invert tick marks */
    #define	WN_INVERT_X_TICK_MARKS	0x40	/* invert x-axis tick marks */
    #define	WN_INVERT_Y_TICK_MARKS	0x80	/* invert y-axis tick marks */
    #define	WN_INVERT_BOTH_TICK_MARKS	(WN_INVERT_X_TICK_MARKS | WN_INVERT_Y_TICK_MARKS)	/* invert tick marks for x and y */
    #define	WN_INVERT_TICK_MARKS	(WN_INVERT_X_TICK_MARKS | WN_INVERT_Y_TICK_MARKS)	/* invert tick marks */

    #define	WN_SOLID_GRIDS		0	/* solid major grid lines */
    #define	WN_DOTTED_X_GRID	0x100	/* dotted major x axis grid lines */
    #define	WN_DOTTED_Y_GRID	0x200	/* dotted major y axis grid lines */
    #define	WN_DOTTED_BOTH_GRIDS	(WN_DOTTED_X_GRID | WN_DOTTED_Y_GRID)	/* dotted major grid lines for both for x and y */
    #define	WN_DOTTED_GRID		(WN_DOTTED_X_GRID | WN_DOTTED_Y_GRID)	/* dotted major grid lines */

    #define	WN_SAME_X_LIMITS	0x400	/* use the same X limits for all traces */
    #define	WN_SAME_Y_LIMITS	0x800	/* use the same Y limits for all traces */
    #define	WN_SAME_LIMITS_BOTH	(WN_SAME_X_LIMITS | WN_SAME_Y_LIMITS)	/* use the same limits for all traces on both axes */
    #define	WN_SAME_LIMITS		(WN_SAME_X_LIMITS | WN_SAME_Y_LIMITS)	/* use the same limits for all traces */

    #define	WN_X_LIMIT_LABELS_ONLY	0x1000	/* only display the limit labels for the X axis */
    #define	WN_Y_LIMIT_LABELS_ONLY	0x2000	/* only display the limit labels for the Y axis */
    #define	WN_LIMIT_LABELS_ONLY	(WN_X_LIMIT_LABELS_ONLY | WN_Y_LIMIT_LABELS_ONLY)	/* only display the limit labels for both axes */

    #define	WN_DOUBLE_PRECISION_VALUES	0x4000	/* double precision floating point values */
    #define	WN_ROUND_VALUES			0x8000	/* round values to the nearest integer */
    #define	WN_ROUND_VALUES_IF_NEEDED	0x10000	/* round values to the nearest integer if the value won't fit */

    #define	WN_SCALE_LINEAR		1	/* use linear scaling */
    #define	WN_SCALE_LOG10		2	/* use log base-10 scaling */
    #define	WN_SCALE_NATURAL_LOG	3	/* use log base-e scaling */

    #define	WN_SCALE_LINEAR_BOTH	0	/* use linear scaling for both axes */
    #define	WN_X_SCALE_LINEAR	WN_SCALE_LINEAR	/* use linear scaling for X axis */
    #define	WN_X_SCALE_LOG10	WN_SCALE_LOG10	/* use log base-10 scaling for X axis */
    #define	WN_X_SCALE_NATURAL_LOG	WN_SCALE_NATURAL_LOG	/* use log base-e scaling for X axis */
    #define	WN_Y_SCALE_LINEAR	(WN_SCALE_LINEAR << 8)	/* use linear scaling for Y axis */
    #define	WN_Y_SCALE_LOG10	(WN_SCALE_LOG10 << 8)	/* use log base-10 scaling for Y axis */
    #define	WN_Y_SCALE_NATURAL_LOG	(WN_SCALE_NATURAL_LOG << 8)	/* use log base-e scaling for Y axis */

    #define	WN_DATA_SAVE_ON		1	/* turn on plot data saving */
    #define	WN_DATA_SAVE_OFF	2	/* turn off plot data saving */
    #define	WN_DATA_SAVE_CONT	3	/* continue plot data saving */

    #define	WN_ERASE_ALL		0xF	/* erase all planes */
    #define	WN_ERASE_BLUE		1	/* erase blue plane */
    #define	WN_ERASE_GREEN		2	/* erase green plane */
    #define	WN_ERASE_RED		4	/* erase red plane */
    #define	WN_ERASE_BLINK		8	/* erase blink plane */
    #define	WN_ERASE_BLUE_AND_GREEN	3	/* erase blue and green planes */
    #define	WN_ERASE_RED_AND_BLUE	5	/* erase red and blue planes */
    #define	WN_ERASE_RED_AND_GREEN	6	/* erase red and green planes */

    #define	WN_ERASE_ENTIRE_WINDOW	0	/* erase entire window */
    #define	WN_ERASE_INTERIOR_ONLY	1	/* erase interior of window only */
    #define	WN_ERASE_PRESERVE_GRID	2	/* erase interior of window and preserve grids */

    #define	WN_FFT			1	/* return FFT data */
    #define	WN_FFT_NORMALIZED	2	/* return normalized FFT data */
    #define	WN_INVERSE_FFT		-1	/* return inverse FFT data */

    #define	WN_POINT		0	/* point */
    #define	WN_POINT_		0	/* point */
    #define	WN_POINT_SYMBOL		0	/* point */
    #define	WN_CIRCLE		1	/* circle */
    #define	WN_CIRCLE_		1	/* circle */
    #define	WN_CIRCLE_SYMBOL	1	/* circle */
    #define	WN_SQUARE		2	/* square */
    #define	WN_SQUARE_SYMBOL	2	/* square */
    #define	WN_TRIANGLE		3	/* triangle */
    #define	WN_TRIANGLE_SYMBOL	3	/* triangle */
    #define	WN_LXOBJ		4	/* Lex Object */
    #define	WN_LXOBJ_SYMBOL		4	/* Lex Object */
    #define	WN_CROSS		5	/* cross */
    #define	WN_CROSS_SYMBOL		5	/* cross */
    #define	WN_DIAMOND		6	/* diamond */
    #define	WN_DIAMOND_SYMBOL	6	/* diamond */
    #define	WN_FERMI_LOGO		7	/* Fermi logo */
    #define	WN_FERMI_LOGO_SYMBOL	7	/* Fermi logo */
    #define	WN_HORZ_BAR		8	/* horizontal bar */
    #define	WN_HORZ_BAR_SYMBOL	8	/* horizontal bar */
    #define	WN_VERT_BAR		9	/* vertical bar */
    #define	WN_VERT_BAR_SYMBOL	9	/* vertical bar */
    #define	WN_TEXT_SYMBOL		10	/* text string */

    #define	WN_SOLID_LINE		0	/* pattern for solid lines */
    #define	WN_DOTTED_LINE		5	/* pattern for simple dotted lines */

    #define	WN_NO_WORLD_BASE	0	/* don't use a base world coordinate */
    #define	WN_WORLD_BASE_X		1	/* x is based on a world coordinate */
    #define	WN_WORLD_BASE_Y		2	/* y is based on a world coordinate */
    #define	WN_UNITARY_BASE_X	4	/* x is based on a unitary (0.0 - 1.0) coordinate */
    #define	WN_UNITARY_BASE_Y	8	/* y is based on a unitary (0.0 - 1.0) coordinate */

    #define	WN_WORLD_SCALING	0	/* normal world coordinate scaling */
    #define	WN_CHARACTER_SCALING	1	/* character coordinate scaling */

    #define	WN_REPLACE		0	/* graphics screen replace mode */
    #define	WN_OR			1	/* graphics screen 'or' mode */
    #define	WN_AND			2	/* graphics screen 'and' mode */
    #define	WN_XOR			3	/* graphics screen exclusive 'or' mode */

    #define	WN_EMPTY		0	/* mode for empty circles and rectangles */
    #define	WN_FILLED		1	/* mode for filled circles and rectangles */

    #define	WN_WORLD_COORDS		1	/* normal window world coordinates */
    #define	WN_PIXEL_COORDS		2	/* raw pixel coordinates */

    #define	WN_TEXT_MIN_SIZE	1	/* minimum character size */
    #define	WN_TEXT_MINSIZ		1	/* minimum text size */
    #define	WN_TEXT_MAX_SIZE	16	/* maximum character size */
    #define	WN_TEXT_MAXSIZ		16	/* maximum text size */

    #define	WN_TEXT_LEFT_TO_RIGHT	0	/* normal left to right text */
    #define	WN_TEXT_UP		1	/* bottom to top text */
    #define	WN_TEXT_DOWN		2	/* top to bottom text */
    #define	WN_TEXT_RIGHT_TO_LEFT	3	/* right to left upside down text */

    #define	WN_TEXT_ERASIVE		0	/* text background is erased */
    #define	WN_TEXT_ADDITIVE	1	/* text background is not erased */

    #define	WN_TEXT_NORMAL		0	/* normal text */
    #define	WN_TEXT_INVERSE		1	/* inverse video text */

    #define	WN_HCMODE_DEFAULT	0	/* use actual colors for hard copy */
    #define	WN_HCMODE_REVERSED	1	/* reverse blue and yellow for copies */

    #define	WN_OPT_NONE			0	/* no options selected */
    #define	WN_OPT_MOVE_PIXELS		0	/* move pixels */
    #define	WN_OPT_COPY_PIXELS		1	/* copy pixels */
    #define	WN_OPT_TRANSFER_BKGD_PIXELS	0	/* transfer background pixels */
    #define	WN_OPT_IGNORE_BKGD_PIXELS	2	/* don't transfer background pixels */

    #define	WN_SCREEN_TITLE_LEN	40	/* maximum length of a screen title */

    #define	WN_ALL_TYPES		0x80000102

    #define	WN_ENUMERATED_ARGS	0	/* specific arguments follow */
    #define	WN_FUNCTION_ARGS	1	/* function pointer arguments follow */
    #define	WN_NUMERIC_RANGE_ARGS	10	/* numeric range arguments follow */
    #define	WN_DATA_TYPE_ARGS	11	/* data type arguments follow */
    #define	WN_STRING_ARGS		12	/* specific arguments follow (null terminated strings) */

    #define	WN_DESTRUCTOR_FUNC	0	/* function called when window is deleted */
    #define	WN_EXPOSE_FUNC		4	/* function called when the window is popped to the top */
    #define	WN_OCCLUDE_FUNC		5	/* function called when the window is occluded */

    #define	WN_DECIMAL		1	/* use decimal numeric text */
    #define	WN_HEX			2	/* use hexadecimal numeric text */

    #define	WN_PREVIOUS		0x80000100	/* access previous entry */
    #define	WN_NEXT			0x80000101	/* access next entry */
    #define	WN_FIRST		0x80000102	/* access first entry */
    #define	WN_LAST			0x80000103	/* access last entry */

    #define	WN_UPPER_CASE		0	/* convert to upper case */
    #define	WN_MIXED_CASE		1	/* allow mixed case */
    #define	WN_LOWER_CASE		2	/* convert to lower case */

/*
** file manager...
*/
    #define	FMNGR_READ_ACCESS	0	/* open for read access only */
    #define	FMNGR_WRITE_ACCESS	1	/* open for read and write access */

    #define	FMNGR_DIRECT		1	/* file access modes */
    #define	FMNGR_SEQUENTIAL	2
    #define	FMNGR_APPEND		3
    #define	FMNGR_KEYED		4

    #define	FMNGR_SEQUENTIAL_ORG	0	/* file organizations */
    #define	FMNGR_RELATIVE_ORG	1
    #define	FMNGR_INDEXED_ORG	2

    #define	FMNGR_FIXED_LENGTH	0	/* record formats */
    #define	FMNGR_VARIABLE_LENGTH	1
    #define	FMNGR_STREAM_FORMAT	2

    #define	FMNGR_NEXT_RECORD	-1	/* record value to access next sequential record */

    #define	FMNGR_LAST_RECORD	-1	/* record value to delete the most recently accessed record */

    #define	FMNGR_DEFAULT_ARG	-1	/* value for a defaulted argument */

/*
** scripting...
*/
    #define	SCRIPT_OPTION		1	/* give user abort option */
    #define	SCRIPT_ABORT		2	/* abort without user input */

    #define	SCRIPT_OPT_NONE		0	/* no options selected */
    #define	SCRIPT_OPT_DONT_PLAY	0x100	/* don't play the script */

/*
** utility window...
*/
    #define	UTIL_ENTRYLEN		12	/* # of characters in user-supplied menu entry */

/*
** switch manager...
*/
    #define	SWITCH_LATCH		0	/* single latching switch */
    #define	SWITCH_MOMENTARY	1	/* single momentary switch */
    #define	SWITCH_RADIO		2	/* radio buttons */
    #define	SWITCH_STATUS		3	/* single status switch */

    #define	SWITCH_HORZ		0	/* horizontal switch layout */
    #define	SWITCH_VERT		1	/* vertical switch layout */

    #define	SWITCH_BY_HANDLE	2	/* treat argument as handle string */
    #define	SWITCH_BY_LABEL		0x40	/* treat argument as label string */

/*
** Lexidata special font handler...
*/
    #define	LXFONT_HEIGHT		11	/* height of an LXFONT character in pixels */
    #define	LXFONT_WIDTH		7	/* width of an LXFONT character in pixels */

    #define	LXFONT_NUMCHAR		128	/* # of characters in font */
    #define	LXFONT_MAXCHAR		(LXFONT_NUMCHAR - 1)	/* maximum character # */

    #define	LXFONT_MINSIZ		1	/* minimum character size */
    #define	LXFONT_MAXSIZ		16	/* maximum character size */

    #define	LXFONT_LEFT_TO_RIGHT	0	/* draw left to right */
    #define	LXFONT_UP		1	/* draw up */
    #define	LXFONT_DOWN		2	/* draw down */
    #define	LXFONT_RIGHT_TO_LEFT	3	/* draw right to left */

    #define	LXFONT_NOBACK		-1	/* do not draw character background */

/*
** highlight manager...
*/
    #define	HILITE_ROW_MAJOR	0	/* row oriented highlighting */
    #define	HILITE_COLUMN_MAJOR	1	/* column oriented highlighting */

    #define	HILITE_DEFAULT_COLOR	-1	/* highlight by inverting foreground and background colors */

    #define	HILITE_STOP_UPDATE	1	/* inhibit further updates */
    #define	HILITE_ERASE_LAST	2	/* erase currently highlighted field */
    #define	HILITE_RESTORE_LAST	3	/* restore currently highlighted field upon resuming updates */

    #define	HILITE_OPT_NONE		0	/* no options selected */
    #define	HILITE_OPT_USER_UPDATE	0	/* update highlight region by calls to 'hilite_update_c' */
    #define	HILITE_OPT_AUTO_UPDATE	1	/* update highlight region automatically */
    #define	HILITE_OPT_UPDATE_OCCLUDED	2	/* update highlight region even if it's occluded */

/*
** string handling...
*/
    #define	STR_ADDR_BOTH		0	/* get address of both source and destination strings */
    #define	STR_ADDR_DEST		1	/* get address of destination string only */
    #define	STR_ADDR_SRC		2	/* get address of source string only */

    #define	STR_JUSTIFY_NONE	0	/* don't justify the string */
    #define	STR_JUSTIFY_LEFT	1	/* left justify the string */
    #define	STR_JUSTIFY_RIGHT	2	/* right justify the string */
    #define	STR_JUSTIFY_CENTER	4	/* center justify the string */

    #define	STR_SHIFT_LEFT		0	/* left shift the string */
    #define	STR_SHIFT_RIGHT		1	/* right shift the string */
    #define	STR_SHIFT_LEFT_TRUNCATE	2	/* left shift the string allowing truncation */
    #define	STR_SHIFT_RIGHT_TRUNCATE	3	/* right shift the string allowing truncation */

    #define	STR_ALPHANUMERIC		0	/* simple alphanumeric string */
    #define	STR_COMPOUND_STRING		1	/* string with possible embedded white space */
    #define	STR_DEVICE_NAME			2	/* ACNET device name string */
    #define	STR_SIMPLE_STRING		3	/* string with no embedded white space */
    #define	STR_INTEGER_STRING		4	/* signed integer string */
    #define	STR_HEX_STRING			5	/* hexadecimal string */
    #define	STR_FLOAT_STRING		6	/* floating point value string */
    #define	STR_QUOTED_STRING		7	/* quoted string */
    #define	STR_TEXT_LINE			8	/* text line */
    #define	STR_SIMPLE_DEVICE_NAME		9	/* simple ACNET device name string */
    #define	STR_SIMPLE_DEVICE_FULL_NAME	10	/* simple ACNET device full name string */
    #define	STR_DEVICE_FULL_NAME		11	/* ACNET device full name string */
    #define	STR_BINARY_STRING		12	/* binary string */
    #define	STR_OCTAL_STRING		13	/* octal string */
    #define	STR_DATE_STRING			14	/* date string */
    #define	STR_FIXED_LENGTH_STRING		15	/* fixed length string */
    #define	STR_HEX_STRING_WITH_MODIFIERS	16	/* hexadecimal string (with modifiers) */
    #define	STR_INT_STRING_WITH_MODIFIERS	17	/* signed integer string (with modifiers) */
    #define	STR_BINARY_STRING_WITH_MODIFIERS	18	/* binary string (with modifiers) */
    #define	STR_OCTAL_STRING_WITH_MODIFIERS	19	/* octal string (with modifiers) */
    #define	STR_INTEGER_MODIFIER		20	/* integer string modifier */
    #define	STR_ALPHABETIC_STRING		21	/* simple alphabetic string */
    #define	STR_UPPER_CASE_STRING		22	/* simple upper case alphabetic string */
    #define	STR_LOWER_CASE_STRING		23	/* simple lower case alphabetic string */
    #define	STR_DEVICE_TERSE_NAME		24	/* ACNET device terse name string */
    #define	STR_SIMPLE_DEVICE_TERSE_NAME	25	/* simple ACNET device terse name string */

    #define	STR_CHAR_TYPE_UNKNOWN		(-1)	/* unknown character type */
    #define	STR_CHAR_TYPE_ALPHANUMERIC	0	/* alphanumeric character */
    #define	STR_CHAR_TYPE_DECIMAL		4	/* decimal character */
    #define	STR_CHAR_TYPE_HEX		5	/* hexadecimal character */
    #define	STR_CHAR_TYPE_QUOTE		7	/* quote character */
    #define	STR_CHAR_TYPE_BINARY		12	/* binary character */
    #define	STR_CHAR_TYPE_OCTAL		13	/* octal character */
    #define	STR_CHAR_TYPE_ALPHABETIC	21	/* alphabetic character */
    #define	STR_CHAR_TYPE_UPPER_CASE	22	/* upper case alphabetic character */
    #define	STR_CHAR_TYPE_LOWER_CASE	23	/* lower case alphabetic character */
    #define	STR_CHAR_TYPE_WHITE_SPACE	24	/* white space character */
    #define	STR_CHAR_TYPE_PUNCTUATION	25	/* punctuation character */
    #define	STR_CHAR_TYPE_PRINTABLE		26	/* printable character */
    #define	STR_CHAR_TYPE_CONTROL		27	/* control character */
    #define	STR_CHAR_TYPE_PARENTHESIS	28	/* parenthesis character */
    #define	STR_CHAR_TYPE_BRACE		29	/* brace character */
    #define	STR_CHAR_TYPE_COMPARATOR	30	/* comparator character */

    #define	STR_FIRST		0	/* find first occurrence */
    #define	STR_ARG_FIRST		0	/* find first occurrence */
    #define	STR_LAST		1	/* find last occurrence */
    #define	STR_ARG_LAST		1	/* find last occurrence */

    #define	STR_ARG_BEFORE		(-1)	/* perform the operation before the specified point in the string */
    #define	STR_ARG_AFTER		(-2)	/* perform the operation after the specified point in the string */

    #define	STR_NO_CASE_CHANGE	0	/* leave character cases as they are */
    #define	STR_UP_CASE_STRING	1	/* make lower case characters upper case */
    #define	STR_DOWN_CASE_STRING	2	/* make upper case characters lower case */
    #define	STR_INVERT_CASE_STRING	3	/* invert the case of upper and lower case characters */
    #define	STR_CAPITALIZE_STRING	4	/* capitalize the first character in each word */

    #define	STR_NO_LIMIT		0	/* don't limit string length search */

    #define	STR_TRIM_BEGIN		1	/* remove spaces from the beginning of the string */
    #define	STR_TRIM_END		2	/* remove spaces from the end of the string */
    #define	STR_TRIM_BOTH		3	/* remove spaces from the beginning and the end of the string */

    #define	STR_PAD_BEGIN		1	/* insert padding characters in the beginning of the string */
    #define	STR_PAD_END		2	/* insert padding characters at the end of the string */
    #define	STR_PAD_BOTH		3	/* insert padding characters in the beginning and the end of the string */
    #define	STR_PAD_REPLACE_BEGIN	4	/* replace blanks with padding characters in the beginning of the string */
    #define	STR_PAD_REPLACE_END	8	/* replace blanks with padding characters at the end of the string */
    #define	STR_PAD_REPLACE_BOTH	0xC	/* replace blanks with padding characters in the beginning and the end of the string */

    #define	STR_OPT_NONE		0	/* no options selected */
    #define	STR_OPT_TRIM		0	/* trim white space */
    #define	STR_OPT_NO_TRIM		1	/* don't trim white space */
    #define	STR_OPT_SKIP_TERMINATOR	2	/* skip past the terminator character */
    #define	STR_OPT_CASE_INSENSITIVE	0	/* case insensitive operation */
    #define	STR_OPT_CASE_SENSITIVE	4	/* case sensitive operation */
    #define	STR_OPT_FILL_STRING	8	/* pad end of string */
    #define	STR_OPT_SUPPRESS_NULL_STRINGS	0	/* don't allow null strings */
    #define	STR_OPT_ALLOW_NULL_STRINGS	0x10	/* allow null strings */
    #define	STR_OPT_IGNORE_SPACES	0	/* ignore embedded white spaces */
    #define	STR_OPT_RESPECT_SPACES	0x20	/* treat spaces like any other character */
    #define	STR_OPT_USE_WILDCARD	0x40	/* use wildcard character */
    #define	STR_OPT_HANDLE_QUOTES	0x80	/* handle quoted strings */
    #define	STR_OPT_NULL_TERMINATE	0x100	/* null terminate the string */
    #define	STR_OPT_RET_FULL_LENGTH	0x200	/* return the full length even when trimming spaces */
    #define	STR_OPT_REPLACE_BRACKETS	0x400	/* replace brackets */
    #define	STR_OPT_HANDLE_PARENTHESES	0x800	/* handle parenthetical strings */
    #define	STR_OPT_HANDLE_EMBEDDED_QUOTES	0x1000	/* handle embedded quoted strings */
    #define	STR_OPT_PRESERVE_QUOTES	0x2000	/* preserve quotes in parsed strings */
    #define	STR_OPT_FIRST_ONLY	0x4000	/* act on first occurrence only */
    #define	STR_OPT_HANDLE_BRACES	0x8000	/* handle brace enclosed strings */
    #define	STR_OPT_REPLACE_NONPRINTABLES	0x10000	/* replace nonprintable characters */
    #define	STR_OPT_REMOVE_NONPRINTABLES	0	/* remove nonprintable characters */
    #define	STR_OPT_ALLOW_WHITE_SPACE	0x20000	/* allow embedded white space characters */
    #define	STR_OPT_USE_EXTENDED_REGEXP	0x40000	/* use extended regular expressions */
    #define	STR_OPT_NORMAL_NL	0	/* treat new lines as normal characters */
    #define	STR_OPT_TREAT_NL_AS_SPECIAL	0x80000	/* treat new lines as special characters */
    #define	STR_OPT_SUPPRESS_TABS		0x80000	/* suppress tab characters */
    #define	STR_OPT_INHIBIT_NULL_TERMINATOR	0x100000	/* inhibit null terminating the string */
    #define	STR_OPT_IGNORE_EXTRA_LINK_CHARS	0x200000	/* ignore extra link characters in a string */
    #define	STR_OPT_HANDLE_EMBEDDED_BRACES	0x400000	/* handle embedded braced strings */
    #define	STR_OPT_HANDLE_EMBEDDED_PARENTHESES	0x800000	/* handle embedded parenthetical strings */
    #define	STR_OPT_HANDLE_NESTED	0x1000000	/* handle nested strings */
    #define	STR_OPT_HANDLE_NESTED_DELIMITERS	0x1000000	/* handle nested delimiter strings */
    #define	STR_OPT_NO_STATIC_MEMORY	0x2000000	/* don't utilize static memory */
    #define	STR_OPT_RETURN_UNSPLIT_STRINGS	0x4000000	/* return strings that can't be split */
    #define	STR_OPT_HANDLE_ESCAPED_QUOTES	0x8000000	/* handle escaped quotes */
    #define	STR_OPT_WANT_END_TAG		0x10000000	/* want an ending tag */
    #define	STR_OPT_HANDLE_PREFIX		0x20000000	/* handle valid prefix */
    #define	STR_OPT_HANDLE_SUFFIX		0x40000000	/* handle valid suffix */
    #define	STR_OPT_COMPARE_FULL_NAMES	0x100000000ULL	/* compare full names */
    #define	STR_OPT_COMPARE_ENTIRE_SPEC	0x200000000ULL	/* compare the entire spec */
    #define	STR_OPT_NO_NULL_STRINGS		0		/* don't return null strings */
    #define	STR_OPT_RETURN_NULL_STRINGS	0x400000000ULL	/* return null strings */

    #define	STR_COND_NONE		0	/* no conditions selected */
    #define	STR_COND_FIRST_ALPHABETIC	1	/* first character is alphabetic */
    #define	STR_COND_FIRST_NOT_NUMERIC	2	/* first character is not numeric */
    #define	STR_COND_IS_NUMERIC_VALUE	4	/* current value is numeric */
    #define	STR_COND_NOT_NUMERIC_VALUE	8	/* current value is not numeric */
    #define	STR_COND_IS_DEVICE_VALUE	0x10	/* current value is a device */
    #define	STR_COND_NOT_DEVICE_VALUE	0x20	/* current value is not a device */
    #define	STR_COND_PRE_NOT_NUMERIC	0x40	/* previous character is not numeric */

    #define	STR_NO_WILDCARD		0	/* don't use any wildcards */

    #define	STR_HTML_TAG		0	/* HTML/XML style tag */

    #define	STR_ESCAPE_C		1	/* C/C++ escape characters */
    #define	STR_ESCAPE_CPP		1	/* C/C++ escape characters */
    #define	STR_ESCAPE_URL		2	/* URL escape characters */
    #define	STR_ESCAPE_HTML		4	/* HTML escape characters */
    #define	STR_ESCAPE_BASH		8	/* BASH escape characters */
    #define	STR_ESCAPE_QUOTES	0x10	/* quote escape characters */

    #define	STR_DEVNAME_OPT_NONE		0	/* no options selected */
    #define	STR_DEVNAME_OPT_ALLOW_OBSOLETE	1	/* allow obsolete devices */
    #define	STR_DEVNAME_OPT_FULL_NAME	2	/* use full names */
    #define	STR_DEVNAME_OPT_ALL_PROPERTIES	0x100	/* allow all properties */
    #define	STR_DEVNAME_OPT_INCLUDE_ARRAYS	0x200	/* include array indices */

    #define	STR_INT_MOD_TYPE_NONE		0	/* no integer modifier */
    #define	STR_INT_MOD_TYPE_BYTE		1	/* signed byte modifier */
    #define	STR_INT_MOD_TYPE_UBYTE		2	/* unsigned byte modifier */
    #define	STR_INT_MOD_TYPE_SHORT		3	/* signed short modifier */
    #define	STR_INT_MOD_TYPE_USHORT		4	/* unsigned short modifier */
    #define	STR_INT_MOD_TYPE_LONG		5	/* signed long modifier */
    #define	STR_INT_MOD_TYPE_ULONG		6	/* unsigned long modifier */
    #define	STR_INT_MOD_TYPE_LONG_LONG	7	/* signed long long modifier */
    #define	STR_INT_MOD_TYPE_ULONG_LONG	8	/* unsigned long long modifier */

/*
** save/restore manager...
*/
    #define	SRMNGR_NO_SOURCE	-1	/* not connected to reader process */
    #define	SRMNGR_NORMAL		1	/* normal save/restore data */
    #define	SRMNGR_SDA_DATA		0	/* SDA data */
    #define	SRMNGR_SNAP_DATA	2	/* detached snapshot manager data */

    #define	SRMNGR_IMPLICIT_CATEGORY	-1	/* calculate category from file number */

    #define	SRMNGR_ALL_FILES	-1	/* process all files */

    #define	SRMNGR_SDA_MIN_CASE	0	/* minimum SDA case number */
    #define	SRMNGR_SDA_MAX_CASE	31	/* maximum SDA case number */

    #define	SRMNGR_NOT_DONE		0	/* save has not been finished */
    #define	SRMNGR_DONE		1	/* normal save */
    #define	SRMNGR_PROTECTED	2	/* file is protected */
    #define	SRMNGR_DESTROY		4	/* file is marked for overwrite */
    #define	SRMNGR_ARCHIVED		8	/* file is archived */

    #define	SRMNGR_MAX_SNAPSHOT_POINTS	2047	/* maximum number of snapshot points to return */

    #define	SRMNGR_SDA_SCALAR_DEVICE	0	/* SDA scalar device */
    #define	SRMNGR_SDA_SNAP_DEVICE	1	/* SDA snapshot device */
    #define	SRMNGR_SDA_FTP_DEVICE	2	/* SDA fast time plot device */

    #define	SRMNGR_OPT_NONE			0	/* no options selected */
    #define	SRMNGR_OPT_TIMER_REFERENCES	1	/* include timer references */
    #define	SRMNGR_OPT_IGNORE_SAVE_INFO	2	/* ignore device save information */
    #define	SRMNGR_OPT_ALLOW_INSERT		4	/* allow insertion of new save file devices */
    #define	SRMNGR_OPT_FULL_INFO		8	/* return full (directory) information */
    #define	SRMNGR_OPT_ORDER_ASCENDING	0x10	/* return data in ascending order */
    #define	SRMNGR_OPT_ORDER_BY_NUMBER	0x20	/* return data in numeric order */
    #define	SRMNGR_OPT_ALLOW_OBSOLETE	0x40	/* handle obsolete devices */
    #define	SRMNGR_OPT_INTERPOLATE_TIMES	0x80	/* interpolate timestamps */

    #define	SRMNGR_SEARCH_BY_ALL		0	/* search for all files */
    #define	SRMNGR_SEARCH_BY_NOTHING	0	/* search for all files */
    #define	SRMNGR_SEARCH_BY_FILE_NUMBER	1	/* search for files by file number */
    #define	SRMNGR_SEARCH_BY_DATE		2	/* search for files by date */

    typedef struct SRMNGR_SEARCH_BY_FILE_DATA
	{
	int	minimum_file_number;			/* minimum file number */
	int	maximum_file_number;			/* maximum file number */
	} SRMNGR_SEARCH_BY_FILE_DATA;

    typedef struct SRMNGR_SEARCH_BY_DATE_DATA
	{
	unsigned int	start_date;			/* start date in clinks */
	unsigned int	end_date;			/* end date in clinks */
	} SRMNGR_SEARCH_BY_DATE_DATA;

    #define	SRMNGR_SEARCH_SDA_DEVICE_CASES	(-2)	/* search all currently mapped cases for the present device */

    typedef struct SRMNGR_SEARCH_SDA_CASE_DATA
	{
	int	min_case_number;			/* minimum case number (use CLIB_DEFAULT_ARG for no minimum) */
	int	max_case_number;			/* maximum case number (use CLIB_DEFAULT_ARG for no maximum) */
	} SRMNGR_SEARCH_SDA_CASE_DATA;

    typedef struct SRMNGR_SEARCH_SDA_SET_DATA
	{
	int	min_set_number;				/* minimum set number (use CLIB_DEFAULT_ARG for no minimum) */
	int	max_set_number;				/* maximum set number (use CLIB_DEFAULT_ARG for no maximum) */
	} SRMNGR_SEARCH_SDA_SET_DATA;

    typedef struct SRMNGR_SR_SEARCH_VALUE_DATA
	{
	unsigned int	timestamp;			/* timestamp in clinks */
	int	file_number;				/* file number */
	int	length;					/* returned length */
	short	error;					/* data retrieval status */
	} SRMNGR_SR_SEARCH_VALUE_DATA;

    typedef struct SRMNGR_SDA_SEARCH_VALUE_DATA
	{
	unsigned int	timestamp;			/* timestamp in clinks */
	int	file_number;				/* file number */
	int	case_number;				/* case number */
	int	set_number;				/* case number */
	int	length;					/* returned length */
	short	error;					/* data retrieval status */
	} SRMNGR_SDA_SEARCH_VALUE_DATA;

    #define	SRMNGR_SNAP_ALL_SYSTEMS		(-1)	/* search all systems for files */
    #define	SRMNGR_SNAP_SYSTEM_LINAC	0	/* snapshot manager Linac system */
    #define	SRMNGR_SNAP_SYSTEM_BOOSTER	1	/* snapshot manager Booster system */
    #define	SRMNGR_SNAP_SYSTEM_MAIN_INJECTOR	2	/* snapshot manager Main Injector system */
    #define	SRMNGR_SNAP_SYSTEM_TEVATRON	3	/* snapshot manager Tevatron system */
    #define	SRMNGR_SNAP_SYSTEM_SWITCHYARD	4	/* snapshot manager Switchyard system */
    #define	SRMNGR_SNAP_SYSTEM_PBAR		5	/* snapshot manager Pbar system */
    #define	SRMNGR_SNAP_SYSTEM_CRYO		6	/* snapshot manager Cryo system */
    #define	SRMNGR_SNAP_SYSTEM_CDF		7	/* snapshot manager CDF system */
    #define	SRMNGR_SNAP_SYSTEM_RECYCLER	8	/* snapshot manager Recycler system */
    #define	SRMNGR_SNAP_SYSTEM_STORE	9	/* snapshot manager Store system */
    #define	SRMNGR_SNAP_SYSTEM_GLOBAL	10	/* snapshot manager Global system */
    #define	SRMNGR_SNAP_SYSTEM_SCRATCH	11	/* snapshot manager Scratch system */
    #define	SRMNGR_SNAP_SYSTEM_CREW		12	/* snapshot manager Crew system */
    #define	SRMNGR_SNAP_SYSTEM_MAX		24	/* snapshot manager maximum system */
    #define	SRMNGR_SNAP_NUM_SYSTEMS		25	/* number of snapshot manager systems */

    typedef struct SRMNGR_SNAP_DIR_ENTRY_DATA		/* detached snapshot manager data directory entry */
	{
	int	device_index;				/* device index */
	int	system_number;				/* system ID */
	int	record_number;				/* record number */
	unsigned int	date;				/* ctime of sample */
	int	user_id;				/* user key id */
	int	user_key_1;				/* user defined key 1 */
	int	user_key_2;				/* user defined key 2 */
	short	error;					/* ACNET standard error code */
	} __attribute__((packed)) SRMNGR_SNAP_DIR_ENTRY_DATA;

    #define	SRMNGR_SNAP_NUM_ARM_EVENTS	8	/* number of snapshot manager arm events */

    typedef struct SRMNGR_SNAP_DEVICE_ENTRY_DATA	/* detached snapshot manager device entry */
	{
	int	device_index;				/* device index */
	int	system_number;				/* system ID */
	int	user_id;				/* user key id */
	int	user_key_1;				/* user defined key 1 */
	int	user_key_2;				/* user defined key 2 */
	int	rearm_delay;				/* rearm delay in secs or -1 (one shot) */
	int	max_per_hour;				/* max snapshots/hour */
	int	handler_code;				/* special handler code */
	int	collection_rate;			/* collection rate in Hz */
	unsigned char	arm_events[SRMNGR_SNAP_NUM_ARM_EVENTS];	/* arming events */
	int	delay;					/* delay from arm event (ms) */
	float	duration;				/* collection time in 1/100's of sec */
	int	trigger_mode;				/* trigger mode */
	char	trigger_device[DEVICE_NAME_LEN];	/* trigger device name */
	unsigned int	trigger_mask;			/* trigger mask */
	} __attribute__((packed)) SRMNGR_SNAP_DEVICE_ENTRY_DATA;

/*
** graphic font manager...
*/
    #define	FONT_MIN_HEIGHT		11	/* minimum height of a character */
    #define	FONT_MIN_WIDTH		7	/* minimum width of a character */
    #define	FONT_MAX_HEIGHT		64	/* maximum height of a character */
    #define	FONT_MAX_WIDTH		32	/* maximum width of a character */

    #define	FONT_MAX_CHAR		256	/* maximum number of characters per font */

    #define	FONT_MAX_FILE_LEN	9	/* maximum length of font file name */

    #define	FONT_NAME_LEN		30	/* length of font file name */
    #define	FONT_DESCRIP_TEXT_LEN	240	/* length of font file descriptive text */

/*
** text_cursor
*/
    #define	TEXT_CURSOR_NO_UPDATE	0	/* no screen updates */
    #define	TEXT_CURSOR_AUTO_UPDATE	1	/* echo characters to screen and display text cursor */

    #define	TEXT_CURSOR_TEXT_COORDS	0	/* referenced to text window */
    #define	TEXT_CURSOR_WINDOW_COORDS	1	/* referenced to encompassing window */

    #define	TEXT_CURSOR_MIXED_CASE	0	/* allow mixed case */
    #define	TEXT_CURSOR_UPPER_CASE	1	/* allow upper case only */

    #define	TEXT_CURSOR_OPT_NONE	0	/* no options selected */
    #define	TEXT_CURSOR_OPT_INSERT_MODE	1	/* use insert rather than overwrite mode */
    #define	TEXT_CURSOR_OPT_NO_CTRL	8	/* don't process control keys */

/*
** cns_edit
*/
    #define	CNS_EDIT_INSERT_MODE	1
    #define	CNS_EDIT_REPLACE_MODE	2
    #define	CNS_EDIT_INSERT_WRAP	4

    #define	CNS_EDIT_FIELDS		1
    #define	CNS_EDIT_MENU		2

    #define	CNS_EDIT_CONTINUE	0		/* continue processing this key */
    #define	CNS_EDIT_DONT_PROCESS	1		/* don't process this key further */
    #define	CNS_EDIT_ADD_LINE	2		/* wish to add a line to the edit buffer */
    #define	CNS_EDIT_POST_PROCESS	-1		/* wish to process key after cns_edit */

/*
** decide...
*/
    #define	DECIDE_OK		1	/* select 'OK' field */
    #define	DECIDE_CANCEL		2	/* select 'cancel' field */

    #define	DECIDE_OPT_NONE		0	/* no options selected */
    #define	DECIDE_OPT_WORD_WRAP	1	/* wrap text on word boundaries */
    #define	DECIDE_OPT_YES_NO	0x10	/* mask to indicate that the switches should be labeled "Yes/No" */

/*
** acnet_error_text ...
*/
    #define	ACNET_ERROR_TEXT_LEN	32
    #define	SHORT_ACNET_ERROR_LEN	7

/*
**  file_view...
*/
    #define	FILE_VIEW_NODIR		0	/* don't show family directories */
    #define	FILE_VIEW_CHILD		1	/* show child directories */
    #define	FILE_VIEW_PARENT	2	/* show parent directories */
    #define	FILE_VIEW_FAMDIR	3	/* show child and parent directories */
    #define	FILE_VIEW_PARENT_CONSTRAIN	4	/* show parent directories */
    #define	FILE_VIEW_CDATE		256	/* show creation date */
    #define	FILE_VIEW_MDATE		(256*2)	/* show modification date */
    #define	FILE_VIEW_SIZE		(256*4)	/* show size */
    #define	FILE_VIEW_CHANGE_DATE	0x800	/* show change date */
    #define	FILE_VIEW_ACCESS_DATE	0x1000	/* show access date */
    #define	FILE_VIEW_NOMESS	0x10000	/* don't display embedded message windows */

    #define	FILE_VIEW_OPT_NONE	0	/* no options selected */
    #define	FILE_VIEW_OPT_NO_HTML	2	/* remove HTML code from text */
    #define	FILE_VIEW_OPT_EXTRACT_CLIB_HELP	4	/* extract CLIB-style help from text */
    #define	FILE_VIEW_OPT_SKIP_SEARCH	8	/* skip text preceding search string */
    #define	FILE_VIEW_OPT_USE_COLOR_TAGS	0x10	/* look for text color tags */
    #define	FILE_VIEW_OPT_SHOW_LINE_NUMBERS	0x20	/* display line numbers */
    #define	FILE_VIEW_OPT_INVERT_ORDER	0x40	/* invert default file ordering */

    #define	FILE_VIEW_ORDER_BY_NAME			0	/* order files by name */
    #define	FILE_VIEW_ORDER_BY_CREATION_DATE	1	/* order files by creation date */
    #define	FILE_VIEW_ORDER_BY_MODIFY_DATE		2	/* order files by modification date */
    #define	FILE_VIEW_ORDER_BY_ACCESS_DATE		3	/* order files by access date */
    #define	FILE_VIEW_ORDER_BY_SIZE			4	/* order files by size */

    #define	FILE_VMS_TO_LINUX	1	/* convert file name in VMS format to Linux format */
    #define	FILE_LINUX_TO_VMS	2	/* convert file name in Linux format to VMS format */

    #define	FILE_FIND_OPT_NONE	0	/* no file find options selected */
    #define	FILE_FIND_OPT_CHECK_PWD	1	/* always check the present directory first */

    #define	FILE_PATH_NONE		0	/* no file path supplied */
    #define	FILE_PATH_RELATIVE	1	/* relative file path supplied */
    #define	FILE_PATH_ABSOLUTE	2	/* absolute file path supplied */

    #define	FILE_PATH_LITERAL	0	/* path is literal */
    #define	FILE_PATH_ENV_VARIABLE	1	/* path is an environment variable */

/*
**  file_name_parse...
*/

    #define	FILE_PARSE_OPT_NONE			0	/* no options selected */
    #define	FILE_PARSE_OPT_WHOLE_NAME		1	/* return entire file name */
    #define	FILE_PARSE_OPT_NATIVE_FILES_ONLY	2	/* only parse native file names */

/*
**  console_info...
*/
    #define	CNS_ALL_CONSOLES	-1	/* request all active consoles */

    #define	CNSINFO_OPT_NONE	0	/* no options selected */
    #define	CNSINFO_OPT_FULL_DATA	1	/* want full console program information */

/*
** slider manager...
*/
    #define	SLIDER_HORIZONTAL	1	/* horizontal slider */
    #define	SLIDER_VERTICAL		2	/* vertical slider */

    #define	SLIDER_DECREMENT_LIMIT	-4	/* slider was decremented, but was already at its limit */
    #define	SLIDER_BLOCK_DECREMENTED	-2	/* slider was block decremented */
    #define	SLIDER_DECREMENTED	-1	/* slider was decremented */
    #define	SLIDER_NOT_MOVED	0	/* slider was not moved */
    #define	SLIDER_INCREMENTED	1	/* slider was incremented */
    #define	SLIDER_BLOCK_INCREMENTED	2	/* slider was block incremented */
    #define	SLIDER_DRAGGED		3	/* slider was dragged */
    #define	SLIDER_INCREMENT_LIMIT	4	/* slider was incremented, but was already at its limit */

/*
**  FTP support...
*/
    #define	FTP_LABEL_LEN		14			/* length of an FTP calculated trace label */

    #define	FTP_MIN_POINTS		2			/* minimum number of points to draw for a calculated trace */
    #define	FTP_MAX_POINTS		100			/* maximum number of points to draw for a calculated trace */

    #define	FTP_DEFAULT_COLOR	-1			/* default calculated trace color */

    #define	FTP_CATEGORY_NAME_LEN	80			/* length of an FTP category name */
    #define	FTP_FILE_NAME_LEN	80			/* length of an FTP file name */

/*
**  SNP support...
*/
    #define	SNP_CATEGORY_NAME_LEN	80			/* length of a snapshot category name */
    #define	SNP_FILE_NAME_LEN	80			/* length of a snapshot file name */

/*
**  printer_menu support...
*/
    #define	QUEUE_NAME_LEN		16	/* length of a printer queue name */

    #define	PRINTER_OPT_NONE	0	/* no options requested */
    #define	PRINTER_OPT_NO_PS	1	/* don't allow the selection of Postscript-only queues */

/* printer type codes */

    #define	PRINTER_ALL		-5	/* all printer types*/
    #define	PRINTER_COLOR		-4	/* color printer */
    #define	PRINTER_BLACKWHITE	-3	/* black and white printer */
    #define	PRINTER_MAIL		-2	/* mail message */
    #define	PRINTER_UNKNOWN		-1	/* printer type not known */
    #define	PRINTER_NONE		0	/* No printer type */
    #define	PRINTER_PS_LASER	1	/* Postscript B/W printer */
    #define	PRINTER_BW_PS		1	/* Postscript B/W printer */
    #define	PRINTER_PS_COLOR	2	/* Postscript color printer */
    #define	PRINTER_COLOR_PS	2	/* Postscript color printer */
    #define	PRINTER_GRAY_PS		3	/* Postscript Grayscale printer */
    #define	PRINTER_COLOR_PS_FILM	4	/* Postscript color printer plus film */

typedef struct PRINTER_Q_INFO {	    	    	/* information about a printer queue */
    short   	qnum;	    	    	    	/* queue number */
    char    	qname[QUEUE_NAME_LEN];  	/* queue name */
    short   	pr_type;    	    	    	/* printer type */
} __attribute__((packed)) PRINTER_Q_INFO;

typedef struct COPIES_DIR { 	    	    	/* directory entry for D5 save file */
    char    	fileid[9];  	    	    	/* file ID of save file */
    char    	time[16];   	    	    	/* save file creation time */
    char    	title[80];  	    	    	/* window title */
    short   	flags;	    	    	    	/* image flags */
    int    	size;    	    	    	/* Image size in 512 byte blocks */
} __attribute__((packed)) COPIES_DIR;

/*
**  pgm_data_storage support...
*/
    #define	PGM_DATA_MAX_LEN	3900			/* maximum number of bytes to read/write */

/*
**  linked list routines...
*/
typedef struct LIST_LINK {
    struct LIST_LINK *next;
    struct LIST_LINK *prev;
} __attribute__((packed)) list_link_t;

typedef void (*LIST_VOID_FUNC)(list_link_t *);
typedef int (*LIST_BOOL_FUNC)(list_link_t *, void *);

    #define	LIST_DIR_FORWARD	(0)
    #define	LIST_DIR_REVERSE	(1)

    #define	CAST_LLINK_TO(T,f,p)	((T *)((char *)(p) - (int)&((T *)0)->f))

    #ifndef _SYS_QUEUE_H_		/* name conflict with unix <sys/queue.h> */
        #define	LIST_IS_EMPTY(hdr)		((hdr) == (hdr)->next)
        #define	LIST_INSERT_HEAD(hdr,entry)	list_insert((hdr), (entry))
        #define	LIST_INSERT_TAIL(hdr,entry)	list_insert((hdr)->prev, (entry))
    #endif				/* _SYS_QUEUE_H_ */

/*
**  lock facility
*/
//    #define	LOCK_MAX_NAME_LEN	64	/* maximum lock name length */

/*
**  break thru facility
*/
    #define	BREAK_THRU_TOMAX	32	/* user name maximum length */
    #define	BREAK_THRU_MESSMAX	80	/* message maximum length */

/*
**  select field routines
*/
    #define	SELECT_FIELD_INVALID_ID	-1	/* invalid select field ID */

    #define	SELECT_FIELD_BY_HANDLE	2	/* treat argument as handle string */
    #define	SELECT_FIELD_BY_LABEL	0x40	/* treat argument as label string */

    #define	SELECT_FIELD_OPT_NONE	0	/* no options selected */
    #define	SELECT_FIELD_OPT_BY_ENTRY_TEXT	0	/* specify by entry text */
    #define	SELECT_FIELD_OPT_BY_ENTRY_VALUE	4	/* specify by entry value */
    #define	SELECT_FIELD_OPT_HIDE_NO_CHANGE	8	/* don't report user entries when the selection doesn't change */
    #define	SELECT_FIELD_OPT_MULTICOLUMN_MENU	0x10	/* use a multicolumn menu when appropriate */

/*
**  list field routines
*/
    #define	LIST_FIELD_INVALID_ID	-1	/* invalid list field ID */

    #define	LIST_FIELD_ALIGN_LABEL	0	/* interpret coordinates from the start of the label text */
    #define	LIST_FIELD_ALIGN_LIST_TEXT	1	/* interpret coordinates from the start of the list text field */

    #define	LIST_FIELD_ENTRY_INDEX	0	/* data passed is an entry index number */
    #define	LIST_FIELD_ENTRY_TEXT	1	/* data passed is an entry text string */

    #define	LIST_FIELD_BY_ID	1	/* access via field ID */
    #define	LIST_FIELD_BY_HANDLE	2	/* access via handle */

    #define	LIST_FIELD_OPT_NONE	0	/* no options selected */
    #define	LIST_FIELD_OPT_STATIC_TEXT	1	/* always display the default text */
    #define	LIST_FIELD_OPT_CENTER_TEXT	2	/* center text strings when displayed */
    #define	LIST_FIELD_OPT_LABEL_ON_RIGHT	4	/* display the text to the right of the list field */

/*
**  input field routines
*/
    #define	INPUT_FIELD_INVALID_ID	-1	/* invalid input field ID */

    #define	INPUT_FIELD_ALIGN_LABEL	0	/* interpret coordinates from the start of the label text */
    #define	INPUT_FIELD_ALIGN_VALUE	1	/* interpret coordinates from the start of the value field */

    #define	INPUT_FIELD_BY_ID	1	/* access via field ID */
    #define	INPUT_FIELD_BY_HANDLE	2	/* access via handle */

    #define	INPUT_FIELD_OPT_NONE	0	/* no options selected */
    #define	INPUT_FIELD_OPT_NO_BRACKETS	1	/* no bracketing characters */
    #define	INPUT_FIELD_OPT_CENTER_VALUE	2	/* center displayed values */
    #define	INPUT_FIELD_OPT_LABEL_ON_RIGHT	4	/* display the text to the right of the input field */
    #define	INPUT_FIELD_OPT_SINGLE_LABEL	8	/* only one label supplied */
    #define	INPUT_FIELD_OPT_REPEAT_LABEL	0x18	/* only one label supplied and apply it to every field */

/*
**  toggle switch routines
*/
    #define	TOGGLE_SWITCH_INVALID_ID	-1	/* invalid toggle switch ID */

    #define	TOGGLE_SWITCH_ALIGN_LABEL	0	/* interpret coordinates from the start of the label text */
    #define	TOGGLE_SWITCH_ALIGN_VALUE	1	/* interpret coordinates from the start of the value field */

    #define	TOGGLE_SWITCH_BY_ID		1	/* access via switch ID */
    #define	TOGGLE_SWITCH_BY_HANDLE		2	/* access via handle */

    #define	TOGGLE_SWITCH_OPT_NONE		0	/* no options selected */
    #define	TOGGLE_SWITCH_OPT_NO_BRACKETS	1	/* no bracketing characters */
    #define	TOGGLE_SWITCH_OPT_LABEL_ON_RIGHT	4	/* display the text to the right of the toggle switch */

/*
**  window button routines
*/
    #define	WINDOW_BUTTON_INVALID_ID	-1	/* invalid button ID */

    #define	WINDOW_BUTTON_BY_ID	1	/* access via button ID */
    #define	WINDOW_BUTTON_BY_HANDLE	2	/* access via handle */
    #define	WINDOW_BUTTON_BY_LABEL	(WMNGR_BY_LABEL)	/* access via label string */

    #define	WINDOW_BUTTON_OPT_NONE	0		/* no options selected */
    #define	WINDOW_BUTTON_OPT_NO_HIGHLIGHT	8	/* suppress automatic highlighting */

/*
**  generic structure routines
*/
    #define	STRUCT_BY_NAME		1		/* access via structure name */
    #define	STRUCT_BY_CLASS		2		/* access via class name */

//    #define	STRUCT_NAME_LEN		64		/* maximum length of a structure name */
//    #define	STRUCT_CLASS_NAME_LEN	64		/* maximum length of a structure class name (This is defined in cns_data_structs.h.) */

/*
**  Expression routines
*/
    #define	EXPR_OPT_NONE		0		/* no options selected */
    #define	EXPR_OPT_PARSE_ONLY	1		/* parse, but do not evalute expression */
    #define	EXPR_OPT_CANCEL_REQUESTS	0x20	/* cancel data requests */
    #define	EXPR_OPT_FREE_MEMORY	0x40		/* free associated memory */
    #define	EXPR_OPT_NO_STALE	0x80		/* suppress stale data errors */
    #define	EXPR_OPT_SUBST_ARRAY_DEVICES	0x1000	/* substitute device names can include array indices */

/*
**  console window support
*/
    #define	WINDOW_SMALL		0		/* small window */
    #define	WINDOW_MEDIUM		1		/* medium window */
    #define	WINDOW_LARGE		2		/* large window */
    #define	WINDOW_NOT_LARGE	-1		/* not large window (TV windows only) */

    #define	WINDOW_IMAGE_MAX_NAME_LEN	132	/* maximum length of a window image name */

    #define	WINDOW_IMAGE_TO_GIF		3	/* save as GIF image */
    #define	WINDOW_IMAGE_TO_D5		4	/* save as D5 image */

    #define	WINDOW_IMAGE_OPT_NONE		0	/* no options selected */
    #define	WINDOW_IMAGE_OPT_APPEND_DATE	1	/* append date/time stamp to file name (GIF only) */
    #define	WINDOW_IMAGE_OPT_INVERT_COLORS	4	/* invert colors when saving image (GIF only) */
    #define	WINDOW_IMAGE_OPT_WAIT_FOR_SAVE	0x100	/* wait for image save completion */

/*
**  device listing
*/
    #define	DEVLST_TITLE_OPTION			-1	/* title option */
    #define	DEVLST_HEADINGS_OPTION			-2	/* headings option */
    #define	DEVLST_COMMENTS_OPTION			-3	/* comments option */
    #define	DEVLST_SKIP_INVALID_OPTION		-4	/* option to skip invalid devices in an input file */
    #define	DEVLST_FOOTERS_OPTION			-5	/* footers option */
    #define	DEVLST_ORDER_DEVICE_OPTION		-6	/* device ordering option */

    #define	DEVLST_ORDER_DEVICE_BY_NONE		0	/* no device ordering requested */
    #define	DEVLST_ORDER_DEVICE_BY_NAME_ASC		1	/* order devices by name (ascending) */
    #define	DEVLST_ORDER_DEVICE_BY_NAME_DESC	2	/* order devices by name (descending) */
    #define	DEVLST_ORDER_DEVICE_BY_DI_ASC		3	/* order devices by device index (ascending) */
    #define	DEVLST_ORDER_DEVICE_BY_DI_DESC		4	/* order devices by device index (descending) */
    #define	DEVLST_ORDER_DEVICE_BY_FULL_NAME_ASC	5	/* order devices by full name (ascending) */
    #define	DEVLST_ORDER_DEVICE_BY_FULL_NAME_DESC	6	/* order devices by full name (descending) */
    #define	DEVLST_ORDER_DEVICE_BY_DESCR_ASC	7	/* order devices by description (ascending) */
    #define	DEVLST_ORDER_DEVICE_BY_DESCR_DESC	8	/* order devices by description (descending) */
    #define	DEVLST_ORDER_DEVICE_BY_FULL_DESCR_ASC	9	/* order devices by full description (ascending) */
    #define	DEVLST_ORDER_DEVICE_BY_FULL_DESCR_DESC	10	/* order devices by full description (descending) */

    #define	DEVLST_FILTER_ANALOG_ALARM		1	/* only include devices in alarm (analog) */
    #define	DEVLST_FILTER_DIGITAL_ALARM		2	/* only include devices in alarm (digital) */
    #define	DEVLST_FILTER_BROKEN			4	/* only include devices which are broken (out of service) */
    #define	DEVLST_FILTER_ANALOG_BYPASSED		8	/* only include devices whose alarm is bypassed (analog) */
    #define	DEVLST_FILTER_DIGITAL_BYPASSED		0x10	/* only include devices whose alarm is bypassed (digital) */
    #define	DEVLST_FILTER_READ_ARRAY		0x20	/* only include devices whose reading property is an array device */
    #define	DEVLST_FILTER_SET_ARRAY			0x40	/* only include devices whose setting property is an array device */
    #define	DEVLST_FILTER_STATUS_ARRAY		0x80	/* only include devices whose status property is an array device */
    #define	DEVLST_FILTER_READ_SIZE_MISMATCH	0x100	/* only include devices whose reading size does not match its PDB */
    #define	DEVLST_FILTER_SET_SIZE_MISMATCH		0x200	/* only include devices whose setting size does not match its PDB */
    #define	DEVLST_FILTER_PROP_READING		0x400	/* only include devices which have a reading property */
    #define	DEVLST_FILTER_PROP_SETTING		0x800	/* only include devices which have a setting property */
    #define	DEVLST_FILTER_PROP_STATUS		0x1000	/* only include devices which have a basic status property */
    #define	DEVLST_FILTER_PROP_CONTROL		0x2000	/* only include devices which have a basic control property */
    #define	DEVLST_FILTER_PROP_ANALOG_ALARM		0x4000	/* only include devices which have an analog alarm property */
    #define	DEVLST_FILTER_PROP_DIGITAL_ALARM	0x8000	/* only include devices which have a digital alarm property */

    #define	DEVLST_OUTPUT_FILE			0	/* output to a file */
    #define	DEVLST_OUTPUT_MAIL			1	/* output to E-mail */
    #define	DEVLST_OUTPUT_MEMORY			2	/* output to caller's memory */
    #define	DEVLST_OUTPUT_PRINTER			3	/* output to printer */
    #define	DEVLST_OUTPUT_DATABASE			4	/* output to database */

/*
**  front end info
*/
    #define	FE_ARCHITECTURE_TYPE	1		/* front end architecture type */
    #define	FE_SYSTEM_TYPE		2		/* front end system type */

/*
**  FTP copy
*/
    #define	FTP_XFER_OPT_NONE	0		/* no options selected */
    #define	FTP_XFER_OPT_NO_DISPLAY	1		/* no transfer display requested */

/*
**  Comparator values
*/
    #define	COMPARATOR_EQUALS		0	/* equal */
    #define	COMPARATOR_NOT_EQUALS		1	/* not equal */
    #define	COMPARATOR_NONE			2	/* no comparison */
    #define	COMPARATOR_LESS_THAN		3	/* less than */
    #define	COMPARATOR_LESS_EQUAL		4	/* less than or equal */
    #define	COMPARATOR_GREATER_THAN		5	/* greater than */
    #define	COMPARATOR_GREATER_EQUAL	6	/* greater than or equal */

/*
**  Window edit values
*/
    #define	EDIT_OPT_NONE			0	/* no options selected */
    #define	EDIT_OPT_ALLOW_SYMBOLS		1	/* allow the user to insert graphic symbols */
    #define	EDIT_OPT_ALLOW_COLOR_CHANGES	2	/* allow the user to change text color */
    #define	EDIT_OPT_ACL_SENSITIVE		4	/* enable ACL sensitivity */
    #define	EDIT_OPT_MODAL_DIALOG		8	/* don't exit when the user interrupts outside of the edit window */

/*
**  Alarm list values
*/
    #define	ALARM_LIST_NUM_SYSTEMS		14
    #define	ALARM_LISTS_PER_SYSTEM		160
    #define	ALARM_SYSTEM_NAME_LEN		16
    #define	ALARM_LIST_NAME_LEN		8
    #define	ALARM_LIST_NUM_DEVICES		40
    #define	ALARM_LIST_MAX_DEVICES		(ALARM_LISTS_PER_SYSTEM * ALARM_LIST_NUM_DEVICES)

    #define	ALARM_LIST_EMPTY		0
    #define	ALARM_LIST_ENABLED		1
    #define	ALARM_LIST_BYPASSED		2

typedef struct ALARM_LIST_ENTRY
    {
    char	system_name[ALARM_SYSTEM_NAME_LEN+2];
    char	list_name[ALARM_LIST_NAME_LEN+2];
    int		device_index;
    short	property;
    int		index;
    } __attribute__((packed)) ALARM_LIST_ENTRY;

typedef struct USER_ALARM_LIST_DATA
    {
    char	list_name[ALARM_LIST_NAME_LEN+2];
    int		list_id;
    int		list_position;
    } __attribute__((packed)) USER_ALARM_LIST_DATA;

    #define	ALARM_LIST_OPT_NONE		0	/* no options selected */
    #define	ALARM_LIST_OPT_NO_DUPLICATES	1	/* discard duplicate entries */

/*
**  Alarm callbacks
*/
    #define	ALARMS_ALL_DEVICES		(-1)	/* include all alarm devices */

    #define	ALARM_STATE_UNKNOWN		(-1)	/* unknown alarm state */
    #define	ALARM_GOING_GOOD		0	/* alarm is going good */
    #define	ALARM_GOING_BAD			1	/* alarm is going bad */

/*
**  Save/restore values
*/
    #define	NUM_LEVEL_1_SAVE_LISTS		18
    #define	NUM_LEVEL_2_SAVE_LISTS		10
    #define	SAVE_LISTS_PER_SYSTEM		(NUM_LEVEL_1_SAVE_LISTS * NUM_LEVEL_2_SAVE_LISTS)
    #define	SAVE_LIST_LEVEL_1_NAME_LEN	8
    #define	SAVE_LIST_LEVEL_2_NAME_LEN	7
    #define	SAVE_LIST_NUM_DEVICES		80
    #define	SAVE_LIST_MAX_DEVICES		(SAVE_LISTS_PER_SYSTEM * SAVE_LIST_NUM_DEVICES)

/*
**  indexed file access values
*/
    #define	INDEX_FILE_OPT_NONE		0	/* no options selected */
    #define	INDEX_FILE_OPT_SHARED_ACCESS	1	/* allow shared file access */
    #define	INDEX_FILE_OPT_WRITE_ACCESS	2	/* allow write access */
    #define	INDEX_FILE_OPT_READ_LOCKED	4	/* allow reading of locked records */
    #define	INDEX_FILE_OPT_ALLOW_UPDATES	8	/* allow updates of existing records */

/*
**  tagged file support
*/
    #define	TAG_OPT_NONE		0	/* no options selected */
    #define	TAG_OPT_NO_TRIM		0	/* don't trim white space */
    #define	TAG_OPT_TRIM		1	/* trim white space */
    #define	TAG_OPT_SKIP_TERMINATOR	2	/* skip past the terminator character */
    #define	TAG_OPT_CASE_SENSITIVE	0	/* case sensitive operation */
    #define	TAG_OPT_CASE_INSENSITIVE	4	/* case insensitive operation */
    #define	TAG_OPT_SUPPRESS_NULL_STRINGS	0	/* don't allow null strings */
    #define	TAG_OPT_HANDLE_QUOTES	0x80	/* handle quoted strings */
    #define	TAG_OPT_SUPPRESS_NEW_LINES	0x400	/* suppress new line characters */
    #define	TAG_OPT_WANT_END_TAG_INDICATORS	0x800	/* want end tag indicator characters */
    #define	TAG_OPT_HANDLE_ESCAPED_QUOTES	0x8000000	/* handle escaped quotes */

typedef struct FILE_TAG_DATA {
    char    *tag_name;
    int     tag_depth;
    char    *tag_path;
    char    *attributes;
    char    *contents;
} __attribute__((packed)) FILE_TAG_DATA;

/*
**  spawned command support
*/
    #define	SPAWN_OPT_NONE		0	/* no options selected */
    #define	SPAWN_OPT_SEND_STATUS	1	/* send status to requester */
    #define	SPAWN_OPT_SEND_CLIENT_MESSAGE	2	/* send message to requester */

#define	SPAWNED_ACL_REMOTE_TOKEN_LEN	16

typedef struct SPAWNED_ACL_REMOTE_MESSAGE_INFO
    {
    char	token_string[SPAWNED_ACL_REMOTE_TOKEN_LEN+2];
    int		num_symbols;
    char	**symbol_names;
    } __attribute__((packed)) SPAWNED_ACL_REMOTE_MESSAGE_INFO;

typedef struct SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO
    {
    char	token_string[WEBLOG_REMOTE_TOKEN_LEN+2];
    } __attribute__((packed)) SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO;

/*
**  shot log support
*/
#include "shotloglib.h"

/*
**  tcpnet routines...
*/
#define	TCP_MAXLEN		16384			/* maximum message size for tcpnet */

/*
**  console task routines...
*/
#define	CNSTASK_ALL_SLOTS		0x80000001	/* request all console slots */

#define CNSTASK_ALL_WINDOWS		0x80000001	/* request all console windows */
#define CNSTASK_WINDOW_TITLE_LEN	80		/* length of a console window title */

#define	SLOT_OPT_NONE			0	/* no options selected */
#define	SLOT_OPT_USE_CALLER_SLOT	1	/* allow the use of the caller's slot */
#define	SLOT_OPT_IGNORE_CONSOLE_CHANGES	2	/* ignore changes in console when assigning slots */

#include "tlguti.h"

/*
** bubble help routines ...
*/

#define	BUBBLE_HELP_INVALID_ID	(-1)	/* invalid bubble help ID */

/*
**  parameter page info routines...
*/
#define	PARAMPAGE_TITLE_LEN		30	/* length of a parameter page title (as displayed by PA0052) */
#define	PARAMPAGE_TITLE_LEN_DB	40	/* maximum length of a subpage's title excludes termination (as stored in appdb.smedinghoff.param_page_subpage) */
#define	PARAMPAGE_MAX_DEVICES		44	/* maximum number of devices per parameter page */
#define	PARAMPAGE_MAX_LEVEL_1		99	/* maximum number of first level subpages */
#define	PARAMPAGE_MAX_LEVEL_1_HOUSES	50	/* maximum number of houses, which is always 1st level */
#define	PARAMPAGE_MAX_LEVEL_3		8	/* maximum number of third level subpages */
#define	PARAMPAGE_MAX_LEVEL_2_PER_LEVEL_3 13 /* maximum number of second level subpages per third level page - only 12 when more than on 3rd level */
#define	PARAMPAGE_MAX_LEVEL_2		(PARAMPAGE_MAX_LEVEL_3 * PARAMPAGE_MAX_LEVEL_2_PER_LEVEL_3)	/* maximum number of second level subpages */
#define	PARAMPAGE_MAX_LEVEL_1_LEN	2	/* maximum length of a first level subpage name */
#define	PARAMPAGE_DEFAULT_LEVEL_3_LEN	4	/* default length of a third level subpage name */
#define	PARAMPAGE_MAX_LEVEL_3_LEN	8	/* maximum length of a third level subpage name */
#define	PARAMPAGE_MAX_LEVEL_2_LEN	11	/* maximum length of a second level subpage name */

#define	PARAMPAGE_SUBPAGE_TEXT_LEN	64	/* length of subpage menu text */
#define	PARAMPAGE_LINE_TEXT_LEN		50	/* length of parameter page line text */

#define	PARAMPAGE_LEX_SA_NAME_LEN	8	/* length of a parameter page Lex SA name */

typedef struct PARAMPAGE_SUBPAGE_DATA
    {
    char	index_page[PAGNAM_LEN];
    int		subpage_number;
    int		row_number;
    int		array_index;
    char	line_text[PARAMPAGE_LINE_TEXT_LEN];
    } __attribute__((packed)) PARAMPAGE_SUBPAGE_DATA;

/*
** abort window routines ...
*/
#define	ABORT_OPT_NONE			0	/* no options selected */
#define	ABORT_OPT_ENABLE_MOVES		1	/* enable moving the abort window */
#define	ABORT_OPT_FORCE_POSITION	2	/* force the position of the abort window */

/*
** DPM statistics routines
*/

typedef struct DPM_TASK_INFO_DATA
    {
    char	task_name[PROCESS_NAME_LEN+2];	/* task name */
    short	node;				/* taks node */
    int		num_entries;			/* number of CRL entries */
    int		console;			/* console number (if > 0) */
    int		slot;				/* slot number (if > 0) */
    int		task_id;			/* process ID (pid) */
    } __attribute__((packed)) DPM_TASK_INFO_DATA;

typedef struct DPM_DEVICE_INFO_DATA
    {
    int		device_index;
    short	property;
    int		irinx;
    } __attribute__((packed)) DPM_DEVICE_INFO_DATA;

/*
** Synoptic display support
*/
#define	SYNOPTIC_DISPLAY_NAME_LEN	254	/* maximum length of a Synoptic display name */

/*
** Packed buffer support
*/
#define	PACKED_BUFFER_OPT_NONE		0	/* no options specified */
#define	PACKED_BUFFER_OPT_MATCH_ENTRY	1	/* match the entry with the request */

/*
** ACNET task information
*/
typedef struct ACNET_TASK_INFO_ENTRY
    {
    char	task_name[PROCESS_NAME_LEN+2];
    int		is_rum_connected;
    int		task_id;
    unsigned int	pid;
    } __attribute__((packed)) ACNET_TASK_INFO_ENTRY;

/*
**  ACL routines
*/
    #define	SPAWNED_ACL_OPT_NONE	0			/* no options selected */

/*
**  data event routines
*/
    #define	DATA_EVENT_OPT_NONE		0		/* no options selected */
    #define	DATA_EVENT_OPT_EVENT_PLUS_DELAY	0x200		/* support event plus delay */

/*
**  MECCA support
*/
#define	MECCA_PROJECT_TYPE_PAS		2	/* Primary Applications */
#define	MECCA_PROJECT_TYPE_SAS		4	/* Secondary Applications */
#define	MECCA_PROJECT_TYPE_ULS		8	/* User Libraries */
#define	MECCA_PROJECT_TYPE_SERVICES	0x10	/* services */

/*
**  login info...
*/
    #define	LOGIN_OPT_NONE			0		/* no options selected */
    #define	LOGIN_OPT_EXIT_ON_ERROR		1		/* exit the program on user entry error */
    #define	LOGIN_OPT_ALLOW_NULL_PASSWORD	2		/* allow null (0 length) password */
    #define	LOGIN_OPT_NO_PASSWORD_NEEDED	4		/* no password needed */

/*
**  device file support...
*/
    #define	DEVFIL_OPT_NONE			0		/* no options selected */
    #define	DEVFIL_OPT_WANT_FULL_NAMES	1		/* want/allow full device names */
    #define	DEVFIL_OPT_ALLOW_OBSOLETE	2		/* allow obsolete device names */
    #define	DEVFIL_OPT_IGNORE_BAD_NAMES	4		/* ignore bad device name strings */
    #define	DEVFIL_OPT_CHECK_FOR_MULTIPLE	8		/* check for multiple devices per line */

typedef struct INVALID_DEVICE_NAME_INFO
    {
    int		line_number;
    char	device_name[2*DEVICE_FULL_NAME_LEN+2];
    } __attribute__((packed)) INVALID_DEVICE_NAME_INFO;

/*
**  process information support...
*/
    #define	PROC_SEARCH_TYPE_NONE		(-1)	/* return all processes */
    #define	PROC_SEARCH_CHILDREN		1	/* return all child processes (first generation) for a given process */
    #define	PROC_SEARCH_BY_USER_NAME	2	/* return all processes belonging to a given user (by name) */
    #define	PROC_SEARCH_BY_USER_ID		4	/* return all processes belonging to a given user (by ID) */
    #define	PROC_SEARCH_BY_NAME		8	/* return all processes matching a name string */
    #define	PROC_SEARCH_ALL_CHILDREN	0x10	/* return all child processes (all generations) for a given process */
    #define	PROC_SEARCH_BY_COMMAND_LINE	0x20	/* return all processes matching a command line string */
    #define	PROC_SEARCH_BY_STARTED_BEFORE	0x40	/* return all processes started before a requested time */
    #define	PROC_SEARCH_BY_STARTED_AFTER	0x80	/* return all processes started on or after a requested time */
    #define	PROC_SEARCH_BY_STATE		0x100	/* return all processes in a particular state */
    #define	PROC_SEARCH_BY_MEMORY_SIZE	0x200	/* return all processes having a memory size of at least a certain size */
    #define	PROC_SEARCH_BY_CPU_TIME		0x400	/* return all processes that have used at least a certain amount of CPU time */

    #define	PID_INFO_NAME_LEN		16
    #define	PID_INFO_COMMAND_LINE_LEN	256
    #define	PID_INFO_STATE_LEN		16

typedef struct PID_INFO
    {
    int		pid;
    char	name[PID_INFO_NAME_LEN+2];
    char	command_line[PID_INFO_COMMAND_LINE_LEN+2];
    char	state[PID_INFO_STATE_LEN+2];
    int		user_id;
    int		group_id;
    int		parent_pid;
    int		tracer_pid;
    unsigned int	memory_size;
    unsigned int	resident_set_size;
    unsigned int	cpu_time;
    unsigned int	num_threads;
    unsigned int	start_time_in_jiffies;
    time_t	start_time;
    } __attribute__((packed)) PID_INFO;

#define	OS_PROCESS_NAME_LEN	16

typedef struct OS_PROCESS_ENTRY
    {
    int			pid;				/* pid */
    char		name[OS_PROCESS_NAME_LEN+2];	/* process name */
    } __attribute__((packed)) OS_PROCESS_ENTRY;

typedef int (*delete_array_value_func)(int entry_number, void *value,
				       void *callback_data);


/******************************************************************************/
/*
**	returned status definitions for second generation CLIB routines
*/
/******************************************************************************/

/*
**  error_display...
*/
    #define	ERR_OK			0			/* no error */
    #define	ERR_ERROR		1			/* an error occurred */
    #define	ERR_OVFLOW		2			/* too many repeated errors occurred (no display) */
    #define	ERR_NO_INIT		3			/* no error setup (error_init) has been done */
    #define	ERR_NOT_ENABLED		4			/* error logging is not enabled */

/*
**  check_for_sa...
*/
    #define	PGM_LOADING		1			/* task image is being created */
    #define	PGM_INITIALIZING	2			/* task is in its initialization routine */
    #define	PGM_RUNNING		3			/* program is up and running */

/*
**  scripting...
*/
    #define	SCRIPT_ISON		1			/* script in progress */
    #define	SCRIPT_ISOFF		2			/* script not in progress */
    #define	SCRIPT_DONE		3			/* script just completed */
    #define	SCRIPT_ABORTED		4			/* script just aborted */
    #define	SCRIPT_WRITING		5			/* script creation in progress */
    #define	SCRIPT_WRITING_		5			/* script creation in progress */

/*
**  switch manager...
*/
    #define	SWITCH_OFF		0			/* switch is off */
    #define	SWITCH_ON		1			/* switch is on */

    #define	SWITCH_NOT_PRESSED	-1			/* switch was not pressed */
    #define	SWITCH_WAS_PRESSED	-2			/* switch was pressed */


/******************************************************************************/
/*
**	function prototypes for second generation CLIB routines
*/
/******************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

    int abort_assert(void);
    int abort_cancel(void);
    int abort_cancel_all(void);
    int abort_check(int update_interrupts=TRUE);
    int abort_enable_c(int enable);
    int abort_init(char *mess=NULL, int border_color=BLUE,
                   int top_row=WMNGR_CENTER, int left_column=WMNGR_CENTER,
                   abort_update_function update_func=NULL, int update_arg=0,
                   int options=ABORT_OPT_NONE);
    int abort_key_cancel(void);
    int abort_key_init(void);
    int abort_key_pressed(void);
    int abort_requested(void);
    int abort_to_front(void);
    int acknowledge(int const *top_row, int const *left_column,
		    char const *text, int const *num_chars,
		    int const *line_length=NULL, int const *text_color=NULL,
		    char const *title=NULL, int const *word_wrap=NULL,
		    HELP_CALLBACK_DATA const *help_info=NULL);
#define DECIDE_CPP_MAX_PROMPT 30
    int acknowledge_c(int top_row, int left_column, char const *text,
		      int num_chars,int line_length=DECIDE_CPP_MAX_PROMPT,
		      int text_color=(int) GREEN,
		      char const *title=(char *) NULL,
		      int word_wrap=TRUE,
		      HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL);
    int acnet_chgpgm(int console_number, char const *process_name, int slot,
                     char const *command_buffer=(char *) NULL,
		     int is_script=FALSE,
                     int command_buffer_length=CMD_LIN_SIZ);
    int acnet_cnsnum_to_node(int console_number, short *node);
    int acnet_node_ip_address_c(int node, char *ip_address, char *ip_name,
                                int return_alt_node);
    int acnet_node_name_exists_in_db(char const *node_name,
				     int *node=(int *) NULL,
				     int *db_status=(int *) NULL);
    int acnet_node_to_cnsnum_c(int node, int *console_number, int instance=0);
    int acnet_node_type_c(int node, int request_type, int *node_type);
    int acnet_send_wait(short to_node, int task, void *request_buffer,
                        int request_length, void *reply_buffer,
                        int reply_length, int timeout,
                        int *return_length=(int *) NULL);
    int acnet_trunk_node_exists_in_db_c(int node, char *node_name=(char *) NULL,
					int *db_status=(int *) NULL);
    int alarm_callback_init_c(int num_devices, int *device_indices,
			      int alarm_type, alarm_handler callback_func,
			      void *callback_data=(void *) NULL,
			      alarm_heartbeat heartbeat_func=(alarm_heartbeat) NULL);
    int alarm_callback_term_c(int num_devices, int *device_indices,
			      int alarm_type, alarm_handler callback_func,
			      void *callback_data=(void *) NULL,
			      alarm_heartbeat heartbeat_func=(alarm_heartbeat) NULL);
    int alarm_find_alarms_daemon_c(char *host_name, int *port,
				   int name_length=0);
    int alarm_get_current_alarms(int *num_alarms,
				 edp_t **alarm_info=(edp_t **) NULL);
    int alarm_get_num_current_alarms(int *num_alarms);
    int alarm_list_all_display_console_masks(int *num_lists,
					     int *list_numbers,
					     unsigned long long *console_masks);
    int alarm_list_display_console_mask_c(int list_number,
					  unsigned long long *console_mask);
    int alarm_list_find_device_c(char *system_name, int device_index,
                                 short property, int max_return,
                                 int *num_entries,
                                 ALARM_LIST_ENTRY *list_entries);
    int alarm_list_get_devices(int system_index, int list_index,
			       int *num_devices, int *device_indices,
			       short *properties, int max_return);
    int alarm_list_get_names(int system_index, char **ret_list_names);
    int alarm_list_ml_get_devices(int system_index, int *num_devices,
				  int *device_indices, short *properties,
				  int *list_indices,int max_return);
    int alarm_list_name_to_devices_c(char *list_name, int max_return,
                                     int *num_returned, int *device_indices,
                                     short *properties,
                                     unsigned int options=ALARM_LIST_OPT_NONE,
                                     int *list_indices=(int *) NULL);
    int alarm_list_name_to_lists_c(char const *list_name, int *num_lists,
				   USER_ALARM_LIST_DATA **list_data,
				   unsigned int options=ALARM_LIST_OPT_NONE);
    int alarm_list_names(char *system_name, char *list_names);
    int	alarm_list_status_c(char *list_name, int max_return,
			    int *num_returned, int *list_status,
			    unsigned int options=0);
    int alarm_misc_callback_init(alarm_misc_callback callback_func,
				 void *callback_data=(void *) NULL);
    int alarm_misc_callback_term(alarm_misc_callback callback_func,
				 void *callback_data=(void *) NULL);
    int alarm_set_list_status_c(char *list_name, int list_status,
				unsigned int options=0);
    int application_info(char *name, int *version, int *size, int *num_uses,
                         int *single_user, int *runnable,
                         int *settable);
    int application_keeper_info(char *app_name, char *keeper_name=(char *) NULL,
				char *keeper_email=(char *) NULL,
				char *backup_name=(char *) NULL,
				char *backup_email=(char *) NULL,
				unsigned int options=0);
    int array_clear_c(void *array, int num_entry, int sizeof_entry,
                      int start_entry);
    int array_delete_duplicates_c(void *array, int num_entries,
                                  int sizeof_entry, void const *fill_entry,
                                  int *num_remaining, char *delete_location);
    int array_delete_entries_c(void *array, int num_entries, int sizeof_entry,
                               void const *fill_entry,
			       int (*delete_func)(int, int *, void*),
                               void *delete_data, int sizeof_del_data,
                               int *num_remaining, char *delete_location);
    int array_edit_c(int top_row, int left_column, int num_chars,
                     void *minimum, void *maximum, void *values,
                     int *num_values, int max_values, int data_type,
                     void *fill_value, char *title,
                     int num_lines, int key_case,
                     array_edit_update update_func, void *update_func_data,
                     array_edit_prompt prompt_func,
                     HELP_CALLBACK_DATA *help_data,
                     unsigned int options);
    int array_fill_c(void *array, int num_entry, int sizeof_entry,
                     int start_entry, void const *fill_entry);
    int ascii_to_numeric(void *value, int *num_chars, char *buffer,
                         int *cnv_type, int *start=(int *) NULL);
    int ascii_to_numeric_c(void *value, int num_chars, char const *buffer,
                           int cnv_type, short start=1);
    int bcd_to_decimal_c(void const *bcd, int num_digits);
    int binbox(int *top_row, int *num_rows,
               int *left_column, int *num_columns);
    int binbox_c(int top_row, int num_rows, int left_column, int num_columns);
    int binfld(int *row, int *left_column,
               int *num_columns);
    int binfld_c(int row, int left_column, int num_columns);
    int btvblnk(int *row, int *left_column,
                int *num_chars, int *color=(int *) NULL);
    int btvblnk_c(int row, int left_column, int num_chars, int color=BLACK);
    void btvceol(int *row, int *left_column);
    void btvceol_c(int row, int left_column);
    void btvceop(int *row, int *column);
    void btvceop_c(int row, int column);
    int btvcolr(int *row, int *column, int *num_chars,
                int *color);
    int btvcolr_c(int row, int column, int num_chars, int color);
    void btvdisp(int *row, int *column, short *vun,
		 int *record_number, short *status);
    void btvdisp_c(int row, int column, short vun, int record_number,
		   short *status);
    int btvfill(int *row, int *column, char *display_char,
                int *num_chars, int *color=(int *) NULL);
    int btvfill_c(int row, int column, char display_char, int num_chars,
		  int color=WHITE);
    int btvm(int *row, int *column, char *text,
             int *num_chars, int *color=(int *) NULL);
    int btvm_c(int row, int column, char *text, int num_chars, int color=WHITE);
    int btvmx(int *row, int *column, XCHAR *text,
              int *num_chars);
    int btvmx_c(int row, int column, XCHAR const *text, int num_chars);
    int bubble_help_callback_init_c(void const *select_arg, int select_type,
                                    int row, int column, int height, int width,
                                    void const *help_arg_1,
                                    void const *help_arg_2,
                                    int help_type, int *help_id,
                                    char const *handle=(char *) NULL);
    int bubble_help_callback_term_c(int help_id);
    int bubble_help_display_delay_c(int delay);
    int bubble_help_enable_disable_c(int enable_help, int help_id=0);
    int bubble_help_setup_c(int display_type);
    int bubble_help_window_delete_c(short window_id);
    int build_menu_text(char const **items, char **men_txt, int numit);
    int build_menu_bar_text(char **items, char **mb_txt, int numitem);
    int build_sda_case_value_c(char *usage, int case_number,
                               int subcase_number, int try_number,
                               SDA_CASE_VALUE *case_value);
    int calc_window_c(int uprow, int lftcol, int height, int width,
		      int *real_lcol, int *real_urow, int *real_rcol=NULL,
		      int *real_drow=NULL);
    int center_window_c(int type, int width, int height,
                        int *left_column, int *top_row, int *right_column=NULL,
                        int *bottom_row=NULL);
    int character_type_c(int character);
    int check_box_menu_c(int top_row, int left_column, int num_lines,
			 char const *text, int num_chars,
			 int num_entries, char const *title,
			 int *logical_values, int padding_chars=1,
			 char const *enabled_entries=(char *) NULL,
			 int text_color=WHITE,
			 HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
			 int exit_switch=FALSE);
    int check_for_sa(char *task, int *slot);
    int check_for_sa_c(char *task, int slot);
    int chgpgm_buffer_is_script_request(void);
    int chkcmp(short *vun, int *record_number, int *num_row,
               int *num_columns);
    int choose_color(int *top_row, int *left_column, int *color,
                     int *input_bkgd=(int *) NULL);
    int choose_color_c(int top_row, int left_column, int *color,
                       int input_bkgd=FALSE);
    int clib_fprintf(FILE *stream, char const *format_string, ...);
    int clib_fscanf(FILE *stream, char *format_string, ...);
    int clib_n_sscanf_c(char *input_string, int input_length,
                        char *format_string, ...);
    int clib_printf(char const *format_string, ...);
    int clib_sprintf(char *out_string, char const *format_string, ...);
    int clib_sprintfx(XCHAR *out_string, char const *format_string, ...);
    int clib_sscanf(char *input_string, char *format_string, ...);
    int clib_vsprintf(char *out_string, char const *format_string,
                      va_list arguments);
    int clib_vsprintfx(XCHAR *output_string, char const *format_string,
                       va_list arguments);
    void cns_edit(short cwid,short insert=CLIB_DEFAULT_SHORT_ARG,
		  int nrows=0,int ncols=0,
		  int menu=CLIB_DEFAULT_ARG,
		  int color=CYAN,
		  int change_colors=TRUE,
		  int enter_symbols=TRUE,
		  cns_edit_function user_key_func=(cns_edit_function) NULL,
		  void *user_key_data=(void *) NULL,
	          cns_edit_init_function init_func=(cns_edit_init_function) NULL);
    int cns_edit_read_cursor(int *row, int *column);
    int cns_edit_set_cursor_c(int row, int column);
    int combo_menu_c(int top_row, int left_column, int num_lines,
		     char const *text, int num_chars, int num_entries,
		     char const *title, int *item, int padding_chars=1,
		     char const *enabled_entries=(char *) NULL,
		     HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
		     char const *header_line=(char *) NULL,
		     unsigned int options=MENU_OPT_NONE);
    int combo_menu_hs_c(int top_row, int left_column, int num_lines,
			int num_columns, char const *text, int num_chars,
			int num_entries, char const *title, int *item,
			int padding_chars=1,
			char const *enabled_entries=(char *) NULL,
			HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
			char const *header_line=(char *) NULL,
			unsigned int options=MENU_OPT_NONE);
    int console_display_name_c(int console, char *display_name);
    CONSOLE_SLOT_INFO *console_extract_slot_info_c(CONSOLE_LIVE_INFO_FULL_DATA *console_info,
						   int slot);
    int console_get_active_c(int *num_consoles, short *consoles,
                             int max_return);
    int console_get_running_c(int *num_consoles, short *consoles,
			      int max_return);
    int console_getenv_c(int console, char const *variable_name, int max_return,
			 char *value_string);
    int console_getlnm_c(int console, char const *logical_name, int max_return,
			 char *value_string);
    int console_help_text_c(char *task, int help_level, int help_entry,
                            XCHAR *help_text, int *num_rows,
                            int *num_columns);
    int console_help_topic_names_c(char *task, int help_level, int help_entry,
                                   char *topic_names, int *name_length,
                                   char *topics_present, int *num_topics);
    int console_info_c(int console_num, CONSOLE_INFO_DATA *console_data,
                       int num_consoles);
    int console_live_info_c(int console_num, void *console_data,
                            int num_consoles,
			    unsigned int options=CNSINFO_OPT_NONE);
    int console_mask_to_alarm_list_display_flag_c(unsigned long long console_mask,
						  int list_number,
						  int *display_flag);
    int console_mask_to_all_alarm_list_display_flags_c(unsigned long long console_mask,
						       int *display_flags);
    int console_maximum_node_number(char *node_name,
				    int *node_value=(int *) NULL,
				    int *number=(int *) NULL);
    int console_slot_menu_c(char *title, int top_row, int left_column,
			    unsigned char *console_slot, int cursor_handling,
			    int console_number, int include_utility,
			    int menu_text_type);
    int console_task_uptime_c(int console, int slot, char *task_names,
			      int *up_times, int *returned_slots);
    int console_user_name_c(int console, char *user_name);
    int console_window_center_c(int console, int window_id);
    int console_window_find_title_c(int console, char *window_title,
				    int *window_id, int exact_match=FALSE);
    int console_window_home_c(int console, int window_id);
    int console_window_iconify_c(int console, int window_id);
    int console_window_lower_c(int console, int window_id);
    int console_window_menu_c(char *title, int top_row, int left_column,
			      int *console_window, int cursor_handling,
			      int console_number, int include_root,
			      int menu_text_type);
    int console_window_position_c(int console, int window_id, int x_pos,
				  int y_pos);
    int console_window_raise_c(int console, int window_id);
    int console_window_save_image_c(int console, int window_id, int image_type,
				    char *file_name,
				    unsigned int options=WINDOW_IMAGE_OPT_NONE);
    int console_window_set_size_c(int console, int window_id,
				  int size);
    int console_window_title_c(int console, int window_id, char *window_title,
			       int *returned_ids, int max_length);
    int copies_create_save_file(short cnsn, char *title, short flags,
				short nblks, char *date, char *fileid);
    int copies_delete_save_file(char *fileid);
    int copies_get_default_printers(short *bw_q, short *color_q);
    int copies_get_printer_info(int qnum, char *qname, short *pr_type);
    int copies_get_printer_infos(int *nques, PRINTER_Q_INFO *qinfo,
				 int max_ques, int pr_type, int sort);
    int copies_get_save_directory(short cnsn, int startent, int maxent,
				  char *data, short *count);
    int copies_put_printer_info(int qnum, char *qname, short pr_type);
    int copies_put_default_printers(short bw_q, short color_q);
    int copies_read_save_file(char *fileid, short vbn, short nblks, char *data);
    int copies_update_save_file_title(char *fileid, char *title);
    int copies_write_save_file(char *fileid, short vbn, short nblks,
			       short lastflg, char *data);

    int copy_file_to_scratch(char *user_name, char *file_name, char *copy_name);
    void copy_string_to_xchar_c(XCHAR *xchar, char const *string, int num_chars,
				int color=(int) CLIB_DEFAULT_ARG);
    void copy_xchar_to_string_c(char *string, XCHAR const *xchar,
				int num_chars);
    int create_user_data_type_c(int *user_data_id, int data_length,
                                int min_field_width,
                                to_ascii_function to_ascii_func,
                                void *ascii_func_data,
                                to_numeric_function to_numeric_func,
                                void *numeric_func_data,
                                numeric_input_function user_input_func,
                                void *user_input_data,
                                numeric_values_function values_func=(numeric_values_function) NULL,
                                void *values_data=(void *) NULL);
    int daq_retrieve_connected_tasks_c(int node, int *num_tasks,
				       DPM_TASK_INFO_DATA **tasks=(DPM_TASK_INFO_DATA **) NULL);
    int daq_retrieve_device_access_c(int device_index, short property,
				     int node, int *num_tasks,
				     DPM_TASK_INFO_DATA **tasks=(DPM_TASK_INFO_DATA **) NULL);
    int daq_retrieve_fe_activity_c(int fe_node, int client_node,
			 	   int *num_tasks,
				   DPM_TASK_INFO_DATA **tasks=(DPM_TASK_INFO_DATA **) NULL);
    int daq_retrieve_task_devices_c(char *task_name, int node, int *num_devices,
				    DPM_DEVICE_INFO_DATA **devices=(DPM_DEVICE_INFO_DATA **) NULL);
    int data_event_string_to_ftd(char const *string, short *ftd,
				 unsigned int options=DATA_EVENT_OPT_NONE);
    int data_event_string_to_user_string_c(char const *data_event,
					   char *user_string,
					   int string_length=0);
    int data_event_to_ftd(DATA_EVENT_DATA const *data_event, short *ftd,
			  unsigned int options=DATA_EVENT_OPT_NONE);
    int data_event_to_string(DATA_EVENT_DATA const *data_event, char *string,
                             int string_length);
    int decide(int *top_row, int *left_column, char *text, int *num_chars,
	       int *line_length=(int *) NULL,
	       int *deflt_choice=(int *) NULL,
	       int *text_color=(int *) NULL,
	       char *title=(char *) NULL,
	       int *options=(int *) NULL,
	       HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
	       HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL);
	                   	/* create logical dialog box */
    int decide_c(int top_row, int left_column, char const *text, int num_chars,
		 int line_length=DECIDE_CPP_MAX_PROMPT, int deflt_choice=0,
		 int text_color=GREEN, char *title=(char *) NULL,
		 int options=DECIDE_OPT_WORD_WRAP,
		 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
		 HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL);
		                /* create logical dialog box */
    int decide_multiple_c(int top_row, int left_column, char *text,
                          int num_chars, int line_length,
                          char *switch_text, int num_switches,
			  int deflt_choice=1,
		      	  int text_color=GREEN,
			  void_function *funcs=(void_function *) NULL,
		      	  void **func_data=(void **) NULL,
		      	  int switch_height=3,
		      	  int switch_width=0,
		          int *switch_colors=(int *) NULL,
		          char *title=(char *) NULL,
		          int wrap=TRUE,
		          HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
		          HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL,
		          unsigned int options=DIALOG_POPUP);
    int delete_from_array_c(void *array, int num_entry, int sizeof_entry,
                            int delete_entry,
			    void const *fill_entry=(void *) NULL);
    int delete_multiple_from_array_c(void *array, int num_entries,
				     int sizeof_entry, int num_to_delete,
				     int const *delete_entries,
				     void const *fill_entry=(void *) NULL);
    int delete_value_from_array_c(void *array, int num_entries,
				  int sizeof_entry, void const *delete_value,
				  void const *fill_entry=(void *) NULL,
				  delete_array_value_func callback_func=(delete_array_value_func) NULL,
				  void *callback_data=(void *) NULL,
				  unsigned options=0);
    int destroy_validated_user_name(void);
    int device_listing_c(void *devices, int num_devices, int *array_indices,
                         char *format_spec, int output_type, void *output_spec,
                         DEVLST_OPTION_DATA *option_data, int num_options,
                         int data_source, void *data_source_data);
    void dialog_setup_c(int cursor_restore,
			int border_color=CLIB_DEFAULT_ARG,
			int border_style=CLIB_DEFAULT_ARG,
			int moves_enabled=CLIB_DEFAULT_ARG,
			int auto_advance=CLIB_DEFAULT_ARG,
			int title_color=CLIB_DEFAULT_ARG,
			int fit_window=CLIB_DEFAULT_ARG);
    int dipole_four_bump_info(char *bump_location,
			      DIPOLE_BUMP_ENTRY_DATA *bump_info,
			      unsigned int options=0);
    int dipole_three_bump_info(char *bump_location,
			       DIPOLE_BUMP_ENTRY_DATA *bump_info,
			       unsigned int options=0);
    void display_value(int *row, int *col, void *value, int *type,
		       int *ncar, int *colors, char *fill=NULL,
		       int *justify=NULL);
    void display_value_c(int row, int col, void *value, int type,
			 int ncar, int colors, char fill=' ',
			 int justify=CNV_NO_JUSTIFY);
    void dpm_show_fe_activity(int fe_node=CLIB_DEFAULT_ARG,
			      int client_node=CLIB_DEFAULT_ARG,
			      int top_row=WMNGR_CENTER,
			      int left_column=WMNGR_CENTER);
    void dpm_show_connected_tasks(int node=CLIB_DEFAULT_ARG,
				  int top_row=WMNGR_CENTER,
				  int left_column=WMNGR_CENTER);
    void dpm_show_device_access(int device_index=0, short property=0,
				int node=CLIB_DEFAULT_ARG,
				int top_row=WMNGR_CENTER,
				int left_column=WMNGR_CENTER);
    int enum_type_menu_info_c(int data_type, int *num_values,
                              int *data_length, void *data_values,
                              int *entry_length, char *menu_text,
                              int menu_text_type,
			      void *data_type_info=(void *) NULL);
    int enumerated_type_menu_c(int top_row, int left_column, int num_lines,
			       int num_columns, int convert_type,
			       char *title, int *value, int padding_chars=1,
			       unsigned int options=MENU_OPT_NONE);
    int error_clip_depth_c(int depth);
    int error_close(void);
    void error_cmprintf_c(int log_it, const char *format_string, ...);
    void error_colored_message_c(XCHAR const *message, int message_length,
				 int log_it, int priority);
    int error_display(char const *message, int *error_type,
		      int *error_code, int *ack=(int *) NULL,
		      int *color=(int *) NULL,int *priority=(int *) NULL);
    int error_display_c(char const *message, int error_type,
			int error_code,
			int ack=ERR_SIMPLE_DISPLAY,
			int color=BLACK,
			int priority=ERR_DEFAULT_PRIORITY);
    int error_disp_uti(char *id, char *message, int error_type,
		       int error_code, int color=BLACK,
		       int priority=ERR_DEFAULT_PRIORITY);
    int error_display_popup_c(int top_row, int left_column, char const *message,
			      int error_type, int error_code, int color=BLACK,
			      int priority=ERR_DEFAULT_PRIORITY);
    int error_embedded_enabled(void);
    int error_embedded_off(void);
    int error_embedded_on(int allow_messages=TRUE);
    int error_embedded_set_level_c(int level);
    void error_erase(void);
    short error_get_window_id(void);
    int error_imbedded_enabled(void);
    int error_imbedded_off(void);
    int error_imbedded_on(int allow_messages=TRUE);
    int error_in_int_list_c(int overall_status, int list_length,
			    int const *list_errors,
			    int *ret_first=(int *) NULL);
    int error_in_list(int const *overall_status, int const *list_length,
                      short const *list_errors, int *ret_first=(int *) NULL);
    int error_in_list_c(int overall_status, int list_length,
                        short const *list_errors, int *ret_first=(int *) NULL);
    int error_init(int *row, int *column, int *length, int *write_log,
		   char const *fname=(char *) NULL,
		   char const *author=(char *) NULL,
		   int *num_row=(int *) NULL, int *use_manager=(int *) NULL,
		   int *priority=(int *) NULL, int *style=(int *) NULL,
		   int *erase_timeout=(int *) NULL,
		   int *acnet_text_enabled=(int *) NULL);
    int error_init_c(int row, int column, int length, int write_log,
		     char const *file_name=(char *) NULL,
		     char const *author=(char *) NULL,
		     int num_row=0, int use_manager=TRUE,
		     int priority=0, int style=WMNGR_BORDER_THIN,
		     int erase_timeout=ERR_NO_ERASE,
		     int acnet_text_enabled=TRUE);
    void error_init_uti(char const *id, int write_log,
			char const *file_name=(char *) NULL,
			char const *author=(char *) NULL,
			int enable=TRUE, int priority=ERR_DEFAULT_PRIORITY);
    int error_is_occluded(void);
    void error_last(int *last_type, int *last_error);
    int error_last_remote(int *node, char *process_name,
                          unsigned int *timestamp, int *error_type,
                          int *error_code, char *message_string);
    void error_message(char const *message, int *ack=(int *) NULL,
		       int *color=(int *) NULL, int *log=(int *) NULL,
		       int *priority=(int *) NULL);
    void error_message_c(char const *message, int ack=ERR_SIMPLE_DISPLAY,
			 int color=CYAN, int log=FALSE, int priority=0);
    int error_move_disable(void);
    int error_move_enable(void);
    void error_mprintf_c(int color, int log_it,
			 char const *format_string, ...);
    int error_mprintf_remote_c(int node, char const *process_name,
                               char const *log_file, char const *author,
                               int priority, unsigned int options, int color,
                               char const *format_string, ...);
    void error_pop_window(void);
    int error_printf_c(int error_type, int error_code,
                       char const *format_string, ...);
    int error_printf_limit_c(int printf_limit);
    int error_printf_remote_c(int node, char const *process_name,
                              char const *log_file, char const *author,
                              int priority, unsigned int options,
                              int error_type, int error_code,
                              char const *format_string, ...);
    void error_query_clipping(int *clip_depth);
    int error_query_setup(int *row, int *column, int *length,
                          int *write_log, char *file_name, char *author,
                          int *num_rows);
    int error_remote_callback_add(remote_error_handler error_handler,
                                  void *handler_data);
    int error_remote_callback_remove(remote_error_handler error_handler,
                                     void *handler_data);
    int error_set_scroll_limit_c(int num_lines);
    int error_size_and_position_c(int top_row, int left_column,
                                  int num_rows, int num_columns);
    void error_trace_get(int *num, int *numerr, int **errors);
    int error_trace_off(void);
    void error_trace_on(void);
    void error_trace_view_c(int top_row, int left_column);
    void error_unpack(short *acerror, char *errtxt);	/* make short facility/error text string */
    void error_unpack_c(short acerror, char *errtxt);	/* make short facility/error text string */
    int error_uti_logging_c(int log_it);
    int error_window_is_present(void);
    int expression_cancel_requests_c(void *expr_stack, unsigned int options,
                                     char *error_string);
    int expression_evaluate_c(void *expr_stack, unsigned int options,
                              float *value, char *units_text,
                              char *error_string);
    int expression_evaluate_double_c(void *expr_stack, unsigned int options,
				     double *value, char *units_text,
				     char *error_string);
    int expression_free_c(void **expr_stack, unsigned int options,
                          char *error_string);
    int expression_info_c(void *expr_stack, unsigned int options,
                          int *num_devices, int *num_gen_devices,
                          int *device_indices, short *properties, short *ftds,
                          int max_return, char *error_string);
    int expression_parse_c(char *expression_text, int text_length,
                           char *subst_devices, int num_devices,
                           short default_ftd, unsigned int options,
                           void **ret_expr_stack, float *value,
                           char *units_text, char *error_string);
    int expression_parse_double_c(char const *expression_text,
				  int text_length, char const *subst_devices,
				  int num_devices, int data_event_type,
				  void const *data_event, unsigned int options,
				  void **ret_expr_stack, double *value,
				  char *units_text, char *error_string);
    int fe_native_alarm_limit_type_c(int node, int *limit_type);
    int field_window_delete_c(short window_id);
    int field_window_restore_exclusive(void);
    int field_window_set_exclusive_c(short window_id);
    void fifo_delete(void **fifo);
    void fifo_free(void **fifo);
    void fifo_init(void **fifo);
    int fifo_is_empty(void **fifo);
    void *fifo_peek(void **fifo);
    void *fifo_pop(void **fifo);
    int fifo_push(void **fifo, void *value);
    int file_acknowledge_c(int top_row, int left_column, char *file_name,
			   int num_columns, int num_rows,
			   int text_color=CYAN, char *title=(char *) NULL,
			   HELP_CALLBACK_DATA *help_info=(HELP_CALLBACK_DATA *) NULL,
			   unsigned int options=FILE_VIEW_OPT_NONE,
			   char *search_string=(char *) NULL,
			   char *term_string=(char *) NULL);
    int file_decide_c(int top_row, int left_column, char *file_name,
                      int num_columns, int num_rows,
                      int default_choice, int text_color=CYAN,
		      char *title=(char *) NULL,
                      HELP_CALLBACK_DATA *help_info=(HELP_CALLBACK_DATA *) NULL,
                      HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL,
                      unsigned int options=FILE_VIEW_OPT_NONE,
		      char *search_string=(char *) NULL,
                      char *term_string=(char *) NULL);
    int file_directory_select_c(int top_row, int left_column,
                                char *root_directory, char *usr_file,
                                int show_dir, int dsp_full_name);
    int file_exists_c(char *file_name, unsigned int options=0);
    int file_find_in_path_c(char *file_name, int path_type, char *path,
			    char *found_file_name,
			    unsigned int options=FILE_FIND_OPT_NONE,
			    char path_separator=':');
    int	file_name_convert_c(char *source_name, char *dest_name,
			    int convert_type, unsigned int options,
			    int max_return=0);
    int file_name_expand_c(char *source_name, int source_length,
			   char *expanded_name, unsigned int options,
			   int max_return=0);
    int file_name_parse_c(char const *source_string, int source_length,
                          char *path_string, int max_path_length,
                          char *file_string, int max_file_length,
                          char *ext_string, int max_ext_length,
                          unsigned int options, int *path_type=(int *) NULL);
    int file_num_lines(char const *file_name, int *num_lines,
		       char *search_string=(char *) NULL,
		       char *start_string=(char *) NULL,
		       char *term_string=(char *) NULL);
    int file_view_edit_c(int top_row, int left_column, int num_columns,
                         int num_rows, char *file_name,
                         char *title, int text_color,
                         cns_edit_function user_key_func, void *user_key_data,
                         ls_help_function language_func, unsigned int options,
                         char *search_string);
    int file_view_find(char *req_spec, int *num_match, char ***file_names);
    int file_view_read(int top_row, int left_column, int width, int num_rows,
                       char const *file_name,
		       fv_read_function user_call=NULL,
		       int exit_switch=FALSE,
		       char const *title=NULL,
		       int synchronous=TRUE,
		       int text_color=CYAN,
		       unsigned int options=FILE_VIEW_OPT_NONE,
		       char *search_string=NULL,
		       char *term_string=NULL);
    int file_view_select(int top_row, int left_column,int menu_width,
                         int menu_length, char *dir_spec, char *usr_file,
                         char *match, int show_dir,
			 int order_by=FILE_VIEW_ORDER_BY_NAME,
			 unsigned int options=FILE_VIEW_OPT_NONE);
    void fill_xchar_c(XCHAR *string, int string_length, char ch, int color);
    int find_available_slot_c(int console_number, int slot_type,
                              unsigned char *slot);
    int find_change(short *top_row, short *left_column, short *max_length,
                    void (*find_routine)(), void (*change_routine)(),
                    FIND_CHANGE_DATA *information);
    int find_processes_c(int search_type, void const *search_value,
			 int *num_processes,
			 OS_PROCESS_ENTRY **processes=(OS_PROCESS_ENTRY **) NULL,
			 int node=LOCAL);
    int find_remote_program_slot_c(int slot_type, int *console_number,
                                   unsigned char *console_slot);
    int find_sa(char *task);
    int fm_check_reply(int *event, int *sht_stat=NULL, int *ext_status=NULL,
                       int *num_ret=NULL);
    int fm_check_reply_c(int event, int *sht_stat=NULL, int *ext_status=NULL,
                         int *num_ret=NULL);
    int fm_close(short *vun, int *ext_status=NULL);
    int fm_close_c(short vun, int *ext_status=NULL);
    int fm_close_all(int *nclose=(int*) NULL);
    int fm_close_by_name(char *fname, int *ext_status=NULL,
                         int write_access=FMNGR_DEFAULT_ARG,
                         int access_mode=FMNGR_DEFAULT_ARG);
    int fm_delete_record(short *vun, int *record=NULL,
                         int *ext_status=NULL);
    int fm_delete_record_c(short vun, int record=FMNGR_LAST_RECORD,
                           int *ext_status=NULL);
    int fm_file_attributes(char *fname, int *file_org, int *record_format=NULL,
                           int *max_rec_len=NULL, int *file_size=NULL,
                           int *longest_rec=NULL);
    int fm_get_access(short *vun, int *write_access=NULL, int *access=NULL);
    int fm_get_access_c(short vun, int *write_access=NULL, int *access=NULL);
    int fm_get_filename_c(short vun, char *file_name);
    short fm_get_vun(char *fname, int write_access=FMNGR_DEFAULT_ARG,
		     int access_mode=FMNGR_DEFAULT_ARG);
    int fm_io(short *vun, void *iobuf, int *nbyte, int *recno=NULL,
              int *ext_status=NULL);
    int fm_io_c(short vun, void *iobuf, int nbyte, int recno=0,
                int *ext_status=NULL);
    int fm_is_open(char *fname, int *write_access=NULL, int *access=NULL,
                   int *num_opens=NULL);
    int fm_is_writing_enabled(short *vun=NULL);
    int fm_open(short *vun, char *fname,
                int *access=(int *) NULL,
                int *write_acc=(int *) NULL,
                int *retry=(int *) NULL,
                int *ext_status=(int *) NULL,
                int *asynch=(int *) NULL,
                int *max_record=(int *) NULL);
    int fm_open_c(short *vun, char *fname, int access=FMNGR_DEFAULT_ARG,
                  int wrtacc=FMNGR_DEFAULT_ARG, int retry=FMNGR_DEFAULT_ARG,
                  int *ext_status=NULL, int asynch=FALSE,
                  int max_record=FMNGR_DEFAULT_ARG);
    int fm_open_io(char *file_name, void *iobuf, int *nbyte,
		   int *record_number, int *ext_status=(int *) NULL,
		   int *close_it=(int *) NULL, short *vun_used=(short *) NULL);
    int fm_open_io_c(char *file_name, void *iobuf, int nbyte,
                     int record_number,
                     int *ext_status=(int *) NULL,
                     int close_it=FALSE,
                     short *vun_used=(short *) NULL);
    int fm_open_read(char *file_name, void *iobuf, int *nbyte,
                     int *record_number,
                     int *ext_status=(int *) NULL,
                     int *close_it=(int *) NULL,
                     short *vun_used=(short *) NULL);
    int fm_open_read_c(char *file_name, void *iobuf, int nbyte,
                       int record_number,
                       int *ext_status=(int *) NULL,
                       int close_it=FALSE,
                       short *vun_used=(short *) NULL);
    int fm_open_write(char *file_name, void *iobuf, int *nbyte,
                      int *record_number,
                      int *ext_status=(int *) NULL,
                      int *close_it=(int *) NULL,
                      short *vun_used=(short *) NULL);
    int fm_open_write_c(char *file_name, void *iobuf, int nbyte,
                        int record_number,
                        int *ext_status=(int *) NULL,
                        int close_it=FALSE,
                        short *vun_used=(short *) NULL);
    void fm_query_tuner(int *log, int *file_to);
    int fm_read(short *vun, void *iobuf, int *nbyte,
                int *recno=(int *) NULL,
                int *ext_status=(int *) NULL,
                int *nbrtn=(int *) NULL,
                int *nolock=(int *) NULL,
                int *asynch=(int *) NULL);
    int fm_read_c(short vun, void *iobuf, int nbyte,
		  int recno=0, int *ext_status=(int *) NULL,
		  int *nbrtn=(int *) NULL, short nolock=0, int asynch=FALSE);
    void fm_read_defaults(int *access=(int *) NULL,
			  int *write_access=(int *) NULL,
			  int *open_retry=(int *) NULL,
			  int *no_lock=(int *) NULL,
			  int *no_modify=(int *) NULL,
			  int *max_record=(int *) NULL);
    int fm_read_multiple(short *vun, void *iobuf, int *nbyte,
                         int *recno=(int *) NULL, int *nrec=(int *) NULL,
			 int *ext_status=(int *) NULL,
                         int *nbrtn=(int *) NULL, int *asynch=(int *) NULL);
    int fm_read_multiple_c(short vun, void *iobuf, int nbyte,
                           int recno=0,int nrec=1,int *ext_status=(int *) NULL,
			   int *nbrtn=(int *) NULL,int asynch=FALSE);
    int fm_restore_defaults(void);
    int fm_rewind(short *vun, int *ext_status=(int *) NULL);
    int fm_rewind_c(short vun, int *ext_status=(int *) NULL);
    void fm_save_defaults(void);
    void fm_set_defaults(int *access=(int *) NULL,
			 int *wrt_access=(int *) NULL,
			 int *open_retry=(int *) NULL,
			 int *nolock=(int *) NULL,
			 int *nomod=(int *) NULL,
			 int *max_record=(int *) NULL);
    void fm_tuner(int *log=(int *) NULL, int *file_tmo=(int *) NULL);
    int fm_unlock(short *vun, int *ext_status=(int *) NULL);
    int fm_unlock_c(short vun, int *ext_status=(int *) NULL);
    int fm_write(short *vun, void *iobuf, int *nbyte,
                 int *recno=(int *) NULL,
		 int *ext_status=(int *) NULL,
		 int *nomod=(int *) NULL,
		 int *asynch=(int *) NULL);
    int fm_write_c(short vun, void *iobuf, int nbyte,
                   int recno=0, int *ext_status=(int *) NULL,
		   short nomod=CLIB_DEFAULT_SHORT_ARG,
		   int asynch=FALSE);
    int fm_write_disable(short* vun=NULL);
    int fm_write_enable(short* vun=NULL);
    int fndchr(char *string, char *chr, int *len=(int *) NULL);
    int fndchr_c(char *string, char chr, int len=0);
    int fndfst(char *string, int length);
    void fntchr(int *x, int *y, int *chrnum, int *color, int *size=NULL,
		int *rot=NULL, int *back_color=NULL);
    void fntchr_c(int x, int y, int chrnum, int color,
		  int size=LXFONT_MINSIZ,
		  int rot=LXFONT_LEFT_TO_RIGHT,
		  int back_color=LXFONT_NOBACK);
    int front_end_download_file_c(int node, char *file_name);
    int front_end_type_c(int node, int request_type, int *fe_type);
    int ftd_to_data_event_c(short ftd, DATA_EVENT_DATA *data_event);
    int ftd_to_data_event_string_c(short ftd, char *string, int string_length);
    int ftp_calculated_trace_c(int program_slot, int trace_num, int color,
                               char *label, float ymin, float ymax,
                               int num_points, FTP_POINT *points);
    int ftp_copy(char *command,char *user_name=(char *) NULL,
    		 char *password=(char *) NULL,
	     	 char *host_name=(char *) NULL, int use_alt_ftp=FALSE,
		 unsigned int options=FTP_XFER_OPT_NONE);
    int ftp_file_menu_c(int top_row, int left_column, char *category_name,
                        char *file_name, int *file_number);
    int ftp_file_search(char *file_name_string, char *device_string,
			int *ret_num_files, FTP_FILE_INFO **ret_file_info);
    int ftp_read_plot_setup_file_c(char *system_name, void *file,
                                   unsigned int options,
                                   FTP_DEVICE_DATA *x_device,
                                   FTP_DEVICE_DATA *y_devices,
                                   int *num_y_devices,
                                   int *frequency_code, int *update_event,
                                   int *time_base, int *reset_events,
                                   int *plot_scaling,
                                   FTP_OPTION_DATA *plot_options);
    int ftp_setup(void *plot_info, int top_row=(int) WMNGR_CENTER,
		  int left_column=(int) WMNGR_CENTER, int version=1);
    int ftp_start(void *plot_info, int erase_it=TRUE, int version=1);
    int ftp_start_plot_c(int console_number, int sa_slot,
                         FTP_DEVICE_DATA *x_device, FTP_DEVICE_DATA *y_devices,
                         int num_y_devices, int frequency_code,
                         int update_event, int time_base, int *reset_events,
                         int plot_scaling, FTP_OPTION_DATA *option_data);
    int ftp_start_plot_by_name_c(int console_number, int sa_slot,
                                 FTP_DEVICE_NAME_DATA *x_device,
                                 FTP_DEVICE_NAME_DATA *y_devices,
                                 int num_y_devices, int frequency_code,
                                 int update_event, int time_base,
                                 int *reset_events, int plot_scaling,
                                 FTP_OPTION_DATA *option_data);
    int ftp_start_plot_from_file_c(int console_number, int sa_slot,
                                   char *system_name, void *file,
                                   unsigned int options);
    int full_name_to_console_user_name(char *full_name, char *user_name);
    int get_alarm_server_ip_name(char *ip_name);
    short get_alarm_server_node(void);
    int get_available_acnet_process_name_c(int node, char *prefix,
					   int prefix_length, int request_id,
					   char *process_name, int *this_id);
    int get_bit_mask_strings_c(int *num_values, unsigned int **bit_numbers,
                               char **text, int *entry_length,
                               char **text_if_0, int *entry_len_if_0,
                               char **text_if_1, int *entry_len_if_1,
                               HELP_CALLBACK_DATA **help_info,
                               int bit_mask_id);
    int get_console_tasks_c(int console, char *task_names,
                            int *returned_slot_ids);
    short get_cpld_node(void);
    int get_cpld_program_flags(char *program_name, short *flags);
    int get_current_context(void);
    int get_date_clinks(int top_row, int left_column,
    			int *ret_status=(int *) NULL);
    char *get_default_file_path(void);
    char *get_default_file_write_path(void);
    int get_dialog_setup(int *cursor_restore, int *border_color,
                         int *border_style, int *move_it, int *auto_advance,
                         int *title_color, int *fit_window);
    short get_download_server_node(void);
    int get_enumerated_string_array_c(int *ret_num_values, char ***strings,
				      int *entry_length, int enumerated_id=0,
				      int **values=(int **) NULL,
				      int *user_data_type=(int *) NULL,
				      HELP_CALLBACK_DATA  **help_info=(HELP_CALLBACK_DATA  **) NULL);
    int get_enumerated_strings(int *numval, char **text,
                               int *entry_length,
                               int enumerated_id=0,
                               HELP_CALLBACK_DATA  **help_info=(HELP_CALLBACK_DATA  **) NULL,
                               int **values=(int **) NULL,
                               int *user_data_type=(int *) NULL);
    int get_file_tags_c(char *file_name, int tag_type, char *embedded_tag,
                        unsigned int options, int *num_tags,
                        FILE_TAG_DATA **tag_data, char *error_text);
    short get_fshare_node(void);
    int get_logical_strings(char **true_string, char **false_string);
    void get_lxfont_size(int *xsize, int *ysize, int size);
    int get_menu_setup(int *crs_restore, int *border_color,
                       int *border_style, int *move_it, int *auto_size,
                       int *title_color, int *fit_window);
    int get_personal_user_name_c(char *user_name, int top_row=WMNGR_CENTER,
				 int left_column=WMNGR_CENTER);
    int get_process_alias(char *alias, int generic=0);
    int get_process_alias_number(void);
    void get_process_name(char *ret_name, int retgen=0,int get_current=0);
    int get_process_number(void);
    int get_task_c(int slot);
    int get_task_name_c(int slot, char *name, int get_generic=FALSE);
    char *get_time(clib_time_t=0);
    int get_timer_ref(int *di, int *numevt, int *events);
    int gif_image_size(char *file_name, int *width, int *height);
    int gpib_clear_c(int gpib_address);
    int gpib_close(void);
    int gpib_device_info_c(int max_return, GPIB_DEVICE_INFO *device_info,
			   int *num_returned);
    int gpib_local_c(int gpib_address);
    int gpib_read_c(char *string, int num_char, int gpib_address);
    int gpib_reboot(void);
    int gpib_select_c(char *ascii_house, char *module, int node=TEV);
    int gpib_select_ip_name_c(char *ip_name, int port);
    int gpib_select_node_c(int node);
    int gpib_serial_poll_c(char *poll_data, int gpib_address);
    int gpib_trigger_c(int gpib_address);
    int gpib_write_c(char *string, int num_char, int gpib_address);
    int help_callback_init_c(void *select_arg, int select_type, int row,
                             int column, int height, int width,
                             void *help_arg_1, void *help_arg_2,
                             int help_type, int *help_id, int display_row,
                             int display_column, int coord_type,
			     char *handle=(char *) NULL);
    int help_callback_term_c(int help_id);
    int help_enable_disable_c(int enable_help);
    int help_window_delete_c(short window_id);
    void hilite(int *row, int *column, int *num_chars);
    void hilite_c(int row, int column, int num_chars);
    int hilite_create_c(short window_id, int top_row, int left_column,
                        int num_items, int num_chars, int num_columns,
                        short *hilite_id, int field_len=0,
			int field_off=0, int separate=1,
			int field_orient=(int)HILITE_ROW_MAJOR,
			unsigned int options=(unsigned int) HILITE_OPT_USER_UPDATE,
			int color=(int)HILITE_DEFAULT_COLOR,
			hilite_update_function update_func=(hilite_update_function) NULL,
			void *update_data=(void *) NULL);
    int hilite_delete_c(short hilite_id);
    int hilite_modify_save_buffer_c(short hilite_id, XCHAR *text,
                                    int num_chars, int offset);
    int hilite_resume_c(short hilite_id);
    int hilite_simple_row_create_c(short window_id, int top_row,
                                   int left_column, int num_rows,
                                   int num_chars, int color,
                                   int auto_update, short *hilite_id,
				   hilite_update_function update_func=(hilite_update_function) NULL,
				   void *update_data=(void *) NULL);
    int hilite_suspend_c(short hilite_id, int mode);
    int hilite_update_c(short hilite_id);
    int hilite_window_delete_c(short window_id);
    int horz_scrolling_text_message_c(int top_row, int left_column,
				      int num_columns, char *text,
				      int text_length, int exit_switch,
				      int resize_screen=TRUE,
				      char *title=(char *) NULL,
				      int synchronous=TRUE,
				      int text_color=GREEN);
    /*
     * The implementations of the following entry points have been removed
     * from the Linux clib, by removal of
     * dwin/clib/core/indexed_file_support.cpp.  This was done because for
     * phase I of the Linux port they were only needed by one user,
     * acl_user_info_command.cpp, which was updated to use the DB instead
     * of an indexed file for tele data.  Since they involve a significant
     * dependency on the VMS file system their usages will be addressed
     * as additional callers are found via link errors.
     */
    int indexed_file_close_c(int file_id, int *rms_status);
    int indexed_file_close_all(void);
    int indexed_file_delete_record_c(int, int, void*, int, unsigned, int*);
    int indexed_file_open_c(char *file_name, unsigned int options,
                            int *file_id, int *rms_status);
    int indexed_file_read_c(int file_id, int index_number,
                            void *key_value, int key_length,
                            void *data_buffer, int data_length,
                            unsigned int options, int *bytes_returned,
                            int *rms_status);
    int indexed_file_write_c(int file_id, int index_number,
                             void *key_value, int key_length,
                             void *data_buffer, int buffer_length,
                             unsigned int options, int *rms_status);
    /*
     * End of indexed_file entry points.
     */
    void init_repeat_kbd_intype(void);
    int inptxt(int *top_row, int *left_column, char const *text,
               int *num_chars, char *string, int *length,
	       int *numval =(int *) NULL,
	       char *title=(char *) NULL,
	       int *num_lines=(int *) NULL,
	       int *kb_case=(int *) NULL,
	       int *key_color=(int *) NULL,
	       HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int inptxt_c(int top_row, int left_column, char const *text, int num_chars,
                char *string, int length,
		int numval=1,
		char *title=(char *) NULL,
		int num_lines=(int) CLIB_DEFAULT_ARG,
		int kb_case=(int)WMNGR_MIXED_CASE,
		int key_color=(int)RED,
		HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int input_array_values_c(int top_row, int left_column, char *text,
                             int num_chars, void *minima,
                             void *maxima, void *values, int num_values,
                             int data_type, char *title, int num_lines,
                             int *field_status, int key_case,
                             HELP_CALLBACK_DATA *help_data,
                             char *post_prompt=(char *) NULL);
    int input_field_create_c(short window_id, int row, int column,
                             int align_type, char *label,
                             int label_length, int label_color,
                             int data_type, int data_length,
                             void *minimum, void *maximum,
                             void *initial_value, int value_length,
                             int value_color, int num_values,
                             input_field_function callback_func,
                             void *callback_data,
                             HELP_CALLBACK_DATA *field_help,
                             unsigned int options, char *handle,
                             int *field_id);
    int input_field_delete_c(void *identifier);
    int input_field_disable_c(void *identifier);
    int input_field_enable_c(void *identifier);
    int input_field_read_c(void *identifier, void *current_value,
                           int array_index);
    int input_field_set_c(void *identifier, void *new_value,
                          int array_index, int exec_callback);
    int input_field_set_id_type_c(int identifier_type);
    int input_field_window_delete_c(short window_id);
    int input_file_name_c(int top_row, int left_column,
                          char *prompt_text, int num_chars,
                          char *file_name, int max_length,
                          char *browse_spec, unsigned int browse_options,
                          char *title, HELP_CALLBACK_DATA *help_info);
    int input_generic_login_info_c(char const *name_prompt, int max_name_length,
				   char *user_name, char const *password_prompt,
				   int max_pass_length, char *password,
				   unsigned int options=LOGIN_OPT_NONE,
				   int top_row=WMNGR_CENTER,
				   int left_column=WMNGR_CENTER);
    int input_generic_user_password_c(char const *prompt, int max_length,
				      char *password,
				      unsigned int options=LOGIN_OPT_NONE,
				      int top_row=WMNGR_CENTER,
				      int left_column=WMNGR_CENTER);
    int input_string_dialog_c(int top_row, int left_column, char *prompt,
			      int prompt_length, char *string,
			      int string_length, int display_length,
			      int num_values=1, char *title=(char *) NULL,
			      int num_lines=(int) CLIB_DEFAULT_ARG,
			      int key_case=WMNGR_MIXED_CASE, int key_color=RED,
			      HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int input_value(int *row, int *col, void *value, int *type,
		    int *ncar, int *colors, void *min=NULL, void *max=NULL,
		    char *fill=NULL, int *justify=NULL);
    int input_value_c(int row, int col, void *value, int type,
		      int ncar, int colors, void *min=NULL, void *max=NULL,
		      char fill=' ', int justify=CNV_NO_JUSTIFY);
    int insert_in_array_c(void *array, int num_entry, int sizeof_entry,
                          int insert_entry, void const *new_entry);
    int integer_length(int *value);
    int integer_length_c(int value);
    int integer_length_hex_c(int, int);
    int interrupt_window(void);
    int intype_set_double_click_c(int click_time);
    int intype_set_repeat_click_c(int click_delay, int click_interval);
    int invert_array_c(void *array, int num_entry, int sizeof_entry,
                       void *out_array=(void *) NULL);
    int in_window_c(short window_id, int ret_occluded=FALSE,
		    int sync_int_data=FALSE);
    int in_window_box(short *window_id, int *wrow,
                      int *num_rows, int *wcolumn,
                      int *num_columns);
    int in_window_box_c(short window_id, int wrow, int num_rows, int wcolumn,
                        int num_columns);
    int in_window_field(short *window_id, int *wrow,
                        int *wcolumn, int *num_columns);
    int in_window_field_c(short window_id, int wrow, int wcolumn,
                          int num_columns);
    int in_window_interior_c(short window_id, int ret_occluded=FALSE,
			     int sync_int_data=TRUE);
    int in_window_line(short *window_id, int *wrow);
    int in_window_line_c(short window_id, int wrow);
    int in_window_primitive_c(short window_id, int ret_occluded=FALSE);
    int ip_address_compare(char const *ip_address, char const *ip_address_2);
    int ip_address_to_acnet_node(char *ip_address, int *node,
				 int *was_expanded=(int *) NULL);
    int ip_address_to_matching_acnet_node(char *ip_address, char *match_string,
					  int *node);
    int ip_address_to_node(char *ip_address, unsigned int *node);
    int is_default_data_event_string_c(char const *string, int length=0);
    int is_front_end_node_c(int node);
    int is_numeric_ip_address(char const *ip_string,
			      unsigned int *ip_address=(unsigned int *) NULL);
    int is_oneshot_data_event_string_c(char const *string, int length=0);
    int is_test_page(void);
    int justfy(char *string, int length);
    int key_clear_pressed_c(unsigned int key, int modifier);
    int key_press_cancel_c(unsigned int key, int modifier, int key_id);
    int key_press_init_c(unsigned int key, int modifier,
                         key_press_function callback_func, void *callback_data,
                         int *key_id);
    int key_pressed_c(unsigned int key, int modifier);
    int knob_cancel_c(int knob_id);
    int knob_init_c(float scale_factor, knob_init_function callback_func,
                    void *callback_data, void *field_constraint, int *knob_id);
    int knob_raw_device_value_c(void *value, float scale_factor,
			 	KNOB_RAW_DEVICE_INFO *knob_info);
    int knob_update_c(int knob_id, KNOB_EVENT_DATA *knob_data);
    int last_console_activity_time_c(int console, unsigned int *last_activity);
    int lex_query_param_c(int item, int make_save=FALSE);
    int lex_sa_acl_script_search_c(int top_row=WMNGR_CENTER,
				   int left_column=WMNGR_CENTER,
				   char *acl_string=(char *) NULL,
				   char *lex_sa_name=(char *) NULL);
    int lex_sa_device_search_c(int top_row=WMNGR_CENTER,
			       int left_column=WMNGR_CENTER,
			       int device_index=0,
			       char *lex_sa_name=(char *) NULL);
    int list_delete(list_link_t *hdr, LIST_VOID_FUNC f);
    int list_field_create_c(short window_id, int row, int column,
                            int align_type, char *label,
                            int label_length, int label_color,
                            char *list_text, int text_length,
                            int list_color, char text_fill_char,
                            int num_entries, int initial_entry,
                            list_field_function callback_func,
                            void *callback_data,
                            HELP_CALLBACK_DATA *overall_help,
                            HELP_CALLBACK_DATA *list_help,
                            unsigned int options, char *default_text,
                            char *handle, int *field_id,
                            list_field_enable_function *entry_enable_funcs=(list_field_enable_function *) NULL);
    int list_field_delete_c(void *identifier);
    int list_field_disable_c(void *identifier);
    int list_field_enable_c(void *identifier);
    int list_field_read_c(void *identifier, char *entry_text,
                          int *entry_index);
    int list_field_set_c(void *identifier, void *entry_data,
                         int entry_data_type, int exec_callback);
    int list_field_set_id_type_c(int identifier_type);
    int list_field_window_delete_c(short window_id);
    list_link_t *list_find(list_link_t *hdr, int dir, LIST_BOOL_FUNC f,
			   void *arg);
    int list_for_each(list_link_t *hdr, LIST_VOID_FUNC f);
    void list_init(list_link_t *hdr);
    int list_insert(list_link_t *pred, list_link_t *new_entry);
    int list_remove(list_link_t *new_entry);
    int lock_read(char const *object_name, LOCK_ENTRY_DATA *lock_data,
		  int check_dropped=FALSE);
    int lock_read_program_locks_c(char const *owner_name, int node,
				  int *num_locks,
				  PROGRAM_LOCK_ENTRY_DATA **ret_lock_data=(PROGRAM_LOCK_ENTRY_DATA **) NULL,
				  int check_dropped=FALSE);
    int lock_release(char const *object_name);
    int lock_request(char const *object_name);
    int log_alarm_bypass_c(int num_devices, int *device_indices,
			   int *alarm_types);
    int logical_combo_menu_c(int top_row, int left_column, int num_lines,
                             char const *text, int num_chars,
                             int num_entries, char const *title, char *logvals,
                             int padding_chars, char const *enabled_entries,
                             HELP_CALLBACK_DATA const *help_data,
			     int exit_switch);
    int logical_scroll_menu(int *top_row, int *left_column,
			    int *num_lines, char const *text,
			    int *num_chars, int *num_entries,
			    char const *title, char *log_values,
			    int *padding_chars=(int *) NULL,
			    char const *enabled_entries=(char *) NULL,
			    HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
			    int *exit_switch=(int *) NULL);
    int logical_scroll_menu_c(int top_row, int left_column, int num_lines,
			      char const *text, int num_chars, int num_entries,
			      char const *title, char *log_values,
			      int padding_chars=1,
			      char const *enabled_entries=(char *) NULL,
			      HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
			      int exit_switch=FALSE);
    int log_read(char* file_id, int format=CLIB_DEFAULT_ARG, int console_num=0);
    void log_read_clu(int view_slot, int console_num=0);
    int log_read_setup_c(int format,
    			 int filter_type=LOG_NO_FILTER,
		    	 void *filter_data=(void *) NULL,
		    	 log_read_function user_routine=(log_read_function) NULL);
    int log_write(char const *file_id, int type, int prior, char const *msg,
		  char const *author=(char *) NULL, int color=CLIB_DEFAULT_ARG);
    int log_write_multiline_c(char const *file_id, int type, int priority,
			      char const *message, int line_length=80,
			      char const *author=(char *) NULL,
			      int color=CLIB_DEFAULT_ARG);
    int lx_col_to_pix(int *column, int *maxcol=NULL,int *size=(int *) NULL);
    int lx_col_to_pix_c(int column, int *maxcol=(int *) NULL, int size=0);
    int lx_colored_string_c(int x, int y, XCHAR *text,
			    int numchar, int size=LXFONT_MINSIZ,
			    int rot=LXFONT_LEFT_TO_RIGHT);
    void lx_display_value(int *row, int *col, void *value, int *type,
			  int *ncar, int *colors, char *fill=NULL,
			  int *justify=NULL);
    void lx_display_value_c(int row, int col, void *value, int type,
			    int ncar, int colors, char fill=' ',
			    int justify=CNV_NO_JUSTIFY);
    void lx_display_value_atpix(int *xpix, int *ypix, void *value, int *type,
				int *ncar, int *colors, char *fill=NULL,
				int *justify=NULL);
    void lx_display_value_atpix_c(int xpix, int ypix, void *value, int type,
				  int ncar, int colors, char fill=' ',
				  int justify=CNV_NO_JUSTIFY);
    int lx_pix_to_column_c(int pix, int	*maxcol=NULL,int size=0);
    int lx_pix_to_row_c(int pix, int *maxrow=NULL, int size=0);
    int lx_row_to_pix(int *row, int *maxrow=NULL,int *size=(int *) NULL);
    int lx_row_to_pix_c(int row, int *maxrow=NULL, int size=0);
    void lxblnk(int *row, int *column, int *num_chars);
    void lxblnk_c(int row, int column, int num_chars);
    void lxbox(int *top_row, int *left_column, int *bottom_row,
	       int *right_column, int *color, int *fill=(int *) NULL);
    void lxbox_c(int top_row, int left_column, int bottom_row,
		 int right_column, int color, int fill=FALSE);
    void lxchar(int *x, int *y, char *chrdat, int *color, int *size=NULL,
		int *rot=NULL, int *back_color=NULL);
    void lxchar_c(int x, int y, char *chrdat, int color,
		  int size=LXFONT_MINSIZ,
		  int rot=LXFONT_LEFT_TO_RIGHT,
		  int back_color=LXFONT_NOBACK);
    void lxfont(int *chrnum, char *chrdat, int *writit);
    void lxfont_c(int chrnum, char *chrdat, int writit);
    void lxh(int *x, int *y, char *value,
	     int *num_chars, int *color);
    void lxh_c(int x, int y, char *value, int num_chars, int color);
    void lxhlin(int *row, int *column, int *num_chars,
		int *color);
    void    lxhlin_c(int row, int column, int num_chars, int color);
    void lxi(int *row, int *column, short *value,
	     int *num_chars, int *color);
    void lxi_c(int row, int column, short value, int num_chars, int color);
    void lxi4(int *row, int *column, int *value,
	     int *num_chars, int *color);
    void lxi4_c(int row, int column, int value, int num_chars, int color);
    void lxprint(int *row, int *column, char *text,
		 int *num_chars, int *color);
    void lxprint_c(int row, int column, char *text, int num_chars,
		   int color);
    void lxr(int *row, int *column, float *value,
	     int *num_chars, int *color, int *form);
    void lxr_c(int row, int column, float value, int num_chars, int color,
	       int form);
    void lxr8(int *row, int *column, double *value,
	      int *num_chars, int *color);
    void lxr8_c(int row, int column, double value, int num_chars, int color);
    void lxstring_c(int x, int y, char *text, int numchar,
		    int color, int size=LXFONT_MINSIZ,
		    int rot=LXFONT_LEFT_TO_RIGHT,
		    int back_color=LXFONT_NOBACK);
    void lxtext_c(int x, int y, char *string, int length, int color=WHITE);
    void lxvlin(int *row, int *column, int *num_chars,
		int *color);
    void lxvlin_c(int row, int column, int num_chars, int color);
    int math_exception_check(void);
    int math_exception_establish(int *,int *);
    int mecca_minmax_program_number_c(int type, int *minimum_number,
				      int *maximum_number=(int *) NULL);
    int mecca_search_program_info_c(
                const char *           pattern,
                MECCA_INFO_FIELD       field,
                MECCA_SEARCH_OPT       options,
                MECCA_PROGRAM_INFO *   results,
                int                    max_return,
                int *                  num_returned,
                int *                  total_matches
                );
    int memory_check_c(char const *buffer, char value, int num_bytes);
    int memory_search_c(void const *source, int num_src_vals,
                        void const *search, int num_srch_vals,
                        int sizeof_entry, int *match_index);
    void memset_double_c(double *array, double fill, int num_value);
    void memset_float_c(float *array, float fill, int num_value);
    void memset_longword_c(int *array, int fill, int num_word);
    void memset_long_long_word_c(long long *array, long long fill,
				 int num_value);
    void memset_word_c(short *array, short fill, int num_word);
    void menu(int *type, int *top_row, int *left_column,
	      int *num_items, int *num_chars,
	      char *item_text, char *title, int *item,
	      int *num_columns, short *window_id);
    void menu_c(int type, int top_row, int left_column, int num_items,
		int num_chars, char *item_text, char *title,
		int *item, int num_columns, short *window_id);
    int menu_assert_choice_c(int choice);
    int menu_bar_change_entry_c(short window_id, int field, char *text);
    int menu_bar_create(char *item_text,
			menu_bar_function *funcs=(menu_bar_function *) NULL,
			int disp_row=2, int color=WHITE,
			int auto_update=FALSE, void **func_data=NULL,
                        HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int menu_bar_delete(void);
    int menu_bar_disable_c(short window_id);
    int menu_bar_dncase_entry_c(short window_id, int field);
    int menu_bar_enable_c(short window_id);
    int menu_bar_field_coordinates_c(short window_id, int field, int *row,
                                     int *left_column, int *field_length);
    int menu_bar_min_width_c(char *field_text);
    int menu_bar_upcase_entry_c(short window_id, int field);
    int menu_bar_update(void);
    int menu_change_entry_c(short menu_id, int item, char *text,
                            int num_chars, int color);
    int menu_change_entry_case_c(short menu_id, int item, int type, int color);
    int menu_create(int *top_row, int *left_column,
                    int *num_items, int *num_chars,
                    char *item_text, char *title,
                    int *num_columns, short *window_id,
                    menu_function *funcs=(menu_function *) NULL,
                    void **func_data=(void **) NULL,
                    int *auto_update=(int *) NULL,
                    int *num_lines=(int *) NULL,
                    int *text_color=(int *) NULL,
                    char *enabled_entries=(char *) NULL,
                    HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
                    char *header_line=(char *) NULL,
                    int *padding_chars=(int *) NULL,
                    unsigned int *options=(unsigned int *) NULL);
    int menu_create_c(int top_row, int left_column, int num_items,
                      int num_chars, char *item_text, char *title,
                      int num_columns, short *window_id,
                      menu_function *funcs=(menu_function *) NULL,
                      void **func_data=(void **) NULL,
                      int auto_update=FALSE,
                      int num_lines=CLIB_DEFAULT_ARG,
                      int text_color=WHITE,
                      char *enabled_entries=(char *) NULL,
                      HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
                      char *header_line=(char *) NULL,
                      int padding_chars=1,
                      unsigned int options=MENU_OPT_NONE);
    int menu_delete(short *window_id);
    int menu_delete_c(short window_id);
    int menu_is_open(void);
    int menu_set_current_entry_c(short menu_id, int item);
    void menu_setup_c(int crs_restore,
		      int border_color=(int)CLIB_DEFAULT_ARG,
		      int border_style=(int)CLIB_DEFAULT_ARG,
                      int moves_enabled=(int)CLIB_DEFAULT_ARG,
		      int auto_size=(int)CLIB_DEFAULT_ARG,
                      int title_color=(int)CLIB_DEFAULT_ARG,
		      int fit_window=(int)CLIB_DEFAULT_ARG);
    int menu_topmost(void);
    int menu_update(short *window_id, int *type);
    int menu_update_c(short window_id, int type);
    int meswin(int *top_row, int *left_column,
	       int *num_rows, int *num_columns,
	       char *text, int *color,
	       char *title=(char *) NULL,
	       int *exit_switch=(int *) NULL,
	       int *resize_screen=(int *) NULL,
	       int *synchronous=(int *) NULL);
    int meswin_c(int top_row, int left_column, int num_rows, int num_columns,
                 char *text, int color, char *title=(char *) NULL,
                 int exit_switch=FALSE, int resize_screen=FALSE,
		 int synchronous=TRUE);
    int modify_enumerated_strings_c(int num_values, char *text,
                                    int entry_length, int enumerated_id,
                                    HELP_CALLBACK_DATA *help_info,
				    int *value=(int *) NULL);
    int multicolor_menu_change_entry_c(short menu_id, int item,
				       XCHAR const *text, int num_chars,
				       int left_color=(int) CLIB_DEFAULT_ARG,
				       int right_color=(int) CLIB_DEFAULT_ARG);
    int multicolor_menu_create_c(int top_row, int left_column, int num_items,
                                 int num_chars, XCHAR *item_text,
                                 char *title, int num_columns,
                                 short *window_id, menu_function *funcs,
                                 void **func_data, int auto_update,
                                 int num_lines, char *enabled_entries,
                                 HELP_CALLBACK_DATA *help_data,
                                 XCHAR *header_line,
                                 int padding_chars, unsigned int options);
    int multicolor_popup_menu_c(int top_row, int left_column, int num_lines,
                                XCHAR *text, int num_chars,
                                int num_entries, char *title, int *item,
                                int padding_chars, char *enabled_entries,
                                HELP_CALLBACK_DATA *help_data,
                                XCHAR *header_line,
                                unsigned int options);
    int multicolor_text_window(int *top_row, int *left_column,
                               int *num_lines, char *text,
                               int *num_chars, int *num_entries,
                               char *title, int *color,
                               int *num_fields);
    int multicolor_text_window_c(int top_row, int left_column, int num_lines,
                                 char *text, int *num_chars,
                                 int num_entries, char *title,
                                 int *colors, int num_fields);
    int multicolumn_scroll_menu(int *top_row, int *left_column,
				int *num_entries, int *num_chars,
				char *item_text, char *title, int *item,
				int *num_columns=(int *) NULL,
				int *num_lines=(int *) NULL,
				popup_menu_function *user_funcs=(popup_menu_function *) NULL,
				void **func_data=(void **) NULL,
				char *enabled_entries=(char *) NULL,
				HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
				unsigned int *options=(unsigned int *)NULL);	/* create a multicolumn menu */
    int multicolumn_scroll_menu_c(int top_row, int left_column,
				  int num_entries, int num_chars,
				  char *item_text, char *title, int *item,
				  int num_columns=1, int num_lines=10,
				  popup_menu_function *user_funcs=(popup_menu_function *) NULL,
				  void **func_data=(void **) NULL,
				  char *enabled_entries=(char *) NULL,
				  HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
				  unsigned int options=(unsigned int)MENU_OPT_ROW_MAJOR);/* create a pop up menu */
    int node_acnet_ping_c(int node,
			  unsigned int *millisecs=(unsigned int *) NULL);
    int node_acnet_tasks_c(int node, int *num_tasks,
			   ACNET_TASK_INFO_ENTRY **task_entries=(ACNET_TASK_INFO_ENTRY **) NULL);
    int node_coresident_nodes_c(int node, int *num_nodes,
				int **coresident_nodes);
    int node_has_after_boot_script_c(int node, char *script_name);
    int node_has_boot_message_c(int node, char *message_info=(char *) NULL);
    int node_has_boot_script_c(int node, char *script_name);
    int node_is_up_c(int node);
    int notify_populate(char *description, char *TOD,
                        char *PName, char *URL, int type,
                        int priority, int category, char *source);
    int numeric_conversion_type_text_c(int convert_type, char *type_text,
				       char *description=(char *) NULL,
				       unsigned int options=NUMERIC_OPT_NONE);
    int numeric_convert_tuner_c(int param_type, int operation,
                                void *param_value_1=(void *) NULL,
                                void *param_value_2=(void *) NULL);
    int numeric_convert_type_id_c(int data_type, int operation);
    int numeric_data_length_c(int data_type);
    int numeric_default_length_c(int cnv_type,
				 void *data_type_info=(void *) NULL);
    int numeric_fundamental_type_c(int data_type);
    int numeric_is_enumerated_type_c(int convert_type);
    int numeric_is_user_defined_enum_type_c(int convert_type);
    int numeric_to_ascii(void *value, int *num_chars,
                         char *buffer, int *cnv_type,
                         int *start=(int *) NULL,
                         char *fill=(char *) NULL,
                         int *justify=(int *) NULL,
                         int *null_term=(int *) NULL,
                         unsigned int *options=(unsigned int *) NULL);
    int numeric_to_ascii_c(void const*value, int num_chars, char *buffer,
                           int cnv_type,
                           int start=1,char fill=BLANK,
                           int justify=CNV_NO_JUSTIFY,
                           int null_terminate=0,
			   unsigned int options=NUMERIC_OPT_NONE);
    int numeric_to_float_c(int data_type, void *value, float *float_value);
    int numeric_values_c(int data_type, void *default_value,
                         void *minimum_value, void *maximum_value,
                         unsigned int options,
			 void *data_type_info=(void *) NULL);
    int oacs_on_node_c(int node, int *ret_num_oacs, int **ret_oacs,
		       unsigned int options=0);
    int packed_buffer_add_c(PACKED_BUFFER_DATA *packed_buffer, int data_type,
			    int data_length, void const *data);
    int packed_buffer_copy_data_c(PACKED_BUFFER_DATA const *packed_buffer,
				  int max_length, int *data_length, void *data);
    int packed_buffer_fill_c(PACKED_BUFFER_DATA *packed_buffer, int data_length,
			     void const *data);
    void packed_buffer_free(PACKED_BUFFER_DATA *packed_buffer);
    int packed_buffer_get_c(PACKED_BUFFER_DATA *packed_buffer, int data_type,
			    int max_length, int *data_length, void *data,
			    unsigned int options=PACKED_BUFFER_OPT_NONE);
    void packed_buffer_init(PACKED_BUFFER_DATA *packed_buffer);
    int packed_buffer_next_entry_info(PACKED_BUFFER_DATA const *packed_buffer,
				      int *data_type=(int *) NULL,
				      int *data_length=(int *) NULL);
    void packed_buffer_rewind(PACKED_BUFFER_DATA *packed_buffer);
    int packed_buffer_size(PACKED_BUFFER_DATA const *packed_buffer,
			   int *size=(int *) NULL,
			   int *num_entries=(int *) NULL);
    int panic_mail(char *ssmail_to_user, char *ssmail_subject_line,
	               char *ssmail_message);
    int param_page_acl_search(int top_row=WMNGR_CENTER,
			      int left_column=WMNGR_CENTER,
			      char *acl_string=(char *) NULL);
    int param_page_build_text(char *index_page_name,
			      char *level_1_name, char *level_2_name,
			      char *level_3_name, char *param_page_text);
    int param_page_config_info(char const *page_name, int *num_rows,
			       int *num_level_1=(int *) NULL,
			       int *level_1_text_len=(int *) NULL,
			       char **level_1_text=(char **) NULL,
			       int *num_level_2=(int *) NULL,
			       int *level_2_text_len=(int *) NULL,
			       char **level_2_text=(char **) NULL,
			       int *num_level_3=(int *) NULL,
			       int *level_3_text_len=(int *) NULL,
			       char **level_3_text=(char **) NULL);
    int param_page_find_acl_subpages(char *acl_string,
				     char **ret_subpage_text,
				     PARAMPAGE_SUBPAGE_DATA **ret_subpage_data,
				     int *ret_num_subpages);
    int param_page_find_subpages_c(int device_index,
				   char **ret_subpage_text,
				   PARAMPAGE_SUBPAGE_DATA **ret_subpage_data,
				   int *ret_num_subpages);
    int param_page_indices_to_text_c(char *index_page_name,
				     int level_1_index, int level_2_index,
				     int level_3_index, char *param_page_text);
    int param_page_info(char const *page_name, int *ret_num_devices,
			int *device_indices, int *device_offsets=(int *) NULL,
			char *subpage_title=(char *) NULL,
			char *lex_sa_name=(char *) NULL);
    int param_page_search_c(int device_index=0, int top_row=WMNGR_CENTER,
			    int left_column=WMNGR_CENTER,
			    int select_slot=FALSE);
    int param_page_select_c(int top_row, int left_column,
			    char *index_page_name, int *level_1_index,
			    int *level_2_index, int *level_3_index);
    int param_page_subpage_menu_titles(char const *page_name, int *num_subpages,
				       int *title_length=(int *) NULL,
				       char **subpage_titles=(char **) NULL);
    int param_page_subpage_text(char *index_page_name, char *level_1_text,
				int *level_1_length, int *num_level_1,
				char *level_2_text, int *level_2_length,
				int *num_level_2, char *level_3_text,
				int *level_3_length, int *num_level_3);
    int parameter_window(int user_panum, int keep=FALSE);
    int parameter_window_insert_device(int pa_number, char *index_page,
                                       int row_number, int device_index,
                                       int array_index,
                                       char *event_string);
    int parameter_window_setup(int seton);
    int parameter_window_set_height(int pa_number, char *index_page,
                                    int num_rows, int num_lines);
    void pause_c(int);
    int perform_network_ping_c(char const *ip_name, unsigned int timeout=1,
			       double *ping_time=(double *) NULL);
    int pgm_data_storage(char *data, int data_length, int write_it,
			 char *table_name=(char *) NULL);
    int pgm_data_storage_shared(char *data, int data_length, int write_it,
				char *table_name=(char *) NULL);
    int pick_arbitrary_slot_c(int console_number, int slot_type,
			      unsigned char *slot,
			      unsigned int options=SLOT_OPT_NONE);
    int pid_process_exists_c(int pid, int node=LOCAL);
    int pid_to_process_name_c(int pid, char *process_name, int node=LOCAL);
    int popup_menu(int *top_row, int *left_column, int *num_items,
                   int *num_chars, char *item_text, char *title,
                   int *item, int *num_columns=(int *) NULL,
                   popup_menu_function *funcs=(popup_menu_function *) NULL,
                   void	**func_data=(void **) NULL,
		   char *enabled_entries=(char *) NULL,
                   HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int popup_menu_c(int top_row, int left_column, int num_items, int num_chars,
                     char *item_text, char *title, int *item,
                     int num_columns=1,
		     popup_menu_function *funcs=(popup_menu_function *) NULL,
                     void **func_data=(void **) NULL,
		     char *enabled_entries=(char *) NULL,
                     HELP_CALLBACK_DATA	*help_data=(HELP_CALLBACK_DATA *) NULL);
    int post_message(int *top_row, int *left_column,
                     char *text, int *color, int *restore=(int *) NULL);
    int post_message_c(int top_row, int left_column, char *text,
                       int color, int restore=WMNGR_REPAINT,
		       int max_line_length=0);
    int post_multiline_message_c(int top_row, int left_column,
                                 char *text, int text_length,
                                 int line_length, int color,
                                 int restore_mode, char *title,
                                 unsigned int options);
    int prepare_menu_entries(char *text, int single_length,
                             int num_entries,
			     unsigned int options=MENU_OPT_NONE);
    int printer_default_queue_c(int type, char *printer_queue,
                                int *printer_type);
    int printer_menu_c(int top_row, int left_column, char *printer_queue,
		       int *printer_type, char *default_queue,
		       unsigned int options=PRINTER_OPT_NONE);
    int process_get_active(char *tasks, char *node=NULL, int max_task=0);
    int process_info_by_pid_c(int pid, PID_INFO *pid_info, int node=LOCAL);
    int process_information(PROCESS_INFO_DATA *process_info);
    int process_name_to_pid_c(char const *process_name, int *pid,
			      int node=LOCAL);
    int process_type_and_number(char *process_name, int *type, int *number);
    bool program_help_available(char const *program_name);
    int queue_delete(void **queue);
    int queue_free(void **queue);
    int queue_init(void **queue);
    int queue_insert(void *queue, void *value);
    int queue_is_empty(void *queue);
    void *queue_peek(void *queue, int *was_found=(int *) NULL);
    void *queue_remove(void *queue, int *was_removed=(int *) NULL);
    int queue_size(void *queue);
    void rdspi_c(int row, int column, int num_chars, int minimum, int maximum,
		 short *value, short *error);
    void rdspr_c(int row, int column, int num_chars, double minimum,
		 double maximum, float *value, short *error);
    int read_c_style_device_file(char *file_name, char **device_names,
				 int **device_indices, short **properties,
				 int **array_indices, int **end_indices,
				 unsigned int options=DEVFIL_OPT_NONE);
    int read_device_download_file_c(int node, int index, int *num_devices,
				    int *device_indices, short *properties);
    int read_device_file(char *file_name, char **device_names,
			 int **device_indices, short **property_indices,
			 int **array_indices=(int **) NULL,
			 unsigned int options=DEVFIL_OPT_ALLOW_OBSOLETE,
			 int *num_errors=(int *) NULL,
			 INVALID_DEVICE_NAME_INFO **error_names=(INVALID_DEVICE_NAME_INFO **) NULL);
    int read_device_spec_file(char *file_name, char **device_names,
			      int **device_indices, short **property_indices,
			      short **lengths, short **offsets,
			      unsigned int options=DEVFIL_OPT_ALLOW_OBSOLETE);
    int read_gif_image(char *file_name, GIF_IMAGE_DATA *image_data);
    int read_graphic_font(char *fname, int *char_height, int *char_width,
                          int *num_chars, unsigned char *present_chars=NULL,
                          int *char_data=NULL);
    int read_logger_device_file(char *file_name, char **device_names,
				int **device_indices, short **properties,
				int **array_indices, int **end_indices,
				int **sda_cases, int **sda_sets,
				int **sda_final_data,
				unsigned int options=DEVFIL_OPT_NONE);
    void read_lx_format(int *num_rows, int *num_columns,
			int *size=(int *) NULL);
    int read_web_page_c(char const *url, int remove_html_tags, int *num_lines,
			char ***lines, unsigned int options=0);
    int remove_current_context(void);
    int remove_device_from_download_list_c(int device_index, short property);
    void repeat_kbd_intype(short *type, short *row, short *column,
			   unsigned int options);
    int reslex(int item);
    int restore_tv_screen(int *id=(int *) NULL);
    int retrieve_validated_user_name(char *user_name,
				     unsigned int *seconds_ago=(unsigned int *) NULL);
    double round_double_c(double value);
    int save_graphic_font_c(char *fname, int char_height, int char_width,
                            unsigned char *present_chars, int *char_data,
                            char *name=NULL, char *descrip_text=NULL);
    int save_tv_screen(void);
    void savlex(void);
    int screen_column(short *window_id, int *column);
    int screen_column_c(short window_id, int column);
    int screen_row(short *window_id, int *row);
    int screen_row_c(short window_id, int row);
    int script_accept(int allow);
    int script_available(char *pa_name, int *num_scripts);
    int script_check(char *box_name);
    int script_create(void);
    int script_delete(char *script, char *paname=(char *) NULL);
    int script_get_dir(int *nscript, char **script_text,
                       unsigned short **records, unsigned short **sizes,
                       char *paname=(char *) NULL);
    int script_info(char *process_name, char *script_name, int *num_events,
                    int *start_record);
    void script_lock(void);
    int script_menu(int top_row, int left_column, float replay_speed,
                    char *name, char *pa_name=(char *) NULL,
                    unsigned int options=SCRIPT_OPT_NONE);
#ifdef __cplusplus
    int script_read(char *process_name=(char *) NULL,
                    char *script_name=(char *) NULL,
                    SCRIPT_NODE **script_data=(SCRIPT_NODE **) NULL,
                    int *num_events=(int *) NULL);
#else
    int script_read();
#endif
    int script_select(char *script_name,
                      int *do_term=(int *) NULL, float *speed=(float *) NULL,
                      char *et_box=(char *) NULL, int *dpset_lock=(int *) NULL,
                      int *fswrite_lock=(int *) NULL, int override=FALSE);
    void script_unlock(void);
    int script_status(void);
    int script_stop(int mode, char *stop_text=(char *) NULL);
    int script_terminated(void);
    int script_writing(void);
    int scroll_menu(int *top_row, int *left_column,
                    int *num_lines, char const *text,
                    int *num_chars, int *num_entries,
                    char const *title, int *item,
                    int	*padding_chars=(int *) NULL,
		    char const *enabled_entries=(char *) NULL,
                    HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                    char const *header_line=(char *) NULL,
		    unsigned int *options=(unsigned int *) NULL);
    int scroll_menu_c(int top_row, int left_column, int num_lines,
                      char const *text, int num_chars, int num_entries,
                      char const *title, int *item,
                      int padding_chars=1,
                      char const *enabled_entries=(char *) NULL,
                      HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                      char const *header_line=(char *) NULL,
                      unsigned int options=MENU_OPT_NONE);
    int scroll_menu_hs_c(int top_row, int left_column, int num_lines,
			 int num_columns, char const *text,
			 int num_chars, int num_entries,
			 char const *title, int *item,
			 int padding_chars=1,
			 char *enabled_entries=(char *) NULL,
			 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			 char *header_line=(char *) NULL,
			 unsigned int options=MENU_OPT_NONE);
    int sda_case_menu_c(char *title, int top_row, int left_column,
			int *sda_case, int cursor_handling,
			char *usage=(char *) NULL, int file_number=0);
    int sda_case_select_register_c(int *select_id, char *label,
				   int label_length,
				   char *usage=(char *) NULL);
    int sda_file_select_register_c(int *select_id, char *label,
				   int label_length,
				   char *usage);
    int sda_subcase_select_register_c(int *select_id, char *label,
				      int label_length,
				      char *usage,
				      int case_number,
				      int file_number=0);
    int sda_usage_menu_c(char *title, int top_row, int left_column,
			 int *sda_usage, int cursor_handling);
    int sda_usage_select_register_c(int *select_id, char *label,
				    int label_length);
    int select_field_delete_c(short window_id, int select_id);
    int select_field_disable_c(short window_id, int select_id);
    int select_field_display_info_c(int select_id, int *entry_length,
                                    char *label, int *label_length);
    int select_field_enable_c(short window_id, int select_id);
    int select_field_init_c(short window_id, int row, int column, int select_id,
                            char *entry_text,
                            select_field_function update_func=(select_field_function) NULL,
                            void *update_data=(void *) NULL,
                            HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
                            char *handle=(char *) NULL,
                            unsigned int options=SELECT_FIELD_OPT_NONE);
    int select_field_read_c(short window_id, int select_id, char *entry_text,
                            int *entry_index);
    int select_field_register_c(int *id, int entry_length, char *label,
                                int label_length, int type, void *data1,
                                void *data2, void *data3,
                                int char_case=WMNGR_MIXED_CASE,
                                void *func_data=(void *) NULL,
                                sf_verify_value_function verify_value=(sf_verify_value_function) NULL);
    int select_field_set_c(short window_id, int select_id,
                           char *entry_text);
    int select_field_set_by_value_c(short window_id, int select_id,
                                    int entry_value);
    int select_field_text_to_id_c(short search_window, char *text,
                                  int text_type, short *window_id,
                                  int *select_id);
    int select_field_update_c(short window_id, int select_id, char *ret_entry);
    int set_bit_mask_strings_c(int num_values, unsigned int *bit_numbers,
                               char *text, int entry_length,
                               char *text_if_0, int entry_len_if_0,
                               char *text_if_1, int entry_len_if_1,
                               HELP_CALLBACK_DATA *help_info,
                               int *returned_id);
    int set_current_context(int current);
    int set_enumerated_string_array_c(int num_values, char **strings,
				      int *returned_id=(int *) NULL,
				      int const *values=(int *) NULL,
				      int user_data_type=CNV_LONG,
				      HELP_CALLBACK_DATA const *help_info=(HELP_CALLBACK_DATA *) NULL);
    int set_enumerated_strings_c(int numval, char const *text,
                                 int entry_length,
                                 int *returned_id=(int *) NULL,
                                 HELP_CALLBACK_DATA const *help_info=(HELP_CALLBACK_DATA *) NULL,
                                 int const *values=(int *) NULL,
                                 int user_data_type=CNV_LONG);
    int set_logical_strings(char *true_string, char *false_string);
    int set_process_alias(char *alias);
    int set_timer_ref(int *di, int *numevt, int *events);
    unsigned int set_validated_user_name_timeout_c(unsigned int timeout);
    int shared_log_printf_c(char const *file_id, int type, int priority,
			    char const *author, int color,
			    char const *format_string, ...);
    int shared_log_printf_multiline_c(char const *file_id, int type,
				      int priority, int line_length,
				      char const *author, int color,
				      char const *format_string, ...);
    int shftwn(int *left_column, int *top_row, int *right_column,
	       int *bottom_row);
    void shift_string_left_c(char *string, int length, int shift);
    int show_process(char *proc=NULL, int row=WMNGR_CENTER,
		     int col=WMNGR_CENTER);
    int show_program_info(char const *pa_name=(char*) 0,
			   char *list_pasaname=(char *) NULL,
			   int list_num=1,int current_one=0);

    int show_service_info(char *service_name=(char*) 0);
    int slider_create_c(short window_id, int row, int column, int length,
                        int width, int indicator_length, int orientation,
                        float min_value, float max_value, float current_value,
                        float increment, float block_increment, int *id,
                        slider_function func=(slider_function) NULL,
                        void *func_data=(void *) NULL,
                        int border_style=WMNGR_BORDER_NONE,
                        int indicator_color=WHITE,
                        int bkgd_color=BLACK,
                        int border_color=WHITE,
                        int auto_update=TRUE,
                        char decrement_char=(char)CLIB_DEFAULT_BYTE_ARG,
                        char increment_char=(char)CLIB_DEFAULT_BYTE_ARG);
    int slider_delete_c(int slider_id, int restore_window);
    int slider_get_values_c(int slider_id, int *indicator_length,
                            float *min_value, float *max_value,
                            float *increment, float *block_increment,
                            int *indicator_color, int *bkgd_color,
                            int *border_color, int *border_style);
    int slider_read_c(int slider_id, float *value);
    int slider_set_c(int slider_id, float new_value);
    int slider_set_values_c(int slider_id, int indicator_length,
                            float min_value, float max_value, float increment,
                            float block_increment, int indicator_color,
                            int bkgd_color, int border_color, int border_style);
    int slider_update_c(int slider_id, float *ret_value, int *action,
                        float *delta_value);
    int slider_was_moved(int *last_moved_id);
    int slot_is_available_c(int console_number, int console_slot);
    int smart_menu_c(int top_row, int left_column, char const *text,
		     int entry_length, int num_entries, char const *title,
		     int *item, int padding_chars=1,
		     char const *enabled_entries=(char *) NULL,
		     int num_lines=0,
		     HELP_CALLBACK_DATA const *help_data = (HELP_CALLBACK_DATA *) NULL,
		     char const *header_line=(char *) NULL,
		     unsigned int options=MENU_OPT_NONE);
    int snapshot_choose_plot(char *dev_name, unsigned short *subsystem,
                             unsigned short *recordnum, unsigned short *userid,
                             unsigned short *userkey1,
                             unsigned short *userkey2);
    int snp_export_data(void *u_specs, int user_dialog,
    			int tvrow=(int)WMNGR_CENTER,
			int tvcol=(int)WMNGR_CENTER);
    int snp_file_menu_c(int top_row, int left_column, char *category_name,
                        char *file_name, int *file_number);
    int snp_file_search(char *file_name_string, char *device_string,
			int *ret_num_files, SNP_FILE_INFO **ret_file_info);
    int snp_read_plot_setup_file_c(char *system_name, void *file,
                                   unsigned int options, int *mode,
                                   SNP_DEVICE_DATA *x_time,
                                   SNP_DEVICE_DATA *y_devices,
                                   int *num_y_devices,
                                   float *frequency, int *time_base,
                                   int *arm_events, int *plot_scaling,
                                   int *setup_type, void *setup_data,
                                   SNP_OPTION_DATA *plot_options);
    int snp_setup(SNP_INFO *plot_info,int wrow=(int)WMNGR_CENTER,
	      	  int wcol=(int)WMNGR_CENTER);
    int snp_start(SNP_INFO *plot_info,int erase_it=(int)TRUE);
    int snp_start_plot_c(int console_number, int sa_slot, int mode,
                         SNP_DEVICE_DATA *x_time,
                         SNP_DEVICE_DATA *y_devices,
                         int num_y_devices, float frequency, int time_base,
                         int *arm_events, int plot_scaling,
                         int setup_type, void *setup_data,
                         SNP_OPTION_DATA *option_data);
    int snp_start_plot_from_file_c(int console_number, int sa_slot,
                                   char *system_name, void *file,
                                   unsigned int options);
    int spawn_acl_script_c(char const *file_name, int file_type,
                           char const *subst_devices, int num_devices,
                           short default_ftd, char **subst_strings,
                           int num_subst_str, char const *log_file,
                           char const *shared_log, int node=LOCAL,
                           unsigned int acl_options=SPAWNED_ACL_OPT_NONE,
                           unsigned int spawn_options=SPAWN_OPT_NONE,
			   char *spawn_name=(char *) NULL,
			   SPAWNED_ACL_REMOTE_MESSAGE_INFO *message_info=(SPAWNED_ACL_REMOTE_MESSAGE_INFO *) NULL,
			   char const *lock_name=(char *) NULL,
			   char const *orig_requestor=(char *) NULL,
			   int orig_req_node=LOCAL, int connect_node=LOCAL);
    int spawn_shotlog_comment_c(char *log_name,
    				char *source_name,
                                char *subsource_name,
                                char *author_name, char *comment,
                                char *shared_log, int node=LOCAL,
                                unsigned int shotlog_options=SL_OPT_NONE,
                                unsigned int spawn_options=SPAWN_OPT_NONE,
				char *lock_name=(char *) NULL,
				char *spawn_name=(char *) NULL,
				SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *message_info=(SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *) NULL,
				int log_type=WEBLOG_LOGTYPE_DEFAULT,
				int entry_id=SL_ENTRY_ID_NONE,
				int visibility=SL_VISIBILITY_NORMAL);
    int spawn_shotlog_image_entry_c(char *log_name,
    				    char *source_name,
                                    char *subsource_name,
                                    char *author_name, int num_images,
                                    int *consoles, int select_type,
                                    void *screens, char *comment,
                                    char *shared_log, int node=LOCAL,
                                    unsigned int shotlog_options=SL_OPT_NONE,
                                    unsigned int spawn_options=SPAWN_OPT_NONE,
				    char *lock_name=(char *) NULL,
				    char *spawn_name=(char *) NULL,
				    SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *message_info=(SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *) NULL,
				    int log_type=WEBLOG_LOGTYPE_DEFAULT,
				    int entry_id=SL_ENTRY_ID_NONE,
				    int visibility=SL_VISIBILITY_NORMAL);
    int spawn_shotlog_insert_chapter_c(char *log_name,
    				       char *source_name,
                                       char *subsource_name,
                                       char *author_name,
                                       char *comment,
                                       char *shared_log, int node=LOCAL,
                                       unsigned int shotlog_options=SL_OPT_NONE,
                                       unsigned int spawn_options=SPAWN_OPT_NONE,
				       char *lock_name=(char *) NULL,
				       char *spawn_name=(char *) NULL,
				       SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *message_info=(SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *) NULL,
				       int log_type=WEBLOG_LOGTYPE_DEFAULT);
    int spawn_shotlog_insert_url_c(char *log_name,
    				   char *source_name,
                                   char *subsource_name,
                                   char *author_name, char *url,
                                   char *shared_log, int node=LOCAL,
                                   unsigned int shotlog_options=SL_OPT_NONE,
                                   unsigned int spawn_options=SPAWN_OPT_NONE,
				   char *lock_name=(char *) NULL,
				   char *spawn_name=(char *) NULL,
				   SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *message_info=(SPAWNED_WEBLOG_REMOTE_MESSAGE_INFO *) NULL,
				   int log_type=WEBLOG_LOGTYPE_DEFAULT,
				   int entry_id=SL_ENTRY_ID_NONE,
				   int visibility=SL_VISIBILITY_NORMAL);
    int sr_category_menu_c(int top_row, int left_column);
    int sr_data_length_c(int *device_indices, short *properties,
			 int file_number, int *lengths, short *errors,
			 int num_devices=1);
    int sr_directory_info_c(void *dir_data, int file_number=SRMNGR_ALL_FILES,
                            int category=CLIB_DEFAULT_ARG,
                            int source=CLIB_DEFAULT_ARG,
                            int full_info=FALSE,
                            char *sda_usage=(char *) NULL,
                            int max_return=SRMNGR_ALL_FILES);
    int	sr_directory_info_by_date_c(unsigned int start_date,
				    unsigned int end_date,
				    int data_source, int num_categories,
				    int *categories, unsigned int options,
				    int *num_files, void **directory_info);
    int sr_disconnect(void);
    int sr_expand_save_items_c(int num_items, SR_SAVE_ITEM *save_items,
                               unsigned int options, int *num_devices,
                               int **device_indices);
    int sr_file_devices_c(int file_number, int data_source, char *usage,
                          int case_number, int subcase_number,
                          int *num_scalars, int **scalar_dis,
                          short **scalar_pis, int *num_snapshots,
                          int **snapshot_dis, short **snapshot_pis,
                          int *num_ftps=(int *) NULL,
                          int **ftp_dis=(int **) NULL,
                          short **ftp_pis=(short **) NULL);
    int sr_file_has_device_c(int file_number, int data_source,
                             char *usage, int case_number,
                             int subcase_number, int device_index,
                             int property,
                             int device_type=SRMNGR_SDA_SCALAR_DEVICE);
    int sr_file_has_devices_c(int file_number, int data_source,
                              char *usage, int case_number,
                              int subcase_number, int *device_indices,
                              short *properties, int num_devices,
                              int device_type, int *present_status);
    int sr_file_menu_c(int top_row, int left_column,
                       int category=CLIB_DEFAULT_ARG,
                       int source=CLIB_DEFAULT_ARG,
                       int default_file=0, char *sda_usage=(char *) NULL);
    int sr_file_save_errors_c(int file_number, int *num_devices,
			      int **device_indices=(int **) NULL,
			      short **properties=(short **) NULL,
			      short **save_errors=(short **) NULL,
			      int match_error=OK);
    int sr_file_select_register_c(int *select_id, char *label,
				  int label_length,
				  int category=SR_ALL_SYSTEMS);
    int sr_find_device_save_lists_c(int device_index, int *num_returned,
				    char **list_names, unsigned int options);
    int sr_get_array_device_c(int *device_indices,
                              short *properties, int file_number,
                              float *values, short *errors,
                              int *num_elements,
                              int *start_elements,
                              char *units_text, int num_devices,
                              int data_source, int case_number,
                              int *values_per_dev,
                              int subcase_number=SDA_DEFAULT_SUBCASE_NUMBER,
                              char *sda_usage=(char *) NULL,
			      unsigned int options=SRMNGR_OPT_NONE);
    int sr_get_device_c(int *device_indices, short *properties,
                        int file_number, float *values, short *errors,
                        short *lengths=(short *) NULL,
                        short *offsets=(short *) NULL,
                        char *units=(char *) NULL,
                        int num_devices=1, int source=CLIB_DEFAULT_ARG,
                        int case_number=CLIB_DEFAULT_ARG, int is_snapshot=FALSE,
                        int user_id=CLIB_DEFAULT_ARG,
                        int *values_per_dev=(int *) NULL,
                        char *sda_usage=(char *) NULL,
			unsigned int options=SRMNGR_OPT_NONE);
    int sr_get_device_list(int page_id, int *num_devices,
			   int *device_indices, int *positions,
			   int max_return, int include_timer_references);
    int sr_get_device_over_time_c(int device_index, short property,
				  int num_categories, int *categories,
				  int search_type, void *search_info,
				  unsigned int options,
				  int *num_points, void **values,
				  SRMNGR_SR_SEARCH_VALUE_DATA **value_data,
				  int *vals_per_point=(int *) NULL,
				  int length=0, int offset=0,
				  char *units_text=(char *) NULL);
    int sr_get_device_over_time_raw_c(int device_index, short property,
				      int num_categories, int *categories,
				      int search_type, void *search_info,
				      unsigned int options,
				      int *num_points, void **raw_data,
				      SRMNGR_SR_SEARCH_VALUE_DATA **value_data,
				      int *ret_length=(int *) NULL,
				      int length=0, int offset=0);
    int sr_get_device_raw_c(int const *device_indices, short const *properties,
                            int file_number, char *raw_data,
                            short *errors, short const *lengths=(short *) NULL,
                            short const *offsets=(short *) NULL,
                            int num_devices=1, int source=CLIB_DEFAULT_ARG,
                            int case_number=CLIB_DEFAULT_ARG,
                            int is_snapshot=FALSE,
                            int subcase_num=CLIB_DEFAULT_ARG,
                            short *ret_lengths=(short *) NULL,
                            char const *sda_usage=(char *) NULL,
			    unsigned int options=SRMNGR_OPT_NONE);
    int sr_get_file_indices_c(int num_files, int *file_numbers,
			      int *file_indices);
    int sr_get_level_1_info(int system_index,SR_LEVEL_1_INFO **sr_level_1_info);
    int sr_get_level_2_info(int system_index, int level_1_index,
			    SR_LEVEL_2_INFO *sr_level_2_info);
    int sr_get_save_error_c(int *device_indices, short *properties,
			    int file_number, short *save_errors, short *errors,
			    int num_devices=1);
    int sr_get_snapshot_c(int device_index, int property, int file_number,
                          int *snapshot_mode, float *reference_point,
                          float *timestamps, float *values,
                          int *num_values, char *units=(char *) NULL,
                          int source=SRMNGR_SDA_DATA,
                          int case_number=CLIB_DEFAULT_ARG,
                          int user_id=CLIB_DEFAULT_ARG,
                          char *sda_usage=(char *) NULL,
			  unsigned int options=SRMNGR_OPT_NONE);
    int sr_get_status_text_over_time_c(int device_index, int num_categories,
				       int *categories, int search_type,
				       void *search_info, unsigned int options,
				       int *num_points, XCHAR **status_text,
				       SRMNGR_SR_SEARCH_VALUE_DATA **value_data,
				       int *vals_per_point=(int *) NULL,
				       int length=0, int offset=0);
    int sr_is_on_c(int *device_indices, int file_number, int *on_states,
                   short *errors, int num_devices=1,
                   int source=CLIB_DEFAULT_ARG,
                   int case_number=SDA_DEFAULT_CASE_NUMBER,
                   short *lengths=(short *) NULL,
                   short *offsets=(short *) NULL,
                   int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
                   char *sda_usage=(char *) NULL,
		   unsigned int options=SRMNGR_OPT_NONE);
    int sr_is_positive_c(int *device_indices, int file_number,
                         int *positive_states, short *errors,
                         int num_devices=1,
                         int source=CLIB_DEFAULT_ARG,
                         int case_number=SDA_DEFAULT_CASE_NUMBER,
                         short *lengths=(short *) NULL,
                         short *offsets=(short *) NULL,
                         int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
                         char *sda_usage=(char *) NULL,
			 unsigned int options=SRMNGR_OPT_NONE);
    int sr_is_ramping_c(int *device_indices, int file_number,
			int *ramping_states, short *errors,
			int num_devices=1, int data_source=CLIB_DEFAULT_ARG,
			int case_number=SDA_DEFAULT_CASE_NUMBER,
			short *lengths=(short *) NULL,
			short *offsets=(short *) NULL,
			int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
			char *sda_usage=(char *) NULL,
			unsigned int options=SRMNGR_OPT_NONE);
    int sr_make_save_file_c(char *title, int file_number,
                            int protection, int num_items,
                            SR_SAVE_ITEM *save_items,
                            unsigned int options, sr_save_output_function output_func,
                            void *output_data, int_function abort_func);
    int sr_maximum_file(void);
    int sr_newest_file_c(int data_source, int category, int *file_number);
    int sr_oldest_file_c(int data_source, int category, int *file_number);
    int sr_read_device_c(int *device_indices, short *properties, int file,
			 double *values, short *errors,
			 int *lengths=(int *) NULL,
			 int *offsets=(int *) NULL, char *units=(char *) NULL,
			 int num_devices=1, int source=CLIB_DEFAULT_ARG,
			 int case_number=CLIB_DEFAULT_ARG,
			 int is_snapshot=FALSE, int user_id=CLIB_DEFAULT_ARG,
			 int *vals_per_dev=(int *) NULL,
			 char *sda_usage=(char *) NULL,
			 unsigned int options=SRMNGR_OPT_NONE);
    int sr_read_snapshot_c(int device_index, int property, int file,
			   int *snapshot_mode, double *reference_point,
			   double *timestamps, double *values, int *num_values,
			   char *units_text=(char *) NULL,
			   int data_source=SRMNGR_SDA_DATA,
			   int case_number=CLIB_DEFAULT_ARG,
			   int user_id=CLIB_DEFAULT_ARG,
			   char *sda_usage=(char *) NULL,
			   unsigned int options=SRMNGR_OPT_NONE);
    int sr_restore_device_c(int *device_indices, short *properties,
                            int file_number, short *errors,
                            int num_devices=1,
                            int source=CLIB_DEFAULT_ARG,
                            int case_number=SDA_DEFAULT_CASE_NUMBER,
                            short *lengths=(short *) NULL,
                            short *offsets=(short *) NULL,
                            int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
                            char *sda_usage=(char *) NULL,
                            unsigned int options=SRMNGR_OPT_NONE);
    int sr_save_list_devices_from_node_c(int node, int *num_returned,
					 SR_FIND_NODE_LIST_DEVICE_DATA **devices,
					 unsigned int options=SRMNGR_OPT_NONE);
    int sr_save_list_name_to_devices_c(char *list_name, int max_return,
                                       int *num_returned,
                                       int *device_indices,
                                       unsigned int options);
    int sr_save_list_names(char *system_name, char *level_1_name,
                           char *list_names);
    int sr_save_mask_to_properties_c(int property_mask, int *num_properties,
				     short **properties=(short **) NULL);
    int sr_save_status(int *save_status, SR_SAVE_STATUS_DATA *status_data);
    int	sr_sda_all_case_times_c(char *usage, int file_number,
				int case_number, int *num_entries,
				int **numbers, unsigned int **start_times,
				unsigned int **end_times);
    int sr_sda_cases_present_c(char *usage, int file_number,
                               int *num_cases, int **case_numbers);
    int sr_sda_case_times_c(char *usage, int file_number,
                            int case_number, int subcase_number,
                            unsigned int *start_time, unsigned int *end_time);
    int	sr_sda_config_case_info_c(char *usage, int case_number, int *num_cases,
				  SDA_CONFIG_CASE_DATA **case_data);
    int	sr_sda_config_device_c(char *usage, int case_number, int device_index,
			       int property, int device_type,
			       void *device_data);
    int sr_sda_config_device_list_c(char *usage, int case_number,
				    int num_devices, int *device_indices,
				    short *properties, int device_type,
				    short *errors, void *device_data);
    int	sr_sda_config_devices_c(char *usage, int case_number, int *num_scalars,
				int **scalar_dis, short **scalar_pis,
				int **scalar_lens, int **scalar_offs,
				char **scalar_dat_evts, int *num_snapshots,
				int **snap_dis, short **snap_pis,
				int **snap_ais, char **snap_dat_evts,
				int *num_ftps, int **ftp_dis, short **ftp_pis,
				int **ftp_ais, char **ftp_dat_evts);
    int	sr_sda_config_find_device_c(char *usage, int case_number,
				    int device_index, int property,
				    int device_type, int *num_found,
				    void **device_info);
    int sr_sda_config_find_wild_c(char *usage, int case_number,
				  char *name, int property,
				  int device_type, int *num_found,
				  void **device_info);
    int sr_sda_data_lengths_c(int const *device_indices,
                              short const *properties,
                              char const *sda_usage, int file_number,
                              int case_number, int subcase_number,
                              short *lengths, short *offsets,
			      short *errors, int num_devices);
    int sr_sda_file_number_c(int *store_number, int *file_number,
                             short *errors, int num_stores,
                             char *sda_usage=SDA_DEFAULT_USAGE);
    int sr_sda_get_device_over_time_c(int device_index, short property,
				      char *sda_usage, int search_type,
				      void *search_info,
				      SRMNGR_SEARCH_SDA_CASE_DATA *case_info,
				      SRMNGR_SEARCH_SDA_SET_DATA *set_info,
				      unsigned int options,
				      int *num_points, void **values,
				      SRMNGR_SDA_SEARCH_VALUE_DATA **value_data,
				      int *vals_per_point=(int *) NULL,
				      int length=0, int offset=0,
				      char *units_text=(char *) NULL);
    int sr_sda_get_device_over_time_raw_c(int device_index, short property,
					  char *sda_usage, int search_type,
					  void *search_info,
					  SRMNGR_SEARCH_SDA_CASE_DATA *case_info,
					  SRMNGR_SEARCH_SDA_SET_DATA *set_info,
					  unsigned int options, int *num_points,
					  void **raw_data,
					  SRMNGR_SDA_SEARCH_VALUE_DATA **value_data,
					  int *ret_length=(int *) NULL,
					  int length=0, int offset=0);
    int sr_sda_get_file_indices_c(char *sda_usage, int num_files,
				  int *file_numbers, int *file_indices);
    int sr_sda_get_ftp_list_c(int num_devices, int *device_indices,
			      short *properties, unsigned int *array_indices,
			      char *sda_usage, int file, int case_number,
			      int subcase_number, int max_points,
			      int *num_points, SDA_FTP_POINT *points,
			      short *errors,
			      DATA_EVENT_DATA *data_events=(DATA_EVENT_DATA *) NULL,
			      unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_ftp_num_points_list_c(int num_devices, int *device_indices,
					 short *properties,
					 unsigned int *array_indices,
					 char *sda_usage, int file,
					 int case_number, int subcase_number,
					 int *num_points, short *errors,
					 unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_raw_ftp_list_c(int num_devices, int *device_indices,
				  short *properties,
				  unsigned int *array_indices,
				  char *sda_usage, int file, int case_number,
				  int subcase_number, int max_points,
				  int *num_points, SDA_RAW_FTP_POINT *points,
				  short *errors,
				  DATA_EVENT_DATA *data_events=(DATA_EVENT_DATA *) NULL,
				  unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_raw_snapshot_list_c(int num_devices, int *device_indices,
				       short *properties,
				       unsigned int *array_indices,
				       char *sda_usage, int file,
				       int case_number, int subcase_number,
				       int max_points, int *num_points,
				       SDA_RAW_SNAPSHOT_POINT *points,
				       short *errors,
				       DATA_EVENT_DATA *data_events=(DATA_EVENT_DATA *) NULL,
				       unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_snapshot_list_c(int num_devices, int *device_indices,
				   short *properties,
				   unsigned int *array_indices,
				   char *sda_usage, int file, int case_number,
				   int subcase_number, int max_points,
				   int *num_points, SDA_SNAPSHOT_POINT *points,
				   short *errors,
				   DATA_EVENT_DATA *data_events=(DATA_EVENT_DATA *) NULL,
				   unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_snap_num_points_list_c(int num_devices, int *device_indices,
					  short *properties,
					  unsigned int *array_indices,
					  char *sda_usage, int file,
					  int case_number, int subcase_number,
					  int *num_points, short *errors,
					  unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_get_status_text_over_time_c(int device_index, char *sda_usage,
					   int search_type, void *search_info,
					   SRMNGR_SEARCH_SDA_CASE_DATA *case_info,
					   SRMNGR_SEARCH_SDA_SET_DATA *set_info,
					   unsigned int options,
					   int *num_points, XCHAR **status_text,
					   SRMNGR_SDA_SEARCH_VALUE_DATA **value_data,
					   int *vals_per_point=(int *) NULL,
					   int length=0, int offset=0);
    int sr_sda_num_subcases_c(char *usage, int case_value,
                              int *num_subcases,
                              int *multiple_sets=(int *) NULL);
    int sr_sda_select_directory_c(int top_row, int left_column,
                                  int auto_connect=TRUE);
    int sr_sda_set_directory_c(int directory);
    int sr_sda_snapshot_stats_c(int *device_indices,
                                short *properties,
                                char *sda_usage, int file_number,
                                int case_number, int subcase_number,
                                unsigned int *start_times,
                                double *minimum_values,
                                double *maximum_values, double *average_values,
                                int *rates, float *durations, short *errors,
                                int want_ftp, int num_devices,
				unsigned int options=SRMNGR_OPT_NONE);
    int sr_sda_store_number_c(int *file_number, int *store_number,
                              short *errors, int num_files,
                              int directory=SR_SDA_NORMAL,
                              char *sda_usage=SDA_DEFAULT_USAGE);
    int	sr_sda_store_times_c(char *sda_usage, int *store_numbers,
			     int num_stores, short *errors,
			     unsigned int *start_dates,
			     unsigned int *end_dates);
    int sr_sda_subcases_present_c(char *usage, int file_number,
                                  int case_number, int *num_subcases,
                                  int **ret_subcases);
    int	sr_set_device_c(int file_number, int device_index, int property,
			float *values, int length, int offset, int save_error,
			unsigned int options);
    int	sr_set_raw_c(int file_number, int device_index, int property,
		     char *setting_data, int length, int offset, int save_error,
		     unsigned int options);
    int sr_set_source_c(int data_source);
    int sr_snap_active_devices_c(int system, int device_index,
				 int *num_devices,
				 SRMNGR_SNAP_DEVICE_ENTRY_DATA **device_data=(SRMNGR_SNAP_DEVICE_ENTRY_DATA **) NULL,
				 unsigned int options=0);
    int sr_snap_date_to_file_info_c(int device_index, int system,
				    unsigned int date,
				    int *file_system=(int *) NULL,
				    int *file_record=(int *) NULL,
				    unsigned int options=0);
    int sr_snap_directory_info_c(int system, int device_index,
				 unsigned int start_time, unsigned int end_time,
				 int *num_files,
				 SRMNGR_SNAP_DIR_ENTRY_DATA **dir_data=(SRMNGR_SNAP_DIR_ENTRY_DATA **) NULL,
				 unsigned int options=0);
    int sr_snapshot_header_c(int device_index, int data_source, int file_number,
			     int case_number=CLIB_DEFAULT_ARG,
			     SR_SNAPSHOT_HEADER *snapshot_info=(SR_SNAPSHOT_HEADER *) NULL,
			     int subcase_num=CLIB_DEFAULT_ARG,
			     char *sda_usage=(char *) NULL,
			     unsigned int options=SRMNGR_OPT_NONE);
    int sr_snapshot_info_c(int device_index, int file_number, int *num_points,
                           float *delta_time, unsigned int *start_time,
                           int source=CLIB_DEFAULT_ARG,
                           int case_number=CLIB_DEFAULT_ARG,
                           int *snapshot_mode=(int *) NULL,
                           unsigned char *arm_events=(unsigned char *) NULL,
                           int *arm_delay=(int *) NULL,
                           int subcase_num=CLIB_DEFAULT_ARG,
                           char *sda_usage=(char *) NULL,
			   unsigned int options=SRMNGR_OPT_NONE);
    int sr_snapshot_info_list_c(int num_devices, int *device_indices, int file,
				short *errors, int source=CLIB_DEFAULT_ARG,
				int case_number=CLIB_DEFAULT_ARG,
				int *num_points=(int *) NULL,
				float *delta_times=(float *) NULL,
				unsigned int *start_times=(unsigned int *) NULL,
				int *snapshot_modes=(int *) NULL,
				unsigned char *arm_events=(unsigned char *) NULL,
				int *arm_delays=(int *) NULL,
				int subcase_num=CLIB_DEFAULT_ARG,
				char *sda_usage=(char *) NULL,
				unsigned int options=SRMNGR_OPT_NONE);
    int sr_status_c(int *device_indices, int file_number,
                    int *on_states, int *ready_states, int *remote_states,
                    int *positive_states, short *errors,
                    int num_devices=1, int source=CLIB_DEFAULT_ARG,
                    int case_number=SDA_DEFAULT_CASE_NUMBER,
                    short *lengths=(short *) NULL,
                    short *offsets=(short *) NULL,
                    int *ramp_states=(int *) NULL,
                    int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
                    char *sda_usage=(char *) NULL,
		    unsigned int options=SRMNGR_OPT_NONE);
    int sr_status_text_c(int *device_indices, int file_number,
                         XCHAR *status_text, short *errors,
                         int num_devices=1, int source=CLIB_DEFAULT_ARG,
                         int case_number=SDA_DEFAULT_CASE_NUMBER,
                         short *lengths=(short *) NULL,
                         short *offsets=(short *) NULL,
                         int ret_ramp_dc=FALSE,
                         int subcase_num=SDA_DEFAULT_SUBCASE_NUMBER,
                         char *sda_usage=(char *) NULL,
			 unsigned int options=SRMNGR_OPT_NONE);
    int sr_system_names(int *num_systems,
			int const **system_numbers=(int const **) NULL,
			char const ***system_names=(char const ***) NULL,
			char const ***long_system_names=(char const ***) NULL,
			char const ***symbolic_system_names=(char const ***) NULL,
			unsigned int options=SRMNGR_OPT_NONE);
    int sr_user_save_list_devices_from_node_c(int device_index, int *num_returned,
					      SR_FIND_NODE_USER_LIST_DEVICE_DATA **devices,
					      unsigned int options=SRMNGR_OPT_NONE);
    int ssfndx(char *string, int num_chars, char *substring, int length,
               char dntcmp);
    void stack_delete(void **stack);
    void stack_free(void **stack);
    void stack_init(void **stack);
    int stack_is_empty(void **stack);
    void *stack_peek(void **stack);
    void *stack_pop(void **stack);
    int stack_push(void **stack, void *value);
    int state_ftd_index_to_device_c(int state_ftd_index,
                                    int *vm_device_index);
    int	str_build_text_block_c(char const *string, int length, int line_length,
			       int *num_lines, char **text_block,
			       unsigned int options);
    int str_case_c(char *string, int type, int length);
    int str_character_count_c(char const *string, int length, char chr);
    int str_compare_device_names_c(char const *device_name_1,
				   char const *device_name_2,
				   unsigned long long options=STR_OPT_NONE);
    int str_compare_nocase(char const *string_1, char const *string_2);
    int str_compare_n_nocase_c(char const *string_1, char const *string_2,
                               int num_chars);
    int str_compare_user_names(char const *user_name_1,
			       char const *user_name_2);
    int str_concatenate_c(char *con_string, char **strings,
                          int num_strings, char const *delimiter=(char *) NULL,
			  int buffer_length=0);
    int str_copy_array_of_strings_c(char **src_strings,
                                    int num_strings, char ***ret_strings);
    int str_delete_char_c(char *string, int num_chars, int delete_pos);
    int str_delete_character_set_c(char *string, int num_chars,
				   char *chars_to_delete, unsigned int options);
    int str_delimited_length_c(char const *string, char const *delimiters,
                               int maximum_length,
			       unsigned int options=STR_OPT_NONE);
    int str_escape_c(char *source_string, int length, char char_to_replace,
		     char *output_string, int max_length, int type,
		     unsigned int options);
    int str_escape_quotes_in_sql_string_c(char *source_string, int length,
					  char quote_char, char *output_string,
					  int max_length,
					  int quote_string=FALSE,
					  unsigned int options=STR_OPT_NONE);
    int str_escape_set_c(char *source_string, int length,
			 char const *chars_to_escape, int num_chars,
			 char *output_string, int max_length,
			 int type, unsigned int options);
    int str_expand_tabs_c(char *string, int length,
                          int maximum_length, unsigned int options);
    char **str_extract_device_names_c(char const *source_string,
				      int source_length, int *num_names,
				      unsigned int name_options=STR_DEVNAME_OPT_NONE,
				      unsigned options=STR_OPT_NONE);
    int str_extract_line_c(char **src_string, char *out_string,
                           int line_length, int max_ret=0);
    int str_find_character_c(char const *string, char character, int length,
                             int direction, unsigned int options=STR_OPT_NONE);
    int str_find_character_set_c(char const *string, char const *character_set,
                                 int length, int direction,
				 unsigned int options=STR_OPT_NONE);
    int str_find_first_c(char const *string, int length, int direction,
			 unsigned int options=STR_OPT_NONE);
    int str_find_last_string_c(char const *source_string, int source_length,
			       char const *match_string, int match_length,
			       int case_sensitive, char wildcard,
			       int ignore_spaces,
			       char **next_string=(char **) NULL);
    int str_find_not_in_character_set_c(char const *string,
					char const *character_set,
					int length=0, int direction=STR_FIRST,
					unsigned int options=STR_OPT_NONE);
    int str_find_quote_c(char const *string, int length=0,
			 int direction=STR_FIRST);
    int str_find_string_c(char const *source_string, int source_length,
                          char const *match_string, int match_length,
                          int case_sensitive, char wildcard,
                          int ignore_spaces, char **next_string=(char **) NULL);
    int str_find_tag_c(int tag_type, char const *source_string,
                       int source_length, unsigned int options,
                       int max_return, char *tag_string, int *is_end_tag,
                       char **next_string);
    int str_free_array_of_strings_c(char **strings, int num_strings);
    int str_get_bracketed_c(char **source_string, int source_length,
                            char *output_string, int max_output_length,
                            int trim_output, char const *left_bracket,
                            int left_length, char const *right_bracket,
                            int right_length, int case_sensitive,
                            char wildcard, int ignore_spaces,
			    unsigned int options=STR_OPT_NONE);
    char str_get_first_c(char const *string, int length,
			 int direction, int *position);
    int str_get_tagged_value_c(char **source_string, char *tag_string,
			       char *value_string, int max_length,
			       unsigned int options=STR_OPT_NONE,
			       char const *separators=(char *) NULL);
    int str_get_tagged_value_alloc_c(char **source_string,
				     char **tag_string, char **value_string,
				     unsigned int options=STR_OPT_NONE,
				     char const *separators=(char *) NULL);
    int str_get_value_c(char **source_string, char *value_string,
			int type, int max_ret=256,
			char *field_terms=(char *) NULL,
			unsigned int options=STR_OPT_NONE,
			unsigned int conditions=STR_COND_NONE,
			char const *cond_terms=(char *) NULL);
    int str_insert_char_c(char *string, int num_chars, int insert_pos,
                          char insert_char);
    void str_insert_string_c(char *dest_string, char *main_string,
			     int nchar_main, int insert_pos,
			     char const *insert_string, int nchar_insert);
    int str_insert_terminator_c(char *string, int length, char term_char=0,
				unsigned int options=STR_OPT_NONE);
    int str_is_alphabetic_c(char const *string, int length,
			    unsigned int options=STR_OPT_NONE);
    int str_is_alphanumeric_c(char const *string, int length,
			      unsigned int options=STR_OPT_NONE);
    int str_is_binary_string_c(char const *string, int length,
			       unsigned int options=STR_OPT_NONE,
			       int *integer_length=(int *) NULL,
			       int *modifier_type=(int *) NULL);
    int str_is_blank_c(char const *string, int nchar=0);
    int str_is_bracketed_c(char const *string, int length=0,
			   unsigned int options=0);
    int str_is_enclosed_in_parentheses_c(char const *string, int length=0,
					 unsigned int options=0);
    int str_is_filled_with_char_c(char const *string, int num_chars,
                                  char character);
    int str_is_float_string_c(char const *string, int length);
    int str_is_hex_c(char const *string, int length,
    		     unsigned int options=STR_OPT_NONE,
		     int *integer_length=(int *) NULL,
		     int *modifier_type=(int *) NULL);
    int str_is_integer_string_c(char const *string, int length,
				unsigned int options=STR_OPT_NONE,
				int *integer_length=(int *) NULL,
				int *is_negative=(int *) NULL,
				int *modifier_type=(int *) NULL);
    int str_is_lower_case_c(char const *string, int length);
    int str_is_numeric_c(char const *string, int length);
    int str_is_octal_string_c(char const *string, int length,
			      unsigned int options=STR_OPT_NONE,
			      int *integer_length=(int *) NULL,
			      int *modifier_type=(int *) NULL);
    int str_is_printable_c(char const *string, int length);
    int str_is_quoted_c(char const *string, int length=0);
    int str_is_rad50_c(char const *string, int length=0,
		       unsigned int options=STR_OPT_NONE);
    int str_is_upper_case_c(char const *string, int length);
    int str_is_white_space_c(char const *string, int length);
    int str_justify_c(char *string, int type, int length=0);
    int str_length_c(char const *string, int max_length); /* get the length of a string */
    int str_line_info_c(char const *text, int text_length, int line_length,
			int *num_lines, int *longest_line,
			unsigned int options);
    int	str_make_printable_c(char *string, int length,
			     int maximum_length,
			     unsigned int options=STR_OPT_NONE,
			     char replace_char=BLANK);
    int str_nonblank_length_c(char const *string, int max_length);    /* get the nonblank length of a string */
    int str_num_lines_c(char const *text, int text_length, int line_length);
    int str_num_nonblank_c(char const *string, int length);
    int str_pad_c(char *padded_string, char *string, int pad_type,
                  int length, char pad_char, int num_padding,
		  unsigned int options=STR_OPT_NONE);
    int str_printable_length_c(char const *string, int length=0,
			       unsigned int options=STR_OPT_NONE);
    int str_quote_string_c(char *quoted_string, int quoted_length, char *string,
			   int length, char quote_char);
    int str_regexp_compare(char const *string, char const *match_pattern,
			   int use_extended=FALSE);
    int str_regexp_compare_nocase(char const *string,
				  char const *match_pattern,
				  int use_extended=FALSE);
    int str_regexp_compile_pattern_c(char const *match_pattern,
				     int match_length=0,
				     int case_sensitive=FALSE,
				     int use_extended=FALSE,
				     int normal_nl=TRUE);
    int str_regexp_find_string_c(char const *source_string, int source_length,
				 char const *match_pattern, int match_length=0,
				 int case_sensitive=FALSE,
				 int use_extended=FALSE,
				 int normal_nl=TRUE, unsigned int options=0,
				 char **next_string=(char **) NULL);
    int str_regexp_free_pattern(void);
    int str_regexp_get_value_c(char **source_string, char const *match_pattern,
			       char *output_string, int max_return=0,
			       unsigned int options=STR_OPT_NONE);
    int str_regexp_insert_string_c(char *source_string,
				   char const *match_pattern,
				   char const *insert_string,
				   int insert_location,
				   unsigned int options=STR_OPT_NONE,
				   char **next_string=(char **) NULL);
    int str_regexp_remove_string_c(char *source_string,
				   char const *match_pattern,
				   unsigned int options=STR_OPT_NONE,
				   char **next_string=(char **) NULL);
    int str_regexp_replace_string_c(char *source_string, int source_length,
				    char const *match_pattern, int match_length,
				    int case_sensitive, int use_extended,
				    int normal_nl, unsigned int options,
				    char const *replace_string,
				    int replace_length=0,
				    char **next_string=(char **) NULL);
    char **str_regexp_split_c(char const *source_string, int source_length,
			      char const *delimiter_string,
			      int delimiter_length,
			      unsigned long long options, int *num_substrings,
			      int max_splits=0);
    int str_remove_brackets_c(char *modified_string, int modified_length,
			      char *string, int length=0,
			      unsigned int options=0);
    int str_remove_char_set_c(char *string, int length,
			      char const *chars_to_remove,
                              char fill_char);
    int str_remove_character_c(char *string, int passed_length,
			       char character,
			       unsigned int options=STR_OPT_NULL_TERMINATE,
			       int max_to_remove=0);
    int str_remove_eol_characters_c(char *string, int length,
				    char fill_char=0);
    int str_remove_html_tags_c(char *string, int length);
    int str_remove_nonprintables_c(char *string, int length, char fill_char);
    int str_remove_spaces_c(char *string, int length);
    int str_remove_string_c(char *source_string, int source_length,
			    char const *match_string,
			    int match_length=0, int case_sensitive=FALSE,
			    char wildcard=STR_NO_WILDCARD,
			    int ignore_spaces=FALSE, char fill_char=0,
			    char **next_string=(char **) NULL);
    int str_replace(char *modify_string);
    int str_replace_bracketed_c(char *source_string, int source_length,
                                char const *left_bracket, int left_length,
                                char const *right_bracket, int right_length,
                                int case_sensitive, char wildcard,
                                int ignore_spaces,
                                char const *replace_string, int replace_length,
                                char **next_string,
                                replace_function replace_func=(replace_function) NULL,
                                unsigned int options=STR_OPT_NONE);
    int str_replace_char_c(char *string, int num_chars, char char_to_replace,
                           char replace_char);
    int str_replace_character_c(char *string, int num_chars,
                                char char_to_replace, char replace_char,
                                unsigned int options=STR_OPT_NONE);
    int str_replace_char_set_c(char *string, int num_chars,
                               char const *chars_to_replac, char replace_char);
    int str_replace_character_set_c(char *string, int num_chars,
                                    char const *chars_to_replac,
				    char replace_char,
                                    unsigned int options=STR_OPT_NONE);
    int str_replace_characters_with_string_c(char *source_string, int length,
					     char const *chars_to_replac,
					     char const *replace_string,
					     char *output_string,
					     int max_length,
					     unsigned int options=STR_OPT_NONE);
    int str_replace_characters_with_strings_c(char *source_string, int length,
					      char const *chars_to_replac,
					      char const * const *replace_strings,
					      char *output_string,
					      int max_length,
					      unsigned int options=STR_OPT_NONE);
    int str_replace_string_c(char *source_string, int source_length,
                             char const *match_string, int match_length,
                             int case_sensitive, char wildcard,
                             int ignore_spaces, char const *replace_string,
                             int replace_length, char **next_string);
    int str_shift_c(char *string, int direction, int num_shift, int length=0);
    char **str_split_c(char const *source_string, int source_length,
		       char const *delimiter_string, int delimiter_length,
		       int case_sensitive, char wildcard, int ignore_spaces,
		       int *ret_num_substrings,
		       unsigned long long options=STR_OPT_NO_TRIM,
		       int max_splits=0);
    char **str_split_by_char_set_c(char const *source_string, int source_length,
				   char const *delimiters,
				   unsigned long long options,
				   int *num_substrings,
				   char **actual_delims=(char **) NULL,
				   int max_splits=0);
    char **str_split_by_char_set_nonstatic_c(char const *source_string,
					     int source_length,
					     char const *delimiters,
					     unsigned long long options,
					     int *num_substrings,
					     char **actual_delims=(char **) NULL,
					     int max_splits=0);
    int str_starts_with_c(char const *string, int length,
                          char const *substring, int substring_len,
                          int direction, unsigned int options);
    int str_starts_with_char_type_c(char const *string, int length,
				    int char_type, int direction=STR_FIRST,
				    unsigned int options=STR_OPT_NONE);
    int str_string_count_c(char const *string, int length,
			   char const *match_string, int match_length=0,
			   int case_sensitive=FALSE,
			   char wildcard=STR_NO_WILDCARD,
			   int ignore_spaces=FALSE);
    int str_strip_brackets_c(char *mod_string, int mod_length,
			     char *string, int length=0,
			     unsigned int options=0);
    int str_strip_parentheses_c(char *unparened_string, int unparened_length,
				char *string, int length=0,
				unsigned int options=0);
    int str_strip_quotes_c(char *unquoted_string, int unquoted_length,
			   char *string, int length=0);
    int	str_tail_c(char const *source_string, int length, char *output_string,
	 	   int tail_length, unsigned int options);
    std::string str_to_escaped_quoted_sql_string(std::string const input,
						 char quote);
    std::string str_to_sql_expression(std::string const input,
				      std::string const column);
    int str_translate_characters_c(char *string, int length,
				   char const *translate_chars,
				   int num_translate,
				   int translate_offset=0,
				   unsigned int options=STR_OPT_NONE);
    int str_trim_c(char *trimmed_string, char *string, int trim_type,
                   int length=0);
    int str_trim_characters_c(char *trimmed_string, char *string,
			      char const *trim_chars, int trim_type,
			      unsigned int options=STR_OPT_NONE, int length=0);
    int	str_unescape_c(char *source_string, int length, char *output_string,
		       int type, unsigned int options);
    int str_wmatch_search(char *string_1, char *string_2);
    int str_word_count_c(char const *string, int length,
			 char const *delimiters=(char *) NULL,
			 unsigned int options=STR_OPT_NONE,
			 char ***words=(char ***) NULL);
    int string_to_data_event(char const *string, DATA_EVENT_DATA *data_event,
			     int allow_extended=FALSE);
    int strlen_xchar(XCHAR const *string);
    int strncmx(char *string1, char *string2, int num_chars, char dntcmp);
    char *strncpx(char *dest_string, char const *src_string, size_t maxchar,
		  int do_addr=0);
    char *strstr_nocase(char const *source_string, char const *substring);
    int structure_build_name(char *class_name, char *structure_name,
			     char *name);
    int structure_cache(char *name);
    int	structure_convert_enum_value_c(char *name, int field_number,
				       int enum_value, int max_return,
				       char *text);
    int	structure_convert_floats_c(char *name, int conversion_type,
				   void *data_buffer, int *num_converted);
    int structure_edit_c(int top_row, int left_column, char *title,
                         char *name, void *data_buffer,
                         unsigned int options);
    int structure_field_data(char *name, int *num_fields,
			     STRUCT_FIELD_DATA **field_data);
    int structure_field_info(char *name, int *num_fields,
			     int **data_types, int **lengths,
			     char ***field_names=(char ***) NULL);
    int structure_get_defaults_c(char *name, void *data_buffer);
    int structure_get_description(char *name, char *description,
				  char *long_descr=(char *) NULL);
    int structure_get_names_c(char *search_name, int name_type,
                              int *num_names, char ***names,
                              int *longest_name);
    int structure_menu_c(int top_row, int left_column, char *title,
                         char *search_name, int name_type, char *name);
    int structure_name_exists(char *name);
    int structure_parse_name(char *string, char *class_name,
			     char *structure_name);
    int structure_size_c(char *name, size_t *size);
    void strx_build_c(XCHAR *xchar_string, char const *string,
		      char const *colors, int num_chars);
    void strx_copy_from_string_c(XCHAR *xchar_string, char const *string,
				 int num_chars, int color);
    void strx_copy_to_string_c(char *string, XCHAR const *xchar_string,
			       int num_chars);
    int strx_delimited_length_c(XCHAR const *string, char const *delimiters,
                                int maximum_length);
    void strx_fill_c(XCHAR *string, int num_chars, char ch, int color);
    int strx_fill_color_c(XCHAR *string, int num_chars, int color);
    int strx_find_character_c(XCHAR const *string, char character,
                              int length, int direction);
    int strx_find_first_c(XCHAR const *string, int length, int direction);
    int strx_is_blank_c(XCHAR const *string, int length);
    int strx_length_c(XCHAR const *string, int maximum_length);
    int strx_nonblank_length_c(XCHAR const *string, int maximum_length);
    int strx_replace_char_set_c(XCHAR *string, int num_chars,
                                char const *chars_to_replac, char replace_char);
    void strx_to_string_and_colors_c(char *string, char *colors,
				     XCHAR const *xchar_string, int num_chars);
    int switch_change_case_c(int switch_id, int type, int color,
                             int border_color);
    int switch_create_c(short window_id, int type, int row, int column,
                        int height, int width, char const *text,
                        int *switch_id,
                        int state=SWITCH_OFF,
                        int color=WHITE,
                        int border_color=CLIB_DEFAULT_ARG,
                        switch_function func=(switch_function) NULL,
                        void *func_data=(void *) NULL,
                        int *dest=(int *) NULL,
                        switch_function off_func=(switch_function) NULL,
                        void *off_func_data=(void *) NULL,
                        HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                        char const *handle=(char *) NULL);
    int switch_create_radio_c(short window_id, int num_switch, int row,
                              int column, int height, int width,
                              int separation, char const *text,
                              int *switch_id, int active_switch,
                              int ncol=1, int color=WHITE,
			      int border_color=CLIB_DEFAULT_ARG,
                              switch_function *funcs=(switch_function *) NULL,
                              void **func_data=(void **) NULL,
                              int *dest=(int *) NULL,
                              HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                              char const *handle=(char *) NULL);
    int switch_delete_c(int switch_id);
    int switch_disable_c(int switch_id);
    int switch_enable_c(int switch_id);
#ifdef __cplusplus
    int switch_pressed(int *last_pressed=(int *) NULL);
#else
    int switch_pressed();
#endif
    int switch_read_c(int switch_id);
    int switch_relabel_c(int switch_id, char const *text, int color,
                         int border_color,
                         switch_function *on_funcs=(switch_function *) NULL,
                         void **on_func_data=(void **) NULL,
                         switch_function off_func=(switch_function) NULL,
                         void *off_func_data=(void *) NULL);
    int switch_set_flash_c(int duration);
    int switch_set_state_c(int switch_id, int switch_state,
                           int allow_callbacks);
    int switch_text_to_id_c(short window_id, char const *text, int text_type,
                            int *switch_id);
    int switch_window_delete_c(short window_id);
    int synoptic_find_device_c(int device_index, int *ret_num_matches,
			       char **display_names=(char **) NULL);
    int synoptic_get_devices(char *synoptic_name, int *num_devices,
			     int **device_indices);
    int tcp_connect(char const* tcp_host, int tcp_port,
                    tcp_message_function messin=(tcp_message_function) NULL);
    int tcp_connect_by_handle(char const* host, int tcp_port, void **handle,
			      tcp_message_function messin=(tcp_message_function) NULL);
    int tcp_disconnect(char const* tcp_host, int tcp_port);
    int tcp_disconnect_by_handle(void **handle);
    void *tcp_read(void *data);
    int tcp_receive(char const* tcp_host, int tcp_port, char *message,
                    int maximum_length, int *returned_length,
		    int *source_length=(int *) NULL);
    int tcp_receive_by_handle(void *handle, char *message, int maximum_length,
			      int *returned_length,
			      int *source_length=(int *) NULL);
    int tcp_send(char const *tcp_host, int tcp_port, void const *message,
                 int message_length);
    int tcp_send_by_handle(void *handle, void const *message,
			   int message_length);
    int tcp_send_wait(char const* tcp_host, int tcp_port, void const *request,
		      int request_length, void *reply, int reply_length,
		      int timeout=0, int *return_length=(int *) NULL,
		      tcp_abort_function abort_func=(tcp_abort_function) NULL);
    int tcp_send_wait_by_handle(void *handle, void const *request,
				int request_length, void *reply,
				int reply_length, int timeout=0,
				int *return_length=(int *) NULL,
				tcp_abort_function abort_func=(tcp_abort_function) NULL);
    int text_buffer_add(char *string);
    int text_buffer_display_c(int top_row, int left_column, int lines,
                              char *title, int color=CYAN);
    void text_buffer_init_c(int num_chars);
    int text_cursor_end(void);
    int text_cursor_erase(void);
    int text_cursor_init_c(short window_id, int top_row, int left_column,
                           int num_rows, int num_columns,
                           int screen_update=TEXT_CURSOR_AUTO_UPDATE,
                           text_cursor_function keypress_func=NULL,
                           void *func_data =(void *) NULL,
			   int key_color=CLIB_DEFAULT_ARG,
                           int limit_scroll=TRUE,
                           int char_case=CLIB_DEFAULT_ARG,
                           unsigned int options=TEXT_CURSOR_OPT_NONE);
    int text_cursor_is_active(void);
    int text_cursor_suspend_c(int suspend);
    int text_edit_dialog_c(char *title, int top_row, int left_column,
                           char *text, int num_rows, int num_columns,
                           int num_lines, int num_chars, int edit_existing,
                           WINDOW_TEXT_FORMAT *reformat_text,
                           HELP_CALLBACK_DATA *help_data,
                           int_function user_key_func, void *user_key_data,
                           void_function language_func, unsigned int options);
    int text_edit_window_c(char *title, int top_row, int left_column,
                           char *text, int num_rows, int num_columns,
                           int num_lines, int num_chars, int edit_existing,
                           WINDOW_TEXT_FORMAT *reformat_text,
                           int allow_symbols,
                           HELP_CALLBACK_DATA *help_data,
			   cns_edit_function user_key_func=(cns_edit_function) NULL,
		       	   void *user_key_data=(void *) NULL,
		       	   cns_edit_init_function init_func=(cns_edit_init_function) NULL);

    int text_erase_line_c(int row, int coord_ref=TEXT_CURSOR_TEXT_COORDS);
    int text_message_c(int top_row, int left_column, int num_rows,
                       int num_columns, char *text, int exit_switch,
                       int resize_screen, char *title, int synchronous,
                       int text_color);
    int text_read_cursor_c(int *row, int *column,
                           int coord_ref=TEXT_CURSOR_TEXT_COORDS);
    int text_recolor_field_c(int row, int column, int num_chars, int color,
                             int coord_reference);
    int text_recolor_line_c(int row, int color,
                            int coord_ref=TEXT_CURSOR_TEXT_COORDS);
    int text_set_cursor_c(int row, int column, char only_set,
                          int coord_ref=TEXT_CURSOR_TEXT_COORDS);
    int text_window(int *top_row, int *left_column,
                    int *num_lines, char *text,
                    int *num_chars, int *num_entries,
                    char *title, int *color=(int *) NULL,
		    char *header_line=(char *) NULL,
		    unsigned int *options=(unsigned int *) NULL);
    int text_window_c(int top_row, int left_column, int num_lines,
                      char *text, int num_chars, int num_entries,
                      char *title, int color=CYAN,
		      char *header_line=(char *) NULL,
		      unsigned int options=MENU_OPT_NONE);
    short text_window_last_created(void);
    int text_window_request_delete_c(short window_id);
    int this_application_keeper_email_c(char *keeper_email=(char *) NULL,
					char *backup_email=(char *) NULL,
					unsigned int options=0);
    int this_application_keeper_info_c(char *keeper_name=(char *) NULL,
				       char *keeper_email=(char *) NULL,
				       char *backup_name=(char *) NULL,
				       char *backup_email=(char *) NULL,
				       unsigned int options=0);
    int timmes(int *top_row, int *left_column,
               char *text, int *color, int *delay);
    int timmes_c(int top_row, int left_column, char *text, int color,
                 int delay);
    int toggle_switch_create_c(short window_id, int row, int column,
                               int align_type, char *label,
                               int label_length, int label_color,
                               char *switch_value, int value_color,
                               toggle_switch_function callback_func,
                               void *callback_data,
                               HELP_CALLBACK_DATA *switch_help,
                               unsigned int options, char *handle,
                               int *switch_id);
    int toggle_switch_delete(void *identifier);
    int toggle_switch_disable(void *identifier);
    int toggle_switch_enable(void *identifier);
    int toggle_switch_matrix_c(int top_row, int left_column,
                               char *title, char *row_prompts,
                               int row_num_chars, int row_num_entries,
                               char *col_prompts,
                               int col_num_chars, int col_num_entries,
                               char *logical_values, char *switch_present,
                               char *enabled_entries,
                               unsigned int options,
                               int exit_switches, int num_lines,
                               int num_columns, int padding_chars,
                               HELP_CALLBACK_DATA *help_data);
    int toggle_switch_read(void *identifier, char *switch_value);
    int toggle_switch_set_c(void *identifier, char new_value,
                            int exec_callback);
    int toggle_switch_set_id_type_c(int identifier_type);
    int toggle_switch_window_delete_c(short window_id);
    void tvbox(int *left_column, int *top_row,
	       int *right_column, int *bottom_row,
	       int *color,int *style=(int *) NULL);	/* make a box on the TV */
    void tvbox_c(int left_column, int top_row, int right_column,
		 int bottom_row, int color, int style=LINE_THIN);	/* make a box on the TV */
    int tvcolors(int *fore_color, int *bcolor=(int *) NULL,
		 int *blink=(int *) NULL);
    void tvhlin(int *row, int *column, int *num_columns,
		int *color, int *style=(int *) NULL);	/* make a horizontal line on the TV */
    void tvhlin_c(int row, int column, int num_chars, int color,
		  int style=LINE_THIN);			/* make a horizontal line on the TV */
    int tvmess(int *top_row, int *left_column,
               char *file, int *record_number,
               int *exit_switch=(int *) NULL, int *resize_screen=(int *) NULL,
               char *title=(char *) NULL, int *synchronous=(int *) NULL);
    int tvmess_c(int top_row, int left_column, char *file,
                 int record_number,
                 int exit_switch=FALSE,int resize_screen=FALSE,
                 char *title=(char *) NULL,int synchronous=TRUE);
    void tvscrs_c(int row, int column);
    void tvvlin(int *row, int *column, int *num_chars,
		int *color, int *style=(int *) NULL);	/* make a vertical line on the TV */
    void tvvlin_c(int row, int column, int num_chars, int color,
		  int style=LINE_THIN);		/* make a vertical line on the TV */
    int tv_colors(int fore_color, int bcolor=BLACK, int blink=NOBLINK);
    int update_application_classes( char const * program, int runnable, int settable );
    int user_password(char *user_name, int no_term=CLIB_DEFAULT_ARG);
    int user_validation_c(int top_row, int left_column, char *user_name);
    int utility_window_c(int top_row, int left_column, int num_user=0,
			 char *utext=(char *) NULL,
			 pgm_tools_user_function *user_func=(pgm_tools_user_function *) NULL,
			 void **func_data=(void **) NULL);
    void utility_window_disable(void);
    void utility_window_enable(void);
    int utility_window_init(int const *row, int const *left_column,
                            int	const *num_user=(int *) NULL,
                            char const *utext=(char *) NULL,
                            pgm_tools_user_function *user_func=(pgm_tools_user_function *) NULL,
                            void **func_data=(void **) NULL,
                            HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                            pgm_tools_relabel_function *relabel_funcs=(pgm_tools_relabel_function *) NULL,
                            pgm_tools_enable_function *entry_enable_funcs=(pgm_tools_enable_function *) NULL);
    int utility_window_init_c(int row, int left_column,
                              int num_user=0, char const *utext=(char *) NULL,
                              pgm_tools_user_function *user_func=(pgm_tools_user_function *) NULL,
                              void **func_data=(void **) NULL,
                              HELP_CALLBACK_DATA const *help_data=(HELP_CALLBACK_DATA *) NULL,
                              pgm_tools_relabel_function *relabel_funcs=(pgm_tools_relabel_function *) NULL,
                              pgm_tools_enable_function *entry_enable_funcs=(pgm_tools_enable_function *) NULL);
    int validate_console_login_info(char const *user_name,
				    char const *password);
    void wait_for_int(short *type, short *row, short *column,
		      int num_seconds);		/* wait for a user interrupt */
    int wait_for_predicted_event_c(int event, int which_one=0,
				   int delta_time=0, unsigned int timeout=0,
				   int_function abort_func=(int_function) NULL,
				   unsigned int options=0);
    int wait_for_sa_startup(char *task, int *slot, int *timeout);
    int wait_for_sa_startup_c(char *task, int slot, int timeout);
    int wait_for_state_c(int state_device, int state_value, int condition,
			 int time_out, int row, int column);
    int waitev(int *event, int *time_out, int *tvrow=(int *) NULL,
	       int *tvcol=(int *) NULL);		/* wait for a TCLK event */
    int waitev_c(int event, int time_out, int tvrow=0,int tvcol=0);	/* wait for a TCLK event */
    int waitev_force_abort_window_c(int want_window);
    int wconstruct_c(int uprow, int lftcol, int height, int width, int nowrit,
		     int brdclr, int ttlclr, char *title, short *wid,
		     int *real_lcol=NULL,
		     int *real_urow=NULL,
		     int *real_rcol=NULL,
		     int *real_drow=NULL);
    void wdisplay_value(short *wid, int *row, int *col, void *value, int *type,
			int *ncar, int *colors, char *fill=NULL,
			int *justify=NULL);
    void wdisplay_value_c(short wid, int row, int col, void *value, int type,
			  int ncar, int colors, char fill=' ',
			  int justify=CNV_NO_JUSTIFY);
    int window_accept_input_field_c(short window_id, int wrow, int wcolumn,
                                    int num_columns);
    int window_accept_input_region_c(short window_id, int wrow, int num_rows,
                                     int wcolumn, int num_columns);
    short window_add_callback_c(int type, window_op_callback_function callback_func,
				void *callback_data, char *handle);
    int window_align_to_window_c(short window_id, int row, int column, int type,
                                 int width, int height, int position_error,
                                 int *left_column, int *top_row,
                                 int *right_column, int *bottom_row);
    int window_align_top_row_to_window_c(short window_id, int row, int type,
					 int height, int position_error,
					 int *top_row=(int *) NULL,
					 int *calc_height=(int *) NULL);
    int window_background_color_c(int color);
    int window_blank(short *window_id, int *wrow,
                     int *wcolumn, int *num_chars, int *color=(int *) NULL);
    int window_blank_c(short wid, int wrow, int wcolumn, int num_chars,
                       int color=BLACK);
    int window_border_button_c(short window_id, int border, int left_column,
                               char const *text, int num_chars, int color=WHITE,
                               char end_character=0, int end_color=YELLOW,
                               window_button_function callback_func=(window_button_function) NULL,
                               void *callback_data=(void *) NULL);
    int window_box_c(short window_id, int col1, int row1, int col2, int row2,
                     int color, int style=LINE_THIN);
    int window_button_create_c(short window_id, int row, int column,
                               char *text, int num_chars, int color,
                               char end_character, int end_color,
                               window_button_function callback_func,
                               void *callback_data,
                               HELP_CALLBACK_DATA *help_data,
                               unsigned int options, char *handle,
                               int *button_id);
    int window_button_delete_c(void *identifier);
    int window_button_disable_c(void *identifier);
    int window_button_enable_c(void *identifier);
    int window_button_highlight_c(void *identifier);
    int window_button_set_id_type_c(int identifier_type);
    int window_button_text_to_id_c(short search_window, char *text,
                                   int text_type, int *button_id);
    int window_button_unhighlight_c(void *identifier);
    int window_calc_top_row_c(int top_row, int height,
			      int *real_top_row=(int *) NULL);
    short window_callback_init(window_callback_function callback_func,
			       unsigned char priority=WMNGR_DFLT_CALLBACK_PRIORITY,
			       unsigned int event_mask=WMNGR_INT_ALL,
			       short window_id=WMNGR_ALL_WINDOWS,
			       void *callback_data=(void *) NULL,
			       char const *handle=(char *) NULL);
    int window_callback_term(short *id);
    int window_center_text(short *window_id, int *row,
                           char const *text, int *num_chars,
                           int *color);
    int window_center_text_c(short window_id, int wrow, char const *text,
                             int num_chars, int color);
    int window_change_case_c(short window_id, int row, int column,
                             int num_chars);
    int window_close_button_c(short window_id, menu_button_function close_func,
                              void *close_func_data, unsigned int options);
    int window_column(short *window_id, int *column);
    int window_column_c(short window_id, int column);
    int window_construct(int *top_row, int *left_column,
                         int *height, int *width,
                         int *no_write, int *border_color,
                         int *title_color, char const *title,
                         short *window_id, int *clip_it=(int *) NULL,
                         int *scroll_it=(int *) NULL, int *move_it=(int *) NULL,
                         int *restore_mode=(int *) NULL,
                         int *border_style=(int *) NULL);
    int window_construct_c(int top_row, int left_column, int height, int width,
                           int no_write, int border_color, int title_color,
                           char const *title, short *window_id,
                           int clip_it=WMNGR_CLIP_IT,
                           int scroll_it=WMNGR_NO_SCROLL,
                           int move_it=WMNGR_NO_MOVE,
                           int restore_mode=WMNGR_REPAINT,
                           int border_style=WMNGR_BORDER_THIN);
    int window_coordinate_limits_c(short window_id, int *min_row,
                                   int *min_column, int *max_row,
                                   int *max_column, int interior_only=TRUE);
    int window_coords(short *window_id, int *left_column,
                      int *top_row, int *right_column, int *bottom_row);
    int window_coords_c(short window_id, int *left_column, int *top_row,
                        int *right_column, int *bottom_row);
    int window_copy(short *window_id1, short *window_id2);
    int window_copy_c(short window_id1, short window_id2);
    int window_create(int *left_column, int *top_row,
                      int *right_column, int *bottom_row,
                      int *no_write, int *border_color,
                      int *title_color, char const *title,
                      short *window_id, int *clip_it=(int *) NULL,
                      int *scroll_it=(int *) NULL,
                      int *move_it=(int *) NULL,
                      int *restore_mode=(int *) NULL,
                      int *border_style=(int *) NULL);
    int window_create_c(int left_column, int top_row, int right_column,
                        int bottom_row, int no_write, int border_color,
                        int title_color, char const *title,
                        short *window_id, int clip_it=WMNGR_CLIP_IT,
                        int scroll_it=WMNGR_NO_SCROLL,
                        int move_it=WMNGR_NO_MOVE,
                        int restore_mode=WMNGR_REPAINT,
                        int border_style=WMNGR_BORDER_THIN);
    int window_current_column_c(short window_id, int column,
				int *current_column);
    int window_current_operation_info(short *window_id=(short *) NULL);
    int window_current_row_c(short window_id, int row, int *current_row);
    int window_delete(short *window_id, int *row,
                      int *column=(int *) NULL);
    int window_delete_c(short window_id, int row, int column=1);
    int window_delete_border_button_c(short window_id, int border,
                                      int left_column, int num_chars);
    int window_delete_char_c(short window_id, int row, int column,
                             int num_chars=1);
    int window_delete_line_c(short window_id, int wrow);
    int window_delete_scroll_buffer_c(short window_id);
    int window_disable_interrupts(void);
    int window_disable_last_io_update(void);
    int window_disable_move_c(short window_id);
    int window_disable_occluded_ints_c(short window_id);
    int window_disable_resize_c(short window_id);
    int window_disable_restack_c(short window_id);
    int window_disable_scroll_io_c(short window_id);
    int window_disable_scroll_save_c(short window_id,
                                     int scroll_size=(int) CLIB_DEFAULT_ARG);
    int window_disable_scroll_slider_c(short window_id);
    int window_disable_scroll_status_c(short window_id, int erase_it);
    int window_disable_window_callbacks(void);
    int window_display_value(short *window_id, int *row,
                             int *column, void *value,
                             int *data_type, int *num_chars,
                             int *colors,
                             char *fill=(char *) NULL,
			     int *justify=(int *) NULL,
			     unsigned int *options=(unsigned int *) NULL);
    int window_display_value_c(short window_id, int row, int column,
                               void const* value, int data_type, int num_chars,
                               int colors, char	fill=BLANK,
                               int justify=CNV_NO_JUSTIFY,
			       unsigned int options=WMNGR_OPT_NONE);
    int window_down_case_c(short window_id, int row, int left_column,
                           int num_chars);
    int window_draw_char_c(short window_id, int row, int column, char dspchr,
                           int color);
    int window_edit_c(short window_id, int text_color, unsigned int options,
                      cns_edit_function user_key_func, void *user_key_data,
                      ls_help_function language_func);
    int window_edit_change_setup_c(short window_id, int top_row,
                                   int left_column);
    int window_edit_disable_c(short window_id);
    int window_edit_enable_c(short window_id);
    int window_edit_help_c(short window_id);
    int window_edit_insert_line_c(short window_id, int window_row);
    int window_edit_read_setup_c(short window_id, void *setup_data);
    int window_edit_term_c(short window_id);
    int window_enable_interrupts(int const *hide_ints=(int *) NULL);
    int window_enable_last_io_update(void);
    int window_enable_move_c(short window_id);
    int window_enable_occluded_ints_c(short window_id);
    int window_enable_resize_c(short window_id, int mode=(int) CLIB_DEFAULT_ARG);
    int window_enable_restack_c(short window_id);
    int window_enable_scroll_io(short *window_id);
    int window_enable_scroll_io_c(short window_id);
    int window_enable_scroll_save_c(short window_id);
    int window_enable_scroll_slider_c(short window_id);
    int window_enable_scroll_status_c(short window_id,
                                      int display_attr=WMNGR_DISPLAY_ALWAYS);
    int window_enable_window_callbacks(void);
    void window_end_intype_loop(void);
    int window_entry_to_row_c(short window_id, int entry_num, int start=0,
			      int scroll_offset=(int) CLIB_DEFAULT_ARG);
    int window_erase_c(short window_id, int erase_type=WMNGR_WHOLE_WINDOW,
                       int delete_scroll=WMNGR_ERASE);
    void window_erase_line(short *window_id, int *row);
    void window_erase_line_c(short window_id, int row);
    void window_erase_to_eol_c(short window_id, int row, int column);
    int window_erase_to_eow_c(short window_id, int row, int column=1);
    int window_exists_c(short window_id);
    int window_exposed_region_c(short window_id, int top_row, int num_rows,
                                int left_column, int num_columns);
    int window_extrema_row_numbers_c(short window_id, int *min_row,
				     int *max_row=(int *) NULL);
    int window_field_add_callback_c(int field_id, window_field_function callback_func,
                                    void *callback_data,
                                    unsigned int interrupt_mask,
                                    unsigned int options);
    int window_field_alter_interrupt_c(short window_id, short interrupt_type,
                                       int row, int column, int info);
    int window_field_contains_text_color_c(short window_id, int row, int column,
					   int num_chars, int color);
    int window_field_create_c(short window_id, int row, int column,
                              int height, int width,
                              window_field_function callback_func,
                              void *callback_data,
                              unsigned int interrupt_mask,
                              unsigned int options, int *field_id,
                              char *handle=(char *) NULL);
    int window_field_delete_c(int field_id);
    int window_field_delete_callback_c(int field_id,
                                       unsigned int interrupt_mask,
                                       int delete_if_last);
    int window_field_disable_c(int field_id);
    int window_field_disable_all(void);
    int window_field_disable_all_occluded(void);
    int window_field_enable_c(int field_id);
    int window_field_enable_all(void);
    int window_field_enable_all_occluded(void);
    int window_field_has_been_typed_in_c(short window_id, int row,
					 int left_column, int num_columns);
    int window_field_init_c(int field_id);
    int window_field_restore_all_occluded(void);
    int window_find_delete_c(short window_id);
    int window_find_init_c(short window_id, int command_row,
			   int command_column,
			   unsigned int options=WMNGR_OPT_SCREEN_COORDS);
    int window_find_text_c(short window_id, int command=WMNGR_FIRST,
			   char *search_string=(char *) NULL);
    int window_find_text_callback_c(short window_id, char *search_string);
    int window_fit_window_c(int height, int width);
    int window_flush_text_region_c(short window_id, int top_row, int num_rows,
                                   int left_column, int num_columns);
    int window_flush_typed_text_c(short window_id);
    int window_force_to_front(short *window_id);
    int window_freeze_c(short window_id);
    int window_gap_c(short window_id, int row, int left_column, int num_chars);
    int window_gap_length_c(short window_id, int row, int left_column);
    int window_get_id_list(int *num_windows, short **window_ids);
    int window_get_parameter_c(short window_id, int parameter);
    int window_goto_line_delete_c(short window_id);
    int window_goto_line_init_c(short window_id, int command_row,
				int command_column, unsigned int options);
    int window_goto_line_number_c(short window_id, int line_number);
    int window_handle_to_id(char *handle);
    int window_has_feature_c(short window_id, int feature);
    int window_has_help_c(short window_id);
    int window_has_menu_bar_c(short window_id);
    int window_has_switch_c(short window_id);
    int window_hilite_c(short window_id, int row, int column, int num_chars);
    int window_hilite_line_c(short window_id, int row);
    int window_hline_c(short window_id, int row, int left_column,
                       int num_columns, int color, int ends=WMNGR_NO_ENDS,
                       int style=WMNGR_THIN_LINE,
                       unsigned int options=WMNGR_OPT_NONE);
    int window_hole_c(short window_id, int row, int column);
    int window_hscroll_c(short window_id, int direction,
                         int num_columns=1);
    int window_hscroll_offset_c(short window_id);
    int window_hscroll_page_c(short window_id, int direction);
    void window_init(void);
    int window_init_sequential_write_c(short window_id,
                                       int row=WMNGR_INITIAL_ROW);
    int window_input_value(short *window_id, int *row,
                           int *column, void *value,
                           int *type, int *num_chars,
                           int *colors, void	*min=(void *) NULL,
                           void	*max=(void *) NULL,
                           char	*fill=(char *) NULL,
                           int	*justify=(int *) NULL,
                           unsigned int	*options=(unsigned int *) NULL);
    int window_input_value_c(short window_id, int row, int column,
			     void *value, int type, int num_chars,
			     int colors, void *min=(void *) NULL,
			     void *max=(void *) NULL, char fill=BLANK,
			     int justify=CNV_NO_JUSTIFY,
			     unsigned int options=WMNGR_OPT_NONE);
    int window_insert_char_c(short window_id, int row, int column,
                             int num_chars=1);
    int window_insert_line_c(short window_id, int wrow);
    int window_interrupt_cursor(short *window_id, int *row,
                                int *column);
    int window_interrupt_cursor_c(short window_id, int *row, int *column);
    int window_intersect_c(short window_id1, short window_id2,
                           int *left_column=(int *) NULL,
                           int *top_row=(int *) NULL,
                           int *right_column=(int *) NULL,
                           int *bottom_row=(int *) NULL);
    int window_intype(short *window_id, short *type, int *row,
                      int *column, int *info,
                      WINDOW_INTYPE_EXTRA_INFO *extra_info=(WINDOW_INTYPE_EXTRA_INFO *) NULL,
                      unsigned int options=INTYPE_OPT_NONE);
    int window_intype_again(short *window_id, short *type, int *row,
                            int *column, int *info, int ret_occluded=FALSE);
    int window_intype_loop_c(int num_functions,
                             WINDOW_INTERRUPT_FUNC_DATA *func_data);
    void window_intype_put_data_c(short window_id, short type, int row,
				  int column, int info);
    int window_is_frozen_c(short window_id);
    int window_is_in_scroll_buffer_c(short window_id, int row);
    int window_is_occluding_c(short window_id,
                              short window_id_2=WMNGR_INVALID_ID);
    int window_justify_text_c(short window_id, int row, int left_column,
                              int num_chars);
    int window_key_case_c(int key_case);
    int window_key_color_c(int key_color);
    int window_key_echo_c(int key_echo);
    short window_last_created(void);
    short window_last_deleted(void);
    int window_last_io_location_c(short window_id, int *last_row,
                                  int *last_column, int physical_cell=TRUE);
    int window_last_scroll(void);
    int window_last_horizontal_scroll(void);
    int window_manager_initialized(void);
    int window_menu_bar_create_c(short window_id, char *item_text,
                                 menu_bar_function *funcs=(menu_bar_function *) NULL,
                                 int disp_row=(int) CLIB_DEFAULT_ARG,
				 int color=WHITE,
                                 int auto_update=FALSE,
                                 void **func_data=(void **) NULL,
                                 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int window_menu_bar_delete_c(short window_id);
    int window_menu_bar_update_c(short window_id);
    int window_menu_button_c(short window_id, unsigned int control_mask,
                             menu_button_function close_func,
                             void *close_func_data,
                             menu_button_function move_func,
                             void *move_func_data,
                             menu_button_function resize_func,
                             void *resize_func_data,
                             menu_button_function lower_func,
                             void *lower_func_data,
                             menu_button_function help_func,
                             void *help_func_data,
                             menu_button_function mail_func,
                             void *mail_func_data);
    int window_message_create_c(int top_row, int left_column,
				char *overall_message, int overall_color,
				char *message, int message_color,
				short *message_id);
    int window_message_delete_c(short message_id, int restore_screen);
    int window_message_update_c(short message_id, char *message,
				int message_color, int pop_window);
    int window_move(short *window_id);
    int window_move_disable(void);
    int window_move_enable(void);
    int window_next_scroll_row_c(short window_id, int row, int incr=1);
    int window_num_popup_windows(void);
    int window_occluded_c(short window_id);
    int window_occluded_by_c(short window_id,
			     short **occlude_list=(short **) NULL);
    int window_occluding_c(short window_id,
			   short **occlude_list=(short **) NULL);
    int window_physical_column_c(short window_id, int virtual_column,
				 int start=1,
				 int scroll_offset=(int)CLIB_DEFAULT_ARG);
    int window_printf_c(short window_id, char const *format, ...);
    int window_printf_at_c(short window_id, int row, int column,
                           char const *format, ...);
    int window_printf_noscroll_c(short window_id, char const *format, ...);
    int window_query_scroll(short *window_id, int *scroll_bar=(int *) NULL,
                            int *lines_above=(int *) NULL,
                            int *lines_below=(int *) NULL,
                            int *lines_visible=(int *) NULL,
                            int *top_row=(int *) NULL,
                            int *scroll_limit=(int *) NULL,
                            int *scroll_io=(int *) NULL,
                            int *scroll_save=(int *) NULL,
                            int *scroll_status=(int *) NULL,
                            int *hscroll_bar=(int *) NULL,
                            int *cols_left=(int *) NULL,
                            int *cols_visible=(int *) NULL,
                            int *left_column=(int *) NULL);
    int window_query_scroll_c(short window_id, int *scroll_bar=(int *) NULL,
                              int *lines_above=(int *) NULL,
                              int *lines_below=(int *) NULL,
                              int *lines_visible=(int *) NULL,
                              int *top_row=(int *) NULL,
                              int *scroll_limit=(int *) NULL,
                              int *scroll_io=(int *) NULL,
                              int *scroll_save=(int *) NULL,
                              int *scroll_status=(int *) NULL,
                              int *hscroll_bar=(int *) NULL,
                              int *cols_left=(int *) NULL,
                              int *cols_visible=(int *) NULL,
                              int *left_column=(int *) NULL);
    int window_read_background_size(int *num_rows, int *num_columns);
    int window_read_color_text_c(short window_id, int row, int left_column,
                                 XCHAR *text, int num_chars);
    int window_read_cursor(short *window_id, int *row, int *column);
    int window_read_cursor_c(short window_id, int *row, int *column);
    int window_read_handle_c(short window_id, char *handle);
    int window_read_menu_bar_info(short **window_ids, int **fields);
    int window_read_scroll_region_c(short window_id, int *top_row,
                                    int *bottom_row);
    int window_read_text_c(short window_id, int row, int left_column,
                           char *text, int num_chars);
    int window_reborder_c(short window_id, int border_color,
                          int border_style=(int) CLIB_DEFAULT_ARG);
    int window_rectangle_c(short window_id, int row, int column, int height,
                           int width, int color, int border_style=LINE_THIN);
    int window_refresh_c(short window_id, int whole=FALSE);
    void window_refresh_all_c(int whole=FALSE);
    int window_register_function_c(short window_id, int type,
                                   window_action_callback_function func,
                                   void *callback_data=(void *) NULL);
    int window_remove_callback_c(int type, short id);
    int window_request_delete_c(void *select_arg, int select_type,
				window_delete_notify_func notify_func,
				void *notify_data);
    int window_resize(short *window_id);
    int window_restore_hint_c(int restore_mode=(int) CLIB_DEFAULT_ARG);
    int window_retitle_c(short window_id, char const *title,
                         int title_color, int char_case=WMNGR_MIXED_CASE);
    int window_row(short *window_id, int *row);
    int window_row_c(short window_id, int row);
    int window_row_to_entry_c(short window_id, int row, int start=0,
    			      int historic_offset=-1);
    int window_scroll(short *window_id, int *up, int *num_lines=(int *) NULL,
                      int *limit=(int *) NULL);
    int window_scroll_c(short window_id, int up, int num_lines=1,
			int limit=FALSE);
    int window_scroll_block_c(short window_id, int up, int top_row,
                              int bottom_row, int left_column,
                              int right_column);
    int window_scroll_offset_c(short window_id);
    int window_scroll_page_c(short window_id, int up, int limit=FALSE);
    int window_scroll_to_bottom_c(short window_id);
    int window_scroll_to_left_c(short window_id);
    int window_scroll_to_right_c(short window_id);
    int window_scroll_to_top_c(short window_id);
    int window_select_copy_c(int row, int column, int output,
			     short window_id=CLIB_DEFAULT_SHORT_ARG);
    int window_select_pop_c(int row, int column);
    int window_select_push_c(int row, int column);
    int window_select_stack_c(int row, int column);
    int window_sequential_write_c(short window_id, int row_type, int column,
                                  char const *text, int num_chars, int color);
    int window_seq_write_xchar_c(short window_id, int row_type, int column,
                                 XCHAR const *text, int num_chars);
    int window_set_background_size(int *num_rows,
                                   int *num_columns);
    int window_set_background_size_c(int num_rows, int num_columns);
    int window_set_clip_c(short window_id, int clip);
    int window_set_cursor(short *window_id, int *row,
                          int *column);
    int window_set_cursor_c(short window_id, int row, int column);
    int window_set_handle_c(short window_id, char *handle);
    int window_set_parameter_c(short window_id, int parameter, int value);
    int window_set_popup_c(short window_id);
    int window_set_position(short *window_id, int *row,
                            int *column);
    int window_set_position_c(short *window_id, int row, int column);
    int window_set_resize_mode_c(short window_id, int mode);
    int window_set_scroll_colors_c(short window_id, int sb_color,
                                   int scroll_status_color=(int) CLIB_DEFAULT_ARG);
    int window_set_scroll_limit_c(short window_id, int nlines);
    int window_set_scroll_region_c(short window_id, int top_row,
                                   int bottom_row);
    int window_set_size(short *window_id, int *num_rows,
                        int *num_columns);
    int window_set_size_c(short *window_id, int num_rows, int num_columns);
    int window_set_size_limit_c(short window_id, int min_rows,
                                int min_cols, int max_rows=(int) CLIB_DEFAULT_ARG,
                                int max_columns=(int) CLIB_DEFAULT_ARG);
    int window_size(short *window_id, int *num_rows,
                    int *num_columns, int interior_only=TRUE);
    int window_size_c(short window_id, int *num_rows, int *num_columns,
                      int interior_only=TRUE);
    int window_text_block(short *window_id, int *type, XCHAR **text, int *row,
                          int *column, int *num_rows, int *num_columns);
    int window_text_block_c(short window_id, int type, XCHAR **text, int row,
                            int column, int num_rows, int num_columns);
    int window_text_color(short *window_id, int *row,
                          int *column, int *num_chars,
                          int *color);
    int window_text_color_c(short window_id, int row, int column,
                            int num_chars, int color);
    int window_text_fill(short *window_id, int *wrow,
                         int *wcolumn, char *dspchr,
                         int *num_chars, int *color);
    int window_text_fill_c(short window_id, int row, int left_column,
                           char character, int num_chars, int color);
    int window_title(short *window_id, char**title, int *title_color=(int *) NULL,
                     int *border_color=(int *) NULL,
		     int *title_column=(int *) NULL);
    int window_title_c(short window_id, char**title, int *title_color=(int *) NULL,
                       int *border_color=(int *) NULL,
		       int *title_column=(int *) NULL);
    int window_title_to_id(char *title);
    int window_topmost_c(int row, int column);
    int window_total_lines_c(short window_id);
    int window_to_back(short *window_id);
    int window_to_excel_file_c(short window_id, char *file_name,
                               int disp_rows, int top_row, int num_columns,
                               int *columns, int *column_ends,
                               STR_SEARCH_INFO *search_info,
                               window_output_function callback_func,
                               void *callback_data, unsigned int options);
    int window_to_front(short *window_id);
    int window_to_graphic_screen_c(short window_id,
                                   int grwin=GXPA_1,
                                   int disp_rows=0,
                                   int top_row=1,
                                   STR_SEARCH_INFO *search_info=(STR_SEARCH_INFO *) NULL);
    int window_to_paste_buffer_c(short window_id, int num_rows,
				 int top_row, STR_SEARCH_INFO *search_info,
				 unsigned int options=0,
				 window_output_function callback_func=(window_output_function) NULL,
				 void *callback_data=(void *) NULL,
				 void *args=(void *) NULL);
    int window_to_printer_c(short window_id, char *print_queue,
                            int num_rows, int top_row, int printer_type,
                            STR_SEARCH_INFO *search_info,
                            window_output_function callback_func=(window_output_function) NULL,
                            void *callback_data=(void *) NULL,
			    void *args=(void *) NULL);
    int window_to_text_file_c(char const *file_name, short window_id,
			      int num_rows, int top_row,
			      STR_SEARCH_INFO *search_info,
			      unsigned int options=0,
			      window_output_function callback_func=(window_output_function) NULL,
			      void *callback_data=(void *) NULL,
			      void *args=(void *) NULL);
    void window_tvdisp(short *window_id, int *wrow,
		       int *wcolumn, short *vun,
		       int *record_number, short *status);
    void window_tvdisp_c(short window_id, int top_row, int left_column,
			 short vun, int record_number, short *status);
    int window_tvm(short const *window_id, int const *row, int const *column,
                   char const *text, int const *num_chars,
		   int const *color=(int *) NULL);
    int window_tvm_c(short window_id, int wrow, int wcolumn, char const *text,
                     int num_chars, int color=WHITE);
    int window_tvmx(short const *window_id, int const *row, int const *column,
                    XCHAR const *text, int const *num_chars);
    int window_tvmx_c(short window_id, int wrow, int wcolumn, XCHAR const *text,
                      int num_chars);
    int window_tvsave_c(short window_id, int top_row, int left_column,
                        int num_rows, int num_columns, short vun,
                        int record_number, int recsiz=2048);
    int window_unfit_window(void);
    int window_unfreeze_c(short window_id);
    int window_unregister_function_c(short window_id, int type,
                                     window_action_callback_function func,
                                     void *callback_data=(void *) NULL);
    int window_unset_popup_c(short window_id);
    void window_update_background_c(int type);
    int window_up_case_c(short window_id, int row, int left_column,
                         int num_chars);
    int window_vertical_text(short *window_id, int *row,
                             int *column, char *text,
                             int *num_chars, int *color,
                             int *direction=(int *) NULL);
    int window_vertical_text_c(short window_id, int row, int column,
                               char *text, int num_chars, int color,
                               int direction=WMNGR_DOWN);
    int window_virtual_column_c(short window_id, int column, int start=1,
				int historic_offset=-1);
    int window_vline_c(short window_id, int row, int column, int num_chars,
		       int color, int ends=WMNGR_NO_ENDS,
		       int style=WMNGR_THIN_LINE,
		       unsigned int options=WMNGR_OPT_NONE);
    short window_was_created(void);
    short window_was_deleted(void);
    int window_write_line_c(short window_id, char const *text, int num_chars,
                            int color, int num_lines=1);
    int window_write_scroll_c(short window_id, char const *text, int num_chars,
                              int color, int num_lines=1);
    int window_write_scroll_xchar_c(short window_id, XCHAR const *passed_text,
				    int num_chars, int num_lines=1);
    int window_write_string_c(short window_id, int row, int column,
                              char const *text, int num_chars, int color,
                              int justify);
    int window_write_with_carriage_control_c(short window_id, int row,
					     int column, char const *string,
					     int length, int color,
					     unsigned int options=WMNGR_OPT_NONE);
    int window_write_xchar_line_c(short window_id, XCHAR const *text,
                                  int num_chars, int num_lines=1);
    int winput(char *title, int *top_row, int *left_column,
               char *text, int *num_chars, float *minima,
               float *maxima, void **values, int *num_values,
               int *value_types, int *field_status=(int *) NULL,
               unsigned int *options=(unsigned int *) NULL,
               winput_update *user_funcs=(winput_update *) NULL,
               void **func_data=(void **) NULL,
               winput_term term_func=(winput_term) NULL,
               int *key_case=(int *) NULL,
               HELP_CALLBACK_DATA *help_info=(HELP_CALLBACK_DATA *) NULL,
               int *num_lines=(int *) NULL,
               char *enabled_entries=(char *) NULL,
               int *display_colors=(int *) NULL,
               int *prompt_colors=(int *) NULL,
               winput_prompt *prompt_funcs=(winput_prompt *) NULL);
    int winput_c(char const *title, int top_row, int left_column,
                 char const *text, int num_chars, float const *minima,
                 float const *maxima, void **values, int num_values,
                 int const *value_types, int *field_status=(int *) NULL,
                 unsigned int options=(DIALOG_POPUP | DIALOG_ALLOW_EDITS),
                 winput_update *user_funcs=(winput_update *) NULL,
                 void **func_data=(void **) NULL,
                 winput_term term_func=(winput_term) NULL,
                 int key_case=WMNGR_MIXED_CASE,
                 HELP_CALLBACK_DATA const *help_info=(HELP_CALLBACK_DATA *) NULL,
                 int num_lines=CLIB_DEFAULT_ARG,
                 char const *enabled_entries=(char *) NULL,
                 int const *display_colors=(int *) NULL,
                 int const *prompt_colors=(int *) NULL,
                 winput_prompt *prompt_funcs=(winput_prompt *) NULL);
    int winput_update_field_c(short window_id, int field_number,
                              void *value, int exe_callbacks);
    int wn_acknowledge_c(double x, double y, int coordinate_type, char *text,
			 int num_chars, int line_length=DECIDE_CPP_MAX_PROMPT,
			 int text_color=(int) GREEN,
			 char *title=(char *) NULL, int wrap=TRUE,
			 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int wn_active(int *window_id);
    int wn_active_c(int window_id);
    int	wn_axis_custom_label_c(int plane, int num_major, int num_minor,
			       int gridit, char *text, int text_size,
			       int text_color, int label_length, int label_type,
			       void *label_values, int label_color,
			       float *loc_major, float *loc_minor,
			       int squeeze_it, float *tick_length,
			       int invert_ticks, int grid_line_type,
			       unsigned int options);
    int wn_axis_grid(int *plane, int *num_maj,
                     int *num_min, int *gridit,
                     float *loc_major=(float *) NULL,
		     float *tick_length=(float *) NULL,
                     float *loc_minor=(float *) NULL,
		     int *invert_ticks=(int *) NULL,
                     int *grid_line_type=(int *) NULL);
    int wn_axis_grid_c(int plane, int num_maj, int num_min, int gridit,
		       float *loc_major=(float *) NULL,
		       float *tick_length= (float *) NULL,
		       float *loc_minor=(float *) NULL,
		       int invert_ticks=FALSE,
		       int grid_line_type=WN_SOLID_LINE);
    int wn_axis_label(int *plane, int *num_maj,
                      int *num_min, int *gridit,
                      char *txt, int *txt_siz,
                      int *txt_clr, int *enum_typ,
                      int *disp,
                      void *loc_major=(void *) NULL,
                      int *squeeze_it=(int *) NULL,
                      void *tick_length=(void *) NULL,
                      void *loc_minor=(void *) NULL,
                      int *invert_ticks=(int *) NULL,
                      int *grid_line_type=(int *) NULL,
                      int *label_color=(int *) NULL,
                      unsigned int *options=(unsigned int *) NULL);
    int wn_axis_label_c(int plane, int num_maj, int num_min, int gridit,
                        char *txt, int txt_siz, int txt_clr,
                        int enum_typ, int disp,
                        void *loc_major=(void *) NULL,
			int squeeze_it=WN_SQUEEZE_NO_LABEL,
                        void *tick_length=(void *) NULL,
                        void *loc_minor=(void *) NULL,
			int invert_ticks=FALSE,
                        int grid_line_type=WN_SOLID_LINE,
			int label_color=(int)CLIB_DEFAULT_ARG,
			unsigned int options=WN_OPT_NONE);
    int wn_background_color_c(int color);
    int wn_blank_c(float x, float y, int num_chars);
    int wn_border_width_c(int width);
    int wn_box(float *xx1, float *yy1, float *xx2,
               float *yy2);
    int wn_box_c(float xx1, float yy1, float xx2, float yy2);
    int wn_box_pixel_c(int x1, int y1, int x2, int y2, int relative_pos=FALSE);
    int wn_calculate_dialog_coordinates_c(double x, double y,
					  int coordinate_type,
					  int *actual_x, int *actual_y);
    int wn_check_for_interrupt(int *interrupt_screen=(int *) NULL);
    int wn_circle(float *x, float *y, int *radius);
    int wn_circle_c(float x, float y, int radius);
    int wn_circle_pixel_c(int x, int y, int radius, int relative_pos=FALSE);
    int wn_circular_arc_c(float x, float y, int radius, int start_angle,
                          int arc_length);
    int wn_clip(int *clipit);
    int wn_clip_c(int clipit);
    int wn_color(int *color);
    int wn_color_c(int color);
    int wn_colored_text_c(float x, float y, XCHAR *text, int num_chars);
    int wn_combo_menu_c(double x, double y, int coordinate_type,
			int num_lines, char *text, int num_chars,
			int num_entries, char *title, int *item,
			int padding_chars=1,
			char *enabled_entries=(char *) NULL,
			HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			char *header_line=(char *) NULL,
			unsigned int options=MENU_OPT_NONE);
    int wn_combo_menu_hs_c(double x, double y, int coordinate_type,
			   int num_lines, int num_columns, char *text,
			   int num_chars, int num_entries, char *title,
			   int *item, int padding_chars=1,
			   char *enabled_entries=(char *) NULL,
			   HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			   char *header_line=(char *) NULL,
			   unsigned int options=MENU_OPT_NONE);
    int wn_connect_points(int *on_off);
    int wn_connect_points_c(int on_off);
    void wn_cursor_disable(int *restore_cursor=(int *) NULL);
    int wn_cursor_init(int *window_id, float *x, float *y,
		       int *warp_cursor=(int *) NULL);
    int wn_cursor_init_c(int window_id, float x, float y,
			 int warp_cursor=TRUE);
    int wn_cursor_init_pixel_c(int x, int y, int window_id=WN_BACKGROUND,
			       int warp_cursor=TRUE);
    int wn_cursor_is_active(void);
    int wn_cursor_pixel_position_c(int *x, int *y, int id=CLIB_DEFAULT_ARG);
    int wn_cursor_position_c(float *x, float *y, int id=CLIB_DEFAULT_ARG);
    int wn_cursor_update(int *window_id, float *x, float *y,
			 int *screen=(int *) NULL);
    int wn_cursor_update_pixel(int *x, int *y, int *id=(int *) NULL,
			       int *screen=(int *) NULL);
    int wn_data_extrema(float *xmin, float *xmax, float *ymin, float *ymax);
    int wn_data_fft_c(int return_type, float **out_real, float **out_imag,
                      int *num_fft, float **out_amp=(float **) NULL);
    int wn_data_mean(float *xmean, float *ymean);
    int wn_data_polyfit_c(int order, float *coeff);
    int wn_data_query(int *num_points=(int *) NULL, int *num_active=(int *) NULL,
		      int *num_range=(int *) NULL);
    int wn_data_recall(float **ptr, int *num_points);
    int wn_data_save(int *save_switch);
    int wn_data_save_c(int save_switch);
    int wn_data_set_cut_c(float xmin, float xmax, float ymin, float ymax);
    int wn_decide_c(double x, double y, int coordinate_type, char const *text,
		    int num_chars, int line_length=DECIDE_CPP_MAX_PROMPT,
		    int deflt_choice=0, int text_color=GREEN,
		    char *title=(char *) NULL, int wrap=TRUE,
		    HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
		    HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL);
    int wn_decide_multiple_c(double x, double y, int coordinate_type,
			     char *text, int num_chars, int line_length,
			     char *switch_text, int num_switches,
			     int deflt_choice=1, int text_color=GREEN,
			     void_function *funcs=(void_function *) NULL,
			     void **func_data=(void **) NULL,
			     int switch_height=3, int switch_width=0,
			     int *switch_colors=(int *) NULL,
			     char *title=(char *) NULL, int wrap=TRUE,
			     HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			     HELP_CALLBACK_DATA *switch_help=(HELP_CALLBACK_DATA *) NULL,
			     unsigned int options=DIALOG_POPUP);
    int wn_delete_c(int window_id, int erase_it=FALSE);
    int wn_delete_all_c(int erase_it=FALSE, int delete_active_only=FALSE);
    int wn_display_value(float *x, float *y, void *value,
                         int *data_type, int *num_chars,
			 char *fill=(char *) NULL,
                         int *justify=(int *) NULL);
    int wn_display_value_c(float x, float y, void *value, int data_type,
                           int num_chars, char fill=BLANK,
                           int justify=CNV_NO_JUSTIFY);
    int wn_draw_mode(int *mode);
    int wn_draw_mode_c(int mode);
    int wn_enumerated_type_menu_c(double x, double y, int coordinate_type,
				  int num_lines, int num_columns,
				  int convert_type, char *title, int *value,
				  int padding_chars=1,
				  unsigned int options=MENU_OPT_NONE);
    int wn_erase(int *erase_color=(int *) NULL, int *erase_region=(int *) NULL);
    int wn_erase_c(int erase_color=CLIB_DEFAULT_ARG, int erase_region=WN_ERASE_ENTIRE_WINDOW);
    int wn_erase_screen_c(int erase_color);
    int wn_external_colored_text_c(float x, float y, XCHAR *text,
                                   int num_chars, int base_flag,
                                   float world_base);
    int wn_external_display_value_c(float x, float y, void *value,
                                    int data_type, int num_chars, int base_flag,
                                    float world_base, char fill=BLANK,
                                    int justify=CNV_NO_JUSTIFY);
    int wn_external_text(float *x, float *y, char *text,
                         int *num_chars, int *base_flag,
                         float *world_base);
    int wn_external_text_c(float x, float y, char *text, int num_chars,
                           int base_flag, float world_base);
    int wn_file_view_select_c(double x, double y, int coordinate_type,
			      int menu_width, int menu_length,
			      char *file_spec, char *file_name, char *match,
			      int show_dir,
			      int order_by=FILE_VIEW_ORDER_BY_NAME,
			      unsigned int options=FILE_VIEW_OPT_NONE);
    int wn_fill_mode(int *mode);
    int wn_fill_mode_c(int mode);
    int wn_find_id(int *x, int *y);
    int wn_find_id_c(int x, int y);
    int wn_find_list_c(int *num_wids, int **wids);
    void wn_flush(void);
    int wn_get_active(int *window_id);
    int wn_get_active_screen(void);
    int wn_get_screen_title(char **title);
    int wn_get_view_coords_c(int window_id, float *xmin, float *ymin,
                             float *xmax, float *ymax);
    int wn_get_world_coords_c(int window_id, float *xmin, float *ymin,
			      float *xmax, float *ymax,
			      int *x_scale=(int *) NULL,
			      int *y_scale=(int *) NULL);
    int wn_getscrn(int *plane, float *real_coord, int *screen);
    int wn_getscrn_c(int plane, float real_coord, int *screen);
    int wn_getworld(int *plane, int *pix, float *coord);
    int wn_getworld_c(int plane, int pix, float *coord);
    int wn_grid(int *window_id, float *viewport, float *limits,
                int *ticks, char *htext, int *htxtsiz,
                int *htxtcolr, char *vtext, int *vtxtsiz,
                int *vtxtcolr, int *num_chars,
                unsigned int *flags,
                int *scaling=(int *) NULL,
		float *xloc_major=(float *) NULL,
                float *yloc_major=(float *) NULL,
                float *tick_length=(float *) NULL,
                float *xloc_minor=(float *) NULL,
                float *yloc_minor=(float *) NULL,
                int *label_colors=(int *) NULL);
    int wn_grid_c(int *window_id, float *viewport, float *limits,
                  int *ticks, char *htext, int htxtsiz,
                  int htxtcolr, char *vtext, int vtxtsiz, int vtxtcolr,
                  int *num_chars, unsigned int flags,
                  int *scaling=(int *) NULL,
		  float *xloc_major=(float *) NULL,
                  float *yloc_major=(float *) NULL,
                  float	*tick_length=(float *) NULL,
                  float	*xloc_minor=(float *) NULL,
		  float *yloc_minor=(float *) NULL,
                  int *label_colors=(int *) NULL);
    int wn_grid_pixel_c(int *coordinates, float *limits,
                        int *ticks, float *tick_lengths,
                        char *x_title, int x_title_size,
                        int x_title_color, char *y_title,
                        int y_title_size, int y_title_color,
                        int *label_lengths, int *label_colors,
                        float *x_loc_major, float *x_loc_minor,
                        float *y_loc_major, float *y_loc_minor,
                        int *scaling, unsigned int options,
                        int *window_id);
    int wn_inptxt_c(double x, double y, int coordinate_type, char *prompt,
		    int num_chars, char *string, int length,
		    int num_values=1, char *title=(char *) NULL,
		    int num_lines=CLIB_DEFAULT_ARG,
		    int kb_case=WMNGR_MIXED_CASE,
		    int key_color=RED,
		    HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    int wn_input_array_values_c(double x, double y, int coordinate_type,
				char *text, int num_chars,
				void *minima, void *maxima, void *values,
				int num_values, int data_type,
				char *title=(char *) NULL,
				int num_lines=CLIB_DEFAULT_ARG,
				int *field_status=(int *) NULL,
				int key_case=WMNGR_MIXED_CASE,
				HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
				char *post_prompt=(char *) NULL);
    int wn_input_string_dialog_c(double x, double y, int coordinate_type,
				 char *prompt, int prompt_length,
				 char *string, int string_length,
				 int display_length, int num_values=1,
				 char *title=(char *) NULL,
				 int num_lines=CLIB_DEFAULT_ARG,
				 int key_case=WMNGR_MIXED_CASE,
				 int key_color=RED,
				 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL);
    unsigned int wn_interrupt_info(int *interrupt_screen=(int *) NULL,
				   unsigned int *interrupt_time=(unsigned int *) NULL);
    int wn_intersect_c(int window_id1, int window_id2,
                       int *x1=(int *) NULL,
                       int *y1=(int *) NULL,
                       int *x2=(int *) NULL,
                       int *y2=(int *) NULL);
    int wn_move_block_of_pixels_c(float source_x, float source_y,
				  float width, float height,
				  float dest_x, float dest_y,
				  int bkgd_color=BLACK,
				  unsigned int options=WN_OPT_NONE);
    int wn_multitrace_axis_label_c(int num_traces, int *window_ids,
                                   int plane, int num_major, int num_minor,
                                   int grid_it, char *text,
                                   int text_size, int text_color,
                                   int *label_lengths,
                                   int *label_types,
                                   int *label_colors,
                                   float *loc_major,
                                   float *loc_minor,
                                   float *tick_length,
                                   unsigned int options);
    int wn_multitrace_grid_c(int num_traces, float *viewport,
                             float *x_limits, float *y_limits,
                             int *ticks, float *tick_length,
                             char *x_text, int x_text_size,
                             int x_text_color, char *y_text,
                             int y_text_size, int y_text_color,
                             int x_label_length, int x_label_type,
                             int x_label_color, int *y_label_lengths,
                             int *y_label_types,
                             int *y_label_colors,
                             float *x_loc_major,
                             float *x_loc_minor,
                             float *y_loc_major,
                             float *y_loc_minor,
                             int *scaling, unsigned int options,
                             int *window_ids);
    int wn_multitrace_grid_pixel_c(int num_traces, int *coordinates,
                                   float *x_limits, float *y_limits,
                                   int *ticks, float *tick_length,
                                   char *x_text, int x_text_size,
                                   int x_text_color, char *y_text,
                                   int y_text_size, int y_text_color,
                                   int x_label_length, int x_label_type,
                                   int x_label_color,
                                   int *y_label_lengths,
                                   int *y_label_types,
                                   int *y_label_colors,
                                   float *x_loc_major,
                                   float *x_loc_minor,
                                   float *y_loc_major,
                                   float *y_loc_minor,
                                   int *scaling, unsigned int options,
                                   int *window_ids);
    int wn_occluded_c(int window_id);
    int wn_plot_fill(int *on_off, float *base);
    int wn_plot_fill_c(int on_off, float base);
    int wn_point(float *x, float *y);
    int wn_point_c(float x, float y);
    int wn_point_pixel_c(int x, int y, int relative_pos=FALSE);
    int wn_point_set(int *num_pnts, float *xy_points);
    int wn_polygon_c(int num_vert, float *xy);
    int wn_prepare_dialog_window_c(int num_rows, int num_columns,
				   char *title);
    int wn_printf_at_c(float x, float y, char const*format_string, ...);
    int wn_query_setup(int *active=(int *) NULL, int *color=(int *) NULL,
		       int *clip=(int *) NULL, int *bkgd_color=(int *) NULL,
		       int *draw_mode=(int *) NULL,
		       int *active_screen=(int *) NULL,
		       int *vector_width=(int *) NULL,
		       int *text_size=(int *) NULL,
		       int *text_rot=(int *) NULL,
		       int *fill_mode=(int *) NULL,
		       int *text_mode=(int *) NULL,
		       int *text_video=(int *) NULL,
		       int *text_scale=(int *) NULL,
		       int *border_width=(int *) NULL,
		       WN_VECTOR_GRAIN_DATA *vector_grain=(WN_VECTOR_GRAIN_DATA *) NULL);
    int wn_quick_grid(PLOT_DATA *gr_setup);
    void wn_read_background_format(int *num_rows, int *num_columns);
    void wn_read_background_size(int *height, int *width);
    int wn_read_display_size(int *height=(int *) NULL, int *width=(int *) NULL);
    int wn_read_text_format(int *num_rows, int *num_columns);
    int wn_read_user_defined_color(unsigned short *red_intensity,
				   unsigned short *green_intensity,
				   unsigned short *blue_intensity);
    int wn_redraw_grid_c(int color);
    int wn_register_function_c(int window_id, int type,
			       wn_action_callback_function func,
			       void *callback_data=(void *) NULL);
    int wn_relative_text_c(float x, float y, float column_offset,
			   float row_offset, char *text, int num_chars);
    int wn_screen_init(char const *title, int const *hc_mode=(int *) NULL,
                       int const *change_size=(int *) NULL);
    int wn_screen_init_c(char const *title, short hc_mode=LX_HCMODE_DEFAULT,
			 char change_size=FALSE);
    void wn_screen_title(char *title);
    int wn_scroll_menu_c(double x, double y, int coordinate_type,
			 int num_lines, char const *const_text,
			 int num_chars, int num_entries,
			 char const *title, int *item,
			 int padding_chars=1,
			 char *enabled_entries=(char *) NULL,
			 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			 char *header_line=(char *) NULL,
			 unsigned int options=MENU_OPT_NONE);
    int wn_scroll_menu_hs_c(double x, double y, int coordinate_type,
			    int num_lines, int num_columns,
			    char const *const_text, int num_chars,
			    int num_entries, char const *title, int *item,
			    int padding_chars=1,
			    char *enabled_entries=(char *) NULL,
			    HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
			    char *header_line=(char *) NULL,
			    unsigned int options=MENU_OPT_NONE);
    int wn_select_field_delete_c(int window_id, int select_id);
    int wn_select_field_disable_c(int window_id, int select_id);
    int wn_select_field_display_info_c(int select_id, int *entry_length,
				       int max_return=0,
				       char *label=(char *) NULL,
				       int *label_length=(int *) NULL);
    int wn_select_field_enable_c(int window_id, int select_id);
    int wn_select_field_init_c(int window_id, double x_pos, double y_pos,
			       int select_id, char *entry_text,
			       wn_select_field_function update_func,
			       void *update_data=(void *) NULL,
			       char *handle=(char *) NULL,
			       unsigned int options=SELECT_FIELD_OPT_NONE);
    int wn_select_field_read_c(int window_id, int select_id, int max_return,
			       char *entry_text, int *entry_index=(int *) NULL);
    int wn_select_field_register_c(int *id, int entry_length,
				   char *label, int label_length,
				   int type, void *data1, void *data2,
				   void *data3=(void *) NULL,
				   int char_case=WN_MIXED_CASE,
				   void *func_data=(void *) NULL,
				   sf_verify_value_function verify_value=(sf_verify_value_function) NULL);
    int wn_select_field_set_c(int window_id, int select_id,
			      char const *entry_text);
    int wn_select_field_set_by_value_c(int window_id, int select_id,
				       int entry_value);
    int wn_select_field_set_colors_c(int label_color,
				     int switch_color=CLIB_DEFAULT_ARG,
				     int entry_color=CLIB_DEFAULT_ARG);
    int wn_select_field_text_to_id_c(int search_window, char *text,
				     int text_type, int *window_id,
				     int *select_id);
    int wn_select_rectangle_c(int window_id, int color, unsigned int options,
                              float x, float y, float *x2, float *y2);
    int wn_select_screen(int *screen);
    int wn_select_screen_c(int screen);
    int wn_set_background_format_c(int num_rows, int num_columns);
    int wn_set_background_size_c(int height, int width);
    int wn_set_cursor_pixel_position_c(int x, int y, int id=WN_BACKGROUND);
    int wn_set_cursor_position_c(int id, double x, double y);
    int wn_set_cursor_type_c(int type, int blink);
    int wn_set_max_tick_mark_lengths_c(int max_minor_tick_length,
				       int max_major_tick_length);
    int wn_set_plot_symbol(int *type, int *size,
			   char *text_string=(char *) NULL);
    int wn_set_plot_symbol_c(int type, int size,
			     char *text_string=(char *) NULL);
    int wn_set_scaling(int *window_id, int *x_type,
                       int *y_type);
    int wn_set_scaling_c(int window_id, int x_type, int y_type);
    int wn_setsym(char *name, int *attr1, int *attr2,
                  int *attr3, int *attr4, int *attr5,
                  int *attr6);
    int wn_setsym_c(char *name, int attr1, int attr2, int attr3,
                    int attr4, int attr5, int attr6);
    int wn_switch_create_c(int window_id, int type, float x_left,
                           float y_lower, float width, float height,
                           char const *text, int *id,
                           int coordinate_type,
                           int state=SWITCH_OFF,
                           int color=WHITE,
                           wn_switch_function func=(wn_switch_function) NULL,
                           void *func_data=(void *) NULL,
                           wn_switch_function off_func=(wn_switch_function) NULL,
                           void *off_func_data=(void *) NULL);
    int wn_switch_delete_c(int switch_id, int erase_switch=TRUE);
    int wn_switch_disable_c(int switch_id);
    int wn_switch_enable_c(int switch_id);
    int wn_switch_get_screen_c(int switch_id, int *screen);
    int wn_switch_pressed(int *last_pressed=(int *) NULL);
    int wn_switch_read_c(int switch_id);
    int wn_switch_redraw_c(int switch_id);
    int wn_switch_relabel_c(int switch_id, char const *text, int color,
                            wn_switch_function *on_funcs=(wn_switch_function *) NULL,
                            void **on_func_data=(void **) NULL,
                            wn_switch_function off_func=(wn_switch_function) NULL,
                            void *off_func_data=(void *) NULL);
    int wn_switch_set_state_c(int switch_id, int switch_state,
                              int allow_callbacks);
    int wn_switch_window_delete_c(int window_id);
    int wn_symbol(float *x, float *y);
    int wn_symbol_c(float x, float y);
    int wn_symbol_set(int *num_symbols, float *xy_values);
    int wn_text(float const *x, float const *y, char const *text,
                int const *num_chars);
    int wn_text_c(float x, float y, char const *text, int num_chars);
    int wn_text_attributes_c(int bkgd_mode, int video_mode);
    float wn_text_coord_to_virtual_c(int plane, int text_coord);
    int wn_text_coord_to_world_c(int plane, int text_coord, float *world_coord);
    int wn_text_pixel_c(int x, int y, char const *text, int num_chars,
			int relative_pos=FALSE);
    int wn_text_rotation(int *rotation);
    int wn_text_rotation_c(int rotation);
    int wn_text_scaling_c(int mode);
    int wn_text_size(int *size);
    int wn_text_size_c(int size);
    int wn_text_size_in_pixels_c(int size, int *height, int *width);
    int wn_text_size_in_virtual_coordinates_c(int size, float *height,
					      float *width,
					      int screen=CLIB_DEFAULT_ARG);
    int wn_text_size_in_world_coordinates_c(int window_id, int size,
					    float *height, float *width);
    int wn_tv_map_c(int x_offset, int y_offset);
    int wn_tv_unmap(void);
    int wn_unregister_function_c(int window_id, int type,
				 wn_action_callback_function func,
				 void *data=(void *) NULL);
    int wn_user_defined_color_c(unsigned short red_intensity,
				unsigned short green_intensity,
				unsigned short blue_intensity);
    int wn_vector(float *x, float *y, float *x2,
                  float *y2);
    int wn_vector_c(float x, float y, float x2, float y2);
    int wn_vector_grain(int *separation, int *mult);
    int wn_vector_grain_c(int separation, int mult);
    int wn_vector_pixel_c(int x1, int y1, int x2, int y2,
			  int relative_pos=FALSE);
    int wn_vector_width(int *width);
    int wn_vector_width_c(int width);
    int wn_view(int *window_id, float *winx1, float *winy1,
                float *winx2, float *winy2);
    int wn_view_c(int *window_id, float winx1, float winy1,
                  float winx2, float winy2);
    int wn_view_construct_c(int *window_id, float x, float y, int y_coord_type,
                            float width, float height);
    int wn_view_pixel_c(int *window_id, int x_min_pixel, int y_min_pixel,
                        int x_max_pixel, int y_max_pixel);
    int wn_view_text_format_c(int *window_id, float x, float y,
                              int y_coord_type, int num_columns,
                              int num_rows);
    int wn_wide_vector_c(float x1, float y1, float x2, float y2, float width,
                         unsigned int options);
    int wn_window_has_switch_c(int window_id);
    int wn_window_world_to_pixel_coordinate_c(int plane, float world_coord,
					      int *pixel_coord,
					      int *pixel_coord_max=(int *) NULL,
					      int id=CLIB_DEFAULT_ARG);
    int wn_world(int *window_id, float *minx, float *miny,
                 float *maxx, float *maxy);
    int wn_world_c(int window_id, float minx, float miny, float maxx,
                   float maxy);
    int wn_world_to_text_coord_c(int plane, double world_coord,
				 int *text_coord);
    int wrdspi(int *top_row, int *left_column, char *text,
               int *num_chars, short *minima,
               short *maxima, short *value,
               int *numval=(int *) NULL,
               char *title=(char *) NULL,
               int *num_lines=(int *) NULL,
               HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
               char *post_prompt=(char *) NULL);
    int wrdspi_c(int top_row, int left_column, char *text, int num_chars,
                 short *minima, short *maxima, short *value,
                 int numval=1, char *title=(char *) NULL,
                 int num_lines=CLIB_DEFAULT_ARG,
                 HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
                 char *post_prompt=(char *) NULL);
    int wrdspi4(int *top_row, int *left_column, char *text,
                int *num_chars, int *minima, int *maxima,
                int *value,
                int *numval=(int *) NULL,
                char *title=(char *) NULL,
                int *num_lines=(int *) NULL,
                HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
                char *post_prompt=(char *) NULL);
    int wrdspi4_c(int top_row, int left_column, char *text, int num_chars,
                  int *minima, int *maxima, int *value,
                  int numval=1, char *title=(char *) NULL,
                  int num_lines=CLIB_DEFAULT_ARG,
                  HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
                  char *post_prompt=(char *) NULL);
    int wrdspr(int *top_row, int *left_column, char *text,
               int *num_chars, float *minima, float *maxima,
               float *value, int *numval=(int *) NULL,
	       char *title=(char *) NULL, int *num_lines=(int *) NULL,
               HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL);
    int wrdspr_c(int top_row, int left_column, char *text, int num_chars,
                 float *minima, float *maxima, float *value,
                 int numval=1, char *title=(char *) NULL,
                 int num_lines=CLIB_DEFAULT_ARG,
		 HELP_CALLBACK_DATA *help_data=(HELP_CALLBACK_DATA *) NULL,
                 char *post_prompt=(char *) NULL);
    int wrdspr8(int *top_row, int *left_column, char *text,
                int *num_chars, double *minima,
                double *maxima, double *value,
                int *numval=(int *) NULL,
                char *title=(char *) NULL,
                int *num_lines=(int *) NULL,
                HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
                char *post_prompt=(char *) NULL);
    int wrdspr8_c(int top_row, int left_column, char *text, int num_chars,
                  double *minima, double *maxima,
                  double *value, int numval=1, char *title=(char *) NULL,
		  int num_lines=CLIB_DEFAULT_ARG,
                  HELP_CALLBACK_DATA  *help_data=(HELP_CALLBACK_DATA *) NULL,
		  char *post_prompt=(char *) NULL);
    void wtvbox_c(short wid, int col1, int row1, int col2, int row2,
		  int color, int style=LINE_THIN);
    int xchar_text_message_c(int top_row, int left_column, int num_rows,
                             int num_columns, XCHAR *text,
                             int exit_switch, int resize_screen,
                             char *title, int synchronous);
    int xv_display(int usr_cns_num, char *image_file);
    int xv_capture(int usr_cns_num, int screen, char *save_direct,
                   char *save_file, int options, int wait_for_copy=FALSE);
    int xv_cursor_update(int *xpos, int *ypos);

#ifdef __cplusplus
}
    #endif
#ifdef __cplusplus
int str_extract_line_c(char const*src_string, int *offset, char *out_string,
                           int line_length, int max_ret=0);
#endif


/******************************************************************************/
/*
**	equivalent name definitions
*/
/******************************************************************************/

    #define	ABORT_ASSERT			abort_assert
    #define	ABORT_CANCEL			abort_cancel
    #define	ABORT_CANCEL_ALL		abort_cancel_all
    #define	ABORT_CHECK			abort_check
    #define	ABORT_ENABLE_C			abort_enable_c
    #define	ABORT_INIT			abort_init
    #define	ABORT_KEY_CANCEL		abort_key_cancel
    #define	ABORT_KEY_INIT			abort_key_init
    #define	ABORT_KEY_PRESSED		abort_key_pressed
    #define	ABORT_REQUESTED			abort_requested
    #define	ABORT_TO_FRONT			abort_to_front
    #define	ACKNOWLEDGE_C			acknowledge_c
    #define	ACNET_CHGPGM			acnet_chgpgm
    #define	ACNET_CNSNUM_TO_NODE		acnet_cnsnum_to_node
    #define	ACNET_NODE_IP_ADDRESS_C		acnet_node_ip_address_c
    #define	ACNET_NODE_NAME_EXISTS_IN_DB	acnet_node_name_exists_in_db
    #define	ACNET_NODE_TO_CNSNUM_C		acnet_node_to_cnsnum_c
    #define	ACNET_NODE_TYPE_C		acnet_node_type_c
    #define	ACNET_SEND_WAIT			acnet_send_wait
    #define	ACNET_TRUNK_NODE_EXISTS_IN_DB_C	acnet_trunk_node_exists_in_db_c
    #define	ALARM_CALLBACK_INIT_C		alarm_callback_init_c
    #define	ALARM_CALLBACK_TERM_C		alarm_callback_term_c
    #define	ALARM_FIND_ALARMS_DAEMON_C	alarm_find_alarms_daemon_c
    #define	ALARM_GET_CURRENT_ALARMS	alarm_get_current_alarms
    #define	ALARM_GET_NUM_CURRENT_ALARMS	alarm_get_num_current_alarms
    #define	ALARM_LIST_ALL_DISPLAY_CONSOLE_MASKS_C	alarm_list_all_display_console_masks_c
    #define	ALARM_LIST_DISPLAY_CONSOLE_MASK_C	alarm_list_display_console_mask_c
    #define	ALARM_LIST_FIND_DEVICE_C	alarm_list_find_device_c
    #define	ALARM_LIST_NAME_TO_DEVICES_C	alarm_list_name_to_devices_c
    #define	ALARM_LIST_NAME_TO_LISTS_C	alarm_list_name_to_lists_c
    #define	ALARM_LIST_NAMES		alarm_list_names
    #define	ALARM_LIST_STATUS_C		alarm_list_status_c
    #define	ALARM_MISC_CALLBACK_INIT	alarm_misc_callback_init
    #define	ALARM_MISC_CALLBACK_TERM	alarm_misc_callback_term
    #define	ALARM_SET_LIST_STATUS_C		alarm_set_list_status_c
    #define	APPLICATION_INFO		application_info
    #define	APPLICATION_KEEPER_INFO		application_keeper_info
    #define	ARRAY_CLEAR_C			array_clear_c
    #define	ARRAY_DELETE_DUPLICATES_C	array_delete_duplicates_c
    #define	ARRAY_DELETE_ENTRIES_C		array_delete_entries_c
    #define	ARRAY_EDIT_C			array_edit_c
    #define	ARRAY_FILL_C			array_fill_c
    #define	ASCII_TO_NUMERIC		ascii_to_numeric
    #define	ASCII_TO_NUMERIC_C		ascii_to_numeric_c
    #define	BCD_TO_DECIMAL_C		bcd_to_decimal_c
    #define	BEEP				beep
    #define	BINBOX				binbox
    #define	BINBOX_C			binbox_c
    #define	BINFLD				binfld
    #define	BINFLD_C			binfld_c
    #define	BREAK_THRU			break_thru
    #define	BTVBLNK				btvblnk
    #define	BTVBLNK_C			btvblnk_c
    #define	BTVCEOL				btvceol
    #define	BTVCEOL_C			btvceol_c
    #define	BTVCOLR				btvcolr
    #define	BTVCOLR_C			btvcolr_c
    #define	BTVDISP				btvdisp
    #define	BTVDISP_C			btvdisp_c
    #define	BTVM				btvm
    #define	BTVM_C				btvm_c
    #define	BTVMX				btvmx
    #define	BTVMX_C				btvmx_c
    #define	BUBBLE_HELP_CALLBACK_INIT_C	bubble_help_callback_init_c
    #define	BUBBLE_HELP_CALLBACK_TERM_C	bubble_help_callback_term_c
    #define	BUBBLE_HELP_DISPLAY_DELAY_C	bubble_help_display_delay_c
    #define	BUBBLE_HELP_ENABLE_DISABLE_C	bubble_help_enable_disable_c
    #define	BUBBLE_HELP_SETUP_C		bubble_help_setup_c
    #define	BUBBLE_HELP_WINDOW_DELETE_C	bubble_help_window_delete_c
    #define	BUILD_MENU_TEXT			build_menu_text
    #define	BUILD_MENU_BAR_TEXT		build_menu_bar_text
    #define	BUILD_SDA_CASE_VALUE_C		build_sda_case_value_c
    #define	CALC_WINDOW_C			calc_window_c
    #define	CENTER_WINDOW_C			center_window_c
    #define	CHARACTER_TYPE_C		character_type_c
    #define	CHECK_BOX_MENU_C		check_box_menu_c
    #define	CHECK_FOR_SA			check_for_sa
    #define	CHECK_FOR_SA_C			check_for_sa_c
    #define	CHKCMP				chkcmp
    #define	CHOOSE_COLOR			choose_color
    #define	CHOOSE_COLOR_C			choose_color_c
    #define	CLIB_FPRINTF			clib_fprintf
    #define	CLIB_FSCANF			clib_fscanf
    #define	CLIB_N_SSCANF_C			clib_n_sscanf_c
    #define	CLIB_PRINTF			clib_printf
    #define	CLIB_SPRINTF			clib_sprintf
    #define	CLIB_SPRINTFX			clib_sprintfx
    #define	CLIB_SSCANF			clib_sscanf
    #define	CLIB_VSPRINTF			clib_vsprintf
    #define	CLIB_VSPRINTFX			clib_vsprintfx
    #define	CNS_EDIT			cns_edit
    #define	CNS_EDIT_READ_CURSOR		cns_edit_read_cursor
    #define	CNS_EDIT_SET_CURSOR_C		cns_edit_set_cursor_c
    #define	COMBO_MENU_C			combo_menu_c
    #define	COMBO_MENU_HS_C			combo_menu_hs_c
    #define	CONSOLE_DISPLAY_NAME_C		console_display_name_c
    #define	CONSOLE_EXTRACT_SLOT_INFO_C	console_extract_slot_info_c
    #define	CONSOLE_GET_ACTIVE_C		console_get_active_c
    #define	CONSOLE_GET_RUNNING_C		console_get_running_c
    #define	CONSOLE_GETENV_C		console_getenv_c
    #define	CONSOLE_GETLNM_C		console_getlnm_c
    #define	CONSOLE_HELP_TEXT_C		console_help_text_c
    #define	CONSOLE_HELP_TOPIC_NAMES_C	console_help_topic_names_c
    #define	CONSOLE_INFO_C			console_info_c
    #define	CONSOLE_LIVE_INFO_C		console_live_info_c
    #define	CONSOLE_MASK_TO_ALARM_LIST_DISPLAY_FLAG_C	console_mask_to_alarm_list_display_flag_c
    #define	CONSOLE_MASK_TO_ALL_ALARM_LIST_DISPLAY_FLAGS_C	console_mask_to_all_alarm_list_display_flags_c
    #define	CONSOLE_MAXIMUM_NODE_NUMBER	console_maximum_node_number
    #define	CONSOLE_SLOT_MENU_C		console_slot_menu_c
    #define	CONSOLE_TASK_UPTIME_C		console_task_uptime_c
    #define	CONSOLE_USER_NAME_C		console_user_name_c
    #define	CONSOLE_WINDOW_CENTER_C		console_window_center_c
    #define	CONSOLE_WINDOW_FIND_TITLE_C	console_window_find_title_c
    #define	CONSOLE_WINDOW_HOME_C		console_window_home_c
    #define	CONSOLE_WINDOW_ICONIFY_C	console_window_iconify_c
    #define	CONSOLE_WINDOW_LOWER_C		console_window_lower_c
    #define	CONSOLE_WINDOW_MENU_C		console_window_menu_c
    #define	CONSOLE_WINDOW_POSITION_C	console_window_position_c
    #define	CONSOLE_WINDOW_RAISE_C		console_window_raise_c
    #define	CONSOLE_WINDOW_SAVE_IMAGE_C	console_window_save_image_c
    #define	CONSOLE_WINDOW_SET_SIZE_C	console_window_set_size_c
    #define	CONSOLE_WINDOW_TITLE_C		console_window_title_c
    #define	COPY_FILE_TO_SCRATCH		copy_file_to_scratch
    #define	COPY_STRING_TO_XCHAR_C		copy_string_to_xchar_c
    #define	COPY_XCHAR_TO_STRING_C		copy_xchar_to_string_c
    #define	CREATE_USER_DATA_TYPE_C		create_user_data_type_c
    #define	DAQ_RETRIEVE_CONNECTED_TASKS_C	daq_retrieve_connected_tasks_c
    #define	DAQ_RETRIEVE_DEVICE_ACCESS_C	daq_retrieve_device_access_c
    #define	DAQ_RETRIEVE_FE_ACTIVITY_C	daq_retrieve_fe_activity_c
    #define	DAQ_RETRIEVE_TASK_DEVICES_C	daq_retrieve_task_devices_c
    #define	DATA_EVENT_STRING_TO_FTD	data_event_string_to_ftd
    #define	DATA_EVENT_STRING_TO_USER_STRING_C	data_event_string_to_user_string_c
    #define	DATA_EVENT_TO_FTD		data_event_to_ftd
    #define	DATA_EVENT_TO_STRING		data_event_to_string
    #define	DECIDE				decide
    #define	DECIDE_C			decide_c
    #define	DECIDE_MULTIPLE_C		decide_multiple_c
    #define	DELETE_FROM_ARRAY_C		delete_from_array_c
    #define	DELETE_MULTIPLE_FROM_ARRAY_C	delete_multiple_from_array_c
    #define	DELETE_VALUE_FROM_ARRAY_C	delete_value_from_array_c
    #define	DESTROY_VALIDATED_USER_NAME	destroy_validated_user_name
    #define	DEVICE_LISTING_C		device_listing_c
    #define	DIALOG_SETUP_C			dialog_setup_c
    #define	DIPOLE_FOUR_BUMP_INFO		dipole_four_bump_info
    #define	DIPOLE_THREE_BUMP_INFO		dipole_three_bump_info
    #define	DISPLAY_VALUE			display_value
    #define	DISPLAY_VALUE_C			display_value_c
    #define	DPM_SHOW_FE_ACTIVITY		dpm_show_fe_activity
    #define	DPM_SHOW_CONNECTED_TASKS	dpm_show_connected_tasks
    #define	DPM_SHOW_DEVICE_ACCESS		dpm_show_device_access
    #define	ENUM_TYPE_MENU_INFO_C		enum_type_menu_info_c
    #define	ENUMERATED_TYPE_MENU_C		enumerated_type_menu_c
    #define	ERROR_CLIP_DEPTH_C		error_clip_depth_c
    #define	ERROR_CLOSE			error_close
    #define	ERROR_CMPRINTF_C		error_cmprintf_c
    #define	ERROR_COLORED_MESSAGE_C		error_colored_message_c
    #define	ERROR_DISPLAY			error_display
    #define	ERROR_DISPLAY_C			error_display_c
    #define	ERROR_DISP_UTI			error_disp_uti
    #define	ERROR_DISPLAY_POPUP_C		error_display_popup_c
    #define	ERROR_EMBEDDED_ENABLED		error_embedded_enabled
    #define	ERROR_EMBEDDED_OFF		error_embedded_off
    #define	ERROR_EMBEDDED_ON		error_embedded_on
    #define	ERROR_EMBEDDED_SET_LEVEL_C	error_embedded_set_level_c
    #define	ERROR_ERASE			error_erase
    #define	ERROR_GET_WINDOW_ID		error_get_window_id
    #define	ERROR_IMBEDDED_ENABLED		error_imbedded_enabled
    #define	ERROR_IMBEDDED_OFF		error_imbedded_off
    #define	ERROR_IMBEDDED_ON		error_imbedded_on
    #define	ERROR_INIT			error_init
    #define	ERROR_INIT_C			error_init_c
    #define	ERROR_INIT_UTI			error_init_uti
    #define	ERROR_IN_INT_LIST_C		error_in_int_list_c
    #define	ERROR_IN_LIST			error_in_list
    #define	ERROR_IN_LIST_C			error_in_list_c
    #define	ERROR_IS_OCCLUDED		error_is_occluded
    #define	ERROR_LAST			error_last
    #define	ERROR_LAST_REMOTE		error_last_remote
    #define	ERROR_MESSAGE			error_message
    #define	ERROR_MESSAGE_C			error_message_c
    #define	ERROR_MOVE_DISABLE		error_move_disable
    #define	ERROR_MOVE_ENABLE		error_move_enable
    #define	ERROR_MPRINTF_C			error_mprintf_c
    #define	ERROR_MPRINTF_REMOTE_C		error_mprintf_remote_c
    #define	ERROR_POP_WINDOW		error_pop_window
    #define	ERROR_PRINTF_C			error_printf_c
    #define	ERROR_PRINTF_LIMIT_C		error_printf_limit_c
    #define	ERROR_PRINTF_REMOTE_C		error_printf_remote_c
    #define	ERROR_QUERY_CLIPPING		error_query_clipping
    #define	ERROR_QUERY_SETUP		error_query_setup
    #define	ERROR_REMOTE_CALLBACK_ADD	error_remote_callback_add
    #define	ERROR_REMOTE_CALLBACK_REMOVE	error_remote_callback_remove
    #define	ERROR_SET_SCROLL_LIMIT_C	error_set_scroll_limit_c
    #define	ERROR_SIZE_AND_POSITION_C	error_size_and_position_c
    #define	ERROR_TRACE_GET			error_trace_get
    #define	ERROR_TRACE_OFF			error_trace_off
    #define	ERROR_TRACE_ON			error_trace_on
    #define	ERROR_TRACE_VIEW_C		error_trace_view_c
    #define	ERROR_UNPACK			error_unpack
    #define	ERROR_UNPACK_C			error_unpack_c
    #define	ERROR_UTI_LOGGING_C		error_uti_logging_c
    #define	ERROR_WINDOW_IS_PRESENT		error_window_is_present
    #define	EXPRESSION_CANCEL_REQUESTS_C	expression_cancel_requests_c
    #define	EXPRESSION_EVALUATE_C		expression_evaluate_c
    #define	EXPRESSION_EVALUATE_DOUBLE_C	expression_evaluate_double_c
    #define	EXPRESSION_FREE_C		expression_free_c
    #define	EXPRESSION_INFO_C		expression_info_c
    #define	EXPRESSION_PARSE_C		expression_parse_c
    #define	EXPRESSION_PARSE_DOUBLE_C	expression_parse_double_c
    #define	FE_NATIVE_ALARM_LIMIT_TYPE_C	fe_native_alarm_limit_type_c
    #define	FIELD_WINDOW_DELETE_C		field_window_delete_c
    #define	FIELD_WINDOW_RESTORE_EXCLUSIVE	field_window_restore_exclusive
    #define	FIELD_WINDOW_SET_EXCLUSIVE_C	field_window_set_exclusive_c
    #define	FIFO_DELETE			fifo_delete
    #define	FIFO_FREE			fifo_free
    #define	FIFO_INIT			fifo_init
    #define	FIFO_IS_EMPTY			fifo_is_empty
    #define	FIFO_PEEK			fifo_peek
    #define	FIFO_POP			fifo_pop
    #define	FIFO_PUSH			fifo_push
    #define	FILE_ACKNOWLEDGE_C		file_acknowledge_c
    #define	FILE_DECIDE_C			file_decide_c
    #define	FILE_DIRECTORY_SELECT_C		file_directory_select_c
    #define	FILE_EXISTS_C			file_exists_c
    #define	FILE_FIND_IN_PATH_C		file_find_in_path_c
    #define	FILE_NAME_CONVERT_C		file_name_convert_c
    #define	FILE_NAME_EXPAND_C		file_name_expand_c
    #define	FILE_NAME_PARSE_C		file_name_parse_c
    #define	FILE_NUM_LINES			file_num_lines
    #define	FILE_VIEW_EDIT_C		file_view_edit_c
    #define	FILE_VIEW_FIND			file_view_find
    #define	FILE_VIEW_READ			file_view_read
    #define	FILE_VIEW_SELECT		file_view_select
    #define	FILL_XCHAR_C			fill_xchar_c
    #define	FIND_AVAILABLE_SLOT_C		find_available_slot_c
    #define	FIND_CHANGE			find_change
    #define	FIND_PROCESSES_C		find_processes_c
    #define	FIND_REMOTE_PROGRAM_SLOT_C	find_remote_program_slot_c
    #define	FIND_SA				find_sa
    #define	FM_CHECK_REPLY			fm_check_reply
    #define	FM_CHECK_REPLY_C		fm_check_reply_c
    #define	FM_CLOSE			fm_close
    #define	FM_CLOSE_C			fm_close_c
    #define	FM_CLOSE_ALL			fm_close_all
    #define	FM_CLOSE_BY_NAME		fm_close_by_name
    #define	FM_DELETE_RECORD		fm_delete_record
    #define	FM_DELETE_RECORD_C		fm_delete_record_c
    #define	FM_FILE_ATTRIBUTES		fm_file_attributes
    #define	FM_GET_ACCESS			fm_get_access
    #define	FM_GET_ACCESS_C			fm_get_access_c
    #define	FM_GET_FILENAME_C		fm_get_filename_c
    #define	FM_GET_VUN			fm_get_vun
    #define	FM_IO				fm_io
    #define	FM_IO_C				fm_io_c
    #define	FM_IS_OPEN			fm_is_open
    #define	FM_IS_WRITING_ENABLED		fm_is_writing_enabled
    #define	FM_OPEN				fm_open
    #define	FM_OPEN_C			fm_open_c
    #define	FM_OPEN_IO			fm_open_io
    #define	FM_OPEN_IO_C			fm_open_io_c
    #define	FM_OPEN_READ			fm_open_read
    #define	FM_OPEN_READ_C			fm_open_read_c
    #define	FM_OPEN_WRITE			fm_open_write
    #define	FM_OPEN_WRITE_C			fm_open_write_c
    #define	FM_QUERY_TUNER			fm_query_tuner
    #define	FM_READ				fm_read
    #define	FM_READ_C			fm_read_c
    #define	FM_READ_DEFAULTS		fm_read_defaults
    #define	FM_READ_MULTIPLE		fm_read_multiple
    #define	FM_READ_MULTIPLE_C		fm_read_multiple_c
    #define	FM_RESTORE_DEFAULTS		fm_restore_defaults
    #define	FM_REWIND			fm_rewind
    #define	FM_REWIND_C			fm_rewind_c
    #define	FM_SAVE_DEFAULTS		fm_save_defaults
    #define	FM_SET_DEFAULTS			fm_set_defaults
    #define	FM_TUNER			fm_tuner
    #define	FM_UNLOCK			fm_unlock
    #define	FM_UNLOCK_C			fm_unlock_c
    #define	FM_WRITE			fm_write
    #define	FM_WRITE_C			fm_write_c
    #define	FM_WRITE_DISABLE		fm_write_disable
    #define	FM_WRITE_ENABLE			fm_write_enable
    #define	FNDCHR				fndchr
    #define	FNDCHR_C			fndchr_c
    #define	FNDFST				fndfst
    #define	FNTCHR				fntchr
    #define	FNTCHR_C			fntchr_c
    #define	FRONT_END_DOWNLOAD_FILE_C	front_end_download_file_c
    #define	FRONT_END_TYPE_C		front_end_type_c
    #define	FTD_TO_DATA_EVENT_C		ftd_to_data_event_c
    #define	FTD_TO_DATA_EVENT_STRING_C	ftd_to_data_event_string_c
    #define	FTP_CALCULATED_TRACE_C		ftp_calculated_trace_c
    #define	FTP_COPY			ftp_copy
    #define	FTP_FILE_MENU_C			ftp_file_menu_c
    #define	FTP_FILE_SEARCH			ftp_file_search
    #define	FTP_READ_PLOT_SETUP_FILE_C	ftp_read_plot_setup_file_c
    #define	FTP_SETUP			ftp_setup
    #define	FTP_START			ftp_start
    #define	FTP_START_PLOT_C		ftp_start_plot_c
    #define	FTP_START_PLOT_BY_NAME_C	ftp_start_plot_by_name_c
    #define	FTP_START_PLOT_FROM_FILE_C	ftp_start_plot_from_file_c
    #define	FULL_NAME_TO_CONSOLE_USER_NAME	full_name_to_console_user_name
    #define	GET_ALARM_SERVER_IP_NAME	get_alarm_server_ip_name
    #define	GET_ALARM_SERVER_NODE		get_alarm_server_node
    #define	GET_AVAILABLE_ACNET_PROCESS_NAME_C	get_available_acnet_process_name_c
    #define	GET_BIT_MASK_STRINGS_C		get_bit_mask_strings_c
    #define	GET_CONSOLE_TASKS_C		get_console_tasks_c
    #define	GET_CPLD_NODE			get_cpld_node
    #define	GET_CPLD_PROGRAM_FLAGS		get_cpld_program_flags
    #define	GET_CURRENT_CONTEXT		get_current_context
    #define	GET_DATE_CLINKS			get_date_clinks
    #define	GET_DEFAULT_FILE_PATH		get_default_file_path
    #define	GET_DEFAULT_FILE_WRITE_PATH	get_default_file_write_path
    #define	GET_DIALOG_SETUP		get_dialog_setup
    #define	GET_DOWNLOAD_SERVER_NODE	get_download_server_node
    #define	GET_ENUMERATED_STRING_ARRAY_C	get_enumerated_string_array_c
    #define	GET_ENUMERATED_STRINGS		get_enumerated_strings
    #define	GET_FILE_TAGS_C			get_file_tags_c
    #define	GET_FSHARE_NODE			get_fshare_node
    #define	GET_LOGICAL_STRINGS		get_logical_strings
    #define	GET_LXFONT_SIZE			get_lxfont_size
    #define	GET_MENU_SETUP			get_menu_setup
    #define	GET_PERSONAL_USER_NAME_C	get_personal_user_name_c
    #define	GET_PROCESS_ALIAS		get_process_alias
    #define	GET_PROCESS_ALIAS_NUMBER	get_process_alias_number
    #define	GET_PROCESS_NAME		get_process_name
    #define	GET_PROCESS_NUMBER		get_process_number
    #define	GET_TASK_C			get_task_c
    #define	GET_TASK_NAME_C			get_task_name_c
    #define	GET_TIME			get_time
    #define	GET_TIMER_REF			get_timer_ref
    #define	GIF_IMAGE_SIZE			gif_image_size
    #define	GPIB_CLEAR_C			gpib_clear_c
    #define	GPIB_CLOSE			gpib_close
    #define	GPIB_DEVICE_INFO_C		gpib_device_info_c
    #define	GPIB_LOCAL_C			gpib_local_c
    #define	GPIB_READ_C			gpib_read_c
    #define	GPIB_SELECT_C			gpib_select_c
    #define	GPIB_SELECT_IP_NAME_C		gpib_select_ip_name_c
    #define	GPIB_SELECT_NODE_C		gpib_select_node_c
    #define	GPIB_SERIAL_POLL_C		gpib_serial_poll_c
    #define	GPIB_TRIGGER_C			gpib_trigger_c
    #define	GPIB_WRITE_C			gpib_write_c
    #define	HELP_CALLBACK_INIT_C		help_callback_init_c
    #define	HELP_CALLBACK_TERM_C		help_callback_term_c
    #define	HELP_ENABLE_DISABLE_C		help_enable_disable_c
    #define	HELP_WINDOW_DELETE_C		help_window_delete_c
    #define	HILITE				hilite
    #define	HILITE_C			hilite_c
    #define	HILITE_CREATE_C			hilite_create_c
    #define	HILITE_DELETE_C			hilite_delete_c
    #define	HILITE_MODIFY_SAVE_BUFFER_C	hilite_modify_save_buffer_c
    #define	HILITE_RESUME_C			hilite_resume_c
    #define	HILITE_SIMPLE_ROW_CREATE_C	hilite_simple_row_create_c
    #define	HILITE_SUSPEND_C		hilite_suspend_c
    #define	HILITE_UPDATE_C			hilite_update_c
    #define	HILITE_WINDOW_DELETE_C		hilite_window_delete_c
    #define	HORZ_SCROLLING_TEXT_MESSAGE_C	horz_scrolling_text_message_c
    #define	INDEXED_FILE_CLOSE_C		indexed_file_close_c
    #define	INDEXED_FILE_CLOSE_ALL		indexed_file_close_all
    #define	INDEXED_FILE_OPEN_C		indexed_file_open_c
    #define	INDEXED_FILE_READ_C		indexed_file_read_c
    #define	INDEXED_FILE_WRITE_C		indexed_file_write_c
    #define	INIT_REPEAT_KBD_INTYPE		init_repeat_kbd_intype
    #define	INPTXT				inptxt
    #define	INPTXT_C			inptxt_c
    #define	INPUT_ARRAY_VALUES_C		input_array_values_c
    #define	INPUT_FIELD_CREATE_C		input_field_create_c
    #define	INPUT_FIELD_DELETE_C		input_field_delete_c
    #define	INPUT_FIELD_DISABLE_C		input_field_disable_c
    #define	INPUT_FIELD_ENABLE_C		input_field_enable_c
    #define	INPUT_FIELD_READ_C		input_field_read_c
    #define	INPUT_FIELD_SET_C		input_field_set_c
    #define	INPUT_FIELD_SET_ID_TYPE_C	input_field_set_id_type_c
    #define	INPUT_FIELD_WINDOW_DELETE_C	input_field_window_delete_c
    #define	INPUT_FILE_NAME_C		input_file_name_c
    #define	INPUT_GENERIC_LOGIN_INFO_C	input_generic_login_info_c
    #define	INPUT_GENERIC_USER_PASSWORD_C	input_generic_user_password_c
    #define	INPUT_STRING_DIALOG_C		input_string_dialog_c
    #define	INPUT_VALUE			input_value
    #define	INPUT_VALUE_C			input_value_c
    #define	INSERT_IN_ARRAY_C		insert_in_array_c
    #define	INTEGER_LENGTH			integer_length
    #define	INTEGER_LENGTH_C		integer_length_c
    #define	INTERRUPT_WINDOW		interrupt_window
    #define	INTYPE_SET_DOUBLE_CLICK_C	intype_set_double_click_c
    #define	INTYPE_SET_REPEAT_CLICK_C	intype_set_repeat_click_c
    #define	INVERT_ARRAY_C			invert_array_c
    #define	IN_WINDOW_C			in_window_c
    #define	IN_WINDOW_BOX			in_window_box
    #define	IN_WINDOW_BOX_C			in_window_box_c
    #define	IN_WINDOW_FIELD			in_window_field
    #define	IN_WINDOW_FIELD_C		in_window_field_c
    #define	IN_WINDOW_INTERIOR_C		in_window_interior_c
    #define	IN_WINDOW_LINE			in_window_line
    #define	IN_WINDOW_LINE_C		in_window_line_c
    #define	IN_WINDOW_PRIMITIVE_C		in_window_primitive_c
    #define	IP_ADDRESS_COMPARE		ip_address_compare
    #define	IP_ADDRESS_TO_ACNET_NODE	ip_address_to_acnet_node
    #define	IP_ADDRESS_TO_MATCHING_ACNET_NODE	ip_address_to_matching_acnet_node
    #define	IP_ADDRESS_TO_NODE		ip_address_to_node
    #define	IS_DEFAULT_DATA_EVENT_STRING_C	is_default_data_event_string_c
    #define	IS_FRONT_END_NODE_C		is_front_end_node_c
    #define	IS_NUMERIC_IP_ADDRESS		is_numeric_ip_address
    #define	IS_ONESHOT_DATA_EVENT_STRING_C	is_oneshot_data_event_string_c
    #define	IS_TEST_PAGE			is_test_page
    #define	JUSTFY				justfy
    #define	KEY_CLEAR_PRESSED_C		key_clear_pressed_c
    #define	KEY_PRESS_CANCEL_C		key_press_cancel_c
    #define	KEY_PRESS_INIT_C		key_press_init_c
    #define	KEY_PRESSED_C			key_pressed_c
    #define	KNOB_CANCEL_C			knob_cancel_c
    #define	KNOB_INIT_C			knob_init_c
    #define	KNOB_RAW_DEVICE_VALUE_C		knob_raw_device_value_c
    #define	KNOB_UPDATE_C			knob_update_c
    #define	LEX_QUERY_PARAM_C		lex_query_param_c
    #define	LEX_SA_ACL_SCRIPT_SEARCH_C	lex_sa_acl_script_search_c
    #define	LEX_SA_DEVICE_SEARCH_C		lex_sa_device_search_c

    #ifndef _SYS_QUEUE_H_		/* name conflict with unix <sys/queue.h> */
        #define	LIST_DELETE			list_delete
        #define	LIST_FIND			list_find
        #define	LIST_FOR_EACH			list_for_each
        #define	LIST_INIT			list_init
        #define	LIST_INSERT			list_insert
        #define	LIST_REMOVE			list_remove
    #endif				/* _SYS_QUEUE_H_ */

    #define	LIST_FIELD_CREATE_C		list_field_create_c
    #define	LIST_FIELD_DELETE_C		list_field_delete_c
    #define	LIST_FIELD_DISABLE_C		list_field_disable_c
    #define	LIST_FIELD_ENABLE_C		list_field_enable_c
    #define	LIST_FIELD_READ_C		list_field_read_c
    #define	LIST_FIELD_SET_C		list_field_set_c
    #define	LIST_FIELD_SET_ID_TYPE_C	list_field_set_id_type_c
    #define	LIST_FIELD_WINDOW_DELETE_C	list_field_window_delete_c
/* #define	LOCK_READ			lock_read */
    #define	LOCK_READ_PROGRAM_LOCKS_C	lock_read_program_locks_c
    #define	LOCK_RELEASE			lock_release
    #define	LOCK_REQUEST			lock_request
    #define	LOG_ALARM_BYPASS_C		log_alarm_bypass_c
    #define	LOGICAL_COMBO_MENU_C		logical_combo_menu_c
    #define	LOGICAL_SCROLL_MENU		logical_scroll_menu
    #define	LOGICAL_SCROLL_MENU_C		logical_scroll_menu_c
    #define	LOG_READ			log_read
    #define	LOG_READ_CLU			log_read_clu
    #define	LOG_READ_SETUP_C		log_read_setup_c
    #define	LOG_WRITE			log_write
    #define	LOG_WRITE_MULTILINE_C		log_write_multiline_c
    #define	LX_COL_TO_PIX			lx_col_to_pix
    #define	LX_COL_TO_PIX_C			lx_col_to_pix_c
    #define	LX_COLORED_STRING_C		lx_colored_string_c
    #define	LX_DISPLAY_VALUE		lx_display_value
    #define	LX_DISPLAY_VALUE_C		lx_display_value_c
    #define	LX_DISPLAY_VALUE_ATPIX		lx_display_value_atpix
    #define	LX_DISPLAY_VALUE_ATPIX_C	lx_display_value_atpix_c
    #define	LX_PIX_TO_COLUMN_C		lx_pix_to_column_c
    #define	LX_PIX_TO_ROW_C			lx_pix_to_row_c
    #define	LX_ROW_TO_PIX			lx_row_to_pix
    #define	LX_ROW_TO_PIX_C			lx_row_to_pix_c
    #define	LXBLNK				lxblnk
    #define	LXBLNK_C			lxblnk_c
    #define	LXBOX				lxbox
    #define	LXBOX_C				lxbox_c
    #define	LXCHAR				lxchar
    #define	LXCHAR_C			lxchar_c
    #define	LXFONT				lxfont
    #define	LXFONT_C			lxfont_c
    #define	LXH				lxh
    #define	LXH_C				lxh_c
    #define	LXHLIN				lxhlin
    #define	LXHLIN_C			lxhlin_c
    #define	LXI				lxi
    #define	LXI_C				lxi_c
    #define	LXI4				lxi4
    #define	LXI4_C				lxi4_c
    #define	LXPRNT				lxprnt
    #define	LXPRNT_C			lxprnt_c
    #define	LXR				lxr
    #define	LXR_C				lxr_c
    #define	LXR8				lxr8
    #define	LXR8_C				lxr8_c
    #define	LXSTRING_C			lxstring_c
    #define	LXTEXT_C			lxtext_c
    #define	LXVLIN				lxvlin
    #define	LXVLIN_C			lxvlin_c
    #define	MATH_EXCEPTION_CHECK		math_exception_check
    #define	MATH_EXCEPTION_ESTABLISH	math_exception_establish
    #define	MECCA_MINMAX_PROGRAM_NUMBER_C	mecca_minmax_program_number_c
    #define	MECCA_SEARCH_PROGRAM_INFO_C	mecca_search_program_info_c
    #define	MEMORY_CHECK_C			memory_check_c
    #define	MEMORY_SEARCH_C			memory_search_c
    #define	MEMSET_DOUBLE_C			memset_double_c
    #define	MEMSET_FLOAT_C			memset_float_c
    #define	MEMSET_LONGWORD_C		memset_longword_c
    #define	MEMSET_LONG_LONG_WORD_C		memset_long_long_word_c
    #define	MEMSET_WORD_C			memset_word_c
    #define	MENU				menu
    #define	MENU_C				menu_c
    #define	MENU_ASSERT_CHOICE_C		menu_assert_choice_c
    #define	MENU_BAR_CHANGE_ENTRY_C		menu_bar_change_entry_c
    #define	MENU_BAR_CREATE			menu_bar_create
    #define	MENU_BAR_DELETE			menu_bar_delete
    #define	MENU_BAR_DISABLE_C		menu_bar_disable_c
    #define	MENU_BAR_DNCASE_ENTRY_C		menu_bar_dncase_entry_c
    #define	MENU_BAR_ENABLE_C		menu_bar_enable_c
    #define	MENU_BAR_FIELD_COORDINATES_C	menu_bar_field_coordinates_c
    #define	MENU_BAR_MIN_WIDTH_C		menu_bar_min_width_c
    #define	MENU_BAR_UPCASE_ENTRY_C		menu_bar_upcase_entry_c
    #define	MENU_BAR_UPDATE			menu_bar_update
    #define	MENU_CHANGE_ENTRY_C		menu_change_entry_c
    #define	MENU_CHANGE_ENTRY_CASE_C	menu_change_entry_case_c
    #define	MENU_CREATE			menu_create
    #define	MENU_CREATE_C			menu_create_c
    #define	MENU_DELETE			menu_delete
    #define	MENU_DELETE_C			menu_delete_c
    #define	MENU_IS_OPEN			menu_is_open
    #define	MENU_SET_CURRENT_ENTRY_C	menu_set_current_entry_c
    #define	MENU_SETUP_C			menu_setup_c
    #define	MENU_TOPMOST			menu_topmost
    #define	MENU_UPDATE			menu_update
    #define	MENU_UPDATE_C			menu_update_c
    #define	MESWIN				meswin
    #define	MESWIN_C			meswin_c
    #define	MODIFY_ENUMERATED_STRINGS_C	modify_enumerated_strings_c
    #define	MULTICOLOR_MENU_CHANGE_ENTRY_C	multicolor_menu_change_entry_c
    #define	MULTICOLOR_MENU_CREATE_C	multicolor_menu_create_c
    #define	MULTICOLOR_POPUP_MENU_C		multicolor_popup_menu_c
    #define	MULTICOLOR_TEXT_WINDOW		multicolor_text_window
    #define	MULTICOLOR_TEXT_WINDOW_C	multicolor_text_window_c
    #define	MULTICOLUMN_SCROLL_MENU		multicolumn_scroll_menu
    #define	MULTICOLUMN_SCROLL_MENU_C	multicolumn_scroll_menu_c
    #define	NODE_ACNET_PING_C		node_acnet_ping_c
    #define	NODE_ACNET_TASKS_C		node_acnet_tasks_c
    #define	NODE_CORESIDENT_NODES_C		node_coresident_nodes_c
    #define	NODE_HAS_AFTER_BOOT_SCRIPT_C	node_has_after_boot_script_c
    #define	NODE_HAS_BOOT_MESSAGE_C		node_has_boot_message_c
    #define	NODE_HAS_BOOT_SCRIPT_C		node_has_boot_script_c
    #define	NODE_IS_UP_C			node_is_up_c
    #define	NOTIFY_POPULATE			notify_populate
    #define	NUMERIC_CONVERSION_TYPE_TEXT_C	numeric_conversion_type_text_c
    #define	NUMERIC_CONVERT_TUNER_C		numeric_convert_tuner_c
    #define	NUMERIC_CONVERT_TYPE_ID_C	numeric_convert_type_id_c
    #define	NUMERIC_DATA_LENGTH_C		numeric_data_length_c
    #define	NUMERIC_DEFAULT_LENGTH_C	numeric_default_length_c
    #define	NUMERIC_FUNDAMENTAL_TYPE_C	numeric_fundamental_type_c
    #define	NUMERIC_IS_ENUMERATED_TYPE_C	numeric_is_enumerated_type_c
    #define	NUMERIC_IS_USER_DEFINED_ENUM_TYPE_C	numeric_is_user_defined_enum_type_c
    #define	NUMERIC_TO_ASCII		numeric_to_ascii
    #define	NUMERIC_TO_ASCII_C		numeric_to_ascii_c
    #define	NUMERIC_TO_FLOAT_C		numeric_to_float_c
    #define	NUMERIC_VALUES_C		numeric_values_c
    #define	OACS_ON_NODE_C			oacs_on_node_c
    #define	PACKED_BUFFER_ADD_C		packed_buffer_add_c
    #define	PACKED_BUFFER_COPY_DATA_C	packed_buffer_copy_data_c
    #define	PACKED_BUFFER_FILL_C		packed_buffer_fill_c
    #define	PACKED_BUFFER_FREE		packed_buffer_free
    #define	PACKED_BUFFER_GET_C		packed_buffer_get_c
    #define	PACKED_BUFFER_INIT		packed_buffer_init
    #define	PACKED_BUFFER_NEXT_ENTRY_INFO	packed_buffer_next_entry_info
    #define	PACKED_BUFFER_REWIND		packed_buffer_rewind
    #define	PACKED_BUFFER_SIZE		packed_buffer_size
    #define	PANIC_MAIL			panic_mail
    #define	PARAM_PAGE_ACL_SEARCH		param_page_acl_search
    #define	PARAM_PAGE_BUILD_TEXT		param_page_build_text
    #define	PARAM_PAGE_CONFIG_INFO		param_page_config_info
    #define	PARAM_PAGE_FIND_ACL_SUBPAGES	param_page_find_acl_subpages
    #define	PARAM_PAGE_FIND_SUBPAGES_C	param_page_find_subpages_c
    #define	PARAM_PAGE_INDICES_TO_TEXT_C	param_page_indices_to_text_c
    #define	PARAM_PAGE_INFO			param_page_info
    #define	PARAM_PAGE_SEARCH_C		param_page_search_c
    #define	PARAM_PAGE_SELECT_C		param_page_select_c
    #define	PARAM_PAGE_SUBPAGE_MENU_TITLES	param_page_subpage_menu_titles
    #define	PARAM_PAGE_SUBPAGE_TEXT		param_page_subpage_text
    #define	PARAMETER_WINDOW		parameter_window
    #define	PARAMETER_WINDOW_INSERT_DEVICE	parameter_window_insert_device
    #define	PARAMETER_WINDOW_SETUP		parameter_window_setup
    #define	PARAMETER_WINDOW_SET_HEIGHT	parameter_window_set_height
    #define	PAUSE_C				pause_c
    #define	PERFORM_NETWORK_PING_C		perform_network_ping_c
    #define	PGM_DATA_STORAGE		pgm_data_storage
    #define	PGM_DATA_STORAGE_SHARED		pgm_data_storage_shared
    #define	PICK_ARBITRARY_SLOT_C		pick_arbitrary_slot_c
    #define	PID_PROCESS_EXISTS_C		pid_process_exists_c
    #define	PID_TO_PROCESS_NAME_C		pid_to_process_name_c
    #define	POPUP_MENU			popup_menu
    #define	POPUP_MENU_C			popup_menu_c
    #define	POST_MESSAGE			post_message
    #define	POST_MESSAGE_C			post_message_c
    #define	POST_MULTILINE_MESSAGE_C	post_multiline_message_c
    #define	PREPARE_MENU_ENTRIES		prepare_menu_entries
    #define	PRINTER_DEFAULT_QUEUE_C		printer_default_queue_c
    #define	PRINTER_MENU_C			printer_menu_c
    #define	PROCESS_GET_ACTIVE		process_get_active
    #define	PROCESS_INFO_BY_PID_C		process_info_by_pid_c
    #define	PROCESS_INFORMATION		process_information
    #define	PROCESS_NAME_TO_PID_C		process_name_to_pid_c
    #define	PROCESS_TYPE_AND_NUMBER		process_type_and_number
    #define	PROGRAM_HELP_AVAILABLE		program_help_available
    #define	QUEUE_DELETE			queue_delete
    #define	QUEUE_FREE			queue_free
    #define	QUEUE_INIT			queue_init
    #define	QUEUE_INSERT			queue_insert
    #define	QUEUE_IS_EMPTY			queue_is_empty
    #define	QUEUE_PEEK			queue_peek
    #define	QUEUE_REMOVE			queue_remove
//    #define	QUEUE_SIZE			queue_size
    #define	RDSPI_C				rdspi_c
    #define	RDSPR_C				rdspr_c
    #define	READ_C_STYLE_DEVICE_FILE	read_c_style_device_file
    #define	READ_DEVICE_DOWNLOAD_FILE_C	read_device_download_file_c
    #define	READ_DEVICE_FILE		read_device_file
    #define	READ_DEVICE_SPEC_FILE		read_device_spec_file
    #define	READ_GIF_IMAGE			read_gif_image
    #define	READ_GRAPHIC_FONT		read_graphic_font
    #define	READ_LOGGER_DEVICE_FILE		read_logger_device_file
    #define	READ_LX_FORMAT			read_lx_format
    #define	READ_WEB_PAGE_C			read_web_page_c
    #define	REMOVE_CURRENT_CONTEXT		remove_current_context
    #define	REMOVE_DEVICE_FROM_DOWNLOAD_LIST_C	remove_device_from_download_list_c
    #define	REPEAT_KBD_INTYPE		repeat_kbd_intype
    #define	RESLEX				reslex
    #define	RESTORE_TV_SCREEN		restore_tv_screen
    #define	RETRIEVE_VALIDATED_USER_NAME	retrieve_validated_user_name
    #define	ROUND_DOUBLE_C			round_double_c
    #define	SAVE_GRAPHIC_FONT_C		save_graphic_font_c
    #define	SAVE_TV_SCREEN			save_tv_screen
    #define	SAVLEX				savlex
    #define	SCREEN_COLUMN			screen_column
    #define	SCREEN_COLUMN_C			screen_column_c
    #define	SCREEN_ROW			screen_row
    #define	SCREEN_ROW_C			screen_row_c
    #define	SCRIPT_ACCEPT			script_accept
    #define	SCRIPT_AVAILABLE		script_available
    #define	SCRIPT_CHECK			script_check
    #define	SCRIPT_CREATE			script_create
    #define	SCRIPT_DELETE			script_delete
    #define	SCRIPT_GET_DIR			script_get_dir
    #define	SCRIPT_INFO			script_info
    #define	SCRIPT_LOCK			script_lock
    #define	SCRIPT_MENU			script_menu
    #define	SCRIPT_READ			script_read
    #define	SCRIPT_SELECT			script_select
    #define	SCRIPT_UNLOCK			script_unlock
    #define	SCRIPT_STATUS			script_status
    #define	SCRIPT_STOP			script_stop
    #define	SCRIPT_TERMINATED		script_terminated
/* #define	SCRIPT_WRITING			script_writing */   /* would redefine a macro having the same name */
    #define	SCROLL_MENU			scroll_menu
    #define	SCROLL_MENU_C			scroll_menu_c
    #define	SCROLL_MENU_HS_C		scroll_menu_hs_c
    #define	SDA_CASE_MENU_C			sda_case_menu_c
    #define	SDA_CASE_SELECT_REGISTER_C	sda_case_select_register_c
    #define	SDA_FILE_SELECT_REGISTER_C	sda_file_select_register_c
    #define	SDA_SUBCASE_SELECT_REGISTER_C	sda_subcase_select_register_c
    #define	SDA_USAGE_MENU_C		sda_usage_menu_c
    #define	SDA_USAGE_SELECT_REGISTER_C	sda_usage_select_register_c
    #define	SELECT_FIELD_DELETE_C		select_field_delete_c
    #define	SELECT_FIELD_DISABLE_C		select_field_disable_c
    #define	SELECT_FIELD_DISPLAY_INFO_C	select_field_display_info_c
    #define	SELECT_FIELD_ENABLE_C		select_field_enable_c
    #define	SELECT_FIELD_INIT_C		select_field_init_c
    #define	SELECT_FIELD_READ_C		select_field_read_c
    #define	SELECT_FIELD_REGISTER_C		select_field_register_c
    #define	SELECT_FIELD_SET_C		select_field_set_c
    #define	SELECT_FIELD_SET_BY_VALUE_C	select_field_set_by_value_c
    #define	SELECT_FIELD_TEXT_TO_ID_C	select_field_text_to_id_c
    #define	SELECT_FIELD_UPDATE_C		select_field_update_c
    #define	SET_BIT_MASK_STRINGS_C		set_bit_mask_strings_c
    #define	SET_CURRENT_CONTEXT		set_current_context
    #define	SET_ENUMERATED_STRING_ARRAY_C	set_enumerated_string_array_c
    #define	SET_ENUMERATED_STRINGS_C	set_enumerated_strings_c
    #define	SET_LOGICAL_STRINGS		set_logical_strings
    #define	SET_PROCESS_ALIAS		set_process_alias
    #define	SET_TIMER_REF			set_timer_ref
    #define	SET_VALIDATED_USER_NAME_TIMEOUT_C	set_validated_user_name_timeout_c
    #define	SHARED_LOG_PRINTF_C		shared_log_printf_c
    #define	SHARED_LOG_PRINTF_MULTILINE_C	shared_log_printf_multiline_c
    #define	SHFTWN				shftwn
    #define	SHIFT_STRING_LEFT_C		shift_string_left_c
    #define	SHOW_PROGRAM_INFO		show_program_info
    #define	SLIDER_CREATE_C			slider_create_c
    #define	SLIDER_DELETE_C			slider_delete_c
    #define	SLIDER_GET_VALUES_C		slider_get_values_c
    #define	SLIDER_READ_C			slider_read_c
    #define	SLIDER_SET_C			slider_set_c
    #define	SLIDER_SET_VALUES_C		slider_set_values_c
    #define	SLIDER_UPDATE_C			slider_update_c
    #define	SLIDER_WAS_MOVED		slider_was_moved
    #define	SLOT_IS_AVAILABLE_C		slot_is_available_c
    #define	SMART_MENU_C			smart_menu_c
    #define	SNAPSHOT_CHOOSE_PLOT		snapshot_choose_plot
    #define	SNP_EXPORT_DATA			snp_export_data
    #define	SNP_FILE_MENU_C			snp_file_menu_c
    #define	SNP_FILE_SEARCH			snp_file_search
    #define	SNP_READ_PLOT_SETUP_FILE_C	snp_read_plot_setup_file_c
    #define	SNP_SETUP			snp_setup
    #define	SNP_START			snp_start
    #define	SNP_START_PLOT_C		snp_start_plot_c
    #define	SNP_START_PLOT_FROM_FILE_C	snp_start_plot_from_file_c
    #define	SPAWN_ACL_SCRIPT_C		spawn_acl_script_c
    #define	SPAWN_SHOTLOG_COMMENT_C		spawn_shotlog_comment_c
    #define	SPAWN_SHOTLOG_IMAGE_ENTRY_C	spawn_shotlog_image_entry_c
    #define	SPAWN_SHOTLOG_INSERT_CHAPTER_C	spawn_shotlog_insert_chapter_c
    #define	SPAWN_SHOTLOG_INSERT_URL_C	spawn_shotlog_insert_url_c
    #define	SR_CATEGORY_MENU_C		sr_category_menu_c
    #define	SR_DATA_LENGTH_C		sr_data_length_c
    #define	SR_DIRECTORY_INFO_C		sr_directory_info_c
    #define	SR_DIRECTORY_INFO_BY_DATE_C	sr_directory_info_by_date_c
    #define	SR_DISCONNECT			sr_disconnect
    #define	SR_EXPAND_SAVE_ITEMS_C		sr_expand_save_items_c
    #define	SR_FILE_DEVICES_C		sr_file_devices_c
    #define	SR_FILE_HAS_DEVICE_C		sr_file_has_device_c
    #define	SR_FILE_HAS_DEVICES_C		sr_file_has_devices_c
    #define	SR_FILE_MENU_C			sr_file_menu_c
    #define	SR_FILE_SAVE_ERRORS_C		sr_file_save_errors_c
    #define	SR_FILE_SELECT_REGISTER_C	sr_file_select_register_c
    #define	SR_FIND_DEVICE_SAVE_LISTS_C	sr_find_device_save_lists_c
    #define	SR_GET_ARRAY_DEVICE_C		sr_get_array_device_c
    #define	SR_GET_DEVICE_C			sr_get_device_c
    #define	SR_GET_DEVICE_LIST		sr_get_device_list
    #define	SR_GET_DEVICE_OVER_TIME_C	sr_get_device_over_time_c
    #define	SR_GET_DEVICE_OVER_TIME_RAW_C	sr_get_device_over_time_raw_c
    #define	SR_GET_DEVICE_RAW_C		sr_get_device_raw_c
    #define	SR_GET_FILE_INDICES_C		sr_get_file_indices_c
    #define	SR_GET_LEVEL_1_INFO		sr_get_level_1_info
    #define	SR_GET_LEVEL_2_INFO		sr_get_level_2_info
    #define	SR_GET_SAVE_ERROR_C		sr_get_save_error_c
    #define	SR_GET_SNAPSHOT_C		sr_get_snapshot_c
    #define	SR_GET_STATUS_TEXT_OVER_TIME_C	sr_get_status_text_over_time_c
    #define	SR_IS_ON_C			sr_is_on_c
    #define	SR_IS_POSITIVE_C		sr_is_positive_c
    #define	SR_IS_RAMPING_C			sr_is_ramping_c
    #define	SR_MAKE_SAVE_FILE_C		sr_make_save_file_c
    #define	SR_MAXIMUM_FILE			sr_maximum_file
    #define	SR_NEWEST_FILE_C		sr_newest_file_c
    #define	SR_OLDEST_FILE_C		sr_oldest_file_c
    #define	SR_READ_DEVICE_C		sr_read_device_c
    #define	SR_READ_SNAPSHOT_C		sr_read_snapshot_c
    #define	SR_RESTORE_DEVICE_C		sr_restore_device_c
    #define	SR_SAVE_LIST_DEVICES_FROM_NODE_C	sr_save_list_devices_from_node_c
    #define	SR_SAVE_LIST_NAME_TO_DEVICES_C	sr_save_list_name_to_devices_c
    #define	SR_SAVE_LIST_NAMES		sr_save_list_names
    #define	SR_SAVE_MASK_TO_PROPERTIES_C	sr_save_mask_to_properties_c
    #define	SR_SAVE_STATUS			sr_save_status
    #define	SR_SDA_ALL_CASE_TIMES_C		sr_sda_all_case_times_c
    #define	SR_SDA_CASES_PRESENT_C		sr_sda_cases_present_c
    #define	SR_SDA_CASE_TIMES_C		sr_sda_case_times_c
    #define	SR_SDA_CONFIG_CASE_INFO_C	sr_sda_config_case_info_c
    #define	SR_SDA_CONFIG_DEVICE_C		sr_sda_config_device_c
    #define	SR_SDA_CONFIG_DEVICE_LIST_C	sr_sda_config_device_list_c
    #define	SR_SDA_CONFIG_DEVICES_C		sr_sda_config_devices_c
    #define	SR_SDA_CONFIG_FIND_DEVICE_C	sr_sda_config_find_device_c
    #define	SR_SDA_CONFIG_FIND_WILD_C	sr_sda_config_find_wild_c
    #define	SR_SDA_DATA_LENGTHS_C		sr_sda_data_lengths_c
    #define	SR_SDA_FILE_NUMBER_C		sr_sda_file_number_c
    #define	SR_SDA_GET_DEVICE_OVER_TIME_C	sr_sda_get_device_over_time_c
    #define	SR_SDA_GET_DEVICE_OVER_TIME_RAW_C	sr_sda_get_device_over_time_raw_c
    #define	SR_SDA_GET_FILE_INDICES_C	sr_sda_get_file_indices_c
    #define	SR_SDA_GET_FTP_LIST_C		sr_sda_get_ftp_list_c
    #define	SR_SDA_GET_FTP_NUM_POINTS_LIST_C	sr_sda_get_ftp_num_points_list_c
    #define	SR_SDA_GET_RAW_FTP_LIST_C	sr_sda_get_raw_ftp_list_c
    #define	SR_SDA_GET_RAW_SNAPSHOT_LIST_C	sr_sda_get_raw_snapshot_list_c
    #define	SR_SDA_GET_SNAPSHOT_LIST_C	sr_sda_get_snapshot_list_c
    #define	SR_SDA_GET_SNAP_NUM_POINTS_LIST_C	sr_sda_get_snap_num_points_list_c
    #define	SR_SDA_GET_STATUS_TEXT_OVER_TIME_C	sr_sda_get_status_text_over_time_c
    #define	SR_SDA_NUM_SUBCASES_C		sr_sda_num_subcases_c
    #define	SR_SDA_SELECT_DIRECTORY_C	sr_sda_select_directory_c
    #define	SR_SDA_SET_DIRECTORY_C		sr_sda_set_directory_c
    #define	SR_SDA_SNAPSHOT_STATS_C		sr_sda_snapshot_stats_c
    #define	SR_SDA_STORE_NUMBER_C		sr_sda_store_number_c
    #define	SR_SDA_STORE_TIMES_C		sr_sda_store_times_c
    #define	SR_SDA_SUBCASES_PRESENT_C	sr_sda_subcases_present_c
    #define	SR_SET_DEVICE_C			sr_set_device_c
    #define	SR_SET_RAW_C			sr_set_raw_c
    #define	SR_SET_SOURCE_C			sr_set_source_c
    #define	SR_SNAP_ACTIVE_DEVICES_C	sr_snap_active_devices_c
    #define	SR_SNAP_DATE_TO_FILE_INFO_C	sr_snap_date_to_file_info_c
    #define	SR_SNAP_DIRECTORY_INFO_C	sr_snap_directory_info_c
    #define	SR_SNAPSHOT_HEADER_C		sr_snapshot_header_c
    #define	SR_SNAPSHOT_INFO_C		sr_snapshot_info_c
    #define	SR_SNAPSHOT_INFO_LIST_C		sr_snapshot_info_list_c
    #define	SR_STATUS_TEXT_C		sr_status_text_c
    #define	SR_SYSTEM_NAMES			sr_system_names
    #define	SR_USER_SAVE_LIST_DEVICES_FROM_NODE_C	sr_user_save_list_devices_from_node_c
    #define	SSFNDX				ssfndx
    #define	STACK_DELETE			stack_delete
    #define	STACK_FREE			stack_free
    #define	STACK_INIT			stack_init
    #define	STACK_IS_EMPTY			stack_is_empty
    #define	STACK_PEEK			stack_peek
    #define	STACK_POP			stack_pop
    #define	STACK_PUSH			stack_push
    #define	STATE_FTD_INDEX_TO_DEVICE_C	state_ftd_index_to_device_c
    #define	STR_BUILD_TEXT_BLOCK_C		str_build_text_block_c
    #define	STR_CASE_C			str_case_c
    #define	STR_CHARACTER_COUNT_C		str_character_count_c
    #define	STR_COMPARE_DEVICE_NAMES_C	str_compare_device_names_c
    #define	STR_COMPARE_NOCASE		str_compare_nocase
    #define	STR_COMPARE_N_NOCASE_C		str_compare_n_nocase_c
    #define	STR_COMPARE_USER_NAMES		str_compare_user_names
    #define	STR_CONCATENATE_C		str_concatenate_c
    #define	STR_COPY_ARRAY_OF_STRINGS_C	str_copy_array_of_strings_c
    #define	STR_DELETE_CHAR_C		str_delete_char_c
    #define	STR_DELIMITED_LENGTH_C		str_delimited_length_c
/*    #define	STR_ESCAPE_C			str_escape_c */
    #define	STR_ESCAPE_QUOTES_IN_SQL_STRING_C	str_escape_quotes_in_sql_string_c
    #define	STR_ESCAPE_SET_C		str_escape_set_c
    #define	STR_EXPAND_TABS_C		str_expand_tabs_c
    #define	STR_EXTRACT_DEVICE_NAMES_C	str_extract_device_names_c
    #define	STR_EXTRACT_LINE_C		str_extract_line_c
    #define	STR_FIND_CHARACTER_C		str_find_character_c
    #define	STR_FIND_CHARACTER_SET_C	str_find_character_set_c
    #define	STR_FIND_FIRST_C		str_find_first_c
    #define	STR_FIND_LAST_STRING_C		str_find_last_string_c
    #define	STR_FIND_NOT_IN_CHARACTER_SET_C	str_find_not_in_character_set_c
    #define	STR_FIND_QUOTE_C		str_find_quote_c
    #define	STR_FIND_STRING_C		str_find_string_c
    #define	STR_FIND_TAG_C			str_find_tag_c
    #define	STR_FREE_ARRAY_OF_STRINGS_C	str_free_array_of_strings_c
    #define	STR_GET_BRACKETED_C		str_get_bracketed_c
    #define	STR_GET_FIRST_C			str_get_first_c
    #define	STR_GET_TAGGED_VALUE_C		str_get_tagged_value_c
    #define	STR_GET_TAGGED_VALUE_ALLOC_C	str_get_tagged_value_alloc_c
    #define	STR_GET_VALUE_C			str_get_value_c
    #define	STR_INSERT_CHAR_C		str_insert_char_c
    #define	STR_INSERT_STRING_C		str_insert_string_c
    #define	STR_INSERT_TERMINATOR_C		str_insert_terminator_c
    #define	STR_IS_ALPHABETIC_C		str_is_alphabetic_c
    #define	STR_IS_ALPHANUMERIC_C		str_is_alphanumeric_c
    #define	STR_IS_BINARY_STRING_C		str_is_binary_string_c
    #define	STR_IS_BLANK_C			str_is_blank_c
    #define	STR_IS_BRACKETED_C		str_is_bracketed_c
    #define	STR_IS_ENCLOSED_IN_PARENTHESES_C	str_is_enclosed_in_parentheses_c
    #define	STR_IS_FILLED_WITH_CHAR_C	str_is_filled_with_char_c
    #define	STR_IS_FLOAT_STRING_C		str_is_float_string_c
    #define	STR_IS_HEX_C			str_is_hex_c
    #define	STR_IS_INTEGER_STRING_C		str_is_integer_string_c
    #define	STR_IS_LOWER_CASE_C		str_is_lower_case_c
    #define	STR_IS_NUMERIC_C		str_is_numeric_c
    #define	STR_IS_OCTAL_STRING_C		str_is_octal_string_c
    #define	STR_IS_PRINTABLE_C		str_is_printable_c
    #define	STR_IS_QUOTED_C			str_is_quoted_c
    #define	STR_IS_RAD50_C			str_is_rad50_c
    #define	STR_IS_UPPER_CASE_C		str_is_upper_case_c
    #define	STR_IS_WHITE_SPACE_C		str_is_white_space_c
    #define	STR_JUSTIFY_C			str_justify_c
    #define	STR_LENGTH_C			str_length_c
    #define	STR_LINE_INFO_C			str_line_info_c
    #define	STR_MAKE_PRINTABLE_C		str_make_printable_c
    #define	STR_NONBLANK_LENGTH_C		str_nonblank_length_c
    #define	STR_NUM_LINES_C			str_num_lines_c
    #define	STR_NUM_NONBLANK_C		str_num_nonblank_c
    #define	STR_PAD_C			str_pad_c
    #define	STR_PRINTABLE_LENGTH_C		str_printable_length_c
    #define	STR_QUOTE_STRING_C		str_quote_string_c
    #define	STR_REGEXP_COMPARE		str_regexp_compare
    #define	STR_REGEXP_COMPARE_NOCASE	str_regexp_compare_nocase
    #define	STR_REGEXP_COMPILE_PATTERN_C	str_regexp_compile_pattern_c
    #define	STR_REGEXP_FIND_STRING_C	str_regexp_find_string_c
    #define	STR_REGEXP_FREE_PATTERN		str_regexp_free_pattern
    #define	STR_REGEXP_GET_VALUE_C		str_regexp_get_value_c
    #define	STR_REGEXP_INSERT_STRING_C	str_regexp_insert_string_c
    #define	STR_REGEXP_REMOVE_STRING_C	str_regexp_remove_string_c
    #define	STR_REGEXP_REPLACE_STRING_C	str_regexp_replace_string_c
    #define	STR_REGEXP_SPLIT_C		str_regexp_split_c
    #define	STR_REMOVE_BRACKETS_C		str_remove_brackets_c
    #define	STR_REMOVE_CHAR_SET_C		str_remove_char_set_c
    #define	STR_REMOVE_CHARACTER_C		str_remove_character_c
    #define	STR_REMOVE_EOL_CHARACTERS_C	str_remove_eol_characters_c
    #define	STR_REMOVE_HTML_TAGS_C		str_remove_html_tags_c
    #define	STR_REMOVE_NONPRINTABLES_C	str_remove_nonprintables_c
    #define	STR_REMOVE_SPACES_C		str_remove_spaces_c
    #define	STR_REMOVE_STRING_C		str_remove_string_c
    #define	STR_REPLACE			str_replace
    #define	STR_REPLACE_BRACKETED_C		str_replace_bracketed_c
    #define	STR_REPLACE_CHAR_C		str_replace_char_c
    #define	STR_REPLACE_CHARACTER_C		str_replace_character_c
    #define	STR_REPLACE_CHAR_SET_C		str_replace_char_set_c
    #define	STR_REPLACE_CHARACTER_SET_C	str_replace_character_set_c
    #define	STR_REPLACE_CHARACTERS_WITH_STRING_C	str_replace_characters_with_string_c
    #define	STR_REPLACE_CHARACTERS_WITH_STRINGS_C	str_replace_characters_with_strings_c
    #define	STR_REPLACE_STRING_C		str_replace_string_c
    #define	STR_SHIFT_C			str_shift_c
    #define	STR_SPLIT_C			str_split_c
    #define	STR_SPLIT_BY_CHAR_SET_C		str_split_by_char_set_c
    #define	STR_SPLIT_BY_CHAR_SET_NONSTATIC_C	str_split_by_char_set_nonstatic_c
    #define	STR_STARTS_WITH_C		str_starts_with_c
    #define	STR_STARTS_WITH_CHAR_TYPE_C	str_starts_with_char_type_c
    #define	STR_STRING_COUNT_C		str_string_count_c
    #define	STR_STRIP_BRACKETSS_C		str_strip_bracketss_c
    #define	STR_STRIP_PARENTHESES_C		str_strip_parentheses_c
    #define	STR_STRIP_QUOTES_C		str_strip_quotes_c
    #define	STR_TAIL_C			str_tail_c
    #define	STR_TRANSLATE_CHARACTERS_C	str_translate_characters_c
    #define	STR_TRIM_C			str_trim_c
    #define	STR_TRIM_CHARACTERS_C		str_trim_characters_c
    #define	STR_UNESCAPE_C			str_unescape_c
    #define	STR_WMATCH_SEARCH		str_wmatch_search
    #define	STR_WORD_COUNT_C		str_word_count_c
    #define	STRING_TO_DATA_EVENT		string_to_data_event
    #define	STRLEN_XCHAR			strlen_xchar
    #define	STRNCMX				strncmx
    #define	STRNCPX				strncpx
    #define	STRSTR_NOCASE			strstr_nocase
    #define	STRUCTURE_BUILD_NAME		structure_build_name
    #define	STRUCTURE_CACHE			structure_cache
    #define	STRUCTURE_CONVERT_ENUM_VALUE_C	structure_convert_enum_value_c
    #define	STRUCTURE_CONVERT_FLOATS_C	structure_convert_floats_c
    #define	STRUCTURE_EDIT_C		structure_edit_c
    #define	STRUCTURE_FIELD_DATA		structure_field_data
    #define	STRUCTURE_FIELD_INFO		structure_field_info
    #define	STRUCTURE_GET_DEFAULTS_C	structure_get_defaults_c
    #define	STRUCTURE_GET_DESCRIPTION	structure_get_description
    #define	STRUCTURE_GET_NAMES_C		structure_get_names_c
    #define	STRUCTURE_MENU_C		structure_menu_c
    #define	STRUCTURE_NAME_EXISTS		structure_name_exists
    #define	STRUCTURE_PARSE_NAME		structure_parse_name
    #define	STRUCTURE_SIZE_C		structure_size_c
    #define	STRX_BUILD_C			strx_build_c
    #define	STRX_COPY_FROM_STRING_C		strx_copy_from_string_c
    #define	STRX_COPY_TO_STRING_C		strx_copy_to_string_c
    #define	STRX_DELIMITED_LENGTH_C		strx_delimited_length_c
    #define	STRX_FILL_C			strx_fill_c
    #define	STRX_FILL_COLOR_C		strx_fill_color_c
    #define	STRX_FIND_CHARACTER_C		strx_find_character_c
    #define	STRX_FIND_FIRST_C		strx_find_first_c
    #define	STRX_IS_BLANK_C			strx_is_blank_c
    #define	STRX_LENGTH_C			strx_length_c
    #define	STRX_NONBLANK_LENGTH_C		strx_nonblank_length_c
    #define	STRX_REPLACE_CHAR_SET_C		strx_replace_char_set_c
    #define	STRX_TO_STRING_AND_COLORS_C	strx_to_string_and_colors_c
    #define	SWITCH_CREATE_C			switch_create_c
    #define	SWITCH_CREATE_RADIO_C		switch_create_radio_c
    #define	SWITCH_DELETE_C			switch_delete_c
    #define	SWITCH_DISABLE_C		switch_disable_c
    #define	SWITCH_ENABLE_C			switch_enable_c
    #define	SWITCH_PRESSED			switch_pressed
    #define	SWITCH_READ_C			switch_read_c
    #define	SWITCH_SET_FLASH_C		switch_set_flash_c
    #define	SWITCH_SET_STATE_C		switch_set_state_c
    #define	SWITCH_TEXT_TO_ID_C		switch_text_to_id_c
    #define	SWITCH_WINDOW_DELETE_C		switch_window_delete_c
    #define	SYNOPTIC_FIND_DEVICE_C		synoptic_find_device_c
    #define	SYNOPTIC_GET_DEVICES		synoptic_get_devices
    #define	TCP_CONNECT			tcp_connect
    #define	TCP_CONNECT_BY_HANDLE		tcp_connect_by_handle
    #define	TCP_DISCONNECT			tcp_disconnect
    #define	TCP_DISCONNECT_BY_HANDLE	tcp_disconnect_by_handle
    #define	TCP_RECEIVE			tcp_receive
    #define	TCP_RECEIVE_BY_HANDLE		tcp_receive_by_handle
    #define	TCP_SEND			tcp_send
    #define	TCP_SEND_BY_HANDLE		tcp_send_by_handle
    #define	TCP_SEND_WAIT			tcp_send_wait
    #define	TCP_SEND_WAIT_BY_HANDLE		tcp_send_wait_by_handle
    #define	TEXT_BUFFER_ADD			text_buffer_add
    #define	TEXT_BUFFER_DISPLAY_C		text_buffer_display_c
    #define	TEXT_BUFFER_INIT_C		text_buffer_init_c
    #define	TEXT_CURSOR_END			text_cursor_end
    #define	TEXT_CURSOR_ERASE		text_cursor_erase
    #define	TEXT_CURSOR_INIT_C		text_cursor_init_c
    #define	TEXT_CURSOR_IS_ACTIVE		text_cursor_is_active
    #define	TEXT_CURSOR_SUSPEND_C		text_cursor_suspend_c
    #define	TEXT_EDIT_DIALOG_C		text_edit_dialog_c
    #define	TEXT_EDIT_WINDOW_C		text_edit_window_c
    #define	TEXT_ERASE_LINE_C		text_erase_line_c
    #define	TEXT_READ_CURSOR_C		text_read_cursor_c
    #define	TEXT_RECOLOR_FIELD_C		text_recolor_field_c
    #define	TEXT_RECOLOR_LINE_C		text_recolor_line_c
    #define	TEXT_SET_CURSOR_C		text_set_cursor_c
    #define	TEXT_WINDOW			text_window
    #define	TEXT_WINDOW_C			text_window_c
    #define	TEXT_WINDOW_LAST_CREATED	text_window_last_created
    #define	TEXT_WINDOW_REQUEST_DELETE_C	text_window_request_delete_c
    #define	THIS_APPLICATION_KEEPER_EMAIL_C	this_application_keeper_email_c
    #define	THIS_APPLICATION_KEEPER_INFO_C	this_application_keeper_info_c
    #define	TIMMES				timmes
    #define	TIMMES_C			timmes_c
    #define	TOGGLE_SWITCH_CREATE_C		toggle_switch_create_c
    #define	TOGGLE_SWITCH_DELETE		toggle_switch_delete
    #define	TOGGLE_SWITCH_DISABLE		toggle_switch_disable
    #define	TOGGLE_SWITCH_ENABLE		toggle_switch_enable
    #define	TOGGLE_SWITCH_MATRIX_C		toggle_switch_matrix_c
    #define	TOGGLE_SWITCH_READ		toggle_switch_read
    #define	TOGGLE_SWITCH_SET_C		toggle_switch_set_c
    #define	TOGGLE_SWITCH_SET_ID_TYPE_C	toggle_switch_set_id_type_c
    #define	TOGGLE_SWITCH_WINDOW_DELETE_C	toggle_switch_window_delete_c
    #define	TVBOX				tvbox
    #define	TVBOX_C				tvbox_c
    #define	TVCOLORS			tvcolors
    #define	TVHLIN				tvhlin
    #define	TVHLIN_C			tvhlin_c
    #define	TVMESS				tvmess
    #define	TVMESS_C			tvmess_c
    #define	TVSCRS_C			tvscrs_c
    #define	TVVLIN				tvvlin
    #define	TVVLIN_C			tvvlin_c
/* #define	TV_COLORS			tv_colors */    /* would redefine a macro having the same name */
    #define	USER_PASSWORD			user_password
    #define	USER_VALIDATION_C		user_validation_c
    #define	UTILITY_WINDOW_C		utility_window_c
    #define	UTILITY_WINDOW_DISABLE		utility_window_disable
    #define	UTILITY_WINDOW_ENABLE		utility_window_enable
    #define	UTILITY_WINDOW_INIT		utility_window_init
    #define	UTILITY_WINDOW_INIT_C		utility_window_init_c
    #define	VALIDATE_CONSOLE_LOGIN_INFO	validate_console_login_info
    #define	WAIT_FOR_INT			wait_for_int
    #define	WAIT_FOR_PREDICTED_EVENT_C	wait_for_predicted_event_c
    #define	WAIT_FOR_SA_STARTUP		wait_for_sa_startup
    #define	WAIT_FOR_SA_STARTUP_C		wait_for_sa_startup_c
    #define	WAIT_FOR_STATE_C		wait_for_state_c
    #define	WAITEV				waitev
    #define	WAITEV_C			waitev_c
    #define	WAITEV_FORCE_ABORT_WINDOW_C	waitev_force_abort_window_c
    #define	WCONSTRUCT_C			wconstruct_c
    #define	WDISPLAY_VALUE			wdisplay_value
    #define	WDISPLAY_VALUE_C		wdisplay_value_c
    #define	WINDOW_ACCEPT_INPUT_FIELD_C	window_accept_input_field_c
    #define	WINDOW_ACCEPT_INPUT_REGION_C	window_accept_input_region_c
    #define	WINDOW_ADD_CALLBACK_C		window_add_callback_c
    #define	WINDOW_ALIGN_TO_WINDOW_C	window_align_to_window_c
    #define	WINDOW_ALIGN_TOP_ROW_TO_WINDOW_C	window_align_top_row_to_window_c
    #define	WINDOW_BACKGROUND_COLOR_C	window_background_color_c
    #define	WINDOW_BLANK			window_blank
    #define	WINDOW_BLANK_C			window_blank_c
    #define	WINDOW_BORDER_BUTTON_C		window_border_button_c
    #define	WINDOW_BOX_C			window_box_c
    #define	WINDOW_BUTTON_CREATE_C		window_button_create_c
    #define	WINDOW_BUTTON_DELETE_C		window_button_delete_c
    #define	WINDOW_BUTTON_DISABLE_C		window_button_disable_c
    #define	WINDOW_BUTTON_ENABLE_C		window_button_enable_c
    #define	WINDOW_BUTTON_HIGHLIGHT_C	window_button_highlight_c
    #define	WINDOW_BUTTON_SET_ID_TYPE_C	window_button_set_id_type_c
    #define	WINDOW_BUTTON_TEXT_TO_ID_C	window_button_text_to_id_c
    #define	WINDOW_BUTTON_UNHIGHLIGHT_C	window_button_unhighlight_c
    #define	WINDOW_CALC_TOP_ROW_C		window_calc_top_row_c
    #define	WINDOW_CALLBACK_INIT		window_callback_init
    #define	WINDOW_CALLBACK_TERM		window_callback_term
    #define	WINDOW_CENTER_TEXT		window_center_text
    #define	WINDOW_CENTER_TEXT_C		window_center_text_c
    #define	WINDOW_CHANGE_CASE_C		window_change_case_c
    #define	WINDOW_CLOSE_BUTTON_C		window_close_button_c
    #define	WINDOW_COLUMN			window_column
    #define	WINDOW_COLUMN_C			window_column_c
    #define	WINDOW_CONSTRUCT		window_construct
    #define	WINDOW_CONSTRUCT_C		window_construct_c
    #define	WINDOW_COORDINATE_LIMITS_C	window_coordinate_limits_c
    #define	WINDOW_COORDS			window_coords
    #define	WINDOW_COORDS_C			window_coords_c
    #define	WINDOW_COPY			window_copy
    #define	WINDOW_COPY_C			window_copy_c
    #define	WINDOW_CREATE			window_create
    #define	WINDOW_CREATE_C			window_create_c
    #define	WINDOW_CURRENT_COLUMN_C		window_current_column_c
    #define	WINDOW_CURRENT_OPERATION_INFO	window_current_operation_info
    #define	WINDOW_CURRENT_ROW_C		window_current_row_c
    #define	WINDOW_DELETE			window_delete
    #define	WINDOW_DELETE_C			window_delete_c
    #define	WINDOW_DELETE_BORDER_BUTTON_C	window_delete_border_button_c
    #define	WINDOW_DELETE_CHAR_C		window_delete_char_c
    #define	WINDOW_DELETE_LINE_C		window_delete_line_c
    #define	WINDOW_DELETE_SCROLL_BUFFER_C	window_delete_scroll_buffer_c
    #define	WINDOW_DISABLE_INTERRUPTS	window_disable_interrupts
    #define	WINDOW_DISABLE_LAST_IO_UPDATE	window_disable_last_io_update
    #define	WINDOW_DISABLE_MOVE_C		window_disable_move_c
    #define	WINDOW_DISABLE_OCCLUDED_INTS_C	window_disable_occluded_ints_c
    #define	WINDOW_DISABLE_RESIZE_C		window_disable_resize_c
    #define	WINDOW_DISABLE_RESTACK_C	window_disable_restack_c
    #define	WINDOW_DISABLE_SCROLL_IO_C	window_disable_scroll_io_c
    #define	WINDOW_DISABLE_SCROLL_SAVE_C	window_disable_scroll_save_c
    #define	WINDOW_DISABLE_SCROLL_SLIDER_C	window_disable_scroll_slider_c
    #define	WINDOW_DISABLE_SCROLL_STATUS_C	window_disable_scroll_status_c
    #define	WINDOW_DISABLE_WINDOW_CALLBACKS	window_disable_window_callbacks
    #define	WINDOW_DISPLAY_VALUE		window_display_value
    #define	WINDOW_DISPLAY_VALUE_C		window_display_value_c
    #define	WINDOW_DOWN_CASE_C		window_down_case_c
    #define	WINDOW_DRAW_CHAR_C		window_draw_char_c
    #define	WINDOW_EDIT_C			window_edit_c
    #define	WINDOW_EDIT_CHANGE_SETUP_C	window_edit_change_setup_c
    #define	WINDOW_EDIT_DISABLE_C		window_edit_disable_c
    #define	WINDOW_EDIT_ENABLE_C		window_edit_enable_c
    #define	WINDOW_EDIT_HELP_C		window_edit_help_c
    #define	WINDOW_EDIT_INSERT_LINE_C	window_edit_insert_line_c
    #define	WINDOW_EDIT_READ_SETUP_C	window_edit_read_setup_c
    #define	WINDOW_EDIT_TERM_C		window_edit_term_c
    #define	WINDOW_ENABLE_INTERRUPTS	window_enable_interrupts
    #define	WINDOW_ENABLE_LAST_IO_UPDATE	window_enable_last_io_update
    #define	WINDOW_ENABLE_MOVE_C		window_enable_move_c
    #define	WINDOW_ENABLE_OCCLUDED_INTS_C	window_enable_occluded_ints_c
    #define	WINDOW_ENABLE_RESIZE_C		window_enable_resize_c
    #define	WINDOW_ENABLE_RESTACK_C		window_enable_restack_c
    #define	WINDOW_ENABLE_SCROLL_IO_C	window_enable_scroll_io_c
    #define	WINDOW_ENABLE_SCROLL_SAVE_C	window_enable_scroll_save_c
    #define	WINDOW_ENABLE_SCROLL_SLIDER_C	window_enable_scroll_slider_c
    #define	WINDOW_ENABLE_SCROLL_STATUS_C	window_enable_scroll_status_c
    #define	WINDOW_ENABLE_WINDOW_CALLBACKS	window_enable_window_callbacks
    #define	WINDOW_END_INTYPE_LOOP		window_end_intype_loop
    #define	WINDOW_ENTRY_TO_ROW_C		window_entry_to_row_c
    #define	WINDOW_ERASE_C			window_erase_c
    #define	WINDOW_ERASE_LINE		window_erase_line
    #define	WINDOW_ERASE_LINE_C		window_erase_line_c
    #define	WINDOW_ERASE_TO_EOL_C		window_erase_to_eol_c
    #define	WINDOW_ERASE_TO_EOW_C		window_erase_to_eow_c
    #define	WINDOW_EXISTS_C			window_exists_c
    #define	WINDOW_EXPOSED_REGION_C		window_exposed_region_c
    #define	WINDOW_EXTREMA_ROW_NUMBERS_C	window_extrema_row_numbers_c
    #define	WINDOW_FIELD_ADD_CALLBACK_C	window_field_add_callback_c
    #define	WINDOW_FIELD_ALTER_INTERRUPT_C	window_field_alter_interrupt_c
    #define	WINDOW_FIELD_CONTAINS_TEXT_COLOR_C	window_field_contains_text_color_c
    #define	WINDOW_FIELD_CREATE_C		window_field_create_c
    #define	WINDOW_FIELD_DELETE_C		window_field_delete_c
    #define	WINDOW_FIELD_DELETE_CALLBACK_C	window_field_delete_callback_c
    #define	WINDOW_FIELD_DISABLE_C		window_field_disable_c
    #define	WINDOW_FIELD_DISABLE_ALL	window_field_disable_all
    #define	WINDOW_FIELD_DISABLE_ALL_OCCLUDED	window_field_disable_all_occluded
    #define	WINDOW_FIELD_ENABLE_C		window_field_enable_c
    #define	WINDOW_FIELD_ENABLE_ALL		window_field_enable_all
    #define	WINDOW_FIELD_ENABLE_ALL_OCCLUDED	window_field_enable_all_occluded
    #define	WINDOW_FIELD_HAS_BEEN_TYPED_IN_C	window_field_has_been_typed_in_c
    #define	WINDOW_FIELD_INIT_C		window_field_init_c
    #define	WINDOW_FIELD_RESTORE_ALL_OCCLUDED	window_field_restore_all_occluded
    #define	WINDOW_FIND_DELETE_C		window_find_delete_c
    #define	WINDOW_FIND_INIT_C		window_find_init_c
    #define	WINDOW_FIND_TEXT_C		window_find_text_c
    #define	WINDOW_FIND_TEXT_CALLBACK_C	window_find_text_callback_c
    #define	WINDOW_FIT_WINDOW_C		window_fit_window_c
    #define	WINDOW_FLUSH_TEXT_REGION_C	window_flush_text_region_c
    #define	WINDOW_FLUSH_TYPED_TEXT_C	window_flush_typed_text_c
    #define	WINDOW_FORCE_TO_FRONT		window_force_to_front
    #define	WINDOW_FREEZE_C			window_freeze_c
    #define	WINDOW_GAP_C			window_gap_c
    #define	WINDOW_GAP_LENGTH_C		window_gap_length_c
    #define	WINDOW_GET_ID_LIST		window_get_id_list
    #define	WINDOW_GET_PARAMETER_C		window_get_parameter_c
    #define	WINDOW_GOTO_LINE_DELETE_C	window_goto_line_delete_c
    #define	WINDOW_GOTO_LINE_INIT_C		window_goto_line_init_c
    #define	WINDOW_GOTO_LINE_NUMBER_C	window_goto_line_number_c
    #define	WINDOW_HANDLE_TO_ID		window_handle_to_id
    #define	WINDOW_HAS_FEATURE_C		window_has_feature_c
    #define	WINDOW_HAS_HELP_C		window_has_help_c
    #define	WINDOW_HAS_MENU_BAR_C		window_has_menu_bar_c
    #define	WINDOW_HAS_SWITCH_C		window_has_switch_c
    #define	WINDOW_HILITE_C			window_hilite_c
    #define	WINDOW_HILITE_LINE_C		window_hilite_line_c
    #define	WINDOW_HLINE_C			window_hline_c
    #define	WINDOW_HOLE_C			window_hole_c
    #define	WINDOW_HSCROLL_C		window_hscroll_c
    #define	WINDOW_HSCROLL_OFFSET_C		window_hscroll_offset_c
    #define	WINDOW_HSCROLL_PAGE_C		window_hscroll_page_c
    #define	WINDOW_INIT			window_init
    #define	WINDOW_INIT_SEQUENTIAL_WRITE_C	window_init_sequential_write_c
    #define	WINDOW_INPUT_VALUE		window_input_value
    #define	WINDOW_INPUT_VALUE_C		window_input_value_c
    #define	WINDOW_INSERT_CHAR_C		window_insert_char_c
    #define	WINDOW_INSERT_LINE_C		window_insert_line_c
    #define	WINDOW_INTERRUPT_CURSOR		window_interrupt_cursor
    #define	WINDOW_INTERRUPT_CURSOR_C	window_interrupt_cursor_c
    #define	WINDOW_INTERSECT_C		window_intersect_c
    #define	WINDOW_INTYPE			window_intype
    #define	WINDOW_INTYPE_AGAIN		window_intype_again
    #define	WINDOW_INTYPE_LOOP_C		window_intype_loop_c
    #define	WINDOW_INTYPE_PUT_DATA_C	window_intype_put_data_c
    #define	WINDOW_IS_FROZEN_C		window_is_frozen_c
    #define	WINDOW_IS_IN_SCROLL_BUFFER_C	window_is_in_scroll_buffer_c
    #define	WINDOW_IS_OCCLUDING_C		window_is_occluding_c
    #define	WINDOW_JUSTIFY_TEXT_C		window_justify_text_c
    #define	WINDOW_KEY_CASE_C		window_key_case_c
    #define	WINDOW_KEY_COLOR_C		window_key_color_c
    #define	WINDOW_KEY_ECHO_C		window_key_echo_c
    #define	WINDOW_LAST_CREATED		window_last_created
    #define	WINDOW_LAST_DELETED		window_last_deleted
    #define	WINDOW_LAST_IO_LOCATION_C	window_last_io_location_c
    #define	WINDOW_LAST_SCROLL		window_last_scroll
    #define	WINDOW_LAST_HORIZONTAL_SCROLL	window_last_horizontal_scroll
    #define	WINDOW_MANAGER_INITIALIZED	window_manager_initialized
    #define	WINDOW_MENU_BAR_CREATE_C	window_menu_bar_create_c
    #define	WINDOW_MENU_BAR_DELETE_C	window_menu_bar_delete_c
    #define	WINDOW_MENU_BAR_UPDATE_C	window_menu_bar_update_c
    #define	WINDOW_MENU_BUTTON_C		window_menu_button_c
    #define	WINDOW_MESSAGE_CREATE_C		window_message_create_c
    #define	WINDOW_MESSAGE_DELETE_C		window_message_delete_c
    #define	WINDOW_MESSAGE_UPDATE_C		window_message_update_c
    #define	WINDOW_MOVE			window_move
    #define	WINDOW_MOVE_DISABLE		window_move_disable
    #define	WINDOW_MOVE_ENABLE		window_move_enable
    #define	WINDOW_NEXT_SCROLL_ROW_C	window_next_scroll_row_c
    #define	WINDOW_NUM_POPUP_WINDOWS	window_num_popup_windows
    #define	WINDOW_OCCLUDED_C		window_occluded_c
    #define	WINDOW_OCCLUDED_BY_C		window_occluded_by_c
    #define	WINDOW_OCCLUDING_C		window_occluding_c
    #define	WINDOW_PHYSICAL_COLUMN_C	window_physical_column_c
    #define	WINDOW_PRINTF_C			window_printf_c
    #define	WINDOW_PRINTF_AT_C		window_printf_at_c
    #define	WINDOW_PRINTF_NOSCROLL_C	window_printf_noscroll_c
    #define	WINDOW_QUERY_SCROLL		window_query_scroll
    #define	WINDOW_QUERY_SCROLL_C		window_query_scroll_c
    #define	WINDOW_READ_BACKGROUND_SIZE	window_read_background_size
    #define	WINDOW_READ_COLOR_TEXT_C	window_read_color_text_c
    #define	WINDOW_READ_CURSOR		window_read_cursor
    #define	WINDOW_READ_CURSOR_C		window_read_cursor_c
    #define	WINDOW_READ_HANDLE_C		window_read_handle_c
    #define	WINDOW_READ_MENU_BAR_INFO	window_read_menu_bar_info
    #define	WINDOW_READ_SCROLL_REGION_C	window_read_scroll_region_c
    #define	WINDOW_READ_TEXT_C		window_read_text_c
    #define	WINDOW_REBORDER_C		window_reborder_c
    #define	WINDOW_RECTANGLE_C		window_rectangle_c
    #define	WINDOW_REFRESH_C		window_refresh_c
    #define	WINDOW_REFRESH_ALL_C		window_refresh_all_c
    #define	WINDOW_REGISTER_FUNCTION_C	window_register_function_c
    #define	WINDOW_REMOVE_CALLBACK_C	window_remove_callback_c
    #define	WINDOW_REQUEST_DELETE_C		window_request_delete_c
    #define	WINDOW_RESIZE			window_resize
    #define	WINDOW_RESTORE_HINT_C		window_restore_hint_c
    #define	WINDOW_RETITLE_C		window_retitle_c
    #define	WINDOW_ROW			window_row
    #define	WINDOW_ROW_C			window_row_c
    #define	WINDOW_ROW_TO_ENTRY_C		window_row_to_entry_c
    #define	WINDOW_SCROLL			window_scroll
    #define	WINDOW_SCROLL_C			window_scroll_c
    #define	WINDOW_SCROLL_BLOCK_C		window_scroll_block_c
    #define	WINDOW_SCROLL_OFFSET_C		window_scroll_offset_c
    #define	WINDOW_SCROLL_PAGE_C		window_scroll_page_c
    #define	WINDOW_SCROLL_TO_BOTTOM_C	window_scroll_to_bottom_c
    #define	WINDOW_SCROLL_TO_LEFT_C		window_scroll_to_left_c
    #define	WINDOW_SCROLL_TO_RIGHT_C	window_scroll_to_right_c
    #define	WINDOW_SCROLL_TO_TOP_C		window_scroll_to_top_c
    #define	WINDOW_SELECT_COPY_C		window_select_copy_c
    #define	WINDOW_SELECT_POP_C		window_select_pop_c
    #define	WINDOW_SELECT_PUSH_C		window_select_push_c
    #define	WINDOW_SELECT_STACK_C		window_select_stack_c
    #define	WINDOW_SEQUENTIAL_WRITE_C	window_sequential_write_c
    #define	WINDOW_SEQ_WRITE_XCHAR_C	window_seq_write_xchar_c
    #define	WINDOW_SET_BACKGROUND_SIZE	window_set_background_size
    #define	WINDOW_SET_BACKGROUND_SIZE_C	window_set_background_size_c
    #define	WINDOW_SET_CLIP_C		window_set_clip_c
    #define	WINDOW_SET_CURSOR		window_set_cursor
    #define	WINDOW_SET_CURSOR_C		window_set_cursor_c
    #define	WINDOW_SET_HANDLE_C		window_set_handle_c
    #define	WINDOW_SET_PARAMETER_C		window_set_parameter_c
    #define	WINDOW_SET_POPUP_C		window_set_popup_c
    #define	WINDOW_SET_POSITION		window_set_position
    #define	WINDOW_SET_POSITION_C		window_set_position_c
    #define	WINDOW_SET_RESIZE_MODE_C	window_set_resize_mode_c
    #define	WINDOW_SET_SCROLL_COLORS_C	window_set_scroll_colors_c
    #define	WINDOW_SET_SCROLL_LIMIT_C	window_set_scroll_limit_c
    #define	WINDOW_SET_SCROLL_REGION_C	window_set_scroll_region_c
    #define	WINDOW_SET_SIZE			window_set_size
    #define	WINDOW_SET_SIZE_C		window_set_size_c
    #define	WINDOW_SET_SIZE_LIMIT_C		window_set_size_limit_c
    #define	WINDOW_SIZE			window_size
    #define	WINDOW_SIZE_C			window_size_c
    #define	WINDOW_TEXT_BLOCK		window_text_block
    #define	WINDOW_TEXT_BLOCK_C		window_text_block_c
    #define	WINDOW_TEXT_COLOR		window_text_color
    #define	WINDOW_TEXT_COLOR_C		window_text_color_c
    #define	WINDOW_TEXT_FILL		window_text_fill
    #define	WINDOW_TEXT_FILL_C		window_text_fill_c
    #define	WINDOW_TITLE			window_title
    #define	WINDOW_TITLE_C			window_title_c
    #define	WINDOW_TITLE_TO_ID		window_title_to_id
    #define	WINDOW_TOPMOST_C		window_topmost_c
    #define	WINDOW_TOTAL_LINES_C		window_total_lines_c
    #define	WINDOW_TO_BACK			window_to_back
    #define	WINDOW_TO_EXCEL_FILE_C		window_to_excel_file_c
    #define	WINDOW_TO_FRONT			window_to_front
    #define	WINDOW_TO_GRAPHIC_SCREEN_C	window_to_graphic_screen_c
    #define	WINDOW_TO_PASTE_BUFFER_C	window_to_paste_buffer_c
    #define	WINDOW_TO_PRINTER_C		window_to_printer_c
    #define	WINDOW_TO_TEXT_FILE_C		window_to_text_file_c
    #define	WINDOW_TVDISP			window_tvdisp
    #define	WINDOW_TVDISP_C			window_tvdisp_c
    #define	WINDOW_TVM			window_tvm
    #define	WINDOW_TVM_C			window_tvm_c
    #define	WINDOW_TVMX			window_tvmx
    #define	WINDOW_TVMX_C			window_tvmx_c
    #define	WINDOW_TVSAVE_C			window_tvsave_c
    #define	WINDOW_UNFIT_WINDOW		window_unfit_window
    #define	WINDOW_UNFREEZE_C		window_unfreeze_c
    #define	WINDOW_UNREGISTER_FUNCTION_C	window_unregister_function_c
    #define	WINDOW_UNSET_POPUP_C		window_unset_popup_c
    #define	WINDOW_UPDATE_BACKGROUND_C	window_update_background_c
    #define	WINDOW_UP_CASE_C		window_up_case_c
    #define	WINDOW_VERTICAL_TEXT		window_vertical_text
    #define	WINDOW_VERTICAL_TEXT_C		window_vertical_text_c
    #define	WINDOW_VIRTUAL_COLUMN_C		window_virtual_column_c
    #define	WINDOW_VLINE_C			window_vline_c
    #define	WINDOW_WAS_CREATED		window_was_created
    #define	WINDOW_WAS_DELETED		window_was_deleted
    #define	WINDOW_WRITE_LINE_C		window_write_line_c
    #define	WINDOW_WRITE_SCROLL_C		window_write_scroll_c
    #define	WINDOW_WRITE_SCROLL_XCHAR_C	window_write_scroll_xchar_c
    #define	WINDOW_WRITE_STRING_C		window_write_string_c
    #define	WINDOW_WRITE_WITH_CARRIAGE_CONTROL_C	window_write_with_carriage_control_c
    #define	WINDOW_WRITE_XCHAR_LINE_C	window_write_xchar_line_c
    #define	WINPUT				winput
    #define	WINPUT_C			winput_c
    #define	WINPUT_UPDATE_FIELD_C		winput_update_field_c
    #define	WN_ACKNOWLEDGE_C		wn_acknowledge_c
    #define	WN_ACTIVE			wn_active
    #define	WN_ACTIVE_C			wn_active_c
    #define	WN_AXIS_CUSTOM_LABEL_C		wn_axis_custom_label_c
    #define	WN_AXIS_GRID			wn_axis_grid
    #define	WN_AXIS_GRID_C			wn_axis_grid_c
    #define	WN_AXIS_LABEL			wn_axis_label
    #define	WN_AXIS_LABEL_C			wn_axis_label_c
    #define	WN_BACKGROUND_COLOR_C		wn_background_color_c
    #define	WN_BLANK_C			wn_blank_c
    #define	WN_BORDER_WIDTH_C		wn_border_width_c
    #define	WN_BOX				wn_box
    #define	WN_BOX_C			wn_box_c
    #define	WN_BOX_PIXEL_C			wn_box_pixel_c
    #define	WN_CALCULATE_DIALOG_COORDINATES_C	wn_calculate_dialog_coordinates_c
    #define	WN_CHECK_FOR_INTERRUPT		wn_check_for_interrupt
/* #define	WN_CIRCLE			wn_circle */    /* would redefine a macro having the same name */
    #define	WN_CIRCLE_C			wn_circle_c
    #define	WN_CIRCLE_PIXEL_C		wn_circle_pixel_c
    #define	WN_CIRCULAR_ARC_C		wn_circular_arc_c
    #define	WN_CLIP				wn_clip
    #define	WN_CLIP_C			wn_clip_c
    #define	WN_COLOR			wn_color
    #define	WN_COLOR_C			wn_color_c
    #define	WN_COLORED_TEXT_C		wn_colored_text_c
    #define	WN_COMBO_MENU_C			wn_combo_menu_c
    #define	WN_COMBO_MENU_HS_C		wn_combo_menu_hs_c
    #define	WN_CONNECT_POINTS		wn_connect_points
    #define	WN_CONNECT_POINTS_C		wn_connect_points_c
    #define	WN_CURSOR_DISABLE		wn_cursor_disable
    #define	WN_CURSOR_INIT			wn_cursor_init
    #define	WN_CURSOR_INIT_C		wn_cursor_init_c
    #define	WN_CURSOR_INIT_PIXEL_C		wn_cursor_init_pixel_c
    #define	WN_CURSOR_IS_ACTIVE		wn_cursor_is_active
    #define	WN_CURSOR_PIXEL_POSITION_C	wn_cursor_pixel_position_c
    #define	WN_CURSOR_POSITION_C		wn_cursor_position_c
    #define	WN_CURSOR_UPDATE		wn_cursor_update
    #define	WN_CURSOR_UPDATE_PIXEL		wn_cursor_update_pixel
    #define	WN_DATA_EXTREMA			wn_data_extrema
    #define	WN_DATA_FFT_C			wn_data_fft_c
    #define	WN_DATA_MEAN			wn_data_mean
    #define	WN_DATA_POLYFIT_C		wn_data_polyfit_c
    #define	WN_DATA_QUERY			wn_data_query
    #define	WN_DATA_RECALL			wn_data_recall
    #define	WN_DATA_SAVE			wn_data_save
    #define	WN_DATA_SAVE_C			wn_data_save_c
    #define	WN_DATA_SET_CUT_C		wn_data_set_cut_c
    #define	WN_DECIDE_C			wn_decide_c
    #define	WN_DECIDE_MULTIPLE_C		wn_decide_multiple_c
    #define	WN_DELETE_C			wn_delete_c
    #define	WN_DELETE_ALL_C			wn_delete_all_c
    #define	WN_DISPLAY_VALUE		wn_display_value
    #define	WN_DISPLAY_VALUE_C		wn_display_value_c
    #define	WN_DRAW_MODE			wn_draw_mode
    #define	WN_DRAW_MODE_C			wn_draw_mode_c
    #define	WN_ENUMERATED_TYPE_MENU_C	wn_enumerated_type_menu_c
    #define	WN_ERASE			wn_erase
    #define	WN_ERASE_C			wn_erase_c
    #define	WN_ERASE_SCREEN_C		wn_erase_screen_c
    #define	WN_EXTERNAL_COLORED_TEXT_C	wn_external_colored_text_c
    #define	WN_EXTERNAL_DISPLAY_VALUE_C	wn_external_display_value_c
    #define	WN_EXTERNAL_TEXT		wn_external_text
    #define	WN_EXTERNAL_TEXT_C		wn_external_text_c
    #define	WN_FILE_VIEW_SELECT_C		wn_file_view_select_c
    #define	WN_FILL_MODE			wn_fill_mode
    #define	WN_FILL_MODE_C			wn_fill_mode_c
    #define	WN_FIND_ID			wn_find_id
    #define	WN_FIND_ID_C			wn_find_id_c
    #define	WN_FIND_LIST_C			wn_find_list_c
    #define	WN_FLUSH			wn_flush
    #define	WN_GETSCRN			wn_getscrn
    #define	WN_GETSCRN_C			wn_getscrn_c
    #define	WN_GETWORLD			wn_getworld
    #define	WN_GETWORLD_C			wn_getworld_c
    #define	WN_GET_ACTIVE			wn_get_active
    #define	WN_GET_ACTIVE_SCREEN		wn_get_active_screen
    #define	WN_GET_SCREEN_TITLE		wn_get_screen_title
    #define	WN_GET_VIEW_COORDS_C		wn_get_view_coords_c
    #define	WN_GET_WORLD_COORDS_C		wn_get_world_coords_c
    #define	WN_GRID				wn_grid
    #define	WN_GRID_C			wn_grid_c
    #define	WN_GRID_PIXEL_C			wn_grid_pixel_c
    #define	WN_INPTXT_C			wn_inptxt_c
    #define	WN_INPUT_ARRAY_VALUES_C		wn_input_array_values_c
    #define	WN_INPUT_STRING_DIALOG_C	wn_input_string_dialog_c
    #define	WN_INTERRUPT_INFO		wn_interrupt_info
    #define	WN_INTERSECT_C			wn_intersect_c
    #define	WN_MOVE_BLOCK_OF_PIXELS_C	wn_move_block_of_pixels_c
    #define	WN_MULTITRACE_AXIS_LABEL_C	wn_multitrace_axis_label_c
    #define	WN_MULTITRACE_GRID_C		wn_multitrace_grid_c
    #define	WN_MULTITRACE_GRID_PIXEL_C	wn_multitrace_grid_pixel_c
    #define	WN_OCCLUDED_C			wn_occluded_c
    #define	WN_PLOT_FILL			wn_plot_fill
    #define	WN_PLOT_FILL_C			wn_plot_fill_c
/* #define	WN_POINT			wn_point */ /* would redefine a macro having the same name */
    #define	WN_POINT_C			wn_point_c
    #define	WN_POINT_PIXEL_C		wn_point_pixel_c
    #define	WN_POINT_SET			wn_point_set
    #define	WN_POLYGON_C			wn_polygon_c
    #define	WN_PREPARE_DIALOG_WINDOW_C	wn_prepare_dialog_window_c
    #define	WN_PRINTF_AT_C			wn_printf_at_c
    #define	WN_QUERY_SETUP			wn_query_setup
    #define	WN_QUICK_GRID			wn_quick_grid
    #define	WN_READ_BACKGROUND_FORMAT	wn_read_background_format
    #define	WN_READ_BACKGROUND_SIZE		wn_read_background_size
    #define	WN_READ_DISPLAY_SIZE		wn_read_display_size
    #define	WN_READ_TEXT_FORMAT		wn_read_text_format
    #define	WN_READ_USER_DEFINED_COLOR	wn_read_user_defined_color
    #define	WN_REDRAW_GRID_C		wn_redraw_grid_c
    #define	WN_REGISTER_FUNCTION_C		wn_register_function_c
    #define	WN_RELATIVE_TEXT_C		wn_relative_text_c
    #define	WN_SCREEN_INIT			wn_screen_init
    #define	WN_SCREEN_INIT_C		wn_screen_init_c
    #define	WN_SCREEN_TITLE			wn_screen_title
    #define	WN_SCROLL_MENU_C		wn_scroll_menu_c
    #define	WN_SCROLL_MENU_HS_C		wn_scroll_menu_hs_c
    #define	WN_SELECT_FIELD_DELETE_C	wn_select_field_delete_c
    #define	WN_SELECT_FIELD_DISABLE_C	wn_select_field_disable_c
    #define	WN_SELECT_FIELD_DISPLAY_INFO_C	wn_select_field_display_info_c
    #define	WN_SELECT_FIELD_ENABLE_C	wn_select_field_enable_c
    #define	WN_SELECT_FIELD_INIT_C		wn_select_field_init_c
    #define	WN_SELECT_FIELD_READ_C		wn_select_field_read_c
    #define	WN_SELECT_FIELD_REGISTER_C	wn_select_field_register_c
    #define	WN_SELECT_FIELD_SET_C		wn_select_field_set_c
    #define	WN_SELECT_FIELD_SET_BY_VALUE_C	wn_select_field_set_by_value_c
    #define	WN_SELECT_FIELD_SET_COLORS_C	wn_select_field_set_colors_c
    #define	WN_SELECT_FIELD_TEXT_TO_ID_C	wn_select_field_text_to_id_c
    #define	WN_SELECT_RECTANGLE_C		wn_select_rectangle_c
    #define	WN_SELECT_SCREEN		wn_select_screen
    #define	WN_SELECT_SCREEN_C		wn_select_screen_c
    #define	WN_SET_BACKGROUND_FORMAT_C	wn_set_background_format_c
    #define	WN_SET_BACKGROUND_SIZE_C	wn_set_background_size_c
    #define	WN_SET_CURSOR_PIXEL_POSITION_C	wn_set_cursor_pixel_position_c
    #define	WN_SET_CURSOR_POSITION_C	wn_set_cursor_position_c
    #define	WN_SET_CURSOR_TYPE_C		wn_set_cursor_type_c
    #define	WN_SET_MAX_TICK_MARK_LENGTHS_C	wn_set_max_tick_mark_lengths_c
    #define	WN_SET_PLOT_SYMBOL		wn_set_plot_symbol
    #define	WN_SET_PLOT_SYMBOL_C		wn_set_plot_symbol_c
    #define	WN_SET_SCALING			wn_set_scaling
    #define	WN_SET_SCALING_C		wn_set_scaling_c
    #define	WN_SETSYM			wn_setsym
    #define	WN_SETSYM_C			wn_setsym_c
    #define	WN_SWITCH_CREATE_C		wn_switch_create_c
    #define	WN_SWITCH_DELETE_C		wn_switch_delete_c
    #define	WN_SWITCH_DISABLE_C		wn_switch_disable_c
    #define	WN_SWITCH_ENABLE_C		wn_switch_enable_c
    #define	WN_SWITCH_GET_SCREEN_C		wn_switch_get_screen_c
    #define	WN_SWITCH_PRESSED		wn_switch_pressed
    #define	WN_SWITCH_READ_C		wn_switch_read_c
    #define	WN_SWITCH_REDRAW_C		wn_switch_redraw_c
    #define	WN_SWITCH_RELABEL_C		wn_switch_relabel_c
    #define	WN_SWITCH_SET_STATE_C		wn_switch_set_state_c
    #define	WN_SWITCH_WINDOW_DELETE_C	wn_switch_window_delete_c
    #define	WN_SYMBOL			wn_symbol
    #define	WN_SYMBOL_C			wn_symbol_c
    #define	WN_SYMBOL_SET			wn_symbol_set
    #define	WN_TEXT				wn_text
    #define	WN_TEXT_C			wn_text_c
    #define	WN_TEXT_ATTRIBUTES_C		wn_text_attributes_c
    #define	WN_TEXT_COORD_TO_VIRTUAL_C	wn_text_coord_to_virtual_c
    #define	WN_TEXT_COORD_TO_WORLD_C	wn_text_coord_to_world_c
    #define	WN_TEXT_PIXEL_C			wn_text_pixel_c
    #define	WN_TEXT_ROTATION		wn_text_rotation
    #define	WN_TEXT_ROTATION_C		wn_text_rotation_c
    #define	WN_TEXT_SCALING_C		wn_text_scaling_c
    #define	WN_TEXT_SIZE			wn_text_size
    #define	WN_TEXT_SIZE_C			wn_text_size_c
    #define	WN_TEXT_SIZE_IN_PIXELS_C	wn_text_size_in_pixels_c
    #define	WN_TEXT_SIZE_IN_VIRTUAL_COORDINATES_C	wn_text_size_in_virtual_coordinates_c
    #define	WN_TEXT_SIZE_IN_WORLD_COORDINATES_C	wn_text_size_in_world_coordinates_c
    #define	WN_TV_MAP_C			wn_tv_map_c
    #define	WN_TV_UNMAP			wn_tv_unmap
    #define	WN_UNREGISTER_FUNCTION_C	wn_unregister_function_c
    #define	WN_USER_DEFINED_COLOR_C		wn_user_defined_color_c
    #define	WN_VECTOR			wn_vector
    #define	WN_VECTOR_C			wn_vector_c
    #define	WN_VECTOR_GRAIN			wn_vector_grain
    #define	WN_VECTOR_GRAIN_C		wn_vector_grain_c
    #define	WN_VECTOR_PIXEL_C		wn_vector_pixel_c
    #define	WN_VECTOR_WIDTH			wn_vector_width
    #define	WN_VECTOR_WIDTH_C		wn_vector_width_c
    #define	WN_VIEW				wn_view
    #define	WN_VIEW_C			wn_view_c
    #define	WN_VIEW_CONSTRUCT_C		wn_view_construct_c
    #define	WN_VIEW_PIXEL_C			wn_view_pixel_c
    #define	WN_VIEW_TEXT_FORMAT_C		wn_view_text_format_c
    #define	WN_WIDE_VECTOR_C		wn_wide_vector_c
    #define	WN_WINDOW_HAS_SWITCH_C		wn_window_has_switch_c
    #define	WN_WINDOW_WORLD_TO_PIXEL_COORDINATE_C	wn_window_world_to_pixel_coordinate_c
    #define	WN_WORLD			wn_world
    #define	WN_WORLD_C			wn_world_c
    #define	WN_WORLD_TO_TEXT_COORD_C	wn_world_to_text_coord_c
    #define	WRDSPI				wrdspi
    #define	WRDSPI_C			wrdspi_c
    #define	WRDSPI4				wrdspi4
    #define	WRDSPI4_C			wrdspi4_c
    #define	WRDSPR				wrdspr
    #define	WRDSPR_C			wrdspr_c
    #define	WRDSPR8				wrdspr8
    #define	WRDSPR8_C			wrdspr8_c
    #define	WTVBOX_C			wtvbox_c
    #define	XCHAR_TEXT_MESSAGE_C		xchar_text_message_c
    #define	XV_DISPLAY			xv_display
    #define	XV_CAPTURE			xv_capture
    #define	XV_CURSOR_UPDATE		xv_cursor_update

#endif