Annotation of coherent/a/usr/bob/test/mwcbbs/contents.h, revision 1.1.1.1

1.1       root        1: #define MASTERFILE "Contents"
                      2: #define TRACE printf
                      3: #define VERSION        "1.2.0"
                      4: #define PATHNAME "/usr/spool/uucppublic/"
                      5: #define MAILFILE "Maillist"
                      6: #define TEMPFILE "mwcbbs.tmp"
                      7: #define HOST "uucp -r mwcbbs!"
                      8: #define RECEIVER " ~/"
                      9: #define CONTENT1 "mwcnews/hints/Contents.hints"
                     10: #define CONTENT2 "mwcnews/Contents.news"
                     11: #define CONTENT3 "mwcnews/downloads/updates/Contents.UPD"
                     12: #define CONTENT4 "mwcnews/downloads/Contents.down"
                     13: #define MAXRECORDS 250
                     14: #define SCREENMAX 100
                     15: #define LENPATH 22
                     16: #define NAMELOCATE 2,1
                     17: #define DESCLOCATE 4,1
                     18: #define DATELOCATE 6,1
                     19: #define SIZELOCATE 6,30
                     20: #define PARTLOCATE 6,49
                     21: #define REQLOCATE 9,1
                     22: #define NOTELOCATE 12,1
                     23: #define PATHLOCATE 15,1
                     24: #define PATHLOCATE2 16,1
                     25: #define PATHLOCATE3 17,1
                     26: #define NAMEHI 2,12
                     27: #define DESCHI 5,1
                     28: #define DATEHI 7,5
                     29: #define SIZEHI 7,30
                     30: #define PARTHI 7,60
                     31: #define REQHI 10,2
                     32: #define NOTEHI  13,2
                     33: #define PATHHI 18,2
                     34: #define PATHHI2 18,24
                     35: #define FILE0 "Contents.down"
                     36: #define FILE1 "Contents.hints"
                     37: #define FILE2 "Contents.news"
                     38: #define FILE3 "Contents.UPD"
                     39: #define FILE4 "Maillist"
                     40: #define FILE5 "Net_Maps"
                     41: #define FILE6 "QUIT"
                     42: #define REC_FORMULA ((sizeof (struct entry) * (screen_num * 100)) + (((row*5) + (col/15)) * sizeof (struct entry)))
                     43: #define POS_FORMULA ((screen_num * 100) + ((row*5) + (col/15)))
                     44: #define MAIL_FORMULA ((sizeof (struct mail) * (screen_num * 100)) + (((row*5) + (col/15)) * sizeof (struct mail)))
                     45: #define MAP_FORMULA ((sizeof (struct map) * (screen_num * 100)) + (((row*5) + (col/15)) * sizeof (struct map)))
                     46: 
                     47: void bbsdatafile();    /* reads .mwcbbs file for over ride paths */
                     48: void show_files(); /* this should display the filenames on a curses screen */
                     49: int lite(); /* inverse/normal video display of a filename */
                     50: int rfile(); /* read records from a given file */
                     51: void write_win(); /*does the actual work of writing filenames to a window */
                     52: void display_form(); /* for for displaying selected filename */
                     53: void display_record(); /* display selected filename */
                     54: void menu(); /* menu printed at bottom of screen */
                     55: void del_rec(); /* this will be used to delete records */
                     56: void add_rec(); /* this will be used to add records */
                     57: void getstring(); /* this will be called by add_rec to get input */
                     58: void build_uucp(); /* this will build multiple uucp requests */
                     59: void getfilename(); /* this will run from main, getting the user's choice of*/
                     60:                                        /* file to use. */
                     61: void print_states(); /* this will print a screen of states from which a user*/
                     62:                                         /* can get a list of bbs accounts broken down by state */
                     63: void print_mail_states(); /* this will print maillists by given state */
                     64: void add_mail();
                     65: void add_del_screen(); /* this draws a master mail rec screen */
                     66: void display_mail();   /* this will display a mail record before deletion */
                     67: int get_info();                /* this will get mail info to be added to Mailfile */
                     68: void get_net_map();    /* this will get a selection of net map to read */
                     69: void map_command();    /* this will generate uucp commands to grab net maps */
                     70: void print();          /* this will be used to 'print' the Contents files */
                     71: 
                     72: struct mail    {
                     73:                char site[8];
                     74:                char login[11];
                     75:                char state[21];
                     76:                char city[25];
                     77:                };
                     78: 
                     79: 
                     80: struct entry{
                     81:                char filename [15];
                     82:                char filesize [10];
                     83:                char date[7];
                     84:                char description [78];
                     85:                char requires [60];
                     86:                char notes [78];
                     87:                char pathname [60];
                     88:                int noparts;
                     89:            };
                     90: 
                     91: 
                     92: struct map     {
                     93:                char name[15];
                     94:                char path[60];
                     95:                };
                     96: 
                     97: extern char recdir[50];
                     98: extern char selection[15];
                     99: extern char filenames [MAXRECORDS][15];
                    100: extern char workfile[60];
                    101: extern char find_workfile[47];
                    102: extern char workstring[80];
                    103: extern char getfiles[26][115];
                    104: extern int place[MAXRECORDS];
                    105: extern int limit, screen_num, printflag;
                    106: extern char open_mode;
                    107: 
                    108: extern char state[52][15];
                    109: extern char mapfile[4][15];
                    110: 
                    111: extern struct mail mail_rec;
                    112: extern struct mail new_mail_rec;
                    113: 
                    114: extern struct entry record;
                    115: extern struct entry new_record;
                    116: extern struct map map_rec;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.