mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
* s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
* process.c (allocate_pty): Don't declare stb unless it's needed.
This commit is contained in:
parent
615f2d59a5
commit
5704874403
3 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2011-03-17 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
|
||||
* process.c (allocate_pty): Don't declare stb unless it's needed.
|
||||
|
||||
* bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
|
||||
(CONSTANTLIM): Remove; unused.
|
||||
(METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
|
||||
|
|
|
|||
|
|
@ -545,7 +545,6 @@ allocate_pty (void)
|
|||
for (i = 0; i < 16; i++)
|
||||
#endif
|
||||
{
|
||||
struct stat stb; /* Used in some PTY_OPEN. */
|
||||
#ifdef PTY_NAME_SPRINTF
|
||||
PTY_NAME_SPRINTF
|
||||
#else
|
||||
|
|
@ -562,6 +561,7 @@ allocate_pty (void)
|
|||
three failures in a row before deciding that we've reached the
|
||||
end of the ptys. */
|
||||
int failed_count = 0;
|
||||
struct stat stb;
|
||||
|
||||
if (stat (pty_name, &stb) < 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ char *_getpty();
|
|||
#define PTY_OPEN \
|
||||
{ \
|
||||
struct sigaction ocstat, cstat; \
|
||||
struct stat stb; \
|
||||
char * name; \
|
||||
sigemptyset(&cstat.sa_mask); \
|
||||
cstat.sa_handler = SIG_DFL; \
|
||||
|
|
@ -95,5 +96,3 @@ char *_getpty();
|
|||
/* Tested on Irix 6.5. SCM worked on earlier versions. */
|
||||
#define GC_SETJMP_WORKS 1
|
||||
#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue