fast-binder.red 774 B

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