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

« back to all changes in this revision

Viewing changes to fpcsrc/packages/base/libc/gconvh.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
// function __UNKNOWN_10646_CHAR : wchar_t;
 
3
 
 
4
Const
 
5
//  __UNKNOWN_10646_CHAR = wchar_t($fffd);
 
6
 
 
7
  __GCONV_OK = 0;
 
8
  __GCONV_NOCONV = 1;
 
9
  __GCONV_NODB = 2;
 
10
  __GCONV_NOMEM = 3;
 
11
  __GCONV_EMPTY_INPUT = 4;
 
12
  __GCONV_FULL_OUTPUT = 5;
 
13
  __GCONV_ILLEGAL_INPUT = 6;
 
14
  __GCONV_INCOMPLETE_INPUT = 7;
 
15
  __GCONV_ILLEGAL_DESCRIPTOR = 8;
 
16
  __GCONV_INTERNAL_ERROR = 9;
 
17
 
 
18
  __GCONV_IS_LAST = $0001;
 
19
  __GCONV_IGNORE_ERRORS = $0002;
 
20
 
 
21
type
 
22
   // Forward definitions.
 
23
   P__gconv_step = ^__gconv_step;
 
24
   P__gconv_step_data = ^__gconv_step_data;
 
25
   P__gconv_loaded_object = pointer; // ^__gconv_loaded_object;
 
26
   P__gconv_trans_data = ^__gconv_trans_data;
 
27
 
 
28
 
 
29
   __gconv_fct = function (_para1:P__gconv_step; _para2:P__gconv_step_data; _para3:PPbyte; _para4:Pbyte; _para5:PPbyte;
 
30
                _para6:Psize_t; _para7:longint; _para8:longint):longint;cdecl;
 
31
 
 
32
   __gconv_init_fct = function (_para1:P__gconv_step):longint;cdecl;
 
33
 
 
34
   __gconv_end_fct = procedure (_para1:P__gconv_step);cdecl;
 
35
 
 
36
   __gconv_trans_fct = function (_para1:P__gconv_step; _para2:P__gconv_step_data; _para3:pointer; _para4:Pbyte; _para5:PPbyte;
 
37
                _para6:Pbyte; _para7:PPbyte; _para8:Psize_t):longint;cdecl;
 
38
 
 
39
   __gconv_trans_context_fct = function (_para1:pointer; _para2:Pbyte; _para3:Pbyte; _para4:Pbyte; _para5:Pbyte):longint;cdecl;
 
40
 
 
41
   __gconv_trans_query_fct = function (_para1:Pchar; _para2:PPPchar; _para3:Psize_t):longint;cdecl;
 
42
 
 
43
   __gconv_trans_init_fct = function (_para1:Ppointer; _para2:Pchar):longint;cdecl;
 
44
 
 
45
   __gconv_trans_end_fct = procedure (_para1:pointer);cdecl;
 
46
 
 
47
   __gconv_trans_data = record
 
48
        __trans_fct : __gconv_trans_fct;
 
49
        __trans_context_fct : __gconv_trans_context_fct;
 
50
        __trans_end_fct : __gconv_trans_end_fct;
 
51
        __data : pointer;
 
52
        __next : P__gconv_trans_data;
 
53
     end;
 
54
 
 
55
   __gconv_step = record
 
56
        __shlib_handle : P__gconv_loaded_object;
 
57
        __modname : Pchar;
 
58
        __counter : longint;
 
59
        __from_name : Pchar;
 
60
        __to_name : Pchar;
 
61
        __fct : __gconv_fct;
 
62
        __init_fct : __gconv_init_fct;
 
63
        __end_fct : __gconv_end_fct;
 
64
        __min_needed_from : longint;
 
65
        __max_needed_from : longint;
 
66
        __min_needed_to : longint;
 
67
        __max_needed_to : longint;
 
68
        __stateful : longint;
 
69
        __data : pointer;
 
70
     end;
 
71
 
 
72
   __gconv_step_data = record
 
73
        __outbuf : Pbyte;
 
74
        __outbufend : Pbyte;
 
75
        __flags : longint;
 
76
        __invocation_counter : longint;
 
77
        __internal_use : longint;
 
78
        __statep : P__mbstate_t;
 
79
        __state : __mbstate_t;
 
80
        __trans : P__gconv_trans_data;
 
81
     end;
 
82
 
 
83
 
 
84
   P__gconv_info = ^__gconv_info;
 
85
   __gconv_info = record
 
86
        __nsteps : size_t;
 
87
        __steps : P__gconv_step;
 
88
     end;
 
89
   __gconv_t = P__gconv_info;
 
90
   P__gconv_t = ^__gconv_t;
 
91
 
 
92
 
 
93
{ ---------------------------------------------------------------------
 
94
    Borland compatibility types
 
95
  ---------------------------------------------------------------------}
 
96
 
 
97
Type
 
98
  TGConvStep = __gconv_step;
 
99
  PGConvStep = ^__gconv_step;
 
100
 
 
101
  TGConvStepData = __gconv_step_data;
 
102
  PGConvStepData = ^TGConvStepData;
 
103
 
 
104
  TGConvTransData = __gconv_trans_data;
 
105
  PGConvTransData = ^TGConvTransData;
 
106
 
 
107
  TGConvInfo = __gconv_info;
 
108
  PGConvInfo = ^TGConvInfo;
 
109