File: type.h

package info (click to toggle)
haskell-hs-bibutils 6.10.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,468 kB
  • sloc: ansic: 103,872; haskell: 2; makefile: 2
file content (27 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download | duplicates (9)
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
/*
 * type.h
 *
 * Copyright (c) Chris Putnam 2019
 *
 * Source code released under the GPL version 2
 */
#ifndef TYPE_H
#define TYPE_H

#include <stdio.h>
#include <stdlib.h>
#include "fields.h"

#define TYPE_FROM_GENRE    (0)
#define TYPE_FROM_RESOURCE (1)
#define TYPE_FROM_ISSUANCE (2)

typedef struct match_type {
        char *name;
        int type;
        int level;
} match_type;

int type_from_mods_hints( fields *in, int mode, match_type matches[], int nmatches, int type_unknown );

#endif