printer.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,98 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. Printer unit for BP7 compatible RTL
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit printer;
  14. interface
  15. var
  16. lst : text;
  17. implementation
  18. var
  19. old_exit : pointer;
  20. procedure printer_exit;
  21. begin
  22. close(lst);
  23. exitproc:=old_exit;
  24. end;
  25. begin
  26. assign(lst,'PRN');
  27. rewrite(lst);
  28. old_exit:=exitproc;
  29. exitproc:=@printer_exit;
  30. end.
  31. {
  32. $Log$
  33. Revision 1.2 1998-05-22 00:39:26 peter
  34. * go32v1, go32v2 recompiles with the new objects
  35. * remake3 works again with go32v2
  36. - removed some "optimizes" from daniel which were wrong
  37. }