Dropping needless globals (ksh)

2015-09-10 Thread Michael McConville
Does this look good? I'm not sure why these globals existed. It looks like it's going to take a little more than search-and-replace to remove null. Index: c_ksh.c === RCS file: /cvs/src/bin/ksh/c_ksh.c,v retrieving revision 1.36

Re: Dropping needless globals (ksh)

2015-09-10 Thread Alexey Suslikov
Michael McConville sccs.swarthmore.edu> writes: > RCS file: /cvs/src/bin/ksh/c_ksh.c,v > - shprintf(newline); > + shprintf("\n"); In terms of portability, are you sure newline is \n on all platforms?

Re: Dropping needless globals (ksh)

2015-09-10 Thread Michael McConville
Alexey Suslikov wrote: > Michael McConville sccs.swarthmore.edu> writes: > > > RCS file: /cvs/src/bin/ksh/c_ksh.c,v > > > > > - shprintf(newline); > > + shprintf("\n"); > > In terms of portability, are you sure newline is \n on all platforms? I'm not. Do

Re: Dropping needless globals (ksh)

2015-09-10 Thread Nicholas Marriott
looks good to me, any other ok? null is serious poo and really needs to go as well On Thu, Sep 10, 2015 at 10:45:46AM -0400, Michael McConville wrote: > Does this look good? I'm not sure why these globals existed. > > It looks like it's going to take a little more than search-and-replace > to

Re: Dropping needless globals (ksh)

2015-09-10 Thread Nicholas Marriott
Hi On Thu, Sep 10, 2015 at 04:33:07PM -0600, Todd C. Miller wrote: > On Thu, 10 Sep 2015 23:26:53 +0100, Nicholas Marriott wrote: > > > looks good to me, any other ok? > > > > null is serious poo and really needs to go as well > > Beware! Some of these values are used in pointer comparisons

Re: Dropping needless globals (ksh)

2015-09-10 Thread Michael McConville
Todd C. Miller wrote: > On Thu, 10 Sep 2015 23:26:53 +0100, Nicholas Marriott wrote: > > looks good to me, any other ok? > > > > null is serious poo and really needs to go as well > > Beware! Some of these values are used in pointer comparisons so > I'm not sure it is same to remove them. > >

Re: Dropping needless globals (ksh)

2015-09-10 Thread Todd C. Miller
On Thu, 10 Sep 2015 23:43:15 +0100, Nicholas Marriott wrote: > ok then? OK for removing newline (and space too). - todd

Re: Dropping needless globals (ksh)

2015-09-10 Thread Todd C. Miller
On Thu, 10 Sep 2015 23:26:53 +0100, Nicholas Marriott wrote: > looks good to me, any other ok? > > null is serious poo and really needs to go as well Beware! Some of these values are used in pointer comparisons so I'm not sure it is same to remove them. I don't see any comparisons with

Re: Dropping needless globals (ksh)

2015-09-10 Thread Ted Unangst
Michael McConville wrote: > Alexey Suslikov wrote: > > Michael McConville sccs.swarthmore.edu> writes: > > > > > RCS file: /cvs/src/bin/ksh/c_ksh.c,v > > > > > > > > > - shprintf(newline); > > > + shprintf("\n"); > > > > In terms of portability, are you sure