home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / trl14db.zip / TRLSRC.EXE / TRTABLE.H < prev   
C/C++ Source or Header  |  1990-10-22  |  9KB  |  292 lines

  1. /*
  2.  *  trtable.h - Tom Rettig's Library functions list.
  3.  *
  4.  *  by Alastair Dallas, Ralph Davis, Tom Rettig, and Leonard Zerman
  5.  *
  6.  *  Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  7.  */
  8.  
  9. /*
  10.  * MINCONFIG is an example of how to configure trtable.h with a subset
  11.  * of the full Tom Rettig Library.  Define MINCONFIG in trlib.c to
  12.  * load only four functions: CMONTHN, ISPRINTER, RJUST, and TRVERS.
  13.  */
  14.  
  15. /*
  16.  * Every executable function in the table must be declared
  17.  * here first. (note: functions may be declared in any order)
  18.  *
  19.  * This is what causes the linker to include the function's
  20.  * object code from TRDBASE.LIB.
  21.  */
  22.  
  23. int _tr_vers();
  24. #ifndef MINCONFIG
  25. int allocate();
  26. int atlast();
  27. int atnext();
  28. int base();
  29. int base10();
  30. int biosattr();
  31. int blank();
  32. int boqtr();
  33. int buffers();
  34. int capfirst();
  35. int ceiling();
  36. int center();
  37. int chrcount();
  38. int chrfound();
  39. int chrswap();
  40. #endif
  41. int cmonthn();
  42. #ifndef MINCONFIG
  43. int country();
  44. int curdir();
  45. int curdrive();
  46. int dealloc();
  47. int dec();
  48. int decrypt();
  49. int depdb();
  50. int depsl();
  51. int depvaldb();
  52. int depvalsl();
  53. int dirmake();
  54. int dosvers();
  55. int dtoss();
  56. int effyield();
  57. int empty();
  58. int encrypt();
  59. int eoq();
  60. int eoqtr();
  61. int expand();
  62. int exponent();
  63. int fact();
  64. int files();
  65. int fileread();
  66. int filesize();
  67. int filewrite();
  68. int flr();
  69. int hex();
  70. int htoss();
  71. int inctime();
  72. int infinity();
  73. int int3();
  74. int isdrive();
  75. int isdsdate();
  76. int isfixed();
  77. int isleap();
  78. #endif
  79. int isprinter();
  80. #ifndef MINCONFIG
  81. int iststime();
  82. int lastday();
  83. int lastdrive();
  84. int leadchar();
  85. int lines();
  86. int ljust();
  87. int lognbasx();
  88. int logten();
  89. int lptswap();
  90. int makedate();
  91. int maketime();
  92. int mantissa();
  93. int mem();
  94. int mtoss();
  95. int ntod();
  96. int password();
  97. int peekbyte();
  98. int peekchar();
  99. int peekdbl();
  100. int peekint();
  101. int peeklong();
  102. int peekscr();
  103. int peekstr();
  104. int pokebyte();
  105. int pokechar();
  106. int pokedbl();
  107. int pokeint();
  108. int pokelong();
  109. int pokescr();
  110. int pokestr();
  111. int prnstatus();
  112. int prtsc();
  113. int quarter();
  114. int reg();
  115. int restscr();
  116. #endif
  117. int retc();           /* do not remove */
  118. int rjust();
  119. #ifndef MINCONFIG
  120. int root();
  121. int savescr();
  122. int separate();
  123. int shutdown();
  124. int soundex();
  125. int sstod();
  126. int sstoh();
  127. int sstom();
  128. int street();
  129. int tabstrip();
  130. int timestr();
  131. int tomoney();
  132. #endif
  133. int trvers();         /* do not remove */
  134. #ifndef MINCONFIG
  135. int tr_cursor();
  136. int tr_dosfunc();
  137. int tr_fileattr();
  138. int tr_list();
  139. int tr_memdump();
  140. int tr_offset();
  141. int tr_rombios();
  142. int tr_scroll();
  143. int tr_segment();
  144. int tstoh();
  145. int tstom();
  146. int tstos();
  147. int wpstrip();
  148. int wrap();
  149. #endif
  150.  
  151. /* It is vital that the following list remain in alphabetical order. */   
  152.  
  153. struct tr_dt tr_vectors[] =
  154.    {
  155.       /* type checking for call with TYPE() */
  156.       " C",          0,           0, "",     /* do not remove */
  157.       " D",          0,           0, "",
  158.       " L",          0,           0, "",     /* Must have preceding space */
  159.       " N",          0,           0, "",     /* Last type = element 3 */
  160. #ifndef MINCONFIG
  161.       "ALLOCATE",    &allocate,   1, "N",
  162.       "ATLAST",      &atlast,     2, "CC",
  163.       "ATNEXT",      &atnext,     3, "CCN",
  164.       "BASE",        &base,       2, "NN",
  165.       "BASE10",      &base10,     2, "NC",
  166.       "BIOSATTR",    &biosattr,   0, "",
  167.       "BLANK",       &blank,      1, "V",
  168.       "BOQTR",       &boqtr,      1, "D",
  169.       "BUFFERS",     &buffers,    0, "",
  170.       "CAPFIRST",    &capfirst,   1, "C",
  171.       "CEILING",     &ceiling,    1, "N",
  172.       "CENTER",      ¢er,     2, "CN",
  173.       "CHRCOUNT",    &chrcount,   2, "CC", 
  174.       "CHRFOUND",    &chrfound,   2, "CC",
  175.       "CHRSWAP",     &chrswap,    3, "CCC",
  176. #endif              
  177.       "CMONTHN",     &cmonthn,    1, "N",
  178. #ifndef MINCONFIG   
  179.       "COUNTRY",     &country,    0, "", 
  180.       "CURDIR",      &curdir,     1, "C",
  181.       "CURDRIVE",    &curdrive,   0, "",
  182.       "CURSOR",      &tr_cursor,  1, "C",
  183.       "DEALLOC",     &dealloc,    1, "C",
  184.       "DEC",         &dec,        1, "C",
  185.       "DECRYPT",     &decrypt,    2, "CC",
  186.       "DEPDB",       &depdb,      3, "NNN",
  187.       "DEPSL",       &depsl,      4, "NNNN",
  188.       "DEPVALDB",    &depvaldb,   3, "NNN",
  189.       "DEPVALSL",    &depvalsl,   4, "NNNN",
  190.       "DIRMAKE",     &dirmake,    1, "C",
  191.       "DOSFUNC",     &tr_dosfunc, 2, "CN", 
  192.       "DOSVERS",     &dosvers,    0, "",
  193.       "DTOSS",       &dtoss,      1, "N",
  194.       "EFFYIELD",    &effyield,   2, "NN",
  195.       "EMPTY",       &empty,      1, "V",
  196.       "ENCRYPT",     &encrypt,    2, "CC",
  197.       "EOQ",         &eoq,        5, "NNNNN",
  198.       "EOQTR",       &eoqtr,      1, "D",
  199.       "EXPAND",      &expand,     2, "CN", 
  200.       "EXPONENT",    &exponent,   1, "N",
  201.       "FACT",        &fact,       1, "N",
  202.       "FILEATTR",    &tr_fileattr,2, "CC",
  203.       "FILEREAD",    &fileread,   1, "C",
  204.       "FILES",       &files,      0, "",
  205.       "FILESIZE",    &filesize,   1, "C",
  206.       "FILEWRITE",   &filewrite,  2, "CC",
  207.       "FLR",         &flr,        1, "N",
  208.       "HEX",         &hex,        1, "N",
  209.       "HTOSS",       &htoss,      1, "N",
  210.       "INCTIME",     &inctime,    3, "NNN",
  211.       "INFINITY",    &infinity,   0, "",
  212.       "INT3",        &int3,       0, "", 
  213.       "ISDRIVE",     &isdrive,    1, "C",
  214.       "ISDSDATE",    &isdsdate,   1, "C",
  215.       "ISFIXED",     &isfixed,    1, "C",
  216.       "ISLEAP",      &isleap,     1, "C",
  217. #endif              
  218.       "ISPRINTER",   &isprinter,  0, "",
  219. #ifndef MINCONFIG   
  220.       "ISTSTIME",    &iststime,   1, "C", 
  221.       "LASTDAY",     &lastday,    2, "NN",
  222.       "LASTDRIVE",   &lastdrive,  0, "", 
  223.       "LEADCHAR",    &leadchar,   2, "CC", 
  224.       "LINES",       &lines,      2, "CN",
  225.       "LISTLIB",     &tr_list,    0, "",
  226.       "LJUST",       &ljust,      1, "C", 
  227.       "LOGNBASX",    &lognbasx,   2, "NN",
  228.       "LOGTEN",      &logten,     1, "N",
  229.       "LPTSWAP",     &lptswap,    0, "",
  230.       "MAKEDATE",    &makedate,   2, "CN",
  231.       "MAKETIME",    &maketime,   1, "C",
  232.       "MANTISSA",    &mantissa,   1, "N",
  233.       "MEM",         &mem,        0, "",
  234.       "MEMDUMP",     &tr_memdump, 1, "V",
  235.       "MTOSS",       &mtoss,      1, "N",
  236.       "NTOD",        &ntod,       3, "NNN",
  237.       "OFF",         &tr_offset,  1, "V",
  238.       "PASSWORD",    &password,   1, "C",
  239.       "PEEKBYTE",    &peekbyte,   2, "CN",
  240.       "PEEKCHAR",    &peekchar,   2, "CN",
  241.       "PEEKDBL",     &peekdbl,    2, "CN",
  242.       "PEEKINT",     &peekint,    2, "CN",
  243.       "PEEKLONG",    &peeklong,   2, "CN",
  244.       "PEEKSCR",     &peekscr,    2, "CN", 
  245.       "PEEKSTR",     &peekstr,    2, "CN",
  246.       "POKEBYTE",    &pokebyte,   3, "CNC",
  247.       "POKECHAR",    &pokechar,   3, "CNC",
  248.       "POKEDBL",     &pokedbl,    3, "CNN",
  249.       "POKEINT",     &pokeint,    3, "CNN",
  250.       "POKELONG",    &pokelong,   3, "CNN",
  251.       "POKESCR",     &pokescr,    2, "CN",
  252.       "POKESTR",     &pokestr,    3, "CNC",
  253.       "PRNSTATUS",   &prnstatus,  0, "",
  254.       "PRTSC",       &prtsc,      0, "",
  255.       "QUARTER",     &quarter,    1, "D",
  256.       "REG",         ®,        1, "C",
  257.       "RESTSCR",     &restscr,    1, "C",      /* from file   */
  258. #endif              
  259.       "RETC",        &retc,       1, "C",      /* do not remove */
  260.       "RJUST",       &rjust,      1, "C",
  261. #ifndef MINCONFIG   
  262.       "ROMBIOS",     &tr_rombios, 3, "NCN", 
  263.       "ROOT",        &root,       2, "NN",
  264.       "SAVESCR",     &savescr,    1, "C",      /* to file   */
  265.       "SCROLL",      &tr_scroll,  6, "NNNNNC",
  266.       "SEG",         &tr_segment, 1, "V",
  267.       "SEPARATE",    &separate,   1, "C",
  268.       "SOUNDEX",     &soundex,    1, "C",
  269.       "SSTOD",       &sstod,      1, "N",
  270.       "SSTOH",       &sstoh,      1, "N",
  271.       "SSTOM",       &sstom,      1, "N",
  272.       "STREET",      &street,     1, "C",
  273.       "TABSTRIP",    &tabstrip,   2, "CN",
  274.       "TIMESTR",     ×tr,    1, "N",
  275.       "TOMONEY",     &tomoney,    1, "N",
  276. #endif              
  277.       "TRVERS",      &_tr_vers,   0, "",     /* do not remove */
  278. #ifndef MINCONFIG   
  279.       "TSTOH",       &tstoh,      1, "C",
  280.       "TSTOM",       &tstom,      1, "C",
  281.       "TSTOS",       &tstos,      1, "C",
  282.       "WPSTRIP",     &wpstrip,    2, "CN",
  283.       "WRAP",        &wrap,       2, "CN",
  284. #endif              
  285.                   /* function returning pointer to int returning null */
  286.       "",         (int (*)())0,   0, ""    /* do not remove */
  287.    };
  288.  
  289. int numvecs = (sizeof(tr_vectors)/sizeof(tr_vectors[0])) - 1;
  290.  
  291. /* eof */
  292.