summaryrefslogtreecommitdiff
path: root/src/mac.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2002-07-15 00:01:34 +0000
committerKen Raeburn <raeburn@raeburn.org>2002-07-15 00:01:34 +0000
commitd5db40779d7505244d37476b4f046641f07eea2b (patch)
tree5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/mac.c
parent491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff)
downloademacs-d5db40779d7505244d37476b4f046641f07eea2b.tar.gz
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/mac.c')
-rw-r--r--src/mac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mac.c b/src/mac.c
index 4a97b0d7dd9..f3d65604f5b 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -2048,7 +2048,7 @@ run_mac_command (argv, workdir, infn, outfn, errfn)
if (NILP (path))
return -1;
- if (posix_to_mac_pathname (XSTRING (path)->data, tempmacpathname,
+ if (posix_to_mac_pathname (SDATA (path), tempmacpathname,
MAXPATHLEN+1) == 0)
return -1;
}
@@ -2529,7 +2529,7 @@ component. */)
CHECK_STRING (script);
- status = do_applescript (XSTRING (script)->data, &result);
+ status = do_applescript (SDATA (script), &result);
if (status)
{
if (!result)
@@ -2566,7 +2566,7 @@ DEFUN ("mac-file-name-to-posix", Fmac_file_name_to_posix,
CHECK_STRING (mac_filename);
- if (mac_to_posix_pathname (XSTRING (mac_filename)->data, posix_filename,
+ if (mac_to_posix_pathname (SDATA (mac_filename), posix_filename,
MAXPATHLEN))
return build_string (posix_filename);
else
@@ -2584,7 +2584,7 @@ DEFUN ("posix-file-name-to-mac", Fposix_file_name_to_mac,
CHECK_STRING (posix_filename);
- if (posix_to_mac_pathname (XSTRING (posix_filename)->data, mac_filename,
+ if (posix_to_mac_pathname (SDATA (posix_filename), mac_filename,
MAXPATHLEN))
return build_string (mac_filename);
else
@@ -2670,9 +2670,9 @@ DEFUN ("mac-cut-function", Fmac_cut_function, Smac_cut_function, 1, 2, 0,
CHECK_STRING (value);
- len = XSTRING (value)->size;
+ len = SCHARS (value);
buf = (char *) alloca (len+1);
- bcopy (XSTRING (value)->data, buf, len);
+ bcopy (SDATA (value), buf, len);
buf[len] = '\0';
/* convert to Mac-style eol's before sending to clipboard */