home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
progng_c
/
bosswin2
/
boss_lb7.lzh
/
WINBOSS.FNS
< prev
Wrap
Text File
|
1992-03-05
|
15KB
|
345 lines
/* Prototype declarations for windows.c */
void wn_windows(void);
/* Prototype declarations for wn_print.c */
int wn_printf(struct wcb *wn, char *cs,...);
/* Prototype declarations for wn_activ.c */
int wn_activate(struct wcb *wn);
int wns_push(int imgix);
int wns_pop(int imgix);
int wns_alloc(unsigned size, unsigned *seg, unsigned *off, unsigned *ptr);
int wns_free(unsigned seg, unsigned off);
int wns_image(struct wcb *wn, int imgix, int flag);
void wns_blt(int row, int col, int width, int height, unsigned tseg,
unsigned toff, int imgix, int flag);
/* Prototype declarations for wn_bios.c */
unsigned _getca(int page, int row, int col);
void _putca(int page, unsigned atch, int row, int col);
void _absloc(int page, int row, int col);
void v_wca(int page, int ch, int at, int count);
void v_wtty(int ch);
void v_cls(int at);
void v_spage(int page);
void v_smode(int mode);
void v_locate(int page, int row, int col);
void v_hidec(void);
void v_sapu(int nl, int rul, int cul, int rlr, int clr, int at);
void v_sapd(int nl, int rul, int cul, int rlr, int clr, int at);
void v_rcpos(int page, int *row, int *col);
void v_rcvs(int *page, int *mode, int *cols);
int v_getch(void);
void v_kflush(void);
void v_sctype(int type, int sline, int eline);
void v_gctype(int page, int *sline, int *eline);
int v_setatr(int bg, int fg, int blink, int bold);
int v_setrev(int atrib);
/* Prototype declarations for wn_boxse.c */
void wn_boxset(int ul, int ur, int tb, int sd, int ll, int lr);
/* Prototype declarations for wn_close.c */
int wn_close(struct wcb *wn);
/* Prototype declarations for wn_clr.c */
int wn_clr(struct wcb *wn);
/* Prototype declarations for wn_clrfn.c */
int wn_clrrow(struct wcb *wn, int row);
int wn_clreol(struct wcb *wn, int r, int c);
int wn_clreow(struct wcb *wn, int r, int c);
/* Prototype declarations for wn_color.c */
void wn_color(struct wcb *wn, int atrib, int batrib);
/* Prototype declarations for wn_dbord.c */
int wn_dborder(struct wcb *wn, int ul, int ur, int tb, int sd, int ll, int lr);
void wn_border(int style);
int wn_drawborder(struct wcb *w, int style);
/* Prototype declarations for wn_delro.c */
int wn_delrow(struct wcb *wn, int row);
/* Prototype declarations for wn_dma.c */
void wn_dma(int flag);
/* Prototype declarations for wn_dmode.c */
void wn_dmode(int flag);
/* Prototype declarations for wn_dtext.c */
int wn_dtext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt);
/* Prototype declarations for wn_fixcs.c */
int wn_fixcsr(struct wcb *wn);
/* Prototype declarations for wn_frmcl.c */
int wn_frmcls(struct wi_scb **frm);
/* Prototype declarations for wn_frmge.c */
int wn_frmget(struct wi_scb **frm);
/* Prototype declarations for wn_frmop.c */
struct wi_scb **wn_frmopn(int nfields);
/* Prototype declarations for wn_gbool.c */
int wn_gbool(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *value,
char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gdate.c */
int wn_gdate(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *month,
int *day, int *year, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gdoub.c */
int wn_gdouble(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, double *value,
int fwidth, int ndec, double low, double high, char *ubuff,
char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gets.c */
char *wn_gets(struct wcb *wn, char *s, int va, char *cl);
/* Prototype declarations for wn_gfloa.c */
int wn_gfloat(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, float *value,
int fwidth, int ndec, double , double , char *ubuff,
char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gint.c */
int wn_gint(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *value,
int fwidth, int low, int high, char *ubuff, char *hlpmsg,
char *errmsg);
/* Prototype declarations for wn_glong.c */
int wn_glong(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, long *value,
int fwidth, long low, long high, char *ubuff, char *hlpmsg,
char *errmsg);
/* Prototype declarations for wn_gphon.c */
int wn_gphone(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *acode,
int *nnx, int *num, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gpwor.c */
int wn_gpword(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gtext.c */
int wns_gtext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
int wn_gtext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
int wn_gutext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
int wn_gltext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
int wn_gatext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
char *ubuff, char *hlpmsg, char *errmsg);
int wn_gmltext(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int fwidth,
int nl, char **ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gtime.c */
int wn_gtime(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *hours,
int *mins, int *secs, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_guint.c */
int wn_guint(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, unsigned *value,
int fwidth, unsigned low, unsigned high, char *ubuff,
char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gulon.c */
int wn_gulong(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill,
unsigned long *value, int fwidth, unsigned long low,
unsigned long high, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_help.c */
void showpage(long offset);
int filbuf(long offset);
int wn_hlinit(int row, int col, int width, int height, unsigned atrib,
unsigned batrib, char *help_file_name);
int wn_help(char *subject);
/* Prototype declarations for wn_iemsg.c */
int wn_iemsg(char *msg);
/* Prototype declarations for wn_ihmsg.c */
int wn_ihmsg(char *msg);
/* Prototype declarations for wn_init.c */
int wn_psinit(int rows, int cols);
int wn_init(void);
int wn_exit(void);
void wn_shkey(unsigned scan_code);
/* Prototype declarations for wn_input.c */
int wn_input(struct wcb *wn, int row, int col, char *prmpt, char *mask, int fill,
unsigned atrib, char *ubuff, char *hlpmsg);
/* Prototype declarations for wn_insro.c */
int wn_insrow(struct wcb *wn, int row);
/* Prototype declarations for wn_locat.c */
int wn_locate(struct wcb *wn, int row, int col);
/* Prototype declarations for wn_mouse.c */
void mo_die(char *msg);
void wns_mo_check(struct mcb *mptr, char *msg);
struct mcb *mo_reset(void);
void mo_show(struct mcb *m);
void mo_hide(struct mcb *m);
void mo_pos(struct mcb *m);
void mo_move(struct mcb *m, int row, int col);
void mo_pbinfo(struct mcb *m, int button);
void mo_rbinfo(struct mcb *m, int button);
void mo_clim(struct mcb *m, int cmin, int cmax);
void mo_rlim(struct mcb *m, int rmin, int rmax);
void mo_sgcursor(struct mcb *m, unsigned hhot, unsigned vhot, unsigned seg,
unsigned off);
void mo_scursor(struct mcb *m, int type, int start, int stop);
void mo_motion(struct mcb *m);
void mo_task(struct mcb *m, unsigned mask, unsigned tseg, unsigned toff);
void mo_lpon(struct mcb *m);
void mo_lpoff(struct mcb *m);
void mo_ratio(struct mcb *m, int ver, int hor);
void mo_rcpos(struct mcb *mptr, int *status, int *row, int *col);
void mo_locate(struct mcb *mptr, int row, int col);
void mo_press(struct mcb *mptr, int button, int *status, int *nclik, int *row,
int *col);
void mo_release(struct mcb *mptr, int button, int *status, int *nclik, int *row,
int *col);
void mo_reigon(struct mcb *mptr, int row, int col, int width, int height);
void mo_setptr(struct mcb *mptr, unsigned tchar, unsigned atrib);
void mo_wait(struct mcb *mptr);
int mo_nbutt(struct mcb *mptr);
void wns_mo_show(void);
void wns_mo_hide(void);
int v_getchm(void);
/* Prototype declarations for wn_move.c */
struct wcb *wn_move(struct wcb *wn, int row, int col);
/* Prototype declarations for wn_natri.c */
int wn_natrib(struct wcb *wn, int natr);
/* Prototype declarations for wn_open.c */
struct wcb *wn_open(int page, int row, int col, int width, int height, int atrib,
int batrib);
int wns_shfun(struct wcb *wn, int fun, unsigned attr);
void wns_explode(struct wcb *wn);
void wns_vbar(struct wcb *wn, int rul, int cul, int rlr, int clr, int atrib);
unsigned long wns_gticks(void);
void wns_stdiv(unsigned long div);
/* Prototype declarations for wn_popup.c */
int wn_popup(int page, int row, int col, int width, int height, int atrib,
int batrib, struct pmenu *mx, int cflag);
struct wcb *wn_qpopup(int page, int row, int col, int width, int height,
int atrib, int batrib, struct pmenu *mx);
/* Prototype declarations for wn_puts.c */
int wn_puts(struct wcb *wn, int row, int col, char *s);
int wn_putsa(struct wcb *wn, int row, int col, char *s, unsigned atrib);
int wn_putc(struct wcb *wn, int row, int col, int c);
int wn_putca(struct wcb *wn, int row, int col, int c, unsigned a);
unsigned wn_getca(struct wcb *wn, int row, int col);
/* Prototype declarations for wn_resto.c */
int wn_restore(struct wcb *wn);
/* Prototype declarations for wn_save.c */
struct wcb *wn_save(int page, int row, int col, int width, int height);
/* Prototype declarations for wn_scrol.c */
void wn_scroll(struct wcb *wn, int method);
/* Prototype declarations for wn_spawn.c */
int wn_spawnl(unsigned smode, char *path, char *a1);
/* Prototype declarations for wn_stitl.c */
int wn_stitle(struct wcb *wn, char *title, int location);
int wn_stitla(struct wcb *wn, char *title, int atr, int location);
/* Prototype declarations for wn_strin.c */
char *wn_sleftj(char *s);
char *wn_srightj(char *s);
char *wn_scenter(char *s, char *t, int w);
char *wn_sdelspc(char *s, int code);
int wn_strndx(char *s, char *t, int exp);
int wn_cndx(char *s, int c, int exp);
/* Prototype declarations for wn_sup.c */
unsigned wns_mtype(void);
void wns_delc(struct wcb *wn);
void wns_wtext(struct wcb *wn, char *string);
void wns_movscr(int srow, int scol, int w, int h, int drow, int dcol, int mode,
int atrib);
void wns_savres(int page, int row, int col, int width, int height, char *array,
int flag);
void wns_fixc(int *atrib);
void wns_drow(int page, int c, int atrib, int row, int col, int count);
void wns_dput(struct wcb *wn, int page, int c_atrib, int row, int col);
void wns_err(struct wcb *wn, char *msg);
void wns_ierr(char *msg);
void wns_sapu(int nl, int r1, int c1, int r2, int c2, int atrib);
void wns_sapd(int nl, int r1, int c1, int r2, int c2, int atrib);
void wns_von(void);
void wns_voff(void);
void wns_ssiz(int row, int col);
int wns_ega(int *memsize, int *mode, unsigned *features, unsigned *switches);
unsigned wns_getca(int page, int row, int col);
void wns_putca(int page, unsigned atch, int row, int col);
/* Prototype declarations for wn_sync.c */
void wn_sync(struct wcb *wn, int flag);
/* Prototype declarations for wn_title.c */
int wn_title(struct wcb *wn, char *title);
int wn_titla(struct wcb *wn, char *title, int atr);
/* Prototype declarations for wn_wrap.c */
void wn_wrap(struct wcb *wn, int flag);
/* Prototype declarations for wn_gssn.c */
int wn_gssn(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *n1, int *n2,
int *n3, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_gedat.c */
int wn_gedate(int fun, struct wi_scb **frm, int fld, struct wcb *wn, int row,
int col, char *prmpt, unsigned atrib, int fill, int *day,
int *month, int *year, char *ubuff, char *hlpmsg, char *errmsg);
/* Prototype declarations for wn_pdown.c */
int wn_pdopen(int page, int row, int col, int width, int height, int watr,
int batr, int hkatr, struct pdmenu *mx, int aflag);
void wn_pdclose(struct pdmenu *mx);
int wn_pdupdate(struct pdmenu *mx, int i, int style);
int wn_pdsettog(struct pdmenu *mx, int i);
int wn_pdgettog(struct pdmenu *mx, int i);
void wn_pdactive(struct pdmenu *mx, int i, int action);
int wn_pdtype(struct pdmenu *mx, int i, int newtype, int action);
int wn_pdget(struct pdmenu *mx);
void cdecl _vidblt(unsigned, unsigned, unsigned, unsigned, int);
int cdecl v_kstat(void);
void cdecl xferdata(unsigned, unsigned, unsigned, unsigned, int);
void cdecl v_border(int);