case 'c':
*s++ = va_arg(ap, int);
break;
-#ifndef NOFLOAT
+#ifndef ACKCONF_NO_STDIO_FLOAT
case 'G':
case 'g':
if ((flags & FL_PRECSPEC) && (precision == 0))
flags |= FL_SIGNEDCONV;
s = _f_print(&ap, flags, s, c, precision);
break;
-#endif /* NOFLOAT */
+#endif /* ACKCONF_NO_STDIO_FLOAT */
case 'r':
ap = va_arg(ap, va_list);
fmt = va_arg(ap, char *);
return bufp - 1;
}
-#ifndef NOFLOAT
+#ifndef ACKCONF_NO_STDIO_FLOAT
/* The function f_collect() reads a string that has the format of a
* floating-point number. The function returns as soon as a format-error
* is encountered, leaving the offending character in the input. This means
*bufp = '\0';
return bufp - 1;
}
-#endif /* NOFLOAT */
+#endif /* ACKCONF_NO_STDIO_FLOAT */
/*
int reverse; /* reverse the checking in [...] */
int kind;
register int ic; /* the input character */
-#ifndef NOFLOAT
+#ifndef ACKCONF_NO_STDIO_FLOAT
long double ld_val;
#endif
*str = '\0';
}
break;
-#ifndef NOFLOAT
+#ifndef ACKCONF_NO_STDIO_FLOAT
case 'e':
case 'E':
case 'f':
/* $Id$ */
-#ifndef NOFLOAT
+#include "loc_incl.h"
+
+#ifndef ACKCONF_NO_STDIO_FLOAT
#include "../stdlib/ext_fmt.h"
void _dbl_ext_cvt(double value, struct EXTEND *e);
return cvt(value, ndigit, decpt, sign, 0);
}
-#endif /* NOFLOAT */
+#endif /* ACKCONF_NO_STDIO_FLOAT */
*/
/* $Id$ */
-#ifndef NOFLOAT
#include <string.h>
#include <stdarg.h>
#include "loc_incl.h"
+#ifndef ACKCONF_NO_STDIO_FLOAT
+
static char *
_pfloat(long double r, register char *s, int n, int flags)
{
}
return s;
}
-#endif /* NOFLOAT */
+#endif /* ACKCONF_NO_STDIO_FLOAT */
/* $Id$ */
#include <stdio.h>
+#include <ack/config.h>
#define fileno(p) ((p)->_fd)
#define io_testflag(p,x) ((p)->_flags & (x))
FILE *popen(const char *command, const char *type);
FILE *fdopen(int fd, const char *mode);
-#ifndef NOFLOAT
+#ifndef ACKCONF_NO_STDIO_FLOAT
char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
-#endif /* NOFLOAT */
+#endif /* ACKCONF_NO_STDIO_FLOAT */
#define FL_LJUST 0x0001 /* left-justify field */
#define FL_SIGN 0x0002 /* sign in signed conversions */
#include <float.h>
#include <errno.h>
#include <ctype.h>
+#include <ack/config.h>
static int b64_add(struct mantissa *e1, struct mantissa *e2);
static b64_sft(struct mantissa *e1, int n);
#include <stdlib.h>
#include "ext_fmt.h"
+#ifndef ACKCONF_NO_STDIO_FLOAT
+
void _str_ext_cvt(const char *s, char **ss, struct EXTEND *e);
double _ext_dbl_cvt(struct EXTEND *e);
_str_ext_cvt(p, pp, &e);
return _ext_dbl_cvt(&e);
}
+
+#endif