#endif
#include <errno.h>
#include <fcntl.h>
+#include <float.h>
+#include <limits.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
-#include <values.h>
#include <sys/ioctl.h>
#include <sys/resource.h>
*num = (float)strtol(str, &ep, 0);
else
*num = strtof(str, &ep);
- if (ep != str && *ep == '\0' && *num < MAXINT)
+ if (ep != str && *ep == '\0' && *num < INT_MAX)
return 1;
return 0;
} // end: mkfloat
between us and the great-beyond... */
if (Batch) {
if (w_cols) Screen_cols = w_cols;
- Screen_rows = w_rows ? w_rows : MAXINT;
+ Screen_rows = w_rows ? w_rows : INT_MAX;
Pseudo_size = (sizeof(*Pseudo_screen) * ROWMAXSIZ);
} else {
if (w_cols && w_cols < Screen_cols) Screen_cols = w_cols;
. bunched args are actually handled properly and none are ignored
. we tolerate NO whitespace and NO switches -- maybe too tolerant? */
static const char numbs_str[] = "+,-.0123456789";
- float tmp_delay = MAXFLOAT;
+ float tmp_delay = FLT_MAX;
int i;
while (*args) {
} // end: while (*args)
// fixup delay time, maybe...
- if (MAXFLOAT > tmp_delay) {
+ if (FLT_MAX > tmp_delay) {
if (Secure_mode)
error_exit(N_txt(DELAY_secure_txt));
Rc.delay_time = tmp_delay;