"Fossies" - the Fresh Open Source Software Archive  

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

group.c  (tin-2.4.4.tar.xz):group.c  (tin-2.4.5.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : group.c * Module : group.c
* Author : I. Lea & R. Skrenta * Author : I. Lea & R. Skrenta
* Created : 1991-04-01 * Created : 1991-04-01
* Updated : 2017-10-24 * Updated : 2020-06-10
* 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 591 skipping to change at line 591
ret_code = GRP_NEXTUNREAD; ret_code = GRP_NEXTUNREAD;
} }
break; break;
case GLOBAL_BUGREPORT: case GLOBAL_BUGREPORT:
bug_report(); bug_report();
break; break;
case GROUP_TAG_PARTS: /* tag all in order */ case GROUP_TAG_PARTS: /* tag all in order */
if (0 <= grpmenu.curr) { if (0 <= grpmenu.curr) {
if (tag_multipart(grpmenu.curr) != 0) { int old_num = num_of_tagged_arts;
if (tag_multipart(base[grpmenu.curr]) !=
0) {
/* /*
* on success, move the pointer t o the next * on success, move the pointer t o the next
* untagged article just for ease of use's sake * untagged article just for ease of use's sake
*/ */
n = grpmenu.curr; n = grpmenu.curr;
update_group_page(); update_group_page();
do { do {
n++; n++;
n %= grpmenu.max; n %= grpmenu.max;
if (arts[base[n]].tagged == 0) { if (arts[base[n]].tagged == 0) {
move_to_item(n); move_to_item(n);
break; break;
} }
} while (n != grpmenu.curr); } while (n != grpmenu.curr);
info_message(_(txt_info_all_parts if (old_num < num_of_tagged_arts)
_tagged)); info_message(_(txt_info_a
ll_parts_tagged));
else
info_message(_(txt_info_a
ll_parts_untagged));
} }
} }
break; break;
case GROUP_TAG: /* tag/untag threads for mailing/ piping/printing/saving */ case GROUP_TAG: /* tag/untag threads for mailing/ piping/printing/saving */
if (grpmenu.curr >= 0) { if (grpmenu.curr >= 0) {
t_bool tagged = TRUE; t_bool tagged = TRUE;
n = (int) base[grpmenu.curr]; n = (int) base[grpmenu.curr];
 End of changes. 4 change blocks. 
5 lines changed or deleted 12 lines changed or added

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