Milan Jurik <[EMAIL PROTECTED]> writes:

> Hi,
>
> I (or hg nits) have problem with this code:
>
> 409                 (void) fprintf(stderr, gettext(
> 410                     "usage: %s [-acm] [-r ref_file] file...\n"
> 411                     "       %s [-acm] [MMDDhhmm[yy]] file...\n"
> 412                     "       %s [-acm] [-t [[CC]YY]MMDDhhmm[.SS]] 
> file...\n"),
> 413                     myname, myname, myname);
>
> C style check:
> usr/src/cmd/touch/touch.c: 413: continuation line improperly indented
>
> I think such code was OK for wx, as the result of one point of view on 
> chapter 13. in C style doc. Where am I doing the mistake? How should it look 
> like? I tried to move lines 410-412, I tried several formats of line 413, no 
> success.

The code wouldn't have been Ok with wx, they both use cstyle -cPp

cstyle is unfortunately inspecific about what it wants with nested
continuation lines.

(here, you're continuing from the gettext() not the fprintf()...)

-- Rich
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to