diff options
| author | Gerd Moellmann | 2001-02-28 13:29:03 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-28 13:29:03 +0000 |
| commit | 98423852fcb3050bdf43c67f383f9a94ac7d1b86 (patch) | |
| tree | b162b946db9db2a54ff7288ee503868ad5cbda13 /src/process.c | |
| parent | e9c96c6291e1a5349bd99abc111cf95a94368c6a (diff) | |
| download | emacs-98423852fcb3050bdf43c67f383f9a94ac7d1b86.tar.gz emacs-98423852fcb3050bdf43c67f383f9a94ac7d1b86.zip | |
(make_process): Use allocate_process.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 2434851b7bc..b41478c0bd3 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Asynchronous subprocess control for GNU Emacs. | 1 | /* Asynchronous subprocess control for GNU Emacs. |
| 2 | Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999 | 2 | Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999, 2001 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -434,17 +434,12 @@ Lisp_Object | |||
| 434 | make_process (name) | 434 | make_process (name) |
| 435 | Lisp_Object name; | 435 | Lisp_Object name; |
| 436 | { | 436 | { |
| 437 | struct Lisp_Vector *vec; | ||
| 438 | register Lisp_Object val, tem, name1; | 437 | register Lisp_Object val, tem, name1; |
| 439 | register struct Lisp_Process *p; | 438 | register struct Lisp_Process *p; |
| 440 | char suffix[10]; | 439 | char suffix[10]; |
| 441 | register int i; | 440 | register int i; |
| 442 | 441 | ||
| 443 | vec = allocate_vectorlike ((EMACS_INT) VECSIZE (struct Lisp_Process)); | 442 | p = allocate_process (); |
| 444 | for (i = 0; i < VECSIZE (struct Lisp_Process); i++) | ||
| 445 | vec->contents[i] = Qnil; | ||
| 446 | vec->size = VECSIZE (struct Lisp_Process); | ||
| 447 | p = (struct Lisp_Process *)vec; | ||
| 448 | 443 | ||
| 449 | XSETINT (p->infd, -1); | 444 | XSETINT (p->infd, -1); |
| 450 | XSETINT (p->outfd, -1); | 445 | XSETINT (p->outfd, -1); |