aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorKen Raeburn2002-07-15 00:01:34 +0000
committerKen Raeburn2002-07-15 00:01:34 +0000
commitd5db40779d7505244d37476b4f046641f07eea2b (patch)
tree5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/sysdep.c
parent491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff)
downloademacs-d5db40779d7505244d37476b4f046641f07eea2b.tar.gz
emacs-d5db40779d7505244d37476b4f046641f07eea2b.zip
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index f2ac20ae4a5..9b49f72b4eb 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -795,9 +795,9 @@ sys_subshell ()
795 goto xyzzy; 795 goto xyzzy;
796 796
797 dir = expand_and_dir_to_file (Funhandled_file_name_directory (dir), Qnil); 797 dir = expand_and_dir_to_file (Funhandled_file_name_directory (dir), Qnil);
798 str = (unsigned char *) alloca (XSTRING (dir)->size + 2); 798 str = (unsigned char *) alloca (SCHARS (dir) + 2);
799 len = XSTRING (dir)->size; 799 len = SCHARS (dir);
800 bcopy (XSTRING (dir)->data, str, len); 800 bcopy (SDATA (dir), str, len);
801 if (str[len - 1] != '/') str[len++] = '/'; 801 if (str[len - 1] != '/') str[len++] = '/';
802 str[len] = 0; 802 str[len] = 0;
803 xyzzy: 803 xyzzy:
@@ -2465,7 +2465,7 @@ init_system_name ()
2465#endif /* BSD4_1 */ 2465#endif /* BSD4_1 */
2466 { 2466 {
2467 unsigned char *p; 2467 unsigned char *p;
2468 for (p = XSTRING (Vsystem_name)->data; *p; p++) 2468 for (p = SDATA (Vsystem_name); *p; p++)
2469 if (*p == ' ' || *p == '\t') 2469 if (*p == ' ' || *p == '\t')
2470 *p = '-'; 2470 *p = '-';
2471 } 2471 }