comparison dwt/internal/mozilla/nsID.d @ 333:8235a17d9255

Continued progress on Mozilla.d
author John Reimer <terminal.node@gmail.com>
date Sun, 19 Oct 2008 21:18:43 -0700
parents dd63eb078d7a
children 3f4a5c7d138f
comparison
equal deleted inserted replaced
332:9e715c0a8376 333:8235a17d9255
7 { 7 {
8 PRUint32 m0; 8 PRUint32 m0;
9 PRUint16 m1; 9 PRUint16 m1;
10 PRUint16 m2; 10 PRUint16 m2;
11 PRUint8[8] m3; 11 PRUint8[8] m3;
12 12 /+
13 static nsID opCall(PRUint32 v0, PRUint16 v1, PRUint16 v2, PRUint8[8] v3) 13 static nsID opCall(PRUint32 v0, PRUint16 v1, PRUint16 v2, PRUint8[8] v3)
14 { 14 {
15 nsID result; 15 nsID result;
16 result.m0 = v0; 16 result.m0 = v0;
17 result.m1 = v1; 17 result.m1 = v1;
18 result.m2 = v2; 18 result.m2 = v2;
19 for(int i=0; i<8; ++i) 19 for(int i=0; i<8; ++i)
20 result.m3[i] = v3[i]; 20 result.m3[i] = v3[i];
21 return result; 21 return result;
22 } 22 }
23 +/
23 } 24 }
24 25
25 alias nsID nsCID; 26 alias nsID nsCID;
26 alias nsID nsIID; 27 alias nsID nsIID;