annotate dmd/backend/Srcpos.d @ 0:10317f0c89a5

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.backend.Srcpos;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 struct Srcpos
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 uint Slinnum; // 0 means no info available
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 version (TX86) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 version (SPP_OR_SCPP) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 Sfile** Sfilptr; // file
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 /// #define srcpos_sfile(p) (**(p).Sfilptr)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 /// #define srcpos_name(p) (srcpos_sfile(p).SFname)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 version (MARS) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 char* Sfilename;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 /// #define srcpos_name(p) ((p).SFname)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 version (M_UNIX) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 short Sfilnum; // file number
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 version (SOURCE_OFFSETS) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 uint Sfiloff; // byte offset
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 }