File: Channel.d

package info (click to toggle)
oo2c32 1.5.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 8,748 kB
  • ctags: 5,415
  • sloc: ansic: 95,007; sh: 473; makefile: 344; perl: 57; lisp: 21
file content (212 lines) | stat: -rw-r--r-- 4,912 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/* file generated by oo2c -- do not edit */
#include "Channel.h"
#include "Strings.h"

/* local definitions */
static Channel__ErrorContext Channel__errorContext;

/* function prototypes */
Msg__Msg Channel__GetError(int code);

/* module and type descriptors */
static const struct {
  int length;
  void* pad;
  const char name[8];
} _n0 = {8, NULL, {"Channel"}};
static struct _MD Channel_md = {
  NULL, 
  &Kernel__ModuleDesc_td.td, 
  {
    NULL, 
    (const unsigned char*)_n0.name, 
    -1, 
    NULL
  }
};

static const struct {
  int length;
  void* pad;
  const char name[12];
} _n1 = {12, NULL, {"ChannelDesc"}};
static const struct {
  int length;
  void* pad;
  _Type btypes[1];
} Channel__ChannelDesc_tdb = {
  1, 
  NULL, 
  {
    &Channel__ChannelDesc_td.td
  }
};
static const struct {
  int length;
  void* pad;
  const void* tbprocs[7];
} _tb0 = {7, NULL, {
  (void*)Channel__ChannelDesc_Length, 
  (void*)Channel__ChannelDesc_GetModTime, 
  (void*)Channel__ChannelDesc_NewReader, 
  (void*)Channel__ChannelDesc_NewWriter, 
  (void*)Channel__ChannelDesc_Flush, 
  (void*)Channel__ChannelDesc_Close, 
  (void*)Channel__ChannelDesc_ClearError
}};
struct _TD Channel__ChannelDesc_td = {
  NULL,
  &Types__TypeDesc_td.td,
  {
    Channel__ChannelDesc_tdb.btypes,
    _tb0.tbprocs,
    (const unsigned char*)_n1.name,
    &Channel_md.md,
    0, 
    '0', '1',
    sizeof(Channel__ChannelDesc),
    NULL
  }
};

static const struct {
  int length;
  void* pad;
  const char name[11];
} _n2 = {11, NULL, {"ReaderDesc"}};
static const struct {
  int length;
  void* pad;
  _Type btypes[1];
} Channel__ReaderDesc_tdb = {
  1, 
  NULL, 
  {
    &Channel__ReaderDesc_td.td
  }
};
static const struct {
  int length;
  void* pad;
  const void* tbprocs[6];
} _tb1 = {6, NULL, {
  (void*)Channel__ReaderDesc_Pos, 
  (void*)Channel__ReaderDesc_Available, 
  (void*)Channel__ReaderDesc_SetPos, 
  (void*)Channel__ReaderDesc_ReadByte, 
  (void*)Channel__ReaderDesc_ReadBytes, 
  (void*)Channel__ReaderDesc_ClearError
}};
struct _TD Channel__ReaderDesc_td = {
  NULL,
  &Types__TypeDesc_td.td,
  {
    Channel__ReaderDesc_tdb.btypes,
    _tb1.tbprocs,
    (const unsigned char*)_n2.name,
    &Channel_md.md,
    0, 
    '0', '1',
    sizeof(Channel__ReaderDesc),
    &Channel__ChannelDesc_td.td
  }
};

static const struct {
  int length;
  void* pad;
  const char name[11];
} _n3 = {11, NULL, {"WriterDesc"}};
static const struct {
  int length;
  void* pad;
  _Type btypes[1];
} Channel__WriterDesc_tdb = {
  1, 
  NULL, 
  {
    &Channel__WriterDesc_td.td
  }
};
static const struct {
  int length;
  void* pad;
  const void* tbprocs[5];
} _tb2 = {5, NULL, {
  (void*)Channel__WriterDesc_Pos, 
  (void*)Channel__WriterDesc_SetPos, 
  (void*)Channel__WriterDesc_WriteByte, 
  (void*)Channel__WriterDesc_WriteBytes, 
  (void*)Channel__WriterDesc_ClearError
}};
struct _TD Channel__WriterDesc_td = {
  NULL,
  &Types__TypeDesc_td.td,
  {
    Channel__WriterDesc_tdb.btypes,
    _tb2.tbprocs,
    (const unsigned char*)_n3.name,
    &Channel_md.md,
    0, 
    '0', '1',
    sizeof(Channel__WriterDesc),
    &Channel__ReaderDesc_td.td
  }
};

static const struct {
  int length;
  void* pad;
  const char name[17];
} _n4 = {17, NULL, {"ErrorContextDesc"}};
static const struct {
  int length;
  void* pad;
  _Type btypes[2];
} Channel__ErrorContextDesc_tdb = {
  2, 
  NULL, 
  {
    &Msg__ContextDesc_td.td, 
    &Channel__ErrorContextDesc_td.td
  }
};
static const struct {
  int length;
  void* pad;
  const void* tbprocs[1];
} _tb3 = {1, NULL, {
  (void*)Channel__ErrorContextDesc_GetTemplate
}};
struct _TD Channel__ErrorContextDesc_td = {
  NULL,
  &Types__TypeDesc_td.td,
  {
    Channel__ErrorContextDesc_tdb.btypes,
    _tb3.tbprocs,
    (const unsigned char*)_n4.name,
    &Channel_md.md,
    1, 
    '0', '1',
    sizeof(Channel__ErrorContextDesc),
    &Channel__WriterDesc_td.td
  }
};

/* local strings */
static const unsigned char _c14[] = "OOC:Core:Channel";
static const unsigned char _c13[] = "Failed to create unique name for temporary file";
static const unsigned char _c12[] = "No modification time available";
static const unsigned char _c11[] = "Error while closing the channel";
static const unsigned char _c10[] = "No write permission for channel";
static const unsigned char _c9[] = "No read permission for channel";
static const unsigned char _c8[] = "Invalid token type in input stream";
static const unsigned char _c7[] = "Read error";
static const unsigned char _c6[] = "Channel has been closed";
static const unsigned char _c5[] = "Trying to read past the end of the file";
static const unsigned char _c4[] = "Trying to set invalid position";
static const unsigned char _c3[] = "No space left on device";
static const unsigned char _c2[] = "Write error";
static const unsigned char _c1[] = "Invalid channel descriptor";
static const unsigned char _c0[] = "[unknown error code]";