-
Notifications
You must be signed in to change notification settings - Fork 0
/
protodef.h
79 lines (77 loc) · 3.11 KB
/
protodef.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
Copyright (c) 2003 by Stefan Kurtz and The Institute for
Genomic Research. This is OSI Certified Open Source Software.
Please see the file LICENSE for licensing information and
the file ACKNOWLEDGEMENTS for names of contributors to the
code base.
*/
#ifndef PROTODEF_H
#define PROTODEF_H
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include "types.h"
#include "optdesc.h"
#include "multidef.h"
#include "mumcand.h"
#ifdef __cplusplus
extern "C" {
#endif
Sint mumuniqueinquery(void *processinfo,
Sint (*processmum)(void *,Uint,Uint,Uint,Uint),
ArrayMUMcandidate *mumcand);
Sint simplefileOpen(char *filename,Uint *numofbytes);
/*@null@*/ void *creatememorymapforfiledesc(char *file,Uint line,Sint fd,
bool writemap,Uint numofbytes);
/*@null@*/ void *creatememorymap(char *file,Uint line,char *filename,
bool writemap,Uint *numofbytes);
Sint deletememorymap(char *file,Uint line,void *mappedfile);
void mmcheckspaceleak(void);
Sint mmwrapspace(void);
void mmshowspace(void);
Uint mmgetspacepeak(void);
void initmultiseq(Multiseq *multiseq);
void freemultiseq(Multiseq *multiseq);
Sint overallsequences(bool rcmode,Multiseq *multiseq,void *applyinfo,
Sint(*apply)(void *,Uint,Uchar *,Uint));
Sint getrecordnum(Uint *recordseps,Uint numofrecords,Uint totalwidth,
Uint position);
Sint getseqnum(Multiseq *multiseq,Uint position);
Sint pos2pospair(Multiseq *multiseq,PairUint *pos,Uint position);
void initoptions(OptionDescription *options,Uint numofoptions);
Sint addoption(OptionDescription *options,Uint numofoptions,
Uint optnum,char *optname,char *optdesc);
Sint procoption(OptionDescription *opt,Uint numofopt,char *optstring);
void showoptions(FILE *outfp,char *program,OptionDescription *opt,
Uint numofopt);
void showoptionswithoutexclude(FILE *outfp,char *program,
OptionDescription *opt,
Sint *excludetab,Uint numofopt);
Sint checkdoubleexclude(Uint numofopts,OptionDescription *opt,
Sint *excludetab,Uint len);
int checkexclude(OptionDescription *opt,Sint *excludetab,Uint len);
void showexclude(OptionDescription *opt,Sint *excludetab,Uint len);
Sint safestringcopy(char *dest,char *source,Sint maxlen);
Sint maxerrormsg(void);
char *messagespace(void);
void seterror(Sint code);
Sint geterror(void);
void reseterror(void);
/*@notnull@*/ void *allocandusespaceviaptr(char *file,Uint line,
/*@null@*/ void *ptr,
Uint size,Uint number);
/*@notnull@*/ char *dynamicstrdup(char *file,Uint line,char *source);
void freespaceviaptr(char *file,Uint line,void *ptr);
void wrapspace(void);
void activeblocks(void);
void checkspaceleak(void);
void showspace(void);
Uint getspacepeak(void);
void showmemsize(void);
Uint getmaxtextlenstree(void);
void showthesymbolstring(FILE *fp,Uchar *tlast,Uchar *left,
Uchar *right);
#ifdef __cplusplus
}
#endif
#endif