[OpenBIOS] [PATCH 2/2] implement convert_to_ints()
tarl-b2 at tarl.net
Sun Sep 25 17:03:47 CEST 2016
On 2016-Sep-25 10:45 , G 3 wrote:
>>>>> +void convert_to_ints(void)
>>>> Since almost everything here just calls Forth words, can't you write
>>>> it in actual Forth instead? ">number" is your friend.
>>> ...but Forth is not. C is a lot easier to me to use than Forth.
>> Then learn to use it better! :-)
> The convert_to_ints() function is just too complex for me to write it
> in Forth.
> C is so much nicer.
See section 188.8.131.52 of IEEE 1275.
$number ( addr len -- true | n false ) Convert a string to a number
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
More information about the OpenBIOS