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
|
/* file generated by oo2c -- do not edit */
#include "StdChannels.h"
#include "PosixFileDescr.h"
#include "Termination.h"
/* local definitions */
Channel__Channel StdChannels__stdin;
Channel__Channel StdChannels__stdout;
Channel__Channel StdChannels__stderr;
StdChannels__NullChannel StdChannels__null;
static PosixFileDescr__Channel StdChannels__fd;
typedef struct StdChannels__ErrorContextDesc {
Msg__StringPtr id;
} StdChannels__ErrorContextDesc;
typedef struct StdChannels__ErrorContextDesc* StdChannels__ErrorContext;
static StdChannels__ErrorContext StdChannels__errorContext;
/* function prototypes */
Msg__Msg StdChannels__GetError(int code);
/* module and type descriptors */
static const struct {
int length;
void* pad;
const char name[12];
} _n0 = {12, NULL, {"StdChannels"}};
static struct _MD StdChannels_md = {
NULL,
&Kernel__ModuleDesc_td.td,
{
NULL,
(const unsigned char*)_n0.name,
-1,
NULL
}
};
static const struct {
int length;
void* pad;
const char name[16];
} _n1 = {16, NULL, {"NullChannelDesc"}};
static const struct {
int length;
void* pad;
_Type btypes[2];
} StdChannels__NullChannelDesc_tdb = {
2,
NULL,
{
&Channel__ChannelDesc_td.td,
&StdChannels__NullChannelDesc_td.td
}
};
static const struct {
int length;
void* pad;
const void* tbprocs[7];
} _tb0 = {7, NULL, {
(void*)StdChannels__NullChannelDesc_Length,
(void*)StdChannels__NullChannelDesc_GetModTime,
(void*)StdChannels__NullChannelDesc_NewReader,
(void*)StdChannels__NullChannelDesc_NewWriter,
(void*)StdChannels__NullChannelDesc_Flush,
(void*)StdChannels__NullChannelDesc_Close,
(void*)Channel__ChannelDesc_ClearError
}};
struct _TD StdChannels__NullChannelDesc_td = {
NULL,
&Types__TypeDesc_td.td,
{
StdChannels__NullChannelDesc_tdb.btypes,
_tb0.tbprocs,
(const unsigned char*)_n1.name,
&StdChannels_md.md,
1,
'0', '1',
sizeof(StdChannels__NullChannelDesc),
NULL
}
};
static const struct {
int length;
void* pad;
const char name[11];
} _n2 = {11, NULL, {"WriterDesc"}};
static const struct {
int length;
void* pad;
_Type btypes[2];
} StdChannels__WriterDesc_tdb = {
2,
NULL,
{
&Channel__WriterDesc_td.td,
&StdChannels__WriterDesc_td.td
}
};
static const struct {
int length;
void* pad;
const void* tbprocs[5];
} _tb1 = {5, NULL, {
(void*)StdChannels__WriterDesc_Pos,
(void*)StdChannels__WriterDesc_SetPos,
(void*)StdChannels__WriterDesc_WriteByte,
(void*)StdChannels__WriterDesc_WriteBytes,
(void*)Channel__WriterDesc_ClearError
}};
struct _TD StdChannels__WriterDesc_td = {
NULL,
&Types__TypeDesc_td.td,
{
StdChannels__WriterDesc_tdb.btypes,
_tb1.tbprocs,
(const unsigned char*)_n2.name,
&StdChannels_md.md,
1,
'0', '1',
sizeof(StdChannels__WriterDesc),
&StdChannels__NullChannelDesc_td.td
}
};
static const struct {
int length;
void* pad;
const char name[17];
} _n3 = {17, NULL, {"ErrorContextDesc"}};
static const struct {
int length;
void* pad;
_Type btypes[3];
} StdChannels__ErrorContextDesc_tdb = {
3,
NULL,
{
&Msg__ContextDesc_td.td,
&Channel__ErrorContextDesc_td.td,
&StdChannels__ErrorContextDesc_td.td
}
};
static const struct {
int length;
void* pad;
const void* tbprocs[1];
} _tb2 = {1, NULL, {
(void*)Channel__ErrorContextDesc_GetTemplate
}};
struct _TD StdChannels__ErrorContextDesc_td = {
NULL,
&Types__TypeDesc_td.td,
{
StdChannels__ErrorContextDesc_tdb.btypes,
_tb2.tbprocs,
(const unsigned char*)_n3.name,
&StdChannels_md.md,
2,
'0', '1',
sizeof(StdChannels__ErrorContextDesc),
&StdChannels__WriterDesc_td.td
}
};
/* local strings */
static const unsigned char _c0[] = "OOC:Core:StdChannels";
|