Mercurial > emacs
comparison src/process.c @ 36434:40cfe4976f04
(make_process): Use allocate_process.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 28 Feb 2001 13:29:03 +0000 |
parents | 002c02db42d3 |
children | 9fde2182c68a |
comparison
equal
deleted
inserted
replaced
36433:20b42ba5a623 | 36434:40cfe4976f04 |
---|---|
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. |
6 | 6 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
432 | 432 |
433 Lisp_Object | 433 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); |
451 XSETFASTINT (p->pid, 0); | 446 XSETFASTINT (p->pid, 0); |
452 XSETFASTINT (p->tick, 0); | 447 XSETFASTINT (p->tick, 0); |