comparison src/xfns.c @ 4771:d6ddaf79ea6a

(XScreenNumberOfScreen): Move assignments out of declaration for (dpy, dpyscr). Some older versions of MIPS compilers miscompile this expression.
author Brian Fox <bfox@gnu.org>
date Wed, 22 Sep 1993 18:07:44 +0000
parents 1fc792473491
children 2a019dd8ed51
comparison
equal deleted inserted replaced
4770:987685f55edd 4771:d6ddaf79ea6a
3500 #ifndef HAVE_XSCREENNUMBEROFSCREEN 3500 #ifndef HAVE_XSCREENNUMBEROFSCREEN
3501 int 3501 int
3502 XScreenNumberOfScreen (scr) 3502 XScreenNumberOfScreen (scr)
3503 register Screen *scr; 3503 register Screen *scr;
3504 { 3504 {
3505 register Display *dpy = scr->display; 3505 register Display *dpy;
3506 register Screen *dpyscr = dpy->screens; 3506 register Screen *dpyscr;
3507 register int i; 3507 register int i;
3508
3509 dpy = scr->display;
3510 dpyscr = dpy->screens;
3508 3511
3509 for (i = 0; i < dpy->nscreens; i++, dpyscr++) 3512 for (i = 0; i < dpy->nscreens; i++, dpyscr++)
3510 if (scr == dpyscr) 3513 if (scr == dpyscr)
3511 return i; 3514 return i;
3512 3515