Some functions are part of the C standard, so the checks in
features/sfio are not required and can be removed.
#endif
}
}end
-
-lib strtod note{ native strtod exists }end
-
-################################################################
-## See if there is "locale" stuff for conditioning printf/scanf
-################################################################
-
-lib locale note{ Check for localeconv }end compile{
- #include <locale.h>
- main()
- { struct lconv* lv = localeconv();
- return 0;
- }
-}end
#define ESPIPE 29
#endif
/* function to get the decimal point for local environment */
-#if _lib_locale
#ifdef MAXFLOAT /* we don't need these, so we zap them to avoid compiler warnings */
#undef MAXFLOAT
#endif
} \
} \
}
-#else
-#define SFSETLOCALE(decimal,thousand)
-#endif
/* stream pool structure. */
typedef struct _sfpool_s Sfpool_t;
struct _sfpool_s {
extern char **_sfgetpath(char *);
extern Sfdouble_t _sfstrtod(const char *, char **);
-#if !_lib_strtod
-#define strtod _sfstrtod
-#endif
-
#ifndef errno
extern int errno;
#endif
reg int n, c, m;
reg int mode, fexp, sign, expsign;
Sfdouble_t dval;
-#if _lib_locale
char decpoint = 0, thousand;
SFSETLOCALE(decpoint, thousand);
-#else
-#define decpoint '.'
-#endif
/* skip initial blanks */
while (isspace(*s))