"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.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.

main.c  (tin-2.4.4.tar.xz):main.c  (tin-2.4.5.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : main.c * Module : main.c
* Author : I. Lea & R. Skrenta * Author : I. Lea & R. Skrenta
* Created : 1991-04-01 * Created : 1991-04-01
* Updated : 2019-07-16 * Updated : 2020-05-22
* Notes : * Notes :
* *
* Copyright (c) 1991-2020 Iain Lea <iain@bricbrac.de>, Rich Skrenta <skrenta@pb m.com> * Copyright (c) 1991-2021 Iain Lea <iain@bricbrac.de>, Rich Skrenta <skrenta@pb m.com>
* 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 289 skipping to change at line 289
selmenu.max = 0; selmenu.max = 0;
/* /*
* we need to restore the original no_write mode to be able to handle * we need to restore the original no_write mode to be able to handle
* $AUTOSUBSCRIBE groups * $AUTOSUBSCRIBE groups
*/ */
no_write = tmp_no_write; no_write = tmp_no_write;
read_attributes_file(TRUE); read_attributes_file(TRUE);
read_attributes_file(FALSE); read_attributes_file(FALSE);
start_groupnum = read_news_active_file(); start_groupnum = read_news_active_file();
#ifdef DEBUG #ifdef DEBUG
debug_print_active(); if (debug & DEBUG_MISC)
debug_print_active();
#endif /* DEBUG */ #endif /* DEBUG */
/* /*
* Read in users filter preferences file. This has to be done before * Read in users filter preferences file. This has to be done before
* quick post because the filters might be updated. * quick post because the filters might be updated.
*/ */
read_filter_file(filter_file); read_filter_file(filter_file);
no_write = TRUE; no_write = TRUE;
#ifdef DEBUG #ifdef DEBUG
debug_print_filters(); if (debug & DEBUG_FILTER)
debug_print_filters();
#endif /* DEBUG */ #endif /* DEBUG */
/* /*
* Preloads active[] with command line groups. They will follow any * Preloads active[] with command line groups. They will follow any
* new newsgroups * new newsgroups
*/ */
if (!post_postponed_and_exit) if (!post_postponed_and_exit)
num_cmd_line_groups = read_cmd_line_groups(); num_cmd_line_groups = read_cmd_line_groups();
/* /*
skipping to change at line 574 skipping to change at line 576
break; break;
case 'H': case 'H':
show_intro_page(); show_intro_page();
free_all_arrays(); free_all_arrays();
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
/* keep lint quiet: */ /* keep lint quiet: */
/* FALLTHROUGH */ /* FALLTHROUGH */
case 'I': case 'I':
my_strncpy(index_newsdir, optarg, sizeof(index_ne wsdir) - 1); joinpath(index_newsdir, sizeof(index_newsdir), op targ, INDEX_NEWSDIR);
break; break;
case 'l': case 'l':
list_active = TRUE; list_active = TRUE;
break; break;
case 'm': case 'm':
my_strncpy(cmdline.maildir, optarg, sizeof(cmdlin e.maildir) - 1); my_strncpy(cmdline.maildir, optarg, sizeof(cmdlin e.maildir) - 1);
cmdline.args |= CMDLINE_MAILDIR; cmdline.args |= CMDLINE_MAILDIR;
break; break;
skipping to change at line 943 skipping to change at line 945
/* /*
* update index files * update index files
*/ */
static void static void
update_index_files( update_index_files(
void) void)
{ {
cCOLS = 132; /* set be cause curses has not started */ cCOLS = 132; /* set be cause curses has not started */
create_index_lock_file(lock_file); create_index_lock_file(lock_file);
tinrc.thread_articles = THREAD_NONE; /* stop threading to run faster * / tinrc.thread_articles = THREAD_NONE; /* stop threading to run faster * /
tinrc.sort_article_type = SORT_ARTICLES_BY_NOTHING;
tinrc.sort_threads_type = SORT_THREADS_BY_NOTHING;
do_update(catchup); do_update(catchup);
tin_done(EXIT_SUCCESS, NULL); tin_done(EXIT_SUCCESS, NULL);
} }
/* /*
* display page of general info. for first time user. * display page of general info. for first time user.
*/ */
static void static void
show_intro_page( show_intro_page(
void) void)
 End of changes. 6 change blocks. 
5 lines changed or deleted 9 lines changed or added

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