Mercurial > emacs
changeset 97655:287457e9bac1
(USER_FULL_NAME): Define to pw->pw_gecos if undefined.
(Fuser_full_name): Use USER_FULL_NAME instead of a literal pw->pw_gecos.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 23 Aug 2008 16:51:47 +0000 |
parents | 912b1321ba0d |
children | 0ddcae8d4119 |
files | src/editfns.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Sat Aug 23 16:51:11 2008 +0000 +++ b/src/editfns.c Sat Aug 23 16:51:47 2008 +0000 @@ -67,6 +67,10 @@ #define NULL 0 #endif +#ifndef USER_FULL_NAME +#define USER_FULL_NAME pw->pw_gecos +#endif + #ifndef USE_CRT_DLL extern char **environ; #endif @@ -1370,7 +1374,7 @@ if (!pw) return Qnil; - p = (unsigned char *) pw->pw_gecos; + p = (unsigned char *) USER_FULL_NAME; /* Chop off everything after the first comma. */ q = (unsigned char *) index (p, ','); full = make_string (p, q ? q - p : strlen (p));