[OpenBIOS] [PATCH 2/2] implement convert_to_ints()
Segher Boessenkool
segher at kernel.crashing.org
Sun Sep 25 17:22:53 CEST 2016
On Sun, Sep 25, 2016 at 11:03:47AM -0400, Tarl Neustaedter wrote:
> See section 7.3.5.2 of IEEE 1275.
>
> $number ( addr len -- true | n false ) Convert a string to a number
>number is much more useful. The description in 1275, well, sucks;
but it is a standard Forth word, and the description in the standard
is fine.
> But aside from that, I'm not sure what the hesitation to use ascii
> strings in drivers comes from. It's standard practice. Video drivers are
> usually specified with device strings like "/pci at xx/display at 1:1040x1024"
> or something like that, with the option argument being parsed at runtime
> (often it's a straight string comparison, but sometimes it needs more
> detailed parsing).
This isn't about device arguments. This is about using strings in
properties to denote an array of integers; which is just a dumb thing
to do.
Segher
More information about the OpenBIOS
mailing list