-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOp.hxx
124 lines (120 loc) · 2.86 KB
/
Op.hxx
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
// Copyright Kabuki Starship� <kabukistarship.com>.
#include "Op.h"
#if SEAM >= SCRIPT2_DIC
#include "BSeq.hpp"
#include "Slot.h"
#include "Test.h"
#if SEAM == SCRIPT2_DIC
#include "_Debug.hxx"
#else
#include "_Release.hxx"
#endif
namespace _ {
/*
#if USING_SCRIPT2_TEXT
Op OpInit (IUW* socket, ISC boofer_size) {
BOut* bout = BOutInit (socket, boofer_size);
Op log;
log.bout = bout;
return log;
}
void Print (Op& log) {
BIn * bin = TPtr<BIn> (log.bout);
void * args[1];
IUA type = 0,
iua;
IUB iub;
IUC iuc;
IUD iud;
//ISA reserved,
ISA si1;
IUB si2;
IUC si4;
IUD si8;
FPC flt;
FPD dbl;
CHA index;
//if (BinReadChar (TPtr<BIn> (log.bout), index))
// return;
CHA socket[DBL_MAX_10_EXP + 2];
while (index ) {
switch (type) {
case STR_: {
if (BinRead (bin, Params<2, _ADR, STR_> (), Args (args, &iua,
socket)))
return;
Write (socket);
}
case _ISA: {
if (BinRead (bin, Params<2, _ADR, _ISA> (), Args (args, &si1)))
return;
Write (si1);
}
case _IUA: {
if (BinRead (bin, Params<2, _ADR, _IUA> (), Args (args, &iua)))
return;
Write (si1);
}
case _BOL: {
if (BinRead (bin, Params<2, _ADR, _ISA> (), Args (args, &si1)))
return;
Write (si1);
}
case _ISB: {
if (BinRead (bin, Params<2, _ADR, _ISB> (), Args (args, &si2)))
return;
Write (si1);
}
case _IUB: {
if (BinRead (bin, Params<2, _ADR, _IUB> (),
Args (args, &iub, socket)))
return;
Write (si1);
}
case _ISC: {
if (BinRead (bin, Params<2, _ADR, _ISC> (),
Args (args, &si4, socket)))
return;
Write (si1;
}
case _IUC: {
if (BinRead (bin, Params<2, _ADR, _IUC> (), Args (args, &iuc)))
return;
Write (si1;
}
case _ISD: {
if (BinRead (bin, Params<2, _ADR, _ISD> (), Args (args, &si8)))
return;
Write (si8;
}
case _IUD: {
if (BinRead (bin, Params<2, _ADR, _IUD> (), Args (args, &iud)))
return;
Write (iud;
}
case kTMC: {
if (BinRead (bin, Params<2, _ADR, kTMC> (), Args (args, &iuc)))
return;
ClockPrintTime (iuc);
}
case kTMD: {
if (BinRead (bin, Params<2, _ADR, kTMD> (), Args (args, &iud)))
return;
ClockPrintTimestamp (iud);
}
case _FPC: {
if (BinRead (bin, Params<2, _ADR, _FPC> (), Args (args, &flt)))
return;
Write (si1;
}
case _FPD: {
if (BinRead (bin, Params<2, _ADR, STR_> (), Args (args, &dbl)))
return;
Write (si1;
}
}
}
}
#endif */
} //< namespace _
#endif //> #if SEAM >= SCRIPT2_DIC