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

« back to all changes in this revision

Viewing changes to fcl/unix/ezcgi.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
 
    $Id: ezcgi.inc,v 1.7 2003/09/20 20:23:08 marco Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 1999-2000 by Michael Van Canneyt
5
 
 
6
 
    See the file COPYING.FPC, included in this distribution,
7
 
    for details about the copyright.
8
 
 
9
 
    This program is distributed in the hope that it will be useful,
10
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
 
 
13
 
 **********************************************************************}
14
 
 
15
 
 
16
 
Uses
17
 
{$ifdef ver1_0}
18
 
  Linux
19
 
{$else}
20
 
  baseUnix
21
 
{$endif}
22
 
  ;
23
 
 
24
 
{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
25
 
 
26
 
Function Getenv (Var EnvVar  : AnsiString): AnsiString;
27
 
 
28
 
Var P : Pchar;
29
 
 
30
 
begin
31
 
   // Linux version returns pchar.
32
 
   p:={$ifdef ver1_0}Linux.getenv{$else}BaseUnix.fpgetenv{$endif}(EnvVar);
33
 
   if P<>nil then
34
 
     getenv:=strpas(p)
35
 
   else
36
 
     getenv:='';
37
 
end;
38
 
 
39
 
{
40
 
  $Log: ezcgi.inc,v $
41
 
  Revision 1.7  2003/09/20 20:23:08  marco
42
 
   * fix
43
 
 
44
 
  Revision 1.6  2003/09/20 12:38:29  marco
45
 
   * FCL now compiles for FreeBSD with new 1.1. Now Linux.
46
 
 
47
 
  Revision 1.5  2002/09/07 15:15:29  peter
48
 
    * old logs removed and tabs fixed
49
 
 
50
 
}