~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fpcdocs/refex/ex32.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Program Example32;
 
2
 
 
3
{ Program to demonstrate the Inc function. }
 
4
 
 
5
Const
 
6
  C : Cardinal  = 1;
 
7
  L : Longint   = 1;
 
8
  I : Integer   = 1;
 
9
  W : Word      = 1;
 
10
  B : Byte      = 1;
 
11
  SI : ShortInt = 1;
 
12
  CH : Char     = 'A';
 
13
 
 
14
begin
 
15
  Inc (C);     { C:=2    }
 
16
  Inc (L,5);   { L:=6    }
 
17
  Inc (I,-3);  { I:=-2   }
 
18
  Inc (W,3);   { W:=4    }
 
19
  Inc (B,100); { B:=101  }
 
20
  Inc (SI,-3); { Si:=-2  }
 
21
  Inc (CH,1);  { ch:='B' }
 
22
end.
 
23