[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ShopSuite-dev] [rational type] X/1 --> X

From: Davi Leal
Subject: [ShopSuite-dev] [rational type] X/1 --> X
Date: Fri, 31 Aug 2001 23:40:11 +0100

I have modified rational_out() to realize the X/1 --> X conversion. The GUI is
more readable and clean now.

I have tried some modifications to rational_in() but I have not finished it
yet. Its goal is to check the format at input so as to fit fully the below
regular expressions. If the input does not fit then RETURN_UNDEF is used. See
the attached rational.c file. Execute 'cvs diff rational.c'.

    Number:   "^ *[0-9]\+ *$"
    Rational: "^ *[0-9]\+\/[0-9]\+ *$"

Do you know about regcomp() and regexec(). Do you have any idea of how check
if the input match a regular expressions?.

X bitmap

reply via email to

[Prev in Thread] Current Thread [Next in Thread]