p-fast-binder.red 783 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. % P-FAST-BINDER.RED - Portable version of binding from compiled code
  2. %
  3. % Author: Eric Benson
  4. % Symbolic Computation Group
  5. % Computer Science Dept.
  6. % University of Utah
  7. % Date: 6 August 1982
  8. % Copyright (c) 1982 University of Utah
  9. %
  10. % This file is for use with *LAMBIND and *PROGBIND in
  11. % PC:P-LAMBIND.SL
  12. StartupTime <<
  13. LambindArgs!* := GtWArray 15;
  14. >>;
  15. on Syslisp;
  16. syslsp procedure LamBind V;
  17. % V is vector of IDs
  18. begin scalar N;
  19. V := VecInf V;
  20. N := VecLen V;
  21. for I := 0 step 1 until N do
  22. LBind1(VecItm(V, I), (LispVar LambindArgs!*)[I]);
  23. end;
  24. syslsp procedure ProgBind V;
  25. begin scalar N;
  26. V := VecInf V;
  27. N := VecLen V;
  28. for I := 0 step 1 until N do
  29. PBind1 VecItm(V, I);
  30. end;
  31. off Syslisp;
  32. END;