aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.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/mac.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/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)
2048 2048
2049 if (NILP (path)) 2049 if (NILP (path))
2050 return -1; 2050 return -1;
2051 if (posix_to_mac_pathname (XSTRING (path)->data, tempmacpathname, 2051 if (posix_to_mac_pathname (SDATA (path), tempmacpathname,
2052 MAXPATHLEN+1) == 0) 2052 MAXPATHLEN+1) == 0)
2053 return -1; 2053 return -1;
2054 } 2054 }
@@ -2529,7 +2529,7 @@ component. */)
2529 2529
2530 CHECK_STRING (script); 2530 CHECK_STRING (script);
2531 2531
2532 status = do_applescript (XSTRING (script)->data, &result); 2532 status = do_applescript (SDATA (script), &result);
2533 if (status) 2533 if (status)
2534 { 2534 {
2535 if (!result) 2535 if (!result)
@@ -2566,7 +2566,7 @@ DEFUN ("mac-file-name-to-posix", Fmac_file_name_to_posix,
2566 2566
2567 CHECK_STRING (mac_filename); 2567 CHECK_STRING (mac_filename);
2568 2568
2569 if (mac_to_posix_pathname (XSTRING (mac_filename)->data, posix_filename, 2569 if (mac_to_posix_pathname (SDATA (mac_filename), posix_filename,
2570 MAXPATHLEN)) 2570 MAXPATHLEN))
2571 return build_string (posix_filename); 2571 return build_string (posix_filename);
2572 else 2572 else
@@ -2584,7 +2584,7 @@ DEFUN ("posix-file-name-to-mac", Fposix_file_name_to_mac,
2584 2584
2585 CHECK_STRING (posix_filename); 2585 CHECK_STRING (posix_filename);
2586 2586
2587 if (posix_to_mac_pathname (XSTRING (posix_filename)->data, mac_filename, 2587 if (posix_to_mac_pathname (SDATA (posix_filename), mac_filename,
2588 MAXPATHLEN)) 2588 MAXPATHLEN))
2589 return build_string (mac_filename); 2589 return build_string (mac_filename);
2590 else 2590 else
@@ -2670,9 +2670,9 @@ DEFUN ("mac-cut-function", Fmac_cut_function, Smac_cut_function, 1, 2, 0,
2670 2670
2671 CHECK_STRING (value); 2671 CHECK_STRING (value);
2672 2672
2673 len = XSTRING (value)->size; 2673 len = SCHARS (value);
2674 buf = (char *) alloca (len+1); 2674 buf = (char *) alloca (len+1);
2675 bcopy (XSTRING (value)->data, buf, len); 2675 bcopy (SDATA (value), buf, len);
2676 buf[len] = '\0'; 2676 buf[len] = '\0';
2677 2677
2678 /* convert to Mac-style eol's before sending to clipboard */ 2678 /* convert to Mac-style eol's before sending to clipboard */