Browse Source

+ first version for amiga of printer unit by Nils Sjoholm

carl 27 years ago
parent
commit
322d273f31
1 changed files with 40 additions and 0 deletions
  1. 40 0
      rtl/amiga/printer.pp

+ 40 - 0
rtl/amiga/printer.pp

@@ -0,0 +1,40 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 1993,98 by Florian Klaempfl
+    member of the Free Pascal development team
+
+    Printer unit for BP7 compatible RTL
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+unit printer;
+interface
+
+var
+  lst : text;
+
+implementation
+
+var
+  old_exit : pointer;
+
+procedure printer_exit;
+begin
+  close(lst);
+  exitproc:=old_exit;
+end;
+
+
+begin
+  assign(lst,'prt:');
+  rewrite(lst);
+  old_exit:=exitproc;
+  exitproc:=@printer_exit;
+end.