|
#ifndef bcftools_PYSAM_H |
|
#define bcftools_PYSAM_H |
|
|
|
#include <stdio.h> |
|
|
|
#ifndef __has_attribute |
|
#define __has_attribute(attribute) 0 |
|
#endif |
|
#ifndef PYSAM_NORETURN |
|
#if __has_attribute(__noreturn__) || __GNUC__ >= 3 |
|
#define PYSAM_NORETURN __attribute__((__noreturn__)) |
|
#else |
|
#define PYSAM_NORETURN |
|
#endif |
|
#endif |
|
|
|
extern FILE * bcftools_stderr; |
|
|
|
extern FILE * bcftools_stdout; |
|
|
|
extern const char * bcftools_stdout_fn; |
|
|
|
|
|
|
|
|
|
|
|
FILE * bcftools_set_stderr(int fd); |
|
|
|
|
|
|
|
|
|
|
|
FILE * bcftools_set_stdout(int fd); |
|
|
|
|
|
|
|
|
|
void bcftools_set_stdout_fn(const char * fn); |
|
|
|
|
|
|
|
|
|
void bcftools_close_stderr(void); |
|
|
|
|
|
|
|
|
|
void bcftools_close_stdout(void); |
|
|
|
int bcftools_puts(const char *s); |
|
|
|
int bcftools_dispatch(int argc, char *argv[]); |
|
|
|
void PYSAM_NORETURN bcftools_exit(int status); |
|
|
|
extern int bcftools_main(int argc, char *argv[]); |
|
|
|
|
|
#if !(defined CYTHON_ABI || defined CYTHON_HEX_VERSION) |
|
|
|
|
|
|
|
|
|
|
|
|
|
#define main_consensus bcftools_main_consensus |
|
#define main_reheader bcftools_main_reheader |
|
#define bam_smpl_init bcftools_bam_smpl_init |
|
#define bam_smpl_destroy bcftools_bam_smpl_destroy |
|
#define read_file_list bcftools_read_file_list |
|
|
|
#endif |
|
|
|
#endif |
|
|