[Git][cmucl/cmucl][master] Declare NAME to be a string in get-user-homedir-namestring
Raymond Toy pushed to branch master at cmucl / cmucl Commits: b0fc47bd by Raymond Toy at 2023-12-08T05:53:23-08:00 Declare NAME to be a string in get-user-homedir-namestring For better error-checking, declare that the arg NAME for get-user-homedir-namestring must be a string, obviously. - - - - - 1 changed file: - src/code/os.lisp Changes: ===================================== src/code/os.lisp ===================================== @@ -68,6 +68,7 @@ status code. If the home directory does not exist NIL is returned. The status is 0 if no errors occurred. Otherwise a non-zero value is returned. Examining errno may give information about what failed." + (declare (string name)) (cond ((zerop (length name)) (multiple-value-bind (user-info status) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/b0fc47bd07ea5a0035f11cc6... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/b0fc47bd07ea5a0035f11cc6... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)