view dmd/backend/Srcpos.d @ 184:9f4e5ac4f0a3

One step closer to building on posix. There are two missing symbols so it actually doesn't build but previously it didn't build correctly anyway.
author Jacob Carlborg <doob@me.com>
date Tue, 02 Nov 2010 08:46:11 +0100
parents 10317f0c89a5
children
line wrap: on
line source

module dmd.backend.Srcpos;

struct Srcpos
{
    uint Slinnum;		// 0 means no info available
version (TX86) {
version (SPP_OR_SCPP) {
    Sfile** Sfilptr;	// file
///    #define srcpos_sfile(p)	(**(p).Sfilptr)
///    #define srcpos_name(p)	(srcpos_sfile(p).SFname)
}
version (MARS) {
    char* Sfilename;
///    #define srcpos_name(p)	((p).SFname)
}
}
version (M_UNIX) {
    short Sfilnum;		// file number
}
version (SOURCE_OFFSETS) {
    uint Sfiloff;	// byte offset
}
}