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

« back to all changes in this revision

Viewing changes to fpcsrc/packages/extra/gtk2/glib/gwin32.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
 *  gwin32.inc
 
3
 *
 
4
 *  depends on gtypes.inc
 
5
 *}
 
6
 
 
7
{$ifdef WIN32}
 
8
 
 
9
{ Windows emulation stubs for common Unix functions
 
10
}
 
11
 
 
12
    const
 
13
      MAXPATHLEN = 1024;
 
14
 
 
15
    type
 
16
 
 
17
       Ppid_t = ^Tpid_t;
 
18
       Tpid_t = longint;
 
19
 
 
20
    { For some POSIX functions that are not provided by the MS runtime,
 
21
       we provide emulators in glib, which are prefixed with g_win32_.
 
22
      }
 
23
    function ftruncate(f:gint; size:guint):gint;cdecl;external gliblib name 'g_win32_ftruncate';
 
24
 
 
25
    function g_win32_ftruncate(f:gint; size:guint):gint;cdecl;external gliblib name 'g_win32_ftruncate';
 
26
 
 
27
    { The MS setlocale uses locale names of the form "English_United
 
28
       States.1252" etc. We want the Unixish standard form "en", "zh_TW"
 
29
       etc. This function gets the current thread locale from Windows and
 
30
       returns it as a string of the above form for use in forming file
 
31
       names etc. The returned string should be deallocated with g_free().
 
32
      }
 
33
 
 
34
    function g_win32_getlocale:Pgchar;cdecl;external gliblib name 'g_win32_getlocale';
 
35
 
 
36
    { Translate a Win32 error code (as returned by GetLastError()) into
 
37
       the corresponding message. The returned string should be deallocated
 
38
       with g_free().
 
39
      }
 
40
    function g_win32_error_message(error:gint):Pgchar;cdecl;external gliblib name 'g_win32_error_message';
 
41
 
 
42
    function g_win32_get_package_installation_directory(package:Pgchar; dll_name:Pgchar):Pgchar;cdecl;external gliblib name 'g_win32_get_package_installation_directory';
 
43
 
 
44
    function g_win32_get_package_installation_subdirectory(package:Pgchar; dll_name:Pgchar; subdir:Pgchar):Pgchar;cdecl;external gliblib name 'g_win32_get_package_installation_subdirectory';
 
45
 
 
46
 
 
47
 
 
48
{$endif}