* Makefile.in: Add YA method for generating devices.cc.
* child_info.h: YA update of another magic number. * gendevices: New file. * devices.in: New file. * devices.cc: Regenerate. * devices.shilka: Remove. * devices.h: Correctly define device pointers. (device): Remove now obsolete fields. (device::native): Renamed from device::fmt. * dtable.cc (build_fh_dev): Simplify in light of new unit parsing scheme. (build_fh_pc): Ditto. * path.cc (win32_device_name): Ditto. * fhandler.h (fhandler_base::get_native_name): Reflect renaming of fmt to native. * fhandler_tty.cc (fhandler_tty_mster::init): Initialize slave device prior to reporting unit.
This commit is contained in:
@@ -899,22 +899,8 @@ static BOOL
|
||||
win32_device_name (const char *src_path, char *win32_path, device& dev)
|
||||
{
|
||||
dev.parse (src_path);
|
||||
|
||||
if (dev.devn == FH_FS)
|
||||
return false;
|
||||
|
||||
switch (dev.major)
|
||||
{
|
||||
case DEV_TAPE_MAJOR:
|
||||
__small_sprintf (win32_path, dev.fmt, dev.minor % 128);
|
||||
break;
|
||||
case DEV_SD_MAJOR:
|
||||
__small_sprintf (win32_path, dev.fmt, dev.minor / 16, dev.minor % 16);
|
||||
break;
|
||||
default:
|
||||
__small_sprintf (win32_path, dev.fmt, dev.minor);
|
||||
}
|
||||
return true;
|
||||
strcpy (win32_path, dev.native);
|
||||
return dev.devn != FH_FS;
|
||||
}
|
||||
|
||||
/* Normalize a Win32 path.
|
||||
|
Reference in New Issue
Block a user