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

« back to all changes in this revision

Viewing changes to fpcsrc/packages/extra/amunits/inc/useautoopenlib.inc

  • 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
 
 
2
{  useautoopenlib.inc }
 
3
 
 
4
{
 
5
    This file is part of the Free Pascal run time library.
 
6
 
 
7
    A file in Amiga system run time library.
 
8
    Copyright (c) 2003 by Nils Sjoholm
 
9
    member of the Amiga RTL development team.
 
10
 
 
11
    See the file COPYING.FPC, included in this distribution,
 
12
    for details about the copyright.
 
13
 
 
14
    This program is distributed in the hope that it will be useful,
 
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
17
 
 
18
 **********************************************************************}
 
19
 
 
20
{
 
21
   In this includefile you can set some defines on how
 
22
   to compile amiga units.
 
23
 
 
24
   use_auto_openlib.
 
25
   If you use use_auto_openlib the unit will compile
 
26
   with autoopening of the unit at startup. You don't
 
27
   have to think about open and close the library, all
 
28
   is done in the unit. One problem is that the library
 
29
   will be loaded at startup so there can be a memory-
 
30
   problem. As default I have compiled all amiga system
 
31
   units as autoopened. Exec, intuition, amigados and
 
32
   utility is all opened on startup by sysamiga.
 
33
 
 
34
 
 
35
   use_init_openlib.
 
36
   If you compile with this define you get a procedure
 
37
   in every unit as an example for asl.library you
 
38
   have "procedure InitAslLibrary;". All you have to
 
39
   do is
 
40
   InitAslLibrary in the beginning of your program.
 
41
   You don't have to close the library the unit will
 
42
   handle that.
 
43
 
 
44
   dont_use_openlib.
 
45
   This is the standard amiga way. You have to open
 
46
   the library yourself and at the end close it.
 
47
 
 
48
   When you compile a unit you will get warnings or
 
49
   info on how the defines are set.
 
50
 
 
51
   First version of this include.
 
52
   11 Jan 2003.
 
53
 
 
54
   Added use_init_openlib and dont_use_openlib.
 
55
   21 Jan 2003.
 
56
 
 
57
   nils.sjoholm@mailbox.swipnet.se
 
58
 
 
59
}
 
60
 
 
61
{
 
62
   Make sure that there is only one define set.
 
63
   Just put a space before the define to undef
 
64
}
 
65
 
 
66
{$define use_auto_openlib}
 
67
{ $define use_init_openlib}
 
68
{ $define dont_use_openlib}
 
69
 
 
70
{$ifdef use_auto_openlib}
 
71
   {$undef use_init_openlib}
 
72
   {$undef use_init_openlib}
 
73
{$endif use_auto_openlib}
 
74
 
 
75
{$ifdef use_init_openlib}
 
76
   {$undef use_auto_openlib}
 
77
   {$undef dont_use_openlib}
 
78
{$endif use_init_openlib}
 
79
 
 
80
{$ifdef dont_use_openlib}
 
81
   {$undef use_auto_openlib}
 
82
   {$undef use_init_openlib}
 
83
{$endif dont_use_openlib}
 
84
 
 
85
 
 
86
 
 
87