X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Fhelpers.h;h=cb59c206a7599334246402cc26265854562d8483;hb=5a6b751888278c8c849ab0f4adf99f1be610e610;hp=f856da3a99d23c7952549c365ceb249dd08307b7;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp-builds.git diff --git a/src/language/expressions/helpers.h b/src/language/expressions/helpers.h index f856da3a..cb59c206 100644 --- a/src/language/expressions/helpers.h +++ b/src/language/expressions/helpers.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -49,7 +48,7 @@ static inline double check_errno (double x) extern const struct substring empty_string; -int compare_string (const struct substring *, const struct substring *); +int compare_string_3way (const struct substring *, const struct substring *); double expr_ymd_to_date (double year, double month, double day); double expr_ymd_to_ofs (double year, double month, double day); @@ -68,7 +67,7 @@ struct substring copy_string (struct expression *, static inline bool is_valid (double d) { - return finite (d) && d != SYSMIS; + return isfinite (d) && d != SYSMIS; } size_t count_valid (double *, size_t);