"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/binary-io.h" between
gcal-4.tar.gz and gcal-4.1.tar.gz

About: Gcal displays month/year calendar sheets, eternal holiday and fixed date lists in many ways.

binary-io.h  (gcal-4):binary-io.h  (gcal-4.1)
/* Binary mode I/O. /* Binary mode I/O.
Copyright (C) 2001, 2003, 2005, 2008-2015 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2005, 2008-2017 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
skipping to change at line 63 skipping to change at line 63
set_binary_mode (int fd, int mode) set_binary_mode (int fd, int mode)
{ {
(void) fd; (void) fd;
(void) mode; (void) mode;
return O_BINARY; return O_BINARY;
} }
#endif #endif
/* SET_BINARY (fd); /* SET_BINARY (fd);
changes the file descriptor fd to perform binary I/O. */ changes the file descriptor fd to perform binary I/O. */
#ifdef __DJGPP__ #if defined __DJGPP__ || defined __EMX__
# include <unistd.h> /* declares isatty() */ # include <unistd.h> /* declares isatty() */
/* Avoid putting stdin/stdout in binary mode if it is connected to /* Avoid putting stdin/stdout in binary mode if it is connected to
the console, because that would make it impossible for the user the console, because that would make it impossible for the user
to interrupt the program through Ctrl-C or Ctrl-Break. */ to interrupt the program through Ctrl-C or Ctrl-Break. */
# define SET_BINARY(fd) ((void) (!isatty (fd) ? (set_binary_mode (fd, O_BINARY), 0) : 0)) # define SET_BINARY(fd) ((void) (!isatty (fd) ? (set_binary_mode (fd, O_BINARY), 0) : 0))
#else #else
# define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY)) # define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY))
#endif #endif
_GL_INLINE_HEADER_END _GL_INLINE_HEADER_END
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS