Mercurial > hg > xemacs-beta
diff src/vmsproc.c @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | 859a2309aef8 |
children | 6a378aca36af |
line wrap: on
line diff
--- a/src/vmsproc.c Mon Aug 13 09:00:04 2007 +0200 +++ b/src/vmsproc.c Mon Aug 13 09:02:59 2007 +0200 @@ -395,10 +395,10 @@ close_process_descs (); if (STRINGP (current_buffer->directory)) - chdir (XSTRING_DATA (current_buffer->directory)); + chdir (string_data (XSTRING (current_buffer->directory))); } -DEFUN ("call-process-internal", Fcall_process_internal, 1, MANY, 0, /* +DEFUN ("call-process-internal", Fcall_process_internal, 1, MANY, 0 /* Call PROGRAM synchronously in a separate process. Program's input comes from file INFILE (nil means null device, `NLA0:'). Insert output in BUFFER before point; t means current buffer; @@ -407,8 +407,8 @@ Remaining arguments are strings passed as command arguments to PROGRAM. This function waits for PROGRAM to terminate, unless BUFFER is 0; if you quit, the process is killed. -*/ - (int nargs, Lisp_Object *args)) +*/ ) + (int nargs, Lisp_Object *args) { /* This function can GC */ Lisp_Object display, buffer, path; @@ -469,7 +469,7 @@ int arg0; int firstArg; - if (strcmp (XSTRING_DATA (args[0]), "*dcl*") == 0) + if (strcmp (string_data (XSTRING (args[0])), "*dcl*") == 0) { arg0 = 5; firstArg = 6; @@ -479,18 +479,18 @@ arg0 = 0; firstArg = 4; } - len = XSTRING_LENGTH (args[arg0]) + 1; + len = string_length (XSTRING (args[arg0])) + 1; for (i = firstArg; i < nargs; i++) { CHECK_STRING (args[i]); - len += XSTRING_LENGTH (args[i]) + 1; + len += string_length (XSTRING (args[i])) + 1; } new_argv = alloca (len); - strcpy (new_argv, XSTRING_DATA (args[arg0])); + strcpy (new_argv, string_data (XSTRING (args[arg0]))); for (i = firstArg; i < nargs; i++) { strcat (new_argv, " "); - strcat (new_argv, XSTRING_DATA (args[i])); + strcat (new_argv, string_data (XSTRING (args[i]))); } dcmd.l = len-1; dcmd.a = new_argv; @@ -520,7 +520,7 @@ vs->outputChan = outchannel; } - filefd = open (XSTRING_DATA (args[1]), O_RDONLY, 0); + filefd = open (string_data (XSTRING (args[1])), O_RDONLY, 0); if (filefd < 0) { sys$dassgn (inchannel); @@ -531,8 +531,8 @@ else close (filefd); - din.l = XSTRING_LENGTH (args[1]); - din.a = XSTRING_DATA (args[1]); + din.l = string_length (XSTRING (args[1])); + din.a = string_data (XSTRING (args[1])); /* Start a read on the process channel