Re: An alternative way of populating /proc

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Thu Apr 13 2000 - 07:22:47 EST


Mitchell Blank Jr wrote:
> > > create_proc_entries(NULL,
> > > "test:{bar:{x:%d,y:%d,z:%d},foo:%f}",
> > > &x, &y, &z, foo_fun);
> >
> > printf-style stuff sucks whenever you use more abstract types.
>
> I tend to agree - the "%" convention is just a throwback to a time
> before C had string constant concatenation. The above would be
> much cleaner if we did:

I disagree. "%" is used in GCC too -- for compactness.
Just compare "movl %w0,%1" with
"movl" ASM_ARG_WORD ASM_ARG0 "," ASM_ARG1.

The whole point of Matt Aubury's patch is to make the code that creates
proc entries more compact.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:21 EST