Mercurial > hg > xemacs-beta
comparison src/editfns.c @ 664:6e99cc8c6ca5
[xemacs-hg @ 2001-09-18 05:04:26 by ben]
fileio.c: Fix various C++ compile errors in Andy's recent code.
callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings.
scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for
explanation.
font-lock.el: fix problem when you insert a comment on the line before a line of
code: if we use the following char, then when you hit backspace,
the following line of code turns the comment color.
configure.in: Don't use -Wshadow when compiling with g++ or you get buried in
silly warnings. This patch was already applied but somehow got
unapplied. Stephen?
author | ben |
---|---|
date | Tue, 18 Sep 2001 05:06:57 +0000 |
parents | b39c14581166 |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
663:ebdebdbf3f84 | 664:6e99cc8c6ca5 |
---|---|
634 strncat (path, user_login_name (NULL), _POSIX_PATH_MAX); | 634 strncat (path, user_login_name (NULL), _POSIX_PATH_MAX); |
635 if (lstat(path, &st) < 0 && errno == ENOENT) | 635 if (lstat(path, &st) < 0 && errno == ENOENT) |
636 { | 636 { |
637 mkdir(path, 0700); /* ignore retval -- checked next anyway. */ | 637 mkdir(path, 0700); /* ignore retval -- checked next anyway. */ |
638 } | 638 } |
639 if (lstat(path, &st) == 0 && st.st_uid == myuid && S_ISDIR(st.st_mode)) | 639 if (lstat(path, &st) == 0 && st.st_uid == (uid_t) myuid && |
640 S_ISDIR(st.st_mode)) | |
640 { | 641 { |
641 tmpdir = path; | 642 tmpdir = path; |
642 } | 643 } |
643 else | 644 else |
644 { | 645 { |
822 p = pw ? USER_FULL_NAME : "unknown"; /* don't gettext */ | 823 p = pw ? USER_FULL_NAME : "unknown"; /* don't gettext */ |
823 q = strchr (p, ','); | 824 q = strchr (p, ','); |
824 #endif | 825 #endif |
825 tem = ((!NILP (user) && !pw) | 826 tem = ((!NILP (user) && !pw) |
826 ? Qnil | 827 ? Qnil |
827 : make_ext_string ((Extbyte *) p, (q ? q - p : strlen (p)), | 828 : make_ext_string ((Extbyte *) p, (q ? q - p : (int) strlen (p)), |
828 Qnative)); | 829 Qnative)); |
829 | 830 |
830 #ifdef AMPERSAND_FULL_NAME | 831 #ifdef AMPERSAND_FULL_NAME |
831 if (!NILP (tem)) | 832 if (!NILP (tem)) |
832 { | 833 { |