diff options
| author | Joakim Verona | 2015-01-22 12:52:42 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-22 12:52:42 +0100 |
| commit | 5693f3de69f9db99252b2f4eb1c7178fdec2a210 (patch) | |
| tree | 55d1a29fd499799220ac79735aa4c54bd82ff24b | |
| parent | 5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315 (diff) | |
| parent | d7995b18e4c7b6ac7b5e31c3c8f5f5db648d3275 (diff) | |
| download | emacs-5693f3de69f9db99252b2f4eb1c7178fdec2a210.tar.gz emacs-5693f3de69f9db99252b2f4eb1c7178fdec2a210.zip | |
merge master
| -rw-r--r-- | lib-src/ChangeLog | 8 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 58 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio-core.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eieio.el | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/xfont.c | 8 | ||||
| -rw-r--r-- | src/xftfont.c | 22 | ||||
| -rw-r--r-- | src/xgselect.c | 4 |
8 files changed, 73 insertions, 42 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index c2aedb0afde..6cf82e91508 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2015-01-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Check exit statuses in lib-src/Makefile | ||
| 4 | * Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall) | ||
| 5 | (mostlyclean, clean, distclean, extraclean): | ||
| 6 | Check exit statuses more carefully. Reindent to fit in 80 chars. | ||
| 7 | (bootstrap-clean maintainer-clean): Remove unnecessary 'true'. | ||
| 8 | |||
| 1 | 2015-01-22 Ulrich Müller <ulm@gentoo.org> | 9 | 2015-01-22 Ulrich Müller <ulm@gentoo.org> |
| 2 | 10 | ||
| 3 | * Makefile.in ($(DESTDIR)${archlibdir}): Don't fail if the chown | 11 | * Makefile.in ($(DESTDIR)${archlibdir}): Don't fail if the chown |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index a0bf5bab580..1b329c2f221 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -254,31 +254,41 @@ maybe-blessmail: $(BLESSMAIL_TARGET) | |||
| 254 | $(DESTDIR)${archlibdir}: all | 254 | $(DESTDIR)${archlibdir}: all |
| 255 | @echo | 255 | @echo |
| 256 | @echo "Installing utilities run internally by Emacs." | 256 | @echo "Installing utilities run internally by Emacs." |
| 257 | umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}" | 257 | umask 022 && ${MKDIR_P} "$(DESTDIR)${archlibdir}" |
| 258 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \ | 258 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd` && \ |
| 259 | if [ "$$exp_archlibdir" != "`/bin/pwd`" ]; then \ | 259 | if [ "$$exp_archlibdir" != "`/bin/pwd`" ]; then \ |
| 260 | for file in ${UTILITIES}; do \ | 260 | for file in ${UTILITIES}; do \ |
| 261 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \ | 261 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file \ |
| 262 | "$(DESTDIR)${archlibdir}/$$file" || exit; \ | ||
| 262 | done ; \ | 263 | done ; \ |
| 263 | fi | 264 | fi |
| 264 | umask 022; ${MKDIR_P} "$(DESTDIR)${gamedir}"; \ | 265 | umask 022 && ${MKDIR_P} "$(DESTDIR)${gamedir}" && \ |
| 265 | touch "$(DESTDIR)${gamedir}/snake-scores"; \ | 266 | touch "$(DESTDIR)${gamedir}/snake-scores" \ |
| 266 | touch "$(DESTDIR)${gamedir}/tetris-scores" | 267 | "$(DESTDIR)${gamedir}/tetris-scores" |
| 267 | ifneq ($(gameuser),) | 268 | ifneq ($(gameuser),) |
| 268 | -if chown ${gameuser} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && chmod u+s,go-r "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; then \ | 269 | if chown ${gameuser} \ |
| 269 | chown ${gameuser} "$(DESTDIR)${gamedir}"; \ | 270 | "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && \ |
| 271 | chmod u+s,go-r \ | ||
| 272 | "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; \ | ||
| 273 | then \ | ||
| 274 | chown ${gameuser} "$(DESTDIR)${gamedir}" && \ | ||
| 270 | chmod u=rwx,g=rx,o=rx "$(DESTDIR)${gamedir}"; \ | 275 | chmod u=rwx,g=rx,o=rx "$(DESTDIR)${gamedir}"; \ |
| 271 | fi | 276 | fi |
| 272 | else ifneq ($(gamegroup),) | 277 | else ifneq ($(gamegroup),) |
| 273 | -if chgrp ${gamegroup} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && chmod g+s,o-r "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; then \ | 278 | if chgrp ${gamegroup} \ |
| 274 | chgrp ${gamegroup} "$(DESTDIR)${gamedir}"; \ | 279 | "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && \ |
| 280 | chmod g+s,o-r \ | ||
| 281 | "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; \ | ||
| 282 | then \ | ||
| 283 | chgrp ${gamegroup} "$(DESTDIR)${gamedir}" && \ | ||
| 275 | chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}"; \ | 284 | chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}"; \ |
| 276 | fi | 285 | fi |
| 277 | endif | 286 | endif |
| 278 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd`; \ | 287 | exp_archlibdir=`cd "$(DESTDIR)${archlibdir}" && /bin/pwd` && \ |
| 279 | if [ "$$exp_archlibdir" != "`cd ${srcdir} && /bin/pwd`" ]; then \ | 288 | if [ "$$exp_archlibdir" != "`cd ${srcdir} && /bin/pwd`" ]; then \ |
| 280 | for file in ${SCRIPTS}; do \ | 289 | for file in ${SCRIPTS}; do \ |
| 281 | $(INSTALL_SCRIPT) ${srcdir}/$$file "$(DESTDIR)${archlibdir}/$$file"; \ | 290 | $(INSTALL_SCRIPT) ${srcdir}/$$file \ |
| 291 | "$(DESTDIR)${archlibdir}/$$file" || exit; \ | ||
| 282 | done ; \ | 292 | done ; \ |
| 283 | fi | 293 | fi |
| 284 | 294 | ||
| @@ -288,34 +298,38 @@ endif | |||
| 288 | install: $(DESTDIR)${archlibdir} | 298 | install: $(DESTDIR)${archlibdir} |
| 289 | @echo | 299 | @echo |
| 290 | @echo "Installing utilities for users to run." | 300 | @echo "Installing utilities for users to run." |
| 291 | umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}" | 301 | umask 022 && ${MKDIR_P} "$(DESTDIR)${bindir}" |
| 292 | for file in ${INSTALLABLES} ; do \ | 302 | for file in ${INSTALLABLES} ; do \ |
| 293 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ | 303 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} \ |
| 304 | "$(DESTDIR)${bindir}"/` \ | ||
| 305 | echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)' \ | ||
| 306 | `${EXEEXT} || exit; \ | ||
| 294 | done | 307 | done |
| 295 | 308 | ||
| 296 | uninstall: | 309 | uninstall: |
| 297 | for file in ${INSTALLABLES}; do \ | 310 | for file in ${INSTALLABLES}; do \ |
| 298 | rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ | 311 | rm -f "$(DESTDIR)${bindir}"/` \ |
| 312 | echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)' \ | ||
| 313 | `${EXEEXT}; \ | ||
| 299 | done | 314 | done |
| 300 | if [ -d "$(DESTDIR)${archlibdir}" ]; then \ | 315 | if [ -d "$(DESTDIR)${archlibdir}" ]; then \ |
| 301 | (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES} ${SCRIPTS}) \ | 316 | cd "$(DESTDIR)${archlibdir}" && \ |
| 317 | rm -f ${UTILITIES} ${SCRIPTS}; \ | ||
| 302 | fi | 318 | fi |
| 303 | 319 | ||
| 304 | mostlyclean: | 320 | mostlyclean: |
| 305 | -rm -f core *.o *.res | 321 | rm -f core *.o *.res |
| 306 | 322 | ||
| 307 | clean: mostlyclean | 323 | clean: mostlyclean |
| 308 | -rm -f ${EXE_FILES} | 324 | rm -f ${EXE_FILES} |
| 309 | 325 | ||
| 310 | distclean: clean | 326 | distclean: clean |
| 311 | -rm -f TAGS | 327 | rm -f TAGS Makefile blessmail |
| 312 | -rm -f Makefile blessmail | ||
| 313 | 328 | ||
| 314 | bootstrap-clean maintainer-clean: distclean | 329 | bootstrap-clean maintainer-clean: distclean |
| 315 | true | ||
| 316 | 330 | ||
| 317 | extraclean: maintainer-clean | 331 | extraclean: maintainer-clean |
| 318 | -rm -f *~ \#* | 332 | rm -f *~ \#* |
| 319 | 333 | ||
| 320 | ## Test the contents of the directory. | 334 | ## Test the contents of the directory. |
| 321 | check: | 335 | check: |
diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index 0297accaa05..261138bfbf8 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el | |||
| @@ -1258,7 +1258,7 @@ method invocation orders of the involved classes." | |||
| 1258 | (eieio--class-precedence-list tag)))) | 1258 | (eieio--class-precedence-list tag)))) |
| 1259 | 1259 | ||
| 1260 | 1260 | ||
| 1261 | ;;;### (autoloads nil "eieio-compat" "eieio-compat.el" "51667b1cd372f45acdae14f838cedcc6") | 1261 | ;;;### (autoloads nil "eieio-compat" "eieio-compat.el" "57805f02023795a01567781e70aaf9f9") |
| 1262 | ;;; Generated autoloads from eieio-compat.el | 1262 | ;;; Generated autoloads from eieio-compat.el |
| 1263 | 1263 | ||
| 1264 | (autoload 'eieio--defalias "eieio-compat" "\ | 1264 | (autoload 'eieio--defalias "eieio-compat" "\ |
diff --git a/lisp/emacs-lisp/eieio.el b/lisp/emacs-lisp/eieio.el index 7672d7f0b6e..3dba8e0e7bf 100644 --- a/lisp/emacs-lisp/eieio.el +++ b/lisp/emacs-lisp/eieio.el | |||
| @@ -931,7 +931,7 @@ variable PRINT-FUNCTION. Optional argument NOESCAPE is passed to | |||
| 931 | 931 | ||
| 932 | ;;; Start of automatically extracted autoloads. | 932 | ;;; Start of automatically extracted autoloads. |
| 933 | 933 | ||
| 934 | ;;;### (autoloads nil "eieio-custom" "eieio-custom.el" "6baa78cfc590cc0422e12b7eb55abf24") | 934 | ;;;### (autoloads nil "eieio-custom" "eieio-custom.el" "2ec91e473fcad1ff20cd76edc4aab706") |
| 935 | ;;; Generated autoloads from eieio-custom.el | 935 | ;;; Generated autoloads from eieio-custom.el |
| 936 | 936 | ||
| 937 | (autoload 'customize-object "eieio-custom" "\ | 937 | (autoload 'customize-object "eieio-custom" "\ |
| @@ -942,7 +942,7 @@ Optional argument GROUP is the sub-group of slots to display. | |||
| 942 | 942 | ||
| 943 | ;;;*** | 943 | ;;;*** |
| 944 | 944 | ||
| 945 | ;;;### (autoloads nil "eieio-opt" "eieio-opt.el" "e922bf7ebc7dcb272480c4ba148da1ac") | 945 | ;;;### (autoloads nil "eieio-opt" "eieio-opt.el" "d7b8682e15aebad7dbe6384dc5ed655f") |
| 946 | ;;; Generated autoloads from eieio-opt.el | 946 | ;;; Generated autoloads from eieio-opt.el |
| 947 | 947 | ||
| 948 | (autoload 'eieio-browse "eieio-opt" "\ | 948 | (autoload 'eieio-browse "eieio-opt" "\ |
diff --git a/src/ChangeLog b/src/ChangeLog index 8f23dd3833e..a98c77f3902 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2015-01-22 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2015-01-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Use bool for boolean in xfont.c, xftfont.c, xgselect.c | ||
| 4 | * xfont.c (xfont_driver, xfont_chars_supported) | ||
| 5 | (xfont_text_extents): | ||
| 6 | * xftfont.c (xftfont_get_colors, xftfont_open) | ||
| 7 | (xftfont_prepare_face, xftfont_done_face) | ||
| 8 | (xftfont_cached_font_ok): | ||
| 9 | * xgselect.c (xg_select): | ||
| 10 | Use bool for boolean. | ||
| 11 | |||
| 3 | Don't downcase system diagnostics' first letters | 12 | Don't downcase system diagnostics' first letters |
| 4 | * fileio.c (report_file_errno): Don't downcase, and simplify. | 13 | * fileio.c (report_file_errno): Don't downcase, and simplify. |
| 5 | Fixes: bug#19642 | 14 | Fixes: bug#19642 |
diff --git a/src/xfont.c b/src/xfont.c index 10cc321b60c..55053b9a421 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -132,7 +132,7 @@ static int xfont_check (struct frame *, struct font *); | |||
| 132 | struct font_driver xfont_driver = | 132 | struct font_driver xfont_driver = |
| 133 | { | 133 | { |
| 134 | LISP_INITIALLY_ZERO, /* Qx */ | 134 | LISP_INITIALLY_ZERO, /* Qx */ |
| 135 | 0, /* case insensitive */ | 135 | false, /* case insensitive */ |
| 136 | xfont_get_cache, | 136 | xfont_get_cache, |
| 137 | xfont_list, | 137 | xfont_list, |
| 138 | xfont_match, | 138 | xfont_match, |
| @@ -269,7 +269,7 @@ xfont_chars_supported (Lisp_Object chars, XFontStruct *xfont, | |||
| 269 | } | 269 | } |
| 270 | return (i >= 0); | 270 | return (i >= 0); |
| 271 | } | 271 | } |
| 272 | return 0; | 272 | return false; |
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | /* A hash table recoding which font supports which scripts. Each key | 275 | /* A hash table recoding which font supports which scripts. Each key |
| @@ -983,7 +983,7 @@ xfont_text_extents (struct font *font, unsigned int *code, | |||
| 983 | int i, width = 0; | 983 | int i, width = 0; |
| 984 | bool first; | 984 | bool first; |
| 985 | 985 | ||
| 986 | for (i = 0, first = 1; i < nglyphs; i++) | 986 | for (i = 0, first = true; i < nglyphs; i++) |
| 987 | { | 987 | { |
| 988 | XChar2b char2b; | 988 | XChar2b char2b; |
| 989 | static XCharStruct *pcm; | 989 | static XCharStruct *pcm; |
| @@ -1000,7 +1000,7 @@ xfont_text_extents (struct font *font, unsigned int *code, | |||
| 1000 | metrics->rbearing = pcm->rbearing; | 1000 | metrics->rbearing = pcm->rbearing; |
| 1001 | metrics->ascent = pcm->ascent; | 1001 | metrics->ascent = pcm->ascent; |
| 1002 | metrics->descent = pcm->descent; | 1002 | metrics->descent = pcm->descent; |
| 1003 | first = 0; | 1003 | first = false; |
| 1004 | } | 1004 | } |
| 1005 | else | 1005 | else |
| 1006 | { | 1006 | { |
diff --git a/src/xftfont.c b/src/xftfont.c index 054b38e120f..0e8b876f1d3 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -85,7 +85,7 @@ xftfont_get_colors (struct frame *f, struct face *face, GC gc, | |||
| 85 | else | 85 | else |
| 86 | { | 86 | { |
| 87 | XGCValues xgcv; | 87 | XGCValues xgcv; |
| 88 | bool fg_done = 0, bg_done = 0; | 88 | bool fg_done = false, bg_done = false; |
| 89 | 89 | ||
| 90 | block_input (); | 90 | block_input (); |
| 91 | XGetGCValues (FRAME_X_DISPLAY (f), gc, | 91 | XGetGCValues (FRAME_X_DISPLAY (f), gc, |
| @@ -93,15 +93,15 @@ xftfont_get_colors (struct frame *f, struct face *face, GC gc, | |||
| 93 | if (xftface_info) | 93 | if (xftface_info) |
| 94 | { | 94 | { |
| 95 | if (xgcv.foreground == face->foreground) | 95 | if (xgcv.foreground == face->foreground) |
| 96 | *fg = xftface_info->xft_fg, fg_done = 1; | 96 | *fg = xftface_info->xft_fg, fg_done = true; |
| 97 | else if (xgcv.foreground == face->background) | 97 | else if (xgcv.foreground == face->background) |
| 98 | *fg = xftface_info->xft_bg, fg_done = 1; | 98 | *fg = xftface_info->xft_bg, fg_done = true; |
| 99 | if (! bg) | 99 | if (! bg) |
| 100 | bg_done = 1; | 100 | bg_done = true; |
| 101 | else if (xgcv.background == face->background) | 101 | else if (xgcv.background == face->background) |
| 102 | *bg = xftface_info->xft_bg, bg_done = 1; | 102 | *bg = xftface_info->xft_bg, bg_done = true; |
| 103 | else if (xgcv.background == face->foreground) | 103 | else if (xgcv.background == face->foreground) |
| 104 | *bg = xftface_info->xft_fg, bg_done = 1; | 104 | *bg = xftface_info->xft_fg, bg_done = true; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | if (! (fg_done & bg_done)) | 107 | if (! (fg_done & bg_done)) |
| @@ -434,7 +434,7 @@ xftfont_open (struct frame *f, Lisp_Object entity, int pixel_size) | |||
| 434 | font->baseline_offset = 0; | 434 | font->baseline_offset = 0; |
| 435 | font->relative_compose = 0; | 435 | font->relative_compose = 0; |
| 436 | font->default_ascent = 0; | 436 | font->default_ascent = 0; |
| 437 | font->vertical_centering = 0; | 437 | font->vertical_centering = false; |
| 438 | #ifdef FT_BDF_H | 438 | #ifdef FT_BDF_H |
| 439 | if (! (ft_face->face_flags & FT_FACE_FLAG_SFNT)) | 439 | if (! (ft_face->face_flags & FT_FACE_FLAG_SFNT)) |
| 440 | { | 440 | { |
| @@ -487,7 +487,7 @@ xftfont_prepare_face (struct frame *f, struct face *face) | |||
| 487 | { | 487 | { |
| 488 | struct xftface_info *xftface_info; | 488 | struct xftface_info *xftface_info; |
| 489 | 489 | ||
| 490 | #if 0 | 490 | #if false |
| 491 | /* This doesn't work if face->ascii_face doesn't use an Xft font. */ | 491 | /* This doesn't work if face->ascii_face doesn't use an Xft font. */ |
| 492 | if (face != face->ascii_face) | 492 | if (face != face->ascii_face) |
| 493 | { | 493 | { |
| @@ -507,7 +507,7 @@ xftfont_done_face (struct frame *f, struct face *face) | |||
| 507 | { | 507 | { |
| 508 | struct xftface_info *xftface_info; | 508 | struct xftface_info *xftface_info; |
| 509 | 509 | ||
| 510 | #if 0 | 510 | #if false |
| 511 | /* This doesn't work if face->ascii_face doesn't use an Xft font. */ | 511 | /* This doesn't work if face->ascii_face doesn't use an Xft font. */ |
| 512 | if (face != face->ascii_face | 512 | if (face != face->ascii_face |
| 513 | || ! face->extra) | 513 | || ! face->extra) |
| @@ -682,7 +682,7 @@ xftfont_cached_font_ok (struct frame *f, Lisp_Object font_object, | |||
| 682 | Display *display = FRAME_X_DISPLAY (f); | 682 | Display *display = FRAME_X_DISPLAY (f); |
| 683 | FcPattern *pat = FcPatternCreate (); | 683 | FcPattern *pat = FcPatternCreate (); |
| 684 | FcBool b1, b2; | 684 | FcBool b1, b2; |
| 685 | bool ok = 0; | 685 | bool ok = false; |
| 686 | int i1, i2, r1, r2; | 686 | int i1, i2, r1, r2; |
| 687 | 687 | ||
| 688 | xftfont_add_rendering_parameters (pat, entity); | 688 | xftfont_add_rendering_parameters (pat, entity); |
| @@ -712,7 +712,7 @@ xftfont_cached_font_ok (struct frame *f, Lisp_Object font_object, | |||
| 712 | r2 = FcPatternGetInteger (oldpat, FC_RGBA, 0, &i2); | 712 | r2 = FcPatternGetInteger (oldpat, FC_RGBA, 0, &i2); |
| 713 | if (r1 != r2 || i1 != i2) goto out; | 713 | if (r1 != r2 || i1 != i2) goto out; |
| 714 | 714 | ||
| 715 | ok = 1; | 715 | ok = true; |
| 716 | out: | 716 | out: |
| 717 | FcPatternDestroy (pat); | 717 | FcPatternDestroy (pat); |
| 718 | return ok; | 718 | return ok; |
diff --git a/src/xgselect.c b/src/xgselect.c index bb2226e07cf..0b62d3e8255 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -50,7 +50,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds, | |||
| 50 | struct timespec const *tmop = timeout; | 50 | struct timespec const *tmop = timeout; |
| 51 | 51 | ||
| 52 | GMainContext *context; | 52 | GMainContext *context; |
| 53 | int have_wfds = wfds != NULL; | 53 | bool have_wfds = wfds != NULL; |
| 54 | GPollFD gfds_buf[128]; | 54 | GPollFD gfds_buf[128]; |
| 55 | GPollFD *gfds = gfds_buf; | 55 | GPollFD *gfds = gfds_buf; |
| 56 | int gfds_size = ARRAYELTS (gfds_buf); | 56 | int gfds_size = ARRAYELTS (gfds_buf); |
| @@ -96,7 +96,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds, | |||
| 96 | { | 96 | { |
| 97 | FD_SET (gfds[i].fd, &all_wfds); | 97 | FD_SET (gfds[i].fd, &all_wfds); |
| 98 | if (gfds[i].fd > max_fds) max_fds = gfds[i].fd; | 98 | if (gfds[i].fd > max_fds) max_fds = gfds[i].fd; |
| 99 | have_wfds = 1; | 99 | have_wfds = true; |
| 100 | } | 100 | } |
| 101 | } | 101 | } |
| 102 | 102 | ||