We can just use those in the C standard library.
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
-#ifndef CHAR_BIT
-#define CHAR_BIT 8
-#endif
#define PATH_PHYSICAL 01
#define PATH_DOTDOT 02
*/
#include <ast/ast.h>
+#include <limits.h>
int chrtoi(const char *s)
{
#undef HAVE_SYS_IOCTL_H
#endif
+#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define RIGHTP ')'
#define QUOTE '\''
-#ifndef CHAR_BIT
-#define CHAR_BIT 8
-#endif
-
#define FMTSET(ft, frm,ags, fv, sz, flgs, wid,pr,bs, ts,ns) \
((ft->form = (char*)frm), va_copy(ft->args,ags), \
(ft->fmt = fv), (ft->size = sz), \