File: append_easy.h

package info (click to toggle)
bibutils 7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,040 kB
  • sloc: ansic: 112,579; sh: 462; makefile: 42
file content (28 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download | duplicates (2)
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
/*
 * append_easy.h
 *
 * Most output formats have identical requirements for outputting
 * easy tag/value pairs, so centralize code.
 *
 * append_easy()      - output first match
 * append_easyall()   - output all matches as separate tag/value pairs
 * append_easycombo() - output all matches as a single tag/value pair, where
 *                      values are separated by the sep string
 *
 * Copyright (c) Chris Putnam 2020-2021
 *
 * Source code released under the GPL version 2
 */
#ifndef APPEND_EASY_H
#define APPEND_EASY_H

#include "fields.h"

void append_easy      ( fields *in, const char *intag, int inlevel, fields *out, const char *outtag, int *status );
void append_easyall   ( fields *in, const char *intag, int inlevel, fields *out, const char *outtag, int *status );
void append_easyallpre( fields *in, const char *intag, int inlevel, fields *out, const char *outtag, const char *prefix, int *status );
void append_easycombo ( fields *in, const char *intag, int inlevel, fields *out, const char *outtag, const char *sep,    int *status );
int  append_easypage  ( fields *out, const char *outtag, const char *value, int level );


#endif