Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: xentools41 LDFLAGS Re: broken packages for 2012Q3
On Fri, Mar 08, 2013 at 02:38:35PM +0100, Ignatios Souvatzis wrote:
> On Fri, Mar 08, 2013 at 02:27:42PM +0100, Ignatios Souvatzis wrote:
> > On Sat, Nov 24, 2012 at 10:40:54PM -0800, Aaron J. Grier wrote:
> >
> > > see attached. I can only vaguely follow ML, and did some cut-and-paste
> > > from rosetta code to do the necessary trailing newline trimming of
> > > /kern/xen/xsd_port. I'm unclear of the license there, so this may need
> > > rewriting by someone more clued before being committed.
> >
> > I'd write rtrim thusly:
>
> Gna. of course:
Actually - if we can live with Ocaml >= 4.00, and trimming whitespace
from *both* ends, there's String.trim:
+---------------------------------------
| val trim : string -> string
|
| Return a copy of the argument, without leading and trailing
| whitespace. The characters regarded as whitespace are: ' ', '\012',
| '\n', '\r', and '\t'. If there is no leading nor trailing whitespace
| character in the argument, return the original string itself, not
| a copy.
| Since 4.00.0
+---------------------------------------
Thus :
- int_of_string (String.sub buf 0 sz)
+ int_of_string (String.trim (String.sub buf 0 sz))
Regards,
-is
--
seal your e-mail: http://www.gnupg.org/
Home |
Main Index |
Thread Index |
Old Index