add stdbool.h detection and replacement for bool; use ckd_mul/ckd_add/ckd_sub where appropriate; update overflow detection in brace expansion and printf builtin

This commit is contained in:
Chet Ramey
2024-03-18 11:45:39 -04:00
parent 167a9248f9
commit b1e7f68032
15 changed files with 243 additions and 145 deletions
+2 -2
View File
@@ -115,9 +115,9 @@ find_index_in_alist (char *string, STRING_INT_ALIST *alist, int flags)
/* Cons a new string from STRING starting at START and ending at END,
not including END. */
char *
substring (const char *string, int start, int end)
substring (const char *string, size_t start, size_t end)
{
int len;
size_t len;
char *result;
len = end - start;