On Tue, 2 May 2006, Glenn Maynard wrote: > > So, why won't we simply encode the knowledge about things which > > are safe for ub in a monstrous if-if-if statement? I considered > > this, but found it a) not safe enough, b) clumsy, c) redundant. > > I guess it seems more clumsy and redundant to me to do it by hand, > maintaining several dozen extra flags, rather than a bit of code. > But, I don't fully understand the interaction between libusual and > unusual_devs, so I'm sure you're right.
I wouldn't be just a _bit_ of code. The code would have to include all the information that's in the table -- which means it would end up being larger than the table is. Not to mention more error prone, because it would mix up a lot of C stuff along with the table information, thus making it more difficult to separate the general logic from the device-specific flags. Alan Stern ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel