[go: up one dir, main page]

File: chkhistory_multi.c

package info (click to toggle)
suck 4.3.4-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,148 kB
  • sloc: ansic: 12,085; perl: 528; sh: 363; makefile: 348; java: 144
file content (33 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Select chistory version at runtime rather than compile time.
 * ckkhistory_cnews and chkhistory_inn are alternate compilations of
 * chkhistory_db.c
 */

#include <config.h>
#include "suck_config.h"
#include "suck.h"
#include "both.h"

void chhistory_other(PMaster master);
void chhistory_cnews(PMaster master);
void chhistory_inn(PMaster master);

void chkhistory(PMaster master) {
    if(master->debug == TRUE) {
        do_debug("chkhistory_multi: %d\n", master->history_type);
	do_debug("history_file: %s\n", master->history_file);
    }
    switch(master->history_type) {
	case HIST_NONE:
	    break;
	case HIST_OTHER:
	    chkhistory_other(master);
	    break;
	case HIST_CNEWS:
	    chkhistory_cnews(master);
	    break;
	case HIST_INN:
	    chkhistory_inn(master);
	    break;
    }
}