File: reftypes.h

package info (click to toggle)
bibutils 4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,512 kB
  • ctags: 1,340
  • sloc: ansic: 72,394; csh: 216; makefile: 117
file content (44 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
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
/*
 * reftypes.h
 *
 * Copyright (c) Chris Putnam 2003-2009
 *
 * Source code released under the GPL
 *
 */
#ifndef REFTYPES_H
#define REFTYPES_H

#define SIMPLE       (0)
#define TYPE         (1)
#define PERSON       (2)
#define DATE         (3)
#define PAGES        (4)
#define SERIALNO     (5)
#define TITLE        (6)
#define ALWAYS       (7)
#define BIBTEX_URL   (8)
#define ISI_KEYWORD  (9)
#define NOTES        (10)
#define DOI          (11)
#define BIBTEX_SENTE (12)
#define BIBTEX_FILE  (13)

typedef struct {
	char *oldstr;
	char *newstr;
	int  processingtype;
	int  level;
} lookups;

typedef struct {
	char    type[25];
	lookups *tags;
	int     ntags;
} variants;

extern int get_reftype( char *q, long refnum, char *progname, variants *all, int nall, char *tag );
extern int process_findoldtag( char *oldtag, int reftype, variants all[], int nall );


#endif