"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/tcurses.h" between
tin-2.4.5.tar.xz and tin-2.6.0.tar.xz

About: TIN is a threaded NNTP and spool based UseNet newsreader.

tcurses.h  (tin-2.4.5.tar.xz):tcurses.h  (tin-2.6.0.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : tcurses.h * Module : tcurses.h
* Author : Thomas Dickey * Author : Thomas Dickey
* Created : 1997-03-02 * Created : 1997-03-02
* Updated : 2011-04-02 * Updated : 2021-07-12
* Notes : curses #include files, #defines & struct's * Notes : curses #include files, #defines & struct's
* *
* Copyright (c) 1997-2021 Thomas Dickey <dickey@invisible-island.net> * Copyright (c) 1997-2021 Thomas Dickey <dickey@invisible-island.net>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, * 1. Redistributions of source code must retain the above copyright notice,
skipping to change at line 76 skipping to change at line 76
# include <curses.h> # include <curses.h>
# ifndef FALSE # ifndef FALSE
# define FALSE 0 # define FALSE 0
# endif /* !FALSE */ # endif /* !FALSE */
# ifndef TRUE # ifndef TRUE
# define TRUE (!FALSE) # define TRUE (!FALSE)
# endif /* !TRUE */ # endif /* !TRUE */
# endif /* HAVE_NCURSES_NCURSES_H */ # endif /* HAVE_NCURSES_NCURSES_H */
# endif /* HAVE_NCURSES_H */ # endif /* HAVE_NCURSES_H */
# endif /* HAVE_NCURSESW_NCURSES_H */ # endif /* HAVE_NCURSESW_NCURSES_H */
# if defined(NCURSES_WIDECHAR)
# define HAVE_NCURSESW 1
# endif
# endif /* HAVE_NCURSES_H */ # endif /* HAVE_NCURSES_H */
# endif /* USE_CURSES || NEED_CURSES_H */ # endif /* USE_CURSES || NEED_CURSES_H */
# ifdef USE_CURSES # ifdef USE_CURSES
# ifdef USE_TRACE # ifdef USE_TRACE
# ifdef HAVE_NOMACROS_H # ifdef HAVE_NOMACROS_H
# include <nomacros.h> # include <nomacros.h>
# endif /* HAVE_NOMACROS_H */ # endif /* HAVE_NOMACROS_H */
# endif /* USE_TRACE */ # endif /* USE_TRACE */
skipping to change at line 157 skipping to change at line 160
# define cCRLF "\r\n" # define cCRLF "\r\n"
# define my_fputc(ch, stream) fputc(ch, stream) # define my_fputc(ch, stream) fputc(ch, stream)
# define my_fputs(str, stream) fputs(str, stream) # define my_fputs(str, stream) fputs(str, stream)
# if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) # if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
# define my_fputwc(wc, stream) { \ # define my_fputwc(wc, stream) { \
if (fwide(stream, 0) <= 0) \ if (fwide(stream, 0) <= 0) \
fprintf(stream, "%lc", wc); \ fprintf(stream, "%lc", wc); \
else \ else \
fputwc(wc, stream); \ fputwc((wchar_t) (wc), stream); \
} }
# define my_fputws(wstr, stream) { \ # define my_fputws(wstr, stream) { \
if (fwide(stream, 0) <= 0) \ if (fwide(stream, 0) <= 0) \
fprintf(stream, "%ls", wstr); \ fprintf(stream, "%ls", wstr); \
else \ else \
fputws(wstr, stream); \ fputws(wstr, stream); \
} }
# endif /* MULTIBYTE_ABLE && !NO_LOCALE */ # endif /* MULTIBYTE_ABLE && !NO_LOCALE */
# define my_printf printf # define my_printf printf
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)