mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 09:32:00 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| {
 | |
|     $Id$
 | |
|     This file is part of the Free Pascal run time library.
 | |
|     Copyright (c) 1999-2000 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,'PRN');
 | |
|   rewrite(lst);
 | |
|   old_exit:=exitproc;
 | |
|   exitproc:=@printer_exit;
 | |
| end.
 | |
| {
 | |
|   $Log$
 | |
|   Revision 1.4  2000-02-09 16:59:34  peter
 | |
|     * truncated log
 | |
| 
 | |
|   Revision 1.3  2000/01/07 16:41:50  daniel
 | |
|     * copyright 2000
 | |
| 
 | |
|   Revision 1.2  2000/01/07 16:32:33  daniel
 | |
|     * copyright 2000 added
 | |
| 
 | |
| }
 | 
