diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-20 15:33:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-20 15:33:50 +0000 |
commit | 7b02cb30383f740a29c172f9765efa2460f3720a (patch) | |
tree | 6022ab364ce03676e996568adaa51c0f2efdb7df /winsup/cygwin | |
parent | 8c83fb05f171898541917b979be9a16caf2ee93d (diff) | |
download | newlib-7b02cb30383f740a29c172f9765efa2460f3720a.zip newlib-7b02cb30383f740a29c172f9765efa2460f3720a.tar.gz newlib-7b02cb30383f740a29c172f9765efa2460f3720a.tar.bz2 |
fix indentation
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/dtable.cc | 196 |
1 files changed, 98 insertions, 98 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 24a88ce..3dd540b 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -369,107 +369,107 @@ build_fh_pc (path_conv& pc) { fhandler_base *fh = NULL; - switch (pc.dev.major) - { - case DEV_TTYS_MAJOR: - fh = cnew (fhandler_tty_slave) (); - break; - case DEV_TTYM_MAJOR: - fh = cnew (fhandler_tty_master) (); - break; - case DEV_CYGDRIVE_MAJOR: - fh = cnew (fhandler_cygdrive) (); - break; - case DEV_FLOPPY_MAJOR: - case DEV_CDROM_MAJOR: - case DEV_SD_MAJOR: - fh = cnew (fhandler_dev_floppy) (); - break; - case DEV_TAPE_MAJOR: - fh = cnew (fhandler_dev_tape) (); - break; - case DEV_SERIAL_MAJOR: - fh = cnew (fhandler_serial) (); - break; - default: - switch (pc.dev) + switch (pc.dev.major) + { + case DEV_TTYS_MAJOR: + fh = cnew (fhandler_tty_slave) (); + break; + case DEV_TTYM_MAJOR: + fh = cnew (fhandler_tty_master) (); + break; + case DEV_CYGDRIVE_MAJOR: + fh = cnew (fhandler_cygdrive) (); + break; + case DEV_FLOPPY_MAJOR: + case DEV_CDROM_MAJOR: + case DEV_SD_MAJOR: + fh = cnew (fhandler_dev_floppy) (); + break; + case DEV_TAPE_MAJOR: + fh = cnew (fhandler_dev_tape) (); + break; + case DEV_SERIAL_MAJOR: + fh = cnew (fhandler_serial) (); + break; + default: + switch (pc.dev) + { + case FH_CONSOLE: + case FH_CONIN: + case FH_CONOUT: + fh = cnew (fhandler_console) (); + break; + case FH_PTYM: + fh = cnew (fhandler_pty_master) (); + break; + case FH_WINDOWS: + fh = cnew (fhandler_windows) (); + break; + case FH_FIFO: + fh = cnew (fhandler_fifo) (); + break; + case FH_PIPE: + case FH_PIPER: + case FH_PIPEW: + fh = cnew (fhandler_pipe) (); + break; + case FH_TCP: + case FH_UDP: + case FH_ICMP: + case FH_UNIX: + case FH_STREAM: + case FH_DGRAM: + fh = cnew (fhandler_socket) (); + break; + case FH_FS: + fh = cnew (fhandler_disk_file) (); + break; + case FH_NULL: + fh = cnew (fhandler_dev_null) (); + break; + case FH_ZERO: + case FH_FULL: + fh = cnew (fhandler_dev_zero) (); + break; + case FH_RANDOM: + case FH_URANDOM: + fh = cnew (fhandler_dev_random) (); + break; + case FH_MEM: + case FH_PORT: + fh = cnew (fhandler_dev_mem) (); + break; + case FH_CLIPBOARD: + fh = cnew (fhandler_dev_clipboard) (); + break; + case FH_OSS_DSP: + fh = cnew (fhandler_dev_dsp) (); + break; + case FH_PROC: + fh = cnew (fhandler_proc) (); + break; + case FH_REGISTRY: + fh = cnew (fhandler_registry) (); + break; + case FH_PROCESS: + fh = cnew (fhandler_process) (); + break; + case FH_NETDRIVE: + fh = cnew (fhandler_netdrive) (); + break; + case FH_TTY: { - case FH_CONSOLE: - case FH_CONIN: - case FH_CONOUT: - fh = cnew (fhandler_console) (); - break; - case FH_PTYM: - fh = cnew (fhandler_pty_master) (); - break; - case FH_WINDOWS: - fh = cnew (fhandler_windows) (); - break; - case FH_FIFO: - fh = cnew (fhandler_fifo) (); - break; - case FH_PIPE: - case FH_PIPER: - case FH_PIPEW: - fh = cnew (fhandler_pipe) (); - break; - case FH_TCP: - case FH_UDP: - case FH_ICMP: - case FH_UNIX: - case FH_STREAM: - case FH_DGRAM: - fh = cnew (fhandler_socket) (); - break; - case FH_FS: - fh = cnew (fhandler_disk_file) (); - break; - case FH_NULL: - fh = cnew (fhandler_dev_null) (); - break; - case FH_ZERO: - case FH_FULL: - fh = cnew (fhandler_dev_zero) (); - break; - case FH_RANDOM: - case FH_URANDOM: - fh = cnew (fhandler_dev_random) (); - break; - case FH_MEM: - case FH_PORT: - fh = cnew (fhandler_dev_mem) (); + if (myself->ctty == TTY_CONSOLE) + fh = cnew (fhandler_console) (); + else if (myself->ctty >= 0) + fh = cnew (fhandler_tty_slave) (); break; - case FH_CLIPBOARD: - fh = cnew (fhandler_dev_clipboard) (); - break; - case FH_OSS_DSP: - fh = cnew (fhandler_dev_dsp) (); - break; - case FH_PROC: - fh = cnew (fhandler_proc) (); - break; - case FH_REGISTRY: - fh = cnew (fhandler_registry) (); - break; - case FH_PROCESS: - fh = cnew (fhandler_process) (); - break; - case FH_NETDRIVE: - fh = cnew (fhandler_netdrive) (); - break; - case FH_TTY: - { - if (myself->ctty == TTY_CONSOLE) - fh = cnew (fhandler_console) (); - else if (myself->ctty >= 0) - fh = cnew (fhandler_tty_slave) (); - break; - } - case FH_KMSG: - fh = cnew (fhandler_mailslot) (); - break; - } + } + case FH_KMSG: + fh = cnew (fhandler_mailslot) (); + break; } + } if (!fh) fh = cnew (fhandler_nodevice) (); |