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

编译器/解释器

开发平台:

C/C++

  1. { Declarations for Pascal built-in objects }
  2. { Note: All functions with unusual syntaxes are not included here }
  3. {*IgnoreNonAlpha=0}   { If Language=UCSD, make sure we can parse "__module" }
  4. __module SYSTEM;   {PERMANENT}
  5. __export
  6. { Standard Pascal functions }
  7. function  arctan(x : longreal) : longreal;
  8. function  cos(x : longreal) : longreal;
  9. function  exp(x : longreal) : longreal;
  10. function  ln(x : longreal) : longreal;
  11. procedure mark(var p);
  12. function  odd(i : integer) : boolean;
  13. procedure release(var p);
  14. function  round(x : longreal) : integer;
  15. function  sin(x : longreal) : longreal;
  16. function  sqrt(x : longreal) : longreal;
  17. function  trunc(x : longreal) : integer;
  18. { HP Pascal extensions }
  19. function  binary(s : string) : integer;
  20. procedure gotoxy(x, y : integer);
  21. function  hex(s : string) : integer;
  22. function  lastpos(anyvar f : text) : integer;
  23. function  linepos(var f : text) : integer;
  24. procedure moveleft(anyvar s, d : integer; i : integer);
  25. procedure moveright(anyvar s, d : integer; i : integer);
  26. function  octal(s : string) : integer;
  27. function  str(s : string; i, j : integer) : string;
  28. function  strlen(s : string) : integer;
  29. function  strltrim(s : string) : string;
  30. function  strmax(s : string) : integer;
  31. function  strpos(s, s2 : string) : integer;
  32. function  strrpt(s : string; i : integer) : string;
  33. function  strrtrim(s : string) : string;
  34. { Turbo/UCSD Pascal extensions }
  35. function  copy(s : string; i, j : integer) : string;
  36. procedure delete(var s; i, j : integer);
  37. function  frac(x : longreal) : longreal;
  38. procedure freemem(var p);
  39. procedure getmem(var p; i : integer);
  40. procedure insert(s : string; var s2; i : integer);
  41. function  length(s : string) : integer;
  42. function  log(x : longreal) : longreal;
  43. function  maxavail : integer;
  44. function  memavail : integer;
  45. procedure move(var s, d; i : integer);
  46. function  paramcount : integer;
  47. function  paramstr(i : integer) : string;
  48. function  pos(s, s2 : string) : integer;
  49. function  ptr(i, j : integer) : pointer;
  50. function  pwroften(r : longreal) : longreal;
  51. function  swap(i : integer) : integer;
  52. function  upcase(c : char) : char;
  53. { Turbo standard variables }
  54. var
  55.    HeapPtr, FreePtr: pointer;
  56. { Oregon Software Pascal-2 extensions }
  57. {FuncMacro p2_inew(n) = malloc(n)}
  58. {FuncMacro p2_new(x,n) = (*x = Malloc(n))}
  59. {FuncMacro p2_dispose(x,n) = Free(*x)}
  60. procedure noioerror(var f);
  61. function ioerror(var f) : boolean;
  62. function iostatus(var f) : integer;
  63. {FuncMacro exitst(s) = exit(s)}
  64. procedure exitst(s : integer);
  65. {FuncMacro P_getcmdline(low,high,line,len)=(*len=P_getcmdline(low,high,line))}
  66. procedure P_getcmdline(var line : array [low..high : integer] of char; var len : integer);
  67. procedure TimeStamp(var day, month, year, hour, min, sec : integer);
  68. { VAX Pascal extensions }
  69. function  expo(r : real) : integer;
  70. function  index(s, s2 : string) : integer;
  71. function  pad(s : string; padchar : char; size : integer) : string;
  72. function  substr(s : string; i, j : integer) : string;
  73. function  uround(x : longreal) : integer;
  74. function  utrunc(x : longreal) : integer;
  75. { MPW Pascal extensions }
  76. function  arccos(r : longreal) : longreal;
  77. function  arcsin(r : longreal) : longreal;
  78. function  arctanh(r : longreal) : longreal;
  79. function  cosh(r : longreal) : longreal;
  80. function  exp10(r : longreal) : longreal;
  81. function  log10(r : longreal) : longreal;
  82. function  scaneq(limit : integer; ch : char; var s : univ integer) : integer;
  83. function  scanne(limit : integer; ch : char; var s : univ integer) : integer;
  84. function  sinh(r : longreal) : longreal;
  85. function  tan(r : longreal) : longreal;
  86. function  tanh(r : longreal) : longreal;
  87. { SUN Pascal extensions }
  88. type alfa = packed array [1..10] of char;
  89. {FuncMacro argc = P_argc}
  90. function  argc : integer;
  91. {FuncMacro null = 0}
  92. procedure null;
  93. end.