Raymond Toy pushed to branch issue-446-use-cc-to-get-errno at cmucl / cmucl Commits: 03e93d4e by Raymond Toy at 2025-11-03T13:42:21-08:00 Use the correct awk comment syntax Awk comment character is a hash sign, not a C-style comment. - - - - - 1 changed file: - bin/create-errno.sh Changes: ===================================== bin/create-errno.sh ===================================== @@ -94,17 +94,17 @@ find_errno () awk "BEGIN { max = 0 } -/* Pattern is '#define Efoo number' */ +# Pattern is '#define Efoo number' /^#define[ \t]+(E[A-Z0-9]+)[ \t]+([0-9]+)/ { errno[\$3] = \$2 max = (\$3 > max) ? \$3 : max } -/* Pattern is '#define Efoo Ealias' */ +# Pattern is '#define Efoo Ealias' /^#define[ \t]+(E[A-Z0-9]+)[ \t]+(E[A-Z0-9]+)/ { alias[\$3] = \$2 } END { - /* Print out each errno and print the alias right after the actual value */ + # Print out each errno and print the alias right after the actual value for (i = 0; i <= max; i++) { if (i in errno) { printf \"(defconstant %s %d)\n\", errno[i], i View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/03e93d4ef768e4f45535c1f2... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/03e93d4ef768e4f45535c1f2... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)