home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_12.zip / src / rcstuff.h < prev    next >
C/C++ Source or Header  |  1993-12-04  |  2KB  |  66 lines

  1. /* $Id: rcstuff.h,v 4.4.3.1 1992/02/01 03:09:32 sob PATCH_3 sob $
  2.  *
  3.  * $Log: rcstuff.h,v $
  4.  * Revision 4.4.3.1  1992/02/01  03:09:32  sob
  5.  * Release 4.4 Patchlevel 3
  6.  *
  7.  * Revision 4.4.2.1  1991/12/01  18:05:42  sob
  8.  * Patchlevel 2 changes
  9.  *
  10.  * Revision 4.4  1991/09/09  20:27:37  sob
  11.  * release 4.4
  12.  *
  13.  *
  14.  * 
  15.  */
  16. /* This software is Copyright 1991 by Stan Barber. 
  17.  *
  18.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  19.  * use this software as long as: there is no monetary profit gained
  20.  * specifically from the use or reproduction of this software, it is not
  21.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  22.  * included prominently in any copy made. 
  23.  *
  24.  * The author make no claims as to the fitness or correctness of this software
  25.  * for any use whatsoever, and it is provided as is. Any use of this software
  26.  * is at the user's own risk. 
  27.  */
  28.  
  29. EXT char **rcline INIT(NULL);/* pointers to lines of .newsrc */
  30. EXT ART_UNREAD *toread INIT(NULL);
  31.             /* number of articles to be read in newsgroup */
  32.             /* <0 => invalid or unsubscribed newsgroup */
  33. #define TR_ONE ((ART_UNREAD) 1)
  34. #define TR_NONE ((ART_UNREAD) 0)
  35. #define TR_UNSUB ((ART_UNREAD) -1)
  36.             /* keep this one as -1, some tests use >= TR_UNSUB */
  37. #define TR_BOGUS ((ART_UNREAD) -2)
  38. #define TR_JUNK ((ART_UNREAD) -3)
  39.  
  40. #ifdef USETHREADS
  41. #define RCCHAR(ch) ((ch) == '0' ? ':' : (ch))
  42. #endif
  43.  
  44. EXT char *rcchar INIT(NULL); /* holds the character : or ! while spot is \0 */
  45. EXT char *rcnums INIT(NULL); /* offset from rcline to numbers on line */
  46. EXT ACT_POS *softptr INIT(NULL);
  47.             /* likely ptr to active file entry for newsgroup */
  48. EXT bool paranoid INIT(FALSE);    /* did we detect some inconsistency in .newsrc? */
  49. EXT int maxrcline INIT(0);    /* current maximum # of lines in .newsrc */
  50. EXT int addnewbydefault INIT(0);
  51.  
  52. bool    rcstuff_init ANSI((void));
  53. bool    get_ng ANSI((char *,bool_int));    /* return TRUE if newsgroup can be found or added */
  54. NG_NUM    add_newsgroup ANSI((char *,char_int));
  55. #ifdef RELOCATE
  56.     NG_NUM    relocate_newsgroup ANSI((NG_NUM,NG_NUM));/* move newsgroup around */
  57. #endif
  58. void    list_newsgroups ANSI((void));
  59. NG_NUM    find_ng ANSI((char *));    /* return index of newsgroup */
  60. void    cleanup_rc ANSI((void));
  61. void    sethash ANSI((NG_NUM));
  62. int    hash ANSI((char *));
  63. void    newsrc_check ANSI((void));
  64. void    write_rc ANSI((void));
  65. void    get_old_rc ANSI((void));
  66.