Category : C Source Code
Archive   : SCED15.ZIP
Filename : SCREDIT.H

 
Output of file : SCREDIT.H contained in archive : SCED15.ZIP
/******************************************************************************

Module : scredit.h

Title : Header file for SCREDIT field editing system

Description : Header file for SCREDIT field editing system

******************************************************************************/

/* Constants to be used with the Boolean variable required. */
#ifndef TRUE
#define FALSE 0
#define TRUE 1
#endif

/* Return value for Field Processing */
#define PROCESS_FIELD 0xFFFF

/* Numeric values for Boolean Yes/No type fields */
#define BOOL_BLANK 2 /* Blank field */
#define BOOL_YES TRUE /* Yes answer */
#define BOOL_NO FALSE /* No answer */

/* These values may be changed by the user, if desired */
extern char money_symbol; /* default '$' */
extern char num_decimals; /* default 2 */
extern char decimal_char; /* default '.' */
extern char *drcr_symbol; /* default "<>" */
extern char stat_attrib; /* default BLUE on WHITE */
extern char err_attrib; /* default RED on WHITE */
extern char display_status; /* default FALSE */
extern char move_windows; /* default TRUE */
extern char status_row; /* default 25 */
extern char err_column; /* default 16 */
extern char *tf_error; /* "Must enter 'T' or 'F'" */
extern char *yn_error; /* "Must enter 'Y' or 'N'" */
extern char *ynb_error; /* "Must enter 'Y' or 'N' or Blank" */
extern char *req_error; /* "Entry is required in this field"*/
extern char *bad_amount; /* "Invalid Amount" */
extern char *bad_entry; /* "Invalid Entry" */
extern char *bad_date; /* "Invalid Date" */
extern char scredit_colors[]; /* current color settings for SCREDIT screen operations */
extern char xlate_colors; /* Should color translation take place? (default TRUE) */

typedef struct opttype {
char far * far *option_list;
char option_select;
} OPTTYPE;

/*
* This function is called by edit_input_fields when serious errors
* occur during:
*
* 1. Field at specified offset is not an Input field
* "Field at specified Offset is not an input field"
*
* 2. If in finding the specified offset, the end of the
* screen is reached.
* "Specified Offset is outside of screen"
*
* 3. If during a screen wrap (cursor movement causes a screen wrap),
* and no input field can be found.
* "Error finding Input Field after Screen Wrap"
*
* This function will wait for a keystroke, and abort the program. If
* this action is not desired, then you may provide your own function
* in its place. Your routine may perform a normal return, and
* edit_input_fields will return 0.
*
*/
extern void (*abort_screen) (int err);

/* Function Declarations */
void save_status(void);
void restore_status(void);
void blank_status (void);
void note(char *msg);
void errmsg (char *msg);
void disp_prompts(void far (*scrnptr)());
void undisp_prompts(void far (*scrnptr)());
void disp_io_fields (void far (*scrnptr)(), void *struc_buf);
int edit_input_fields (void far (*flds)(), void *struc_buf, void far **offset);
int edithelp_io_fields (void far (*flds)(), void *struc_buf, void far **offset, char **help);
void set_scrcolors(char *origcolors);



  3 Responses to “Category : C Source Code
Archive   : SCED15.ZIP
Filename : SCREDIT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/