Nicolas Williams wrote:
> On Thu, Apr 30, 2009 at 04:02:36PM -0700, Jordan Brown wrote:
>> I would accept that as an answer for my problem.  That'd be nice - no code 
>> changes, just documenting the idiom.  Formally it's still take an ARC case 
>> to guarantee that it'd work.
> 
> Why?  To guarantee that this behavior of rpcgen does not change?  It's
> not already effectively Committed?  PSARC's take would be that rpcgen is
> Committed.

Every aspect of it?  It's really pretty rare that every aspect of a command 
is Committed.

It'd be kind of stupid, but is it really a Committed interface that 
rpcgen's generated output never uses "syslog" as a local variable? 
(Actually, that'd probably be OK, since your redefinition would probably be 
just as good.  Finding a fatal case is left as an exercise for the reader.)

Where are % lines emitted in the output?  Is it before the bulk of the 
generated code? I don't find it in the man page, but I'm pretty sure that I 
read somewhere that it's explicitly unspecified.

If I thought that the exact form of the generated code was Committed, I 
could just postprocess it with sed to remove _msgout or replace the calls 
to it, but I don't think that would be wise.

---

Foo.  % lines are emitted for all types of output files.  Putting "#define 
syslog mylog" into the generated *.h file would be a really bad idea.  My 
"#define _msgout mylog" would be better, but still wouldn't be good.

Back to the drawing board.

Hmm.  Maybe sed 's/syslog(/mylog(/'.  Bleah.

Reply via email to