Subject: Re: indent vs. gindent
To: James K. Lowden <jklowden@schemamania.org>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 10/19/2002 17:09:53
[ On Saturday, October 19, 2002 at 16:03:52 (-0400), James K. Lowden wrote: ]
> Subject: Re: indent vs. gindent
>
> With your switches, I get:
> 
>         switch (which) {
>                 case DBSETBCP:
>                 tds_set_bulk(login->tds_login, (TDS_TINYINT) value);
>                 return SUCCEED;
>                 break;
>         case DBSETNOSHORT:
>         case DBSETENCRYPT:
>         case DBSETLABELED:
> 
> That's not the only example of early "case"s not obeying -cli0.  But I'm
> not using 1.6; maybe it's better later.  

This works fine for me, even on 1.3.2, at least when it's wrapped in
full syntax like this:

void
foo()
{
	int             which = DBSETBCP;

	switch (which) {
	case DBSETBCP:
		tds_set_bulk(login->tds_login, (TDS_TINYINT) value);
		return SUCCEED;
		break;
	case DBSETNOSHORT:
	case DBSETENCRYPT:
	case DBSETLABELED:
		break;
	}
}


-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>