crstart.red 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module crstart; % CRACK Startup code
  2. % Moved here from crack header module.
  3. % FJW, 15 July 1998
  4. % load_package ezgcd,odesolve,factor,int,algint$
  5. % Do this load_package only at load time, not at compile time,
  6. % otherwise Win32-PSL can run out of memory during compilation:
  7. % apply1('load_package, '(ezgcd odesolve factor int algint))$
  8. packages_to_load ezgcd,odesolve,factor,int,algint$ % only at load time
  9. % The following procedure definition should not really be here, but it
  10. % also should not be in crack.red, which flags setprop lose if
  11. % necessary. This flag must be set before the file defining setprop
  12. % is compiled, so that the lose takes effect at compile time rather
  13. % than load time!
  14. % The following is defined in PSL but not CSL:
  15. symbolic procedure setprop(U, L);
  16. %% Store item L as the property list of U.
  17. %% FJW: Defined (but NOT flagged lose) in PSL only.
  18. %% FJW: A crude implementation for CSL.
  19. %% Note that in CSL flags are properties with value t.
  20. << for each p in plist U do remprop(U, car p);
  21. for each p in L do put(U, car p, cdr p) >>$
  22. setcrackflags()$
  23. !*fullroots := t$ % FJW: should all be local!
  24. !*dfprint := t$
  25. !*nopowers := t$ % FJW
  26. !*allowdfint := t$ % FJW: moved here from crintfix
  27. endmodule;
  28. end$