misc.imp
上传用户:upcnvip
上传日期:2007-01-06
资源大小:474k
文件大小:2k
源码类别:

编译器/解释器

开发平台:

C/C++

  1. {IncludeFrom=misc <p2c/misc.h>}
  2. {*VarStrings=0} {*ExportSymbol=misc_%s}
  3. module misc;    {homeless orphans}
  4. import sysglobals, asm; 
  5. export
  6. const
  7.   
  8.   null  = 0;    nullchar  = chr(0);
  9.                 homechar  = chr(1); 
  10.   etx   = 3; 
  11.   bell  = 7;    bellchar  = chr(7); 
  12.   bs    = 8;    leftchar  = chr(8); 
  13.   tab   = 9;    cteol     = chr(9); 
  14.   lf    = 10;   downchar  = chr(10); 
  15.   vt    = 11;   cteos     = chr(11); 
  16.   ff    = 12;   clearscr  = chr(12); 
  17.   cr    = 13;   eol       = chr(13); 
  18.   dle   = 16;     
  19.   esc   = 27;   escchar   = chr(27);
  20.   fsp   = 28;   rightchar = chr(28);
  21.   us    = 31;   upchar    = chr(31); 
  22.   del   = 127;
  23.   cntrl = 255; 
  24. type 
  25. (* CATALOGUE INFORMATION, zero entry refers to the directory itself *)
  26.   
  27.   catentry = record
  28.     cname:  tid;                {name of file or directory}
  29.     ceft:   shortint;           {external file type (LIF)}
  30.     ckind:  filekind;           {file kind}
  31.     cpsize: integer;            {physical size of file 
  32.                                         or of total data space on volume}
  33.     clsize: integer;            {logical size of file 
  34.                                         or unused space on medium}
  35.     cstart: integer;            {starting location of file 
  36.                                         or first possible data location}
  37.     cblocksize: integer;        {size of a sector or block}
  38.     ccreatedate, clastdate:  daterec;   {creation, last modified dates}
  39.     ccreatetime, clasttime:  timerec;   {creation, last modified times}
  40.     cextra1,                    {extension 
  41.                                         or total possible number of files
  42.                                         or requested number of files}
  43.     cextra2:   integer;         {secondary discretionary field
  44.                                         or start index of requested catalog}
  45.     cinfo:  string[20];         {comment or miscellaneous information}
  46.     
  47.     end; 
  48.     
  49.     passentry = record
  50.                  pbits: integer; 
  51.                  pword: passtype; 
  52.                  end; 
  53.     
  54. var
  55.   idle: byte;              { idle character -- 3.0 bug jws 3/20/84 }
  56.   
  57. procedure getioerrmsg(var s :string; lastior : integer);
  58. procedure printerror(errorcode, lastior: integer); 
  59. procedure upc(var s: string); 
  60. function ueovbytes(unit: unitnum): integer;
  61. procedure unblockeddam(anyvar f: fib; unum: unitnum; request: damrequesttype); 
  62. procedure initfilekinds;
  63. procedure lockup; 
  64. procedure lockdown; 
  65.   
  66. end.