From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: dj@redhat.com Cc: gdb@sources.redhat.com Subject: Re: DOS/Windows-specific code: all the rest Date: Tue, 08 May 2001 10:53:00 -0000 Message-id: <5567-Tue08May2001205253+0300-eliz@is.elta.co.il> References: <20010503211502.21716.qmail@web6401.mail.yahoo.com> <3AF1DAA0.3060702@cygnus.com> <200105071609.TAA24129@is.elta.co.il> <200105081157.OAA06357@is.elta.co.il> X-SW-Source: 2001-05/msg00136.html > From: DJ Delorie > Newsgroups: cygnus.gdb > Date: 08 May 2001 12:31:28 -0400 > > Eli Zaretskii writes: > > - What's the story with files 29k-share/udi/ ? udi2go32.c seems to > > be DJGPP-specific, while udi2soc.c and udr.c are the other way > > around: all their code is ifdef'ed away under DJGPP. > > I wrote those. UDI required a custom version of go32 that had the UDI > interface libraries linked in, and a custom API between that go32 and > the program. It was quite a hack. On unix systems, the UDI interface > always sits on the other side of a socket, and it talks to the > hardware (or simulator) on your behalf. [...] > So, there needs to be one interface for each class of host environment > that UDI drivers exist for. This sounds as if we could simply remove the #ifdef's from these files, since each one of them is compiled on exactly one host, and they are all orthogonal. Am I missing something?