~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/tests/tbs/tb0532.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{%skiptarget=wince}
 
2
 
 
3
program tb0532;
 
4
 
 
5
{Append was the recommended way to open devices in TP.
 
6
 A pitfall is that you cannot seek to the end of a device.
 
7
 
 
8
 It has to work on modern platforms too, because:
 
9
  - Rewrite will destroy the device on platforms where devices are
 
10
    files.
 
11
  - Reset doesn't allow writing to the device.
 
12
}
 
13
 
 
14
{$I+}
 
15
 
 
16
var null:text;
 
17
 
 
18
begin
 
19
{$ifdef Unix}
 
20
  assign(null,'/dev/null');
 
21
{$else}
 
22
  assign(null,'NUL');
 
23
{$endif}
 
24
  append(null);
 
25
  writeln(null,'Text disappearing into the black hole.');
 
26
  close(null);
 
27
end.