"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/options_menu.c" between
tin-2.4.4.tar.xz and tin-2.4.5.tar.xz

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

options_menu.c  (tin-2.4.4.tar.xz):options_menu.c  (tin-2.4.5.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : options_menu.c * Module : options_menu.c
* Author : Michael Bienia <michael@vorlon.ping.de> * Author : Michael Bienia <michael@vorlon.ping.de>
* Created : 2004-09-05 * Created : 2004-09-05
* Updated : 2019-06-05 * Updated : 2020-06-10
* Notes : Split from config.c * Notes : Split from config.c
* *
* Copyright (c) 2004-2020 Michael Bienia <michael@vorlon.ping.de> * Copyright (c) 2004-2021 Michael Bienia <michael@vorlon.ping.de>
* 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,
* this list of conditions and the following disclaimer. * this list of conditions and the following disclaimer.
* *
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
skipping to change at line 2140 skipping to change at line 2140
break; break;
case OPT_NEWS_HEADERS_TO_NOT_DISP LAY: case OPT_NEWS_HEADERS_TO_NOT_DISP LAY:
if (prompt_option_string( option)) { if (prompt_option_string( option)) {
build_news_header s_array(scopes[0].attribute, FALSE); build_news_header s_array(scopes[0].attribute, FALSE);
changed |= MISC_O PTS; changed |= MISC_O PTS;
} }
break; break;
case OPT_POSTED_ARTICLES_FILE: case OPT_POSTED_ARTICLES_FILE:
if (prompt_option_string( if (prompt_option_string(
option)) { option)) /* no expansion here, will be done in post_loop() */
char buf[PATH_LEN
];
strfpath(tinrc.po
sted_articles_file, buf, sizeof(buf), &CURR_GROUP, TRUE);
STRCPY(tinrc.post
ed_articles_file, buf);
changed |= MISC_O PTS; changed |= MISC_O PTS;
}
break; break;
#ifdef HAVE_COLOR #ifdef HAVE_COLOR
case OPT_QUOTE_REGEX: case OPT_QUOTE_REGEX:
if (prompt_option_string( option)) { if (prompt_option_string( option)) {
FreeIfNeeded(quot e_regex.re); FreeIfNeeded(quot e_regex.re);
FreeIfNeeded(quot e_regex.extra); FreeIfNeeded(quot e_regex.extra);
if (!strlen(tinrc .quote_regex)) if (!strlen(tinrc .quote_regex))
STRCPY(ti nrc.quote_regex, DEFAULT_QUOTE_REGEX); STRCPY(ti nrc.quote_regex, DEFAULT_QUOTE_REGEX);
compile_regex(tin rc.quote_regex, &quote_regex, PCRE_CASELESS); compile_regex(tin rc.quote_regex, &quote_regex, PCRE_CASELESS);
 End of changes. 4 change blocks. 
12 lines changed or deleted 4 lines changed or added

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