printer.pp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998-2000 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 2000-01-07 16:32:23 daniel
  34. * copyright 2000 added
  35. Revision 1.1 1998/12/21 13:07:02 peter
  36. * use -FE
  37. Revision 1.2 1998/05/22 00:39:26 peter
  38. * go32v1, go32v2 recompiles with the new objects
  39. * remake3 works again with go32v2
  40. - removed some "optimizes" from daniel which were wrong
  41. }