Mercurial > emacs
diff src/lread.c @ 112434:9de5a68b57e1
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 22 Jan 2011 18:56:06 -0800 |
parents | 42e22c4f06b7 |
children |
line wrap: on
line diff
--- a/src/lread.c Sat Jan 22 17:09:09 2011 -0800 +++ b/src/lread.c Sat Jan 22 18:56:06 2011 -0800 @@ -1082,9 +1082,9 @@ #ifdef DOS_NT fmode = "rb"; #endif /* DOS_NT */ - stat ((char *)SDATA (efound), &s1); + stat (SSDATA (efound), &s1); SSET (efound, SBYTES (efound) - 1, 0); - result = stat ((char *)SDATA (efound), &s2); + result = stat (SSDATA (efound), &s2); SSET (efound, SBYTES (efound) - 1, 'c'); if (result >= 0 && (unsigned) s1.st_mtime < (unsigned) s2.st_mtime) @@ -1125,7 +1125,7 @@ #ifdef WINDOWSNT emacs_close (fd); efound = ENCODE_FILE (found); - stream = fopen ((char *) SDATA (efound), fmode); + stream = fopen (SSDATA (efound), fmode); #else /* not WINDOWSNT */ stream = fdopen (fd, fmode); #endif /* not WINDOWSNT */ @@ -4404,4 +4404,3 @@ Qrehash_threshold = intern_c_string ("rehash-threshold"); staticpro (&Qrehash_threshold); } -