
Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl Commits: 7e2d05db by Raymond Toy at 2025-03-30T21:16:32+00:00 Address #381: Handle OS-specific docstring in pathname.lisp - - - - - fea9f546 by Raymond Toy at 2025-03-30T21:16:32+00:00 Merge branch 'issue-381-darwin-pathname-docstring' into 'master' Address #381: Handle OS-specific docstring in pathname.lisp See merge request cmucl/cmucl!280 - - - - - e90fa5af by Raymond Toy at 2025-03-30T20:10:38-07:00 Update cmucl.pot This was updated in !280 landed and I forgot to update it there, so we're doing it now. - - - - - b16dee63 by Raymond Toy at 2025-04-29T07:46:39-07:00 Merge branch 'master' into issue-386-generate-def-unix-error - - - - - a216e5b1 by Raymond Toy at 2025-04-30T07:07:57-07:00 Update usage message and comments for create-errnot.sh After a few months, I no longer remember what the create-errno.sh options means. Hence, update the usage message for create-errno.sh to describe better what the options are and what the default (no options) does. Add comment to build.sh to say we're generating src/code/errno.lisp from the existing OS-specific file instead of generating a completely new value from the system headers. - - - - - 4 changed files: - bin/build.sh - bin/create-errno.sh - src/code/pathname.lisp - src/i18n/locale/cmucl.pot Changes: ===================================== bin/build.sh ===================================== @@ -157,8 +157,9 @@ buildit () fi } -# Create the errno file containing all the def-unix-error forms. Exit -# if there's an error in creating the errno file. +# Create the errno file containing all the def-unix-error forms. No +# options mean we use the existing OS-specific template. Exit if +# there's an error in creating the errno file. bin/create-errno.sh || exit 1 BUILDWORLD="$TOOLDIR/build-world.sh" ===================================== bin/create-errno.sh ===================================== @@ -13,11 +13,24 @@ create-erno.sh [-h?DS] -? This help -U Update the errno file -D Do not auto-generate; use default - -S Show the resulting generated file; the file is still created. Auto-generates, if possible, the file src/code/errno.lisp that contains the def-unix-error forms. + +If no options are given (the usual case), src/code/errno.lisp is +updated with the OS-specific values in +bin/errno-{lisp,darwin,solaris}.lisp. For other OSes a default value +in bin/errno-default.lisp is used. For supported OSes, we also +regenerate the def-unix-error forms from the system header files and +display a diff between this and the existing files. + +If -U is given, the existing OS-specific file is updated with the +generated values. Use this to update the file if the OS has added or +modified errno values. + +If -D is given, default values are used. The defaults are the +original def-unix-error values from an older version of unix.lisp. EOF exit 0 } ===================================== src/code/pathname.lisp ===================================== @@ -269,7 +269,7 @@ #+darwin (defvar *enable-darwin-path-normalization* nil - "When non-NIL, pathnames are on Darwin are normalized when created. + _N"When non-NIL, pathnames are on Darwin are normalized when created. Otherwise, the pathnames are unchanged. This must be NIL during bootstrapping because Unicode is not yet ===================================== src/i18n/locale/cmucl.pot ===================================== @@ -9667,6 +9667,15 @@ msgid "" " an otherwise undefined logical host." msgstr "" +#: src/code/pathname.lisp +msgid "" +"When non-NIL, pathnames are on Darwin are normalized when created.\n" +" Otherwise, the pathnames are unchanged.\n" +"\n" +" This must be NIL during bootstrapping because Unicode is not yet\n" +" available." +msgstr "" + #: src/code/pathname.lisp msgid "A path specification, either a string, file-stream or pathname." msgstr "" View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/e0143bf229c9a2be3f4c5cf... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/e0143bf229c9a2be3f4c5cf... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)