
Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl Commits: e82619f1 by Raymond Toy at 2025-03-01T06:52:07-08:00 Have to search the array ourselves for duplicates We have write our own loop to find a duplicate errno value. If we do, print a comment to the output saying so, at least for now. - - - - - 1 changed file: - bin/create-def-unix-error.awk Changes: ===================================== bin/create-def-unix-error.awk ===================================== @@ -8,7 +8,15 @@ BEGIN { # This is to catch any duplicates. We assume the latter value is # NOT what we want. This happens on Darwin where EOPNOSUPP is # defined twice due to #if's. - if (!($2 in errno)) { + found = 0 + for (key in errno) { + if (errno[key] == $2) { + printf ";; Ignoring dup of %s: old value %d, new value %\n", $2, errno[key], $3; + found = 1; + break; + } + } + if (!found) { errno[count] = $2; value[count] = $3; ++count; View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/e82619f1f9ceab750574bc2c... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/e82619f1f9ceab750574bc2c... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)