diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
commit | b8d4bb76703bcb15578e2b23c5d256532180b894 (patch) | |
tree | bedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/crates/bibutils_sys/src/reftypes.h | |
parent | 02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff) |
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/reftypes.h')
-rw-r--r-- | support/texlab/crates/bibutils_sys/src/reftypes.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/reftypes.h b/support/texlab/crates/bibutils_sys/src/reftypes.h new file mode 100644 index 0000000000..eeade09060 --- /dev/null +++ b/support/texlab/crates/bibutils_sys/src/reftypes.h @@ -0,0 +1,63 @@ +/* + * reftypes.h + * + * Copyright (c) Chris Putnam 2003-2019 + * + * Source code released under the GPL version 2 + * + */ +#ifndef REFTYPES_H +#define REFTYPES_H + +#define REFTYPE_CHATTY (0) +#define REFTYPE_SILENT (1) + +/* Reftypes handled by core code */ +#define ALWAYS (0) +#define DEFAULT (1) +#define SKIP (2) + +/* Reftypes to be handled by converters */ +#define SIMPLE (3) +#define TYPE (4) +#define PERSON (5) +#define DATE (6) +#define PAGES (7) +#define SERIALNO (8) +#define TITLE (9) +#define NOTES (10) +#define DOI (11) +#define HOWPUBLISHED (12) +#define LINKEDFILE (13) +#define KEYWORD (14) +#define URL (15) +#define GENRE (16) +#define BT_SENTE (17) /* Bibtex 'Sente' */ +#define BT_EPRINT (18) /* Bibtex 'Eprint' */ +#define BT_ORG (19) /* Bibtex Organization */ +#define BLT_THESIS_TYPE (20) /* Biblatex Thesis Type */ +#define BLT_SCHOOL (21) /* Biblatex School */ +#define BLT_EDITOR (22) /* Biblatex Editor */ +#define BLT_SUBTYPE (23) /* Biblatex entrysubtype */ +#define BLT_SKIP (24) /* Biblatex Skip Entry */ +#define EPRINT (25) +#define NUM_REFTYPES (26) + +typedef struct { + char *oldstr; + char *newstr; + int processingtype; + int level; +} lookups; + +typedef struct { + char type[25]; + lookups *tags; + int ntags; +} variants; + +int get_reftype( const char *q, long refnum, char *progname, variants *all, int nall, char *tag, int *is_default, int chattiness ); +int process_findoldtag( const char *oldtag, int reftype, variants all[], int nall ); +int translate_oldtag( const char *oldtag, int reftype, variants all[], int nall, int *processingtype, int *level, char **newtag ); + +#endif |