home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-2.ZIP / GFUNCTS.H next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  23.1 KB  |  555 lines

  1. /*
  2.  * gfuncts.h
  3.  * contains: User include file for Greenleaf Functions 4.01
  4.  *
  5.  * AUTHOR
  6.  *  ""   30-MAR-1987  14:44:05.29
  7.  *   Copyright (C)1987-1990 Greenleaf Software Inc. All Rights Reserved.
  8.  *
  9.  * MODIFICATIONS
  10.  *
  11.  */
  12. #define GFVERSION    4        /* Version Number */
  13. #define GFREVISION    01        /* Revision Number */
  14.  
  15. #ifdef    NARGS
  16. #ifndef    LINT_ARGS
  17. #define    LINT_ARGS    1
  18. #endif
  19. #endif
  20.  
  21.  
  22. /*#ifdef    _MSC
  23. #ifndef    _SIZE_T_DEFINED
  24. typedef unsigned int size_t;
  25. #endif
  26. #endif
  27.  
  28. #ifdef    TURBOC
  29. #ifndef    _SIZE_T
  30. typedef    unsigned size_t;
  31. #endif
  32. #endif
  33.  
  34. #ifndef    _SIZE_T
  35. #ifndef    _SIZE_T_DEFINED
  36. typedef    unsigned int size_t;
  37. #endif
  38. #endif
  39. */
  40.  
  41. #ifndef    GTIMEDATEDOTH
  42. #include "timedate.h"
  43. #endif
  44. #ifndef    DISKDOTH
  45. #include "disk.h"
  46. #endif
  47. #ifndef    GFDOTH
  48. #include "gf.h"
  49. #endif
  50.  
  51. /* #defines for strconvert()
  52.  */
  53. #define RABLANKS    0x0001    /* Remove all Blanks              */
  54. #define RANONALPHA    0x0002    /* Remove all non alphabetic characters   */
  55. #define RANONNUM    0x0004    /* Remove all non numeric characters      */
  56. #define RALEADBLANKS    0x0008    /* Remove all leading blanks          */
  57. #define RTRBLANKS    0x0010    /* Remove trailing blanks          */
  58. #define RAALPHA     0x0020    /* Remove all alphabetic characters      */
  59. #define RANUMERIC    0x0040    /* Remove all numeric characters      */
  60. #define RAPUNCT     0x0080    /* Remove all punctuation          */
  61. #define CMBTOSINGLE    0x0100    /* Convert multiple blanks to single      */
  62. #define    CLCTOUPPER    0x0200    /* Convert lower case characters to upper */
  63. #define    CUCTOLOWER    0x0400    /* Convert upper case characters to lower */
  64. #define UCWORDS     0x0800    /* Capitalize all words           */
  65. #define NUCWORDS    0x1000    /* Un-Capitalize all words          */
  66.  
  67. /* Error codes returned from some functions.
  68. **
  69. */
  70. #define GFSUCCESS          0     /* Operation successful        */
  71. #define OPENSOURCEERROR      -1     /* Unable to open source file        */
  72. #define OPENDESTINATIONERROR     -2     /* Unable to open destination file */
  73. #define NOTENOUGHMEMORY      -3     /* Problems allocating memory        */
  74. #define CANTWRITEDEST         -4     /* Problems writing destination    */
  75. #define CANTOPENFILE         -5     /* Problems opening file        */
  76. #define CANTREADFILE         -6     /* Problems reading file        */
  77. #define INVALIDFILE         -7     /* Invalid file            */
  78.  
  79. /* Error codes returned by print spooler interface functions.
  80. **
  81. */
  82. #define PSINVALFUNCT         0x001  /* Invalid function     */
  83. #define PSFILENOTFOUND         0x002  /* File not found     */
  84. #define PSPATHNOTFOUND         0x003  /* Path not found     */
  85. #define PSTOOMANYFILES         0x004  /* Too many open files  */
  86. #define PSACCESSDENIED         0x005  /* Access denied     */
  87. #define PSQUEUEFULL         0x008  /* Print queue is full  */
  88. #define PSBUSY             0x009  /* Busy         */
  89. #define PSNAMETOOLONG         0x00c  /* Name too long     */
  90. #define PSINVALDRIVE         0x00f  /* Invalid drive     */
  91.  
  92.  
  93. #define COMPMARK    0x90    /* Special byte that signifies a run
  94.                    sequence and that a count byte follows */
  95.  
  96. #define SCRNFILID    0x4334    /* Identifies Greenleaf Screen file */
  97.  
  98. typedef struct {
  99.     int    gffileid;    /* Magic number to identify file    */
  100.     int    gfuversion;    /* Version of Greenleaf Functions   */
  101.     int    gfurevision;    /* Revision of "    "            */
  102.     int    gfsumcheck;    /* Sum of items 1-3            */
  103.     int    gfstructsize;    /* Size of structure            */
  104.     int    gfreadsize;    /* Number of bytes to read screen   */
  105.     int    gfcurrow,    /* Cursor column/row            */
  106.         gfcurcol,
  107.         gfrows,     /* Number of rows/columns        */
  108.         gfcols,
  109.         gfvidmode;    /* Video mode to use            */
  110.  
  111. } GFSCRNHDR;
  112.  
  113. union    GFSCRNFILE {
  114.     GFSCRNHDR f;
  115.     char    gfsfpad[256];
  116. };
  117.  
  118.  
  119.  
  120. #define CancelFile(a)                canfile(a)
  121. #define CancelRedirection(a)            canredir(a)
  122. #define CommitFile(a)                commitfi(a)
  123. #define CreateNewFile(a,b)             crnfile(a,b)
  124. #define CreateUniqueFile(a,b)            crunfile(a,b)
  125. #define DirectInputToKeyboardBuffer(a)        dinptokb(a)
  126. #define FilesInQueue()                filesinq()
  127. #define GetComputerName(a,b,c)            getmanam(a,b,c)
  128. #define    GetExtDOSError(a,b,c)            dosexter(a,b,c)
  129. #define GetExtMemSize()                getexmem()
  130. #define GetInterruptVector(a)            getivect(a)
  131. #define GetPrinterSetup(a,b,c)            getprsup(a,b,c)
  132. #define GetQueuedFile(a,b)            getqfile(a,b)
  133. #define GetRedirectionEntry(a,b,c,d,e,f)    getreent(a,b,c,d,e,f)
  134. #define    InputToKeyboardBuffer(a)        inptokbb(a)
  135. #define RedirectDevice(a,b,c,d)         redirdev(a,b,c,d)
  136. #define SetDOSHandleCount(a)            sethncnt(a)
  137. #define SetInterruptVector(a,b)         setivect(a,b)
  138. #define SetPrinterSetup(a,b,c)            setprsup(a,b,c)
  139. #define SpoolerInstalled()            spoolins()
  140. #define SubmitFile(a)                subfile(a)
  141. #define UnlockFile(a,b,c)            unlkfile(a,b,c)
  142. #define dosxabsread(a,b,c,d)            dosrdabs(a,b,c,d)
  143. #define dosxabswrite(a,b,c,d)            doswrabs(a,b,c,d)
  144.  
  145. #define gisdigit(x) (((x>='0')&&(x<='9'))?1:0)
  146. #define gisspace(x) (((x==' ')||(x=='\t')||(x=='\n'))?1:0)
  147. #define xmax(a,b) ((int)(a)>(int)(b)?(int)(a):(int)(b))
  148. #define xmin(a,b) ((int)(a)<=(int)(b)?(int)(a):(int)(b))
  149.  
  150. #ifdef __cplusplus
  151. extern "C" {
  152. #endif
  153.  
  154.  bool GF_CONV  fexist(char *filename);
  155.  bool GF_CDECL getcarry(void);
  156.  bool GF_CDECL iscolor(void);
  157.  bool GF_CONV  isleap(int);
  158.  bool GF_CONV  isletter(char character);
  159.  bool GF_CDECL ismono(void);
  160.  bool GF_CDECL jprf(int columns,char *format,...);
  161.  bool GF_CONV  jprints(int columns,char *string);
  162.  bool GF_CONV  jprs(int columns,char *string);
  163.  bool GF_CONV  justify(char *dest,char *source,int width);
  164.  bool GF_CDECL rjprintf(int columns,int attribute,int page,char *format,...);
  165.  bool GF_CONV  rjprints(int columns,int attribute,int page,char *string);
  166.  bool GF_CONV  strnull(char *string);
  167.  bool GF_CONV  strtbig(char *string,int maxchars);
  168.  bool GF_CONV  strverify(char *string,char *test,int option);
  169.  
  170.  char* GF_CONV  getcountry(void);
  171.  
  172.  char* GF_CONV  getfield(char *dest,char *source,int width);
  173.  char* GF_CDECL getfname(struct DISKTABLE *diskdata);
  174.  char* GF_CONV  monthname(int month);
  175.  char* GF_CDECL ptrcnv(unsigned segment,unsigned offset);
  176.  char* GF_CONV  sgets(char *dest,char *source,int maxchars);
  177.  char* GF_CONV  strconvert(char *dest,char *source,int option,int maxchars);
  178.  char* GF_CONV  strcreplace(char *dest,char *source,int position,int count,
  179.          int maxchars);
  180.  char* GF_CONV  strdetab(char *dest,char *source,char *tabs,int defaulttab,
  181.          int opton,int maxchars);
  182.  char* GF_CONV  strentab(char *dest,char *source,char *tabs,int defaulttab,
  183.          int option,int maxchars);
  184.  char* GF_CDECL strmake(char *dest,char *source,...);
  185.  char* GF_CONV  strover(char *string,int position);
  186.  char* GF_CONV  strtranslate(char *destination,char *source,char *xlate,
  187.          char *substitute,int option,int maxchars);
  188.  char* GF_CONV  strxlate(char *dest,char *source,char **xlate,
  189.          char **substitute,int option,int maxchars);
  190.  char* GF_CONV  strxline(char *dest,char *source,int maxchars);
  191.  char* GF_CONV  wkday(int day);
  192.  char GF_CONV  _gtolower(char character);
  193.  char GF_CONV  _gtoupper(char character);
  194.  char GF_CONV  getdigit(void);
  195.  char GF_CONV  getyn(void);
  196.  int  GF_CONV  FileCopy(char *sourcefile,char *destfile,char *buffer,
  197.          unsigned int buffersize);
  198.  int GF_CDECL SetDate(int month,int day,int year);
  199.  int GF_CDECL setprsup(int index,int length,char *string);
  200.  int GF_CDECL SetTime(int hour,int minute,int second,int hsec);
  201.  int GF_CONV  _checkstring(char character,char *string,int option);
  202.  int GF_CONV  _gisalpha(char character);
  203.  int GF_CONV  _gisnum(char character);
  204.  int GF_CONV  _gispunct(char character);
  205.  int GF_CONV  _gisspace(char character);
  206.  int GF_CDECL _strcmp(char * *string1,char * *string2);
  207.  int GF_CDECL canfile(char *filename);
  208.  int GF_CDECL canredir(char *devicename);
  209.  int GF_CDECL commitfi(int handle);
  210.  int GF_CONV  compfile(char *infile,char *outfile);
  211.  int GF_CDECL crnfile(unsigned attribute,char *filename);
  212.  int GF_CDECL crunfile(unsigned attribute, char *filename);
  213.  int GF_CONV  curdn(int distance);
  214.  int GF_CDECL curdsk(void);
  215.  int GF_CONV  curlf(int distance);
  216.  int GF_CONV  currt(int distance);
  217.  int GF_CONV  curup(int distance );
  218.  int GF_CONV  datecomp(struct TIMEDATE *date1,struct TIMEDATE *date2,
  219.          int option);
  220.  int GF_CONV  dayofyr(int month,int day,int year);
  221.  int GF_CONV  dayr(void);
  222.  int GF_CONV  dayweek(int month,int day,int year);
  223.  int GF_CONV  daywk(int year,int month,int day);
  224.  int GF_CDECL dinptokb(unsigned scanchar);
  225.  int GF_CONV  diskstatus(int drive,int option);
  226.  int GF_CDECL dos1read(struct DISKTABLE *diskdata );
  227.  int GF_CDECL dos1write(struct DISKTABLE *diskdata);
  228.  int GF_CDECL dos2close(struct DISKTABLE *diskdata);
  229.  int GF_CDECL dos2create(struct DISKTABLE *diskdata);
  230.  int GF_CDECL dos2open(struct DISKTABLE *diskdata,int mode);
  231.  int GF_CDECL dos2read(struct DISKTABLE *diskdata);
  232.  int GF_CDECL dosabsread(int drive,unsigned sectors,unsigned startsector,
  233.          char *buffer);
  234.  int GF_CDECL dosabswrite(int drive,unsigned sectors,unsigned startsector,
  235.          char *buffer);
  236.  int GF_CDECL doschdir(char *directory);
  237.  int GF_CDECL doschmod(struct DISKTABLE *diskdata);
  238.  int GF_CDECL dosexter(int *class,int *action,int *locus);
  239.  int GF_CDECL dosfirst(char *filename,int attribute,char *dest);
  240.  int GF_CDECL dosgetdir(int drive,char *buffer);
  241.  int GF_CDECL dosgetmod(struct DISKTABLE *diskdata);
  242.  int GF_CDECL dosmkdir(char *directory);
  243.  int GF_CDECL dosnext(char *filename,int attribute,char *dest);
  244.  int GF_CDECL dosparse(struct DISKTABLE *diskdata);
  245.  int GF_CDECL dosrdabs(int drive,int sectors,long startsector,void *buffer);
  246.  int GF_CDECL dosrdrblk(struct DISKTABLE *diskdata);
  247.  int GF_CDECL dosrdrrec(struct DISKTABLE *diskdata);
  248.  int GF_CDECL dosrename(char *oldfilename,char *newfilename);
  249.  int GF_CDECL dosrmdir(char *directory);
  250.  int GF_CDECL dossrch(char *searchname,int attribute,char *filename,
  251.          struct TIMEDATE *filedate,long *filesize,unsigned *fileattr);
  252.  int GF_CDECL doswrabs(int drive,int sectors,long startsector,void *buffer);
  253.  int GF_CDECL doswtrblk(struct DISKTABLE *diskdata);
  254.  int GF_CDECL doswtrrec(struct DISKTABLE *diskdata);
  255.  int GF_CONV  equipment(int option);
  256.  int GF_CONV  expfile(char *infile,char *outfile);
  257.  int GF_CDECL fastdate(struct TIMEDATE *date);
  258.  int GF_CDECL fasttime(struct TIMEDATE *time);
  259.  int GF_CDECL fetchtime(struct TIMEDATE *time);
  260.  int GF_CONV  fgetfield(char *dest,FILE *filestream,int fieldlength);
  261.  int GF_CDECL filesinq(void);
  262.  int GF_CDECL filefind(unsigned attribute,char *pathname,FFFNBUF *buffer);
  263.  int GF_CDECL getfstamp(struct TIMEDATE *timedate,char *filename);
  264.  int GF_CONV  getline(char *dest,int maxchars);
  265.  int GF_CDECL getmanam(char *buffer,int *nameind,int *namenumber);
  266.  int GF_CDECL getprsup(int index, int *maxchars, char *buffer);
  267.  int GF_CDECL getqfile(int index, char *buffer);
  268.  int GF_CDECL getreent(unsigned index,char *localdevname,char *netname,
  269.          unsigned char *devstatus,unsigned char *devtype,unsigned *hide);
  270.  int GF_CDECL getverify(void);
  271.  int GF_CDECL ggetdta(struct DISKTABLE *diskdata);
  272.  int GF_CDECL inptokbb(unsigned scanchar);
  273.  int GF_CDECL jprintf(int columns,char *format,...);
  274.  int GF_CDECL memsize(void);
  275.  int GF_CONV  prbits(int density,int length,char *buffer);
  276.  int GF_CONV  prfixlf(int increment,int count);
  277.  int GF_CONV  prreset(int printerid);
  278.  int GF_CONV  prsetflen(int option,int linesperpage);
  279.  int GF_CONV  prstatus(int printerid);
  280.  int GF_CONV  prvarlf(int increment,int count);
  281.  int GF_CONV  prx(char character);
  282.  int GF_CDECL putfstamp(struct TIMEDATE *time,char *filename);
  283.  int GF_CONV  recffind(char *path,char *filespec,void (*usrfunc)(char *,char *,struct TIMEDATE *,unsigned char,unsigned long));
  284.  int GF_CDECL redirdev(unsigned devicetype,unsigned callervalue,char *source, 
  285.          char *dest);
  286.  int GF_CONV  restscrn(char *filename);
  287.  int GF_CONV  savscrn(char *filename);
  288.  int GF_CDECL seldsk(unsigned drive);
  289.  int GF_CDECL sethncnt(int count);
  290.  int GF_CDECL spoolins(void);
  291.  int GF_CONV  strb(char *dest,int position,int count);
  292.  int GF_CONV  strblf(char *dest,int count);
  293.  int GF_CONV  strbrt(char *dest,int count);
  294.  int GF_CONV  strcfind(char *string,char character);
  295.  int GF_CONV  strd(char *string,int position,int count);
  296.  int GF_CONV  strdlf(char *string,int count);
  297.  int GF_CONV  strdrt(char *string,int count);
  298.  int GF_CONV  strfind(char *searchedstring,char *string);
  299.  int GF_CONV  stri(char *dest,char character,int position,int count);
  300.  int GF_CONV  strilf(char *dest,char character,int count);
  301.  int GF_CONV  strirt(char *dest,char character,int count);
  302.  int GF_CONV  strmove(char *dest,char *source);
  303.  int GF_CONV  strpla(char *pointerarray[],char *newpointer);
  304.  int GF_CONV  strplb(char *pointerarray[],char *string,int inum);
  305.  int GF_CONV  strpld(char *pointerarray[],char *deleted);
  306.  int GF_CONV  strpli(char *pointerarray[],int count);
  307.  int GF_CONV  strplrm(char *pointerarray[]);
  308.  int GF_CONV  strplsrt(char *pointerarray[]);
  309.  int GF_CONV  strplsz(char *pointerarray[]);
  310.  int GF_CONV  strr(char *dest,char character,int start,int count);
  311.  int GF_CONV  strrlf(char *dest,char character,int count);
  312.  int GF_CONV  strrrt(char *dest,char character,int count);
  313.  int GF_CONV  strwb(char *dest,int start,int count);
  314.  int GF_CONV  strwblf(char *dest,int count);
  315.  int GF_CONV  strwbrt(char *dest,int count);
  316.  int GF_CONV  strwc(char *string);
  317.  int GF_CONV  strwd(char *dest,int start,int count);
  318.  int GF_CONV  strwdlf(char *dest,int count);
  319.  int GF_CONV  strwdrt(char *dest,int count);
  320.  int GF_CONV  strwi(char *dest,char *source,int count);
  321.  int GF_CONV  strwilf(char *dest,char *source);
  322.  int GF_CONV  strwirt(char *dest,char *source);
  323.  int GF_CONV  strwr(char *dest,char character,int start,int count);
  324.  int GF_CONV  strwrlf(char *dest,char character,int count);
  325.  int GF_CONV  strwrrt(char *dest,char character,int count);
  326.  int GF_CONV  strwx(char *dest,char *source,int start,int count);
  327.  int GF_CONV  strwxlf(char *dest,char *source,int count);
  328.  int GF_CONV  strwxrt(char *dest,char *source,int count);
  329.  int GF_CONV  strx(char *dest,char *source,int start,int count);
  330.  int GF_CONV  strxlf(char *dest,char *source,int count);
  331.  int GF_CONV  strxrt(char *dest,char *source,int count);
  332.  int GF_CDECL subfile(char *filename);
  333.  int GF_CDECL sysint(int intnumber,struct GFREGS *inregs,
  334.          struct GFREGS *outregs);
  335.  int GF_CDECL vidtype(void);
  336.  long GF_CDECL LockFile(int handle,long offset,long length);
  337.  long GF_CDECL diskfree(int drive,int option);
  338.  long GF_CDECL dos2append(struct DISKTABLE *diskdata);
  339.  long GF_CDECL dosfsize(struct DISKTABLE *diskdata);
  340.  long GF_CDECL dosseek(struct DISKTABLE *diskdata,long offset,int mode);
  341.  long GF_CDECL getlfs(struct DISKTABLE *diskdata);
  342.  long GF_CDECL getrrec(struct DISKTABLE *diskdata);
  343.  long GF_CDECL gfsize(char *filename);
  344.  long GF_CDECL setrrec(struct DISKTABLE *diskdata,long newrecord);
  345.  long GF_CDECL unlkfile(int handle,long offset,long length);
  346.  short GF_CONV gfrand(void);
  347.  short GF_CONV nfrom(short low,short high);
  348.  struct TIMEDATE* GF_CONV fmttime(struct TIMEDATE *timedatadata,int option);
  349.  struct TIMEDATE* GF_CONV ggettime(void);
  350.  struct TIMEDATE* GF_CONV sgettime(int option);
  351.  unsigned GF_CDECL _gcurvpc(void);
  352.  unsigned GF_CDECL _vmode(int videomode);
  353.  unsigned GF_CDECL dos1append(struct DISKTABLE *diskdata);
  354.  unsigned GF_CDECL dos1close(struct DISKTABLE *diskdata);
  355.  unsigned GF_CDECL dos1create(struct DISKTABLE *diskdata);
  356.  unsigned GF_CDECL dos1delete(struct DISKTABLE *diskdata);
  357.  unsigned GF_CDECL dos1open(struct DISKTABLE *diskdata);
  358.  unsigned GF_CDECL dos1rename(struct DISKTABLE *old,struct DISKTABLE *new);
  359.  unsigned GF_CDECL dos2delete(struct DISKTABLE *diskdata);
  360.  unsigned GF_CDECL dos2write(struct DISKTABLE *diskdata);
  361.  unsigned GF_CDECL dosversion(void);
  362.  unsigned GF_CDECL equip(void);
  363.  unsigned GF_CDECL getax(void);
  364.  unsigned GF_CDECL getblk(struct DISKTABLE *diskdata);
  365.  unsigned GF_CDECL getbp(void);
  366.  unsigned GF_CDECL getbx(void);
  367.  unsigned GF_CDECL getcrec(struct DISKTABLE *diskdata);
  368.  unsigned GF_CDECL getcs(void);
  369.  unsigned GF_CDECL getcur(int page);
  370.  unsigned GF_CDECL getcx(void);
  371.  unsigned GF_CDECL getdi(void);
  372.  unsigned GF_CDECL getdot(int row,int column);
  373.  unsigned GF_CDECL getds(void);
  374.  unsigned GF_CDECL getdx(void);
  375.  unsigned GF_CDECL getes(void);
  376.  unsigned GF_CDECL getfattr(struct DISKTABLE *diskdata);
  377.  unsigned GF_CDECL getflags(void);
  378.  unsigned GF_CDECL getlrs(struct DISKTABLE *diskdata);
  379.  unsigned GF_CDECL getsi(void);
  380.  unsigned GF_CDECL getsp(void);
  381.  unsigned GF_CDECL getss(void);
  382.  unsigned GF_CDECL gpeekb(unsigned segment,unsigned offset);
  383.  unsigned GF_CDECL machine(void);
  384.  unsigned GF_CDECL ofsspu(char *pointer);
  385.  unsigned GF_CDECL peekw(unsigned segment,unsigned offset);
  386.  unsigned GF_CDECL rdvch(int page);
  387.  unsigned GF_CDECL segspu(char *pointer);
  388.  unsigned GF_CDECL setblk(struct DISKTABLE *diskdata,unsigned block);
  389.  unsigned GF_CDECL setcrec(struct DISKTABLE *diskdata,unsigned newrecord);
  390.  unsigned GF_CDECL setfattr(struct DISKTABLE *diskdata,unsigned attribute);
  391.  unsigned GF_CDECL setlrs(struct DISKTABLE *diskdata,unsigned recordsize);
  392.  unsigned GF_CDECL fgetchat(int row,int col);
  393.  unsigned GF_CDECL getexmem(void);
  394.  unsigned GF_CDECL vstate(struct GFREGS *output);
  395.  #ifdef _MSC
  396.  void ( GF_CDECL interrupt far *getivect(unsigned) )  ();
  397.  #endif
  398.  
  399.  #ifdef TURBOC
  400.   void (interrupt far* GF_CDECL getivect(unsigned) ) ();
  401.  #endif
  402.  
  403.  #ifdef _MSC
  404.  void  GF_CDECL setivect( unsigned, void (GF_CDECL interrupt far *)() );
  405.  #endif
  406.  
  407.  #ifdef TURBOC
  408.  void GF_CDECL setivect(unsigned,void interrupt (far *)());
  409.  #endif
  410.  
  411.  void GF_CDECL _cursetc(int row,int col);
  412.  void GF_CDECL _wcvchr(char character,int count);
  413.  void GF_CONV  _xstrncpy(char *source,char *dest,unsigned int option);
  414.  void GF_CONV  atsay(int row,int col,char *string);
  415.  void GF_CDECL border(int color);
  416.  void GF_CONV  centers(char *dest,char *source,int columns);
  417.  void GF_CDECL ceprintf(int columns,char *format,...);
  418.  void GF_CDECL cls(void);
  419.  void GF_CONV  copytime(struct TIMEDATE *dest,struct TIMEDATE *source);
  420.  void GF_CDECL cpch(char character,int foreground,int background,int page);
  421.  void GF_CDECL cprf(int columns,char *format,...);
  422.  void GF_CONV  cprints(int columns,char *string);
  423.  void GF_CONV  cprs(int columns,char *string);
  424.  void GF_CDECL curset(int row,int column,int page);
  425.  void GF_CDECL curtype(int type,int startline,int stopline);
  426.  void GF_CDECL diskreset(void);
  427.  void GF_CDECL dnscroll(int lines,int urow,int lrow,int lcol,int rcol,
  428.          int attribute);
  429.  void GF_CONV  ebol(void);
  430.  void GF_CONV  ebos(void);
  431.  void GF_CONV  eeol(void);
  432.  void GF_CONV  eeos(void);
  433.  void GF_CDECL egets(char *buffer);
  434.  void GF_CONV  eline(void);
  435.  void GF_CONV  escape(void);
  436.  void GF_CDECL fatwch(int row,int column,int character,
  437.          unsigned char attribute);
  438.  void GF_CDECL fatwrtf(int row,int column,char *format,...);
  439.  void GF_CDECL fatwstr(int row,int column,char *string);
  440.  void GF_CONV  fcwrts(int columns,char *string);
  441.  void GF_CDECL fillbox(int urow,int lrow,int lcol,int rcol,int attribute);
  442.  void GF_CONV  fjarwrts(int row,int column,int columns,int attribute,
  443.          char *string);
  444.  void GF_CONV  fjatwrts(int row,int column,int columns,char *string);
  445.  void GF_CDECL font8x8(void);
  446.  void GF_CONV  formfeed(void);
  447.  void GF_CDECL fratwrtf(int row,int column,int attribute,char *format,...);
  448.  void GF_CDECL fratwstr(int row,int column,int attribute,char *string);
  449.  void GF_CONV  frcwrts(int columns,int attribute,char *string);
  450.  void GF_CDECL frwrtf(int attribute,char *format,...);
  451.  void GF_CDECL frwstr(int color,char *string);
  452.  void GF_CDECL fwrtf(char *format,...);
  453.  void GF_CDECL fwstr(char *string);
  454.  void GF_CDECL gcircle(int x,int y,int radius,int color,int aspnumer,
  455.          int aspdenom);
  456.  void GF_CDECL getscrn(int ulrow,int ulcol,int lrrow,int lrcol,
  457.          unsigned *buffer);
  458.  void GF_CONV  gfsrand(short initializer);
  459.  void GF_CDECL gline(int x1,int y1,int x2,int y2,int color);
  460.  void GF_CONV  gotodos(void);
  461.  void GF_CDECL gpokeb(unsigned segment,unsigned offset,unsigned value);
  462.  void GF_CDECL gprintf(char *format,...);
  463.  
  464.  void GF_CONV  gputchar(char character,int dum1, int dum2);
  465.  
  466.  void GF_CDECL grprintf(int attribute,char *format,...);
  467.  void GF_CDECL gsetdta(struct DISKTABLE *diskdata);
  468.  void GF_CDECL gsound(int frequency,int duration);
  469.  void GF_CONV  kbflush(void);
  470.  void GF_CONV  napage(int page);
  471.  void GF_CONV  gpaint(int urow,int lcol,int lrow,int rcol,int foreground,
  472.          int background);
  473.  void GF_CDECL palette(int id,int value);
  474.  void GF_CDECL pch(char character,int attribute,int page);
  475.  void GF_CDECL pokew(unsigned segment,unsigned offset,unsigned value);
  476.  void GF_CONV  prbell(void);
  477.  void GF_CONV  prblanks(int count);
  478.  void GF_CONV  prbold(int option);
  479.  void GF_CONV  prbufclr(void);
  480.  void GF_CONV  prcomp(int option);
  481.  void GF_CONV  prcrlf(void);
  482.  void GF_CONV  prdouble(int option);
  483.  void GF_CONV  premph(int option);
  484.  void GF_CDECL prf(char *format,...);
  485.  void GF_CONV  prfont(int fontselect);
  486.  void GF_CONV  prhome(void);
  487.  void GF_CONV  prhtab(void);
  488.  void GF_CONV  prhtabset(int optoin,int *tabarray);
  489.  
  490.  void GF_CONV prints(char *string);
  491.  
  492.  void GF_CONV  prmode(int mode);
  493.  void GF_CONV  prnorm(int option);
  494.  void GF_CONV  prputc(char character);
  495.  void GF_CONV  prputcr(void);
  496.  void GF_CONV  prputl(char *string);
  497.  void GF_CONV  prputlf(void);
  498.  void GF_CONV  prs(char *string);
  499.  void GF_CONV  prscreen(void);
  500.  void GF_CONV  prselect(int option);
  501.  void GF_CONV  prsetht(int *tab);
  502.  void GF_CONV  prsetvt(int *tabarray);
  503.  void GF_CONV  prskip(int option,int count);
  504.  void GF_CONV  prstop(int option);
  505.  void GF_CONV  prsub(int option);
  506.  void GF_CONV  prsuper(int option);
  507.  void GF_CONV  prunder(int option);
  508.  void GF_CONV  prunidir(int option);
  509.  void GF_CONV  pruse(int control);
  510.  void GF_CONV  prvtab(void);
  511.  void GF_CONV  prvtabset(int option,int *tabarray);
  512.  void GF_CONV  putcinc(char character,int attribute,int page);
  513.  void GF_CONV  puthexc(char character);
  514.  void GF_CONV  puthexs(char *string);
  515.  void GF_CONV  puthexw(int word);
  516.  void GF_CDECL putscrn(int ulrow,int ulcol,int lrrow,int lrcol,
  517.          unsigned *buffer);
  518.  void GF_CDECL putverify(int option);
  519.  void GF_CONV  ratsay(int row,int column,int attribute,int page,char *string);
  520.  void GF_CDECL rcprintf(int columns,int attribute,int page,char *format,...);
  521.  void GF_CONV  rcprints(int columns,int attribute,int page,char *string);
  522.  void GF_CDECL readpen(struct GFREGS *output);
  523.  void GF_CDECL rprintf(int attribute,int page,char *format,...);
  524.  void GF_CONV  rprints(int attribute,int page,char *string);
  525.  void GF_CONV  rputcinc(char character,int background,int foreground,
  526.          int blink,int page);
  527.  void GF_CONV  screen(int mode,int burst,int apage,int vpage);
  528.  void GF_CDECL setfdrvr(int driverid);
  529.  void GF_CDECL setmaxx(int maxx);
  530.  void GF_CDECL setmaxy(int maxy);
  531.  void GF_CDECL stackdump(int count,...);
  532.  void GF_CDECL timer(unsigned count);
  533.  void GF_CDECL tocolor(void);
  534.  void GF_CDECL tomono(void);
  535.  void GF_CDECL upscroll(int lines,int urrow,int lrow,int lcol,int rcol,
  536.          int attribute);
  537.  void GF_CONV  vmode(int mode);
  538.  void GF_CDECL vpage(int page);
  539.  void GF_CDECL wtdot(int row,int column,int color);
  540.  void GF_CDECL wttty(char character,int attribute);
  541.  void GF_CDECL wtvch(char character,int attribute,int page,int count);
  542.  void GF_CDECL wtvchar(char character,int page,int count);
  543.  void GF_CDECL _disenk(void);
  544.  
  545. #ifdef __cplusplus
  546. }
  547. #endif
  548.  
  549. #ifndef    GFGLOBALFILE
  550.  extern int gmaxcol,gmaxrow,gmaxpcol,gjwidth,gtabexp,_gfvers,_gfrev,_gvmtrp;
  551.  extern char gteol;
  552.  extern char _gfspbuf[];
  553.  extern unsigned _gferror;
  554. #endif
  555.