[Scummvm-devel] Symbian: proper sscanf implementation

Федор fedor_qd at mail.ru
Tue Sep 22 22:16:00 CEST 2015


 Tobia, what mean "unit tests for these"? For sscanf, strtod or reimplemented mine strtod?
If you mean mine strtod - main() serves as unit test. I recheck my strtod and it passes unit test now. Waiting codereview. New version in attach


Fedor Strizhnev
Федор Стрижнёв.

>Аўторак, 22 верасня 2015, 20:00 +02:00 ад Tobia Tesan <tobia.tesan at gmail.com>:
>
>Fedor, have you by any chance written some unit tests for these?
>If so please attach them, I'll gladly spend some time running them
    through gdb and extending them if necessary..
>
>Regards
>
>On 22/09/2015 11:42, Федор wrote:
>>Hi! I need fresh eye on my code.
 Some times ago I found Symbian sscanf don't parses floating point numbers in strings.
I'm using as start point sscanf implementation in tizen port. I try strtod() in libc and find it seems also broken.
I write own strod() but it works bad.
Error checking missing now.
Fedor Strizhnev
Федор Стрижнёв.

>
>-- 
Tobia Tesan
><tobia.tesan at gmail.com>
><sip:tobia.tesan at ekiga.net>
>+39 393 4427709
>------------------------------------------------------------------------------
>_______________________________________________
>Scummvm-devel mailing list
>Scummvm-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/scummvm-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20150922/68ca0591/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 2078 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20150922/68ca0591/attachment.obj>


More information about the Scummvm-devel mailing list