Mercurial > hg > xemacs-beta
comparison src/event-unixoid.c @ 4031:0cc7794d231e
[xemacs-hg @ 2007-06-22 17:50:36 by stephent]
More 64-bit fiddling (suppress warnings). <87r6o350q9.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Fri, 22 Jun 2007 17:50:42 +0000 |
parents | fffe735e63ee |
children | 2fd201d73a92 |
comparison
equal
deleted
inserted
replaced
4030:5bc9d592760f | 4031:0cc7794d231e |
---|---|
358 int flags) | 358 int flags) |
359 { | 359 { |
360 int infd, outfd, errfd; | 360 int infd, outfd, errfd; |
361 /* Decode inhandle and outhandle. Their meaning depends on | 361 /* Decode inhandle and outhandle. Their meaning depends on |
362 the process implementation being used. */ | 362 the process implementation being used. */ |
363 /* We are passed plain old file descs */ | 363 /* We are passed plain old file descs, which are ints, so */ |
364 infd = (int) inhandle; | 364 /* if sizeof(EMACS_INT) > sizeof(int) it's OK. */ |
365 outfd = (int) outhandle; | 365 infd = (EMACS_INT) inhandle; |
366 errfd = (int) errhandle; | 366 outfd = (EMACS_INT) outhandle; |
367 errfd = (EMACS_INT) errhandle; | |
367 | 368 |
368 *instream = (infd >= 0 | 369 *instream = (infd >= 0 |
369 ? make_filedesc_input_stream (infd, 0, -1, 0) | 370 ? make_filedesc_input_stream (infd, 0, -1, 0) |
370 : Qnil); | 371 : Qnil); |
371 | 372 |