Changeset 639
- Timestamp:
- Aug 19, 2003, 2:11:21 AM (22 years ago)
- Location:
- trunk/testcase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/570c.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r638 r639 69 69 70 70 71 /* 72 * Variables 73 */ 74 void (* _System PVar1Void)(int a, int b, int c, int d); 75 void * (* _System PVar1PVoid)(int a, int b, int c, int d); 76 int (* _System PVar1Int)(int a, int b, int c, int d); 77 PTYPE (* _System PVar1PType)(int a, int b, int c, int d); 78 79 /* Alternate writing which should have the same effect I think... */ 80 void (_System * PVar2Void)(int a, int b, int c, int d); 81 void * (_System * PVar2PVoid)(int a, int b, int c, int d); 82 int (_System * PVar2Int)(int a, int b, int c, int d); 83 PTYPE (_System * PVar2PType)(int a, int b, int c, int d); 84 85 86 71 87 int DoC(int a, int b, int c, int d) 72 88 { … … 93 109 static PTypedef2Int pfnPTypedef2Int = Int; 94 110 static PTypedef2PType pfnPTypedef2PType = PType; 111 112 PVar1Void = Void; 113 PVar1PVoid = PVoid; 114 PVar1Int = Int; 115 PVar1PType = PType; 116 117 PVar2Void = Void; 118 PVar2PVoid = PVoid; 119 PVar2Int = Int; 120 PVar2PType = PType; 95 121 96 122 … … 134 160 vft.PStructMember2PType(1,2,3,4); 135 161 162 163 /* variables */ 164 PVar1Void(1,2,3,4); 165 PVar1PVoid(1,2,3,4); 166 PVar1Int(1,2,3,4); 167 PVar1PType(1,2,3,4); 168 169 PVar2Void(1,2,3,4); 170 PVar2PVoid(1,2,3,4); 171 PVar2Int(1,2,3,4); 172 PVar2PType(1,2,3,4); 173 136 174 return 0; 137 175 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/testcase/570main.cpp
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r638 r639 101 101 102 102 103 /* 104 * Variables 105 */ 106 void (* _System PVar1Void)(int a, int b, int c, int d); 107 void * (* _System PVar1PVoid)(int a, int b, int c, int d); 108 int (* _System PVar1Int)(int a, int b, int c, int d); 109 PTYPE (* _System PVar1PType)(int a, int b, int c, int d); 110 111 /* Alternate writing which should have the same effect I think... */ 112 void (_System * PVar2Void)(int a, int b, int c, int d); 113 void * (_System * PVar2PVoid)(int a, int b, int c, int d); 114 int (_System * PVar2Int)(int a, int b, int c, int d); 115 PTYPE (_System * PVar2PType)(int a, int b, int c, int d); 116 117 118 119 103 120 extern "C" int DoC(void); 104 121 int main(void) … … 127 144 static PTypedef2PType pfnPTypedef2PType = PType; 128 145 146 PVar1Void = Void; 147 PVar1PVoid = PVoid; 148 PVar1Int = Int; 149 PVar1PType = PType; 150 151 PVar2Void = Void; 152 PVar2PVoid = PVoid; 153 PVar2Int = Int; 154 PVar2PType = PType; 155 156 129 157 /* extern functions */ 130 158 ExternCVoid(1,2,3,4); … … 183 211 vft.PStructMember2PType(1,2,3,4); 184 212 213 /* variables */ 214 PVar1Void(1,2,3,4); 215 PVar1PVoid(1,2,3,4); 216 PVar1Int(1,2,3,4); 217 PVar1PType(1,2,3,4); 218 219 PVar2Void(1,2,3,4); 220 PVar2PVoid(1,2,3,4); 221 PVar2Int(1,2,3,4); 222 PVar2PType(1,2,3,4); 223 185 224 /* test C stuff */ 186 225 DoC(); -
Property cvs2svn:cvs-rev
changed from
-
trunk/testcase/572c.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r638 r639 69 69 70 70 71 /* 72 * Variables 73 */ 74 void (* _Optlink PVar1Void)(int a, int b, int c, int d); 75 void * (* _Optlink PVar1PVoid)(int a, int b, int c, int d); 76 int (* _Optlink PVar1Int)(int a, int b, int c, int d); 77 PTYPE (* _Optlink PVar1PType)(int a, int b, int c, int d); 78 79 /* Alternate writing which should have the same effect I think... */ 80 void (_Optlink * PVar2Void)(int a, int b, int c, int d); 81 void * (_Optlink * PVar2PVoid)(int a, int b, int c, int d); 82 int (_Optlink * PVar2Int)(int a, int b, int c, int d); 83 PTYPE (_Optlink * PVar2PType)(int a, int b, int c, int d); 84 85 71 86 int DoC(int a, int b, int c, int d) 72 87 { … … 93 108 static PTypedef2Int pfnPTypedef2Int = CInt; 94 109 static PTypedef2PType pfnPTypedef2PType = CPType; 110 111 PVar1Void = CVoid; 112 PVar1PVoid = CPVoid; 113 PVar1Int = CInt; 114 PVar1PType = CPType; 115 116 PVar2Void = CVoid; 117 PVar2PVoid = CPVoid; 118 PVar2Int = CInt; 119 PVar2PType = CPType; 95 120 96 121 … … 134 159 vft.PStructMember2PType(1,2,3,4); 135 160 161 /* variables */ 162 PVar1Void(1,2,3,4); 163 PVar1PVoid(1,2,3,4); 164 PVar1Int(1,2,3,4); 165 PVar1PType(1,2,3,4); 166 167 PVar2Void(1,2,3,4); 168 PVar2PVoid(1,2,3,4); 169 PVar2Int(1,2,3,4); 170 PVar2PType(1,2,3,4); 171 136 172 return 0; 137 173 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/testcase/572main.cpp
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r638 r639 103 103 104 104 105 /* 106 * Variables 107 */ 108 void (* _Optlink PVar1Void)(int a, int b, int c, int d); 109 void * (* _Optlink PVar1PVoid)(int a, int b, int c, int d); 110 int (* _Optlink PVar1Int)(int a, int b, int c, int d); 111 PTYPE (* _Optlink PVar1PType)(int a, int b, int c, int d); 112 113 /* Alternate writing which should have the same effect I think... */ 114 void (_Optlink * PVar2Void)(int a, int b, int c, int d); 115 void * (_Optlink * PVar2PVoid)(int a, int b, int c, int d); 116 int (_Optlink * PVar2Int)(int a, int b, int c, int d); 117 PTYPE (_Optlink * PVar2PType)(int a, int b, int c, int d); 118 119 105 120 extern "C" int DoC(void); 106 121 int main(void) … … 129 144 static PTypedef2PType pfnPTypedef2PType = PType; 130 145 146 PVar1Void = Void; 147 PVar1PVoid = PVoid; 148 PVar1Int = Int; 149 PVar1PType = PType; 150 151 PVar2Void = Void; 152 PVar2PVoid = PVoid; 153 PVar2Int = Int; 154 PVar2PType = PType; 155 156 131 157 /* extern functions */ 132 158 ExternCVoid(1,2,3,4); … … 185 211 vft.PStructMember2PType(1,2,3,4); 186 212 213 /* variables */ 214 PVar1Void(1,2,3,4); 215 PVar1PVoid(1,2,3,4); 216 PVar1Int(1,2,3,4); 217 PVar1PType(1,2,3,4); 218 219 PVar2Void(1,2,3,4); 220 PVar2PVoid(1,2,3,4); 221 PVar2Int(1,2,3,4); 222 PVar2PType(1,2,3,4); 223 187 224 /* test C stuff */ 188 225 DoC(); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.