diff options
| author | Paul Eggert | 2011-01-22 18:56:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-22 18:56:06 -0800 |
| commit | 51b59d794fe1d4a82fcd842b478657cc93f91595 (patch) | |
| tree | 25e57573403a13f3fe70934b40bf38c0190fd5ed /src/lread.c | |
| parent | 9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff) | |
| download | emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.tar.gz emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.zip | |
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c index 60a2778dbbc..0baab54a00c 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1082,9 +1082,9 @@ Return t if the file exists and loads successfully. */) | |||
| 1082 | #ifdef DOS_NT | 1082 | #ifdef DOS_NT |
| 1083 | fmode = "rb"; | 1083 | fmode = "rb"; |
| 1084 | #endif /* DOS_NT */ | 1084 | #endif /* DOS_NT */ |
| 1085 | stat ((char *)SDATA (efound), &s1); | 1085 | stat (SSDATA (efound), &s1); |
| 1086 | SSET (efound, SBYTES (efound) - 1, 0); | 1086 | SSET (efound, SBYTES (efound) - 1, 0); |
| 1087 | result = stat ((char *)SDATA (efound), &s2); | 1087 | result = stat (SSDATA (efound), &s2); |
| 1088 | SSET (efound, SBYTES (efound) - 1, 'c'); | 1088 | SSET (efound, SBYTES (efound) - 1, 'c'); |
| 1089 | 1089 | ||
| 1090 | if (result >= 0 && (unsigned) s1.st_mtime < (unsigned) s2.st_mtime) | 1090 | if (result >= 0 && (unsigned) s1.st_mtime < (unsigned) s2.st_mtime) |
| @@ -1125,7 +1125,7 @@ Return t if the file exists and loads successfully. */) | |||
| 1125 | #ifdef WINDOWSNT | 1125 | #ifdef WINDOWSNT |
| 1126 | emacs_close (fd); | 1126 | emacs_close (fd); |
| 1127 | efound = ENCODE_FILE (found); | 1127 | efound = ENCODE_FILE (found); |
| 1128 | stream = fopen ((char *) SDATA (efound), fmode); | 1128 | stream = fopen (SSDATA (efound), fmode); |
| 1129 | #else /* not WINDOWSNT */ | 1129 | #else /* not WINDOWSNT */ |
| 1130 | stream = fdopen (fd, fmode); | 1130 | stream = fdopen (fd, fmode); |
| 1131 | #endif /* not WINDOWSNT */ | 1131 | #endif /* not WINDOWSNT */ |
| @@ -4404,4 +4404,3 @@ to load. See also `load-dangerous-libraries'. */); | |||
| 4404 | Qrehash_threshold = intern_c_string ("rehash-threshold"); | 4404 | Qrehash_threshold = intern_c_string ("rehash-threshold"); |
| 4405 | staticpro (&Qrehash_threshold); | 4405 | staticpro (&Qrehash_threshold); |
| 4406 | } | 4406 | } |
| 4407 | |||