X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-in.h;h=8947cdc281301353486488f18dd746be9299e1fc;hb=f1696fab032a5ae5c44e3a3dedba343fce9ffd5c;hp=c520920522838d4e3b82f90521251ff675eefd75;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/data-in.h b/src/data-in.h index c520920522..8947cdc281 100644 --- a/src/data-in.h +++ b/src/data-in.h @@ -20,12 +20,15 @@ #if !data_in_h #define data_in_h 1 +#include +#include "bool.h" #include "format.h" /* Flags. */ enum { DI_IGNORE_ERROR = 01, /* Don't report errors to the user. */ + DI_IMPLIED_DECIMALS = 02 /* Insert decimals if no '.' in input. */ }; /* Information about parsing one data field. */ @@ -41,19 +44,9 @@ struct data_in struct fmt_spec format; /* Format specification to use. */ }; -int data_in (struct data_in *); +bool data_in (struct data_in *); void data_in_finite_line (struct data_in *di, const char *line, size_t len, int fc, int lc); -#if __GNUC__ >= 2 -extern inline void -data_in_finite_line (struct data_in *di, const char *line, size_t len, - int fc, int lc) -{ - di->s = line + ((size_t) fc <= len ? fc - 1 : len); - di->e = line + ((size_t) lc <= len ? lc : len); -} -#endif /* GNU C */ - #endif /* data-in.h */