diff options
author | Ken Raeburn <raeburn@raeburn.org> | 2002-07-15 00:01:34 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@raeburn.org> | 2002-07-15 00:01:34 +0000 |
commit | d5db40779d7505244d37476b4f046641f07eea2b (patch) | |
tree | 5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/w32proc.c | |
parent | 491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff) | |
download | emacs-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/w32proc.c')
-rw-r--r-- | src/w32proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index b94e5cca53c..a44a326caf9 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -760,7 +760,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp) } /* make sure argv[0] and cmdname are both in DOS format */ - cmdname = XSTRING (program)->data; + cmdname = SDATA (program); unixtodos_filename (cmdname); argv[0] = cmdname; @@ -784,7 +784,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp) strcpy (cmdname, egetenv ("CMDPROXY")); else { - strcpy (cmdname, XSTRING (Vinvocation_directory)->data); + strcpy (cmdname, SDATA (Vinvocation_directory)); strcat (cmdname, "cmdproxy.exe"); } unixtodos_filename (cmdname); @@ -1723,7 +1723,7 @@ All path elements in FILENAME are converted to their short names. */) filename = Fexpand_file_name (filename, Qnil); /* luckily, this returns the short version of each element in the path. */ - if (GetShortPathName (XSTRING (filename)->data, shortname, MAX_PATH) == 0) + if (GetShortPathName (SDATA (filename), shortname, MAX_PATH) == 0) return Qnil; CORRECT_DIR_SEPS (shortname); @@ -1747,7 +1747,7 @@ All path elements in FILENAME are converted to their long names. */) /* first expand it. */ filename = Fexpand_file_name (filename, Qnil); - if (!w32_get_long_filename (XSTRING (filename)->data, longname, MAX_PATH)) + if (!w32_get_long_filename (SDATA (filename), longname, MAX_PATH)) return Qnil; CORRECT_DIR_SEPS (longname); |