classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] [generics] Patch: FYI: ProcessBuilder


From: Tom Tromey
Subject: Re: [cp-patches] [generics] Patch: FYI: ProcessBuilder
Date: 05 May 2005 08:27:51 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Robert" == Robert Schuster <address@hidden> writes:

>> -  for (i = 0; i < 3; i++)
>> +  for (i = 0; i < pipe_count; i++)
>> {
>> -      /* Mode is WRITE (2) for in and READ (1) for out and err. */
>> const int fd = fds[i][i == 0];
>> -      const int mode = (i == 0) ? 2 : 1;
>> +      const int mode = ((i == 0)
>> +                    ? gnu_java_nio_channels_FileChannelImpl_WRITE
>> +                    : gnu_java_nio_channels_FileChannelImpl_READ);
>> jclass sclazz;
>> jmethodID smethod;

Robert> I think the above declarations and definitions have to moved to the
Robert> beginning of the function.

This code is fine since the declarations are at the start of a block.
(I didn't change anything except the constants here.)

Tom




reply via email to

[Prev in Thread] Current Thread [Next in Thread]