From 919f902e1c095722468313ffda76c68096dafc4c Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 17 Aug 1995 17:09:22 +0000 Subject: [PATCH] Oops. Garbage collect the ccd-specific grammar, too. --- usr.sbin/config.old/config.h | 3 +- usr.sbin/config.old/config.y | 60 +----------------------------------- 2 files changed, 2 insertions(+), 61 deletions(-) diff --git a/usr.sbin/config.old/config.h b/usr.sbin/config.old/config.h index 0534989fc1db..f67c79cca7c6 100644 --- a/usr.sbin/config.old/config.h +++ b/usr.sbin/config.old/config.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)config.h 5.14 (Berkeley) 7/1/91 - * $Id: config.h,v 1.17 1994/06/24 14:22:15 hpeyerl Exp $ + * $Id: config.h,v 1.18 1995/08/17 17:09:24 thorpej Exp $ */ /* @@ -199,7 +199,6 @@ int seen_vba; #if MACHINE_I386 int seen_isa; #endif -int seen_cd; struct device *connect(); struct device *dtab; diff --git a/usr.sbin/config.old/config.y b/usr.sbin/config.old/config.y index d2033dde0cad..75c36465ef9a 100644 --- a/usr.sbin/config.old/config.y +++ b/usr.sbin/config.old/config.y @@ -73,7 +73,6 @@ %type root_device_spec %type dump_device_spec %type swap_device_spec -%type comp_device_spec %{ @@ -110,7 +109,7 @@ * SUCH DAMAGE. * * from: @(#)config.y 5.14 (Berkeley) 7/1/91 - * $Id: config.y,v 1.16 1995/04/28 07:01:00 cgd Exp $ + * $Id: config.y,v 1.17 1995/08/17 17:09:22 thorpej Exp $ */ #include @@ -469,65 +468,8 @@ Device_spec: cur.d_name = $3; cur.d_type = PSEUDO_DEVICE; cur.d_slave = $4; - } | - PSEUDO_DEVICE Dev_name Cdev_init Cdev_info - = { - if (!eq(cur.d_name, "ccd")) - yyerror("improper spec for pseudo-device"); - seen_cd = 1; - cur.d_type = DEVICE; - verifycomp(*compp); }; -Cdev_init: - /* lambda */ - = { mkcomp(&cur); }; - -Cdev_info: - optional_on comp_device_list comp_option_list - ; - -comp_device_list: - comp_device_list AND comp_device - | comp_device - ; - -comp_device: - comp_device_spec - = { addcomp(*compp, $1); } - ; - -comp_device_spec: - device_name - = { - struct file_list *fl = newflist(COMPSPEC); - - fl->f_compdev = nametodev($1, 0, 'c'); - fl->f_fn = devtoname(fl->f_compdev); - $$ = fl; - } - | major_minor - = { - struct file_list *fl = newflist(COMPSPEC); - - fl->f_compdev = $1; - fl->f_fn = devtoname($1); - $$ = fl; - } - ; - -comp_option_list: - comp_option_list comp_option - | - /* lambda */ - ; - -comp_option: - INTERLEAVE NUMBER - = { cur.d_pri = $2; } | - FLAGS NUMBER - = { cur.d_flags = $2; }; - Dev_name: Init_dev Dev NUMBER = {